Fix typo.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
ebc6e014
L
12002-07-31 H.J. Lu <hjl@gnu.org>
2
3 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
4 --enable-64-bit-bfd.
5
39a2a3eb
L
62002-07-31 H.J. Lu <hjl@gnu.org>
7
8 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
9 64bit BFD is selected.
10
a0dfa6a8
L
112002-07-31 H.J. Lu <hjl@gnu.org>
12
13 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
14 if 64bit BFD is selected.
15
f7c33884
NC
162002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
17
18 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
19 link_info.common_skip_ar_aymbols.
20 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
21
22 * ldmain.c (main): Initialize new field
23 link_info.common_skip_ar_aymbols.
24
8f64befb
NC
252002-07-31 Adam Nemet <anemet@lnxw.com>
26
27 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
28 to .plt.thumb.
29 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
30 used.
31
500800ca
NC
322002-07-31 Nick Clifton <nickc@redhat.com>
33
34 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
35 of the PDP-11 and 2.11BSD a.out support.
36
7808a785
TS
372002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
38
39 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
40 for n32 ABI support.
41 * Makefile.in: Regenerate.
42 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
43 n32 ABI emulations for these 64 bit targets.
44 * emulparams/elf32bmipn32.sh: Expand comment.
45 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
46 n32 ABI.
47 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
48
7e392df6
NC
492002-07-30 Graeme Peterson <gp@qnx.com>
50
51 * configure.tgt: Add support for arm-*-nto target.
52 * Makefile.am: Add earmnto.o file.
53 * Makefile.in: Regenerate.
54 * NEWS: Mention port of ARM support to QNX.
55 * emulparams/armnto.sh: New file.
56
704afa60
JJ
572002-07-30 Jakub Jelinek <jakub@redhat.com>
58
59 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
60 for relocatable link.
61 (lang_size_sections_1): Don't make .tbss zero size for relocatable
62 link.
63
7dcd22c2
BS
642002-07-26 Bernd Schmidt <bernds@redhat.com>
65
66 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
67 (STACK_ADDR): New.
68
219576a4
NC
692002-07-25 Nick Clifton <nickc@redhat.com>
70
71 * po/sv.po: Updated Swedish translation.
72 * po/es.po: Updated Spanish translation.
73 * po/fr.po: Updated French translation.
74
ff3063f5
NC
752002-07-24 Nick Clifton <nickc@redhat.com>
76
77 * po/sv.po: Updated Swedish translation.
78 * po/es.po: Updated Spanish translation.
79
0461a601
NC
802002-07-23 Nick Clifton <nickc@redhat.com>
81
ff3063f5 82 * po/fr.po: Updated French translation.
0461a601 83
25844aae
AM
842002-07-20 Alan Modra <amodra@bigpond.net.au>
85
86 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
87 bomb on /DISCARD/ input section.
88 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
89 * emultempl/mmo.em (mmo_place_orphan): Likewise.
90
3595bd6e
HPN
912002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
92
93 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
94 output section.
95
cf88bb9f
NC
962002-07-16 Denis Chertykov <denisc@overta.ru>
97 Nick Clifton <nickc@redhat.com>
98 Frank Ch. Eigler <fche@redhat.com>
99 John Healy <jhealy@redhat.com>
100
101 * configure.tgt: Add support for ip2k-elf.
102 * Makefile.am: Add support for ip2k-elf.
103 * Makefile.in: Regenerate.
104 * emulparams/elf32ip2k.sh: New file.
105 * scripttempl/ip2k.sc: New file
106 * NEWS: Mention support for new port.
107
2cbb2eef
NC
1082002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
109
110 * NEWS: Add 'Changes in 2.13'.
111
96a94295
L
1122002-07-14 H.J. Lu <hjl@gnu.org>
113
114 * ld.texinfo: Document a .symver takes precedence over a
115 version script.
116
120d20f2
AM
1172002-07-12 Alan Modra <amodra@bigpond.net.au>
118
119 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
120 (COMMONPAGESIZE): Define.
121
0d2ddeb2
AM
1222002-07-09 Alan Modra <amodra@bigpond.net.au>
123
124 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
125
554690ed
AM
1262002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
127
128 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
129 powerpc-*-openbsd* and sparc64-*-openbsd*.
130 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
131 * Makefile.in: Regenerate.
132 * emulparams/hppaobsd.sh: New file.
133
34786259
AM
1342002-07-05 Alan Modra <amodra@bigpond.net.au>
135
136 * ldlang.c (print_wild_statement): Fix output formatting.
137
4bd5a393
AM
1382002-07-04 Alan Modra <amodra@bigpond.net.au>
139
140 * ldlang.c: (strip_excluded_output_sections): New function.
141 (lang_process): Call it.
142 (lang_size_sections_1): Revert 2002-06-10 change.
143
ce4f7385
AM
1442002-07-03 Alan Modra <amodra@bigpond.net.au>
145
146 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
147 Run "make dep-am".
148 * Makefile.in: Regenerate.
149
b7b482a3
AM
1502002-07-02 Alan Modra <amodra@bigpond.net.au>
151
71daf8b4
AM
152 * ldfile.c (ldfile_try_open_bfd): Formatting.
153
b7b482a3
AM
154 * ldmisc.c (demangle): Move so that it doesn't intrude between
155 vfinfo comment and body. Add comment.
156
29e2951e
AM
1572002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
158
159 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
160
e3e942e9
AM
1612002-07-01 Alan Modra <amodra@bigpond.net.au>
162
163 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
164 * ldlang.c (entry_sym): Likewise.
165 (ldlang_undef_chain_list_type): Likewise.
166 (lang_finish): Adjust references to entry_symbol.
167 (lang_add_entry): Likewise.
168 (lang_gc_sections): Use link_info.gc_sym_list.
169 (lang_process): Set link_info.gc_sym_list.
170 * ldlex.l: Include bfdlink.h.
171 * ldmain.c (main): Init link_info.gc_sym_list.
172 * emultempl/aix.em: Adjust references to entry_symbol.
173 * emultempl/armcoff.em: Likewise.
174 * emultempl/armelf.em: Likewise.
175 * emultempl/pe.em: Likewise.
176 * emultempl/ppc64elf.em (ppc_after_open): New function.
177 (LDEMUL_AFTER_OPEN): Define.
178 * emulparams/elf64ppc.sh: KEEP .opd sections.
179
a66c0f2c
SC
1802002-06-29 Stephane Carrez <stcarrez@nerim.fr>
181
182 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
183 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
184 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
185 (EEPROM_START_ADDR): Define.
186 (EEPROM_MEMORY): Define.
187 * emulparams/m68hc12elf.sh: Likewise.
188 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
189 section to put soft registers in .page0.
190 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
191
2b67cf00
JL
1922002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
193
194 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
195 section. Add ${RELOCATING-0}.
196
219576a4 1972002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
164c4054
JR
198
199 * emulparams/shelf.sh (STACK_ADDR): Don't define.
200 (OTHER_SECTIONS): Define.
201 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
202 (OTHER_SECTIONS): Undef.
203
fc28fbc2
AM
2042002-06-26 Alan Modra <amodra@bigpond.net.au>
205
206 * ldmisc.c (demangle): Restore dots stripped from sym name.
207
a13a0de8
L
2082002-06-25 H.J. Lu <hjl@gnu.org>
209
210 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
211 * Makefile.in: Regenerated.
212
b553b183
NC
2132002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
214
215 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
216 the size of attached object files, to allow make the object files
217 available via FTP or HTTP and to mention that the mail will be
218 sent to a mailing list.
219
2755afba
NC
2202002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
221
222 * ld/configure.host (romp): Drop support.
223
7d0a848e
CD
2242002-06-18 Chris Demetriou <cgd@broadcom.com>
225
226 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
227 section flags for SEC_DATA, rather than for SEC_CODE being unset.
228
8505f884
CD
2292002-06-18 Chris Demetriou <cgd@broadcom.com>
230
231 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
232 format specifier used to print BFD name.
233
7d553a40
DB
2342002-06-18 Dave Brolley <brolley@redhat.com>
235
236 From Catherine Moore, Michael Meissner, Jim Blandy:
237 * emulparams/elf32frv.sh: New file.
238 * configure.tgt: Support frv-*-*.
239 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
240 (eelf32frv.c): New target.
241
82434356
TR
2422002-06-17 Tom Rix <trix@redhat.com>
243
a59f3d35 244 * emultempl/elf32.em: gld*_get_script: Check for
82434356
TR
245 GENERATE_COMBRELOC_SCRIPT.
246 * scripttempl/elfd10v.sc : Fix STACK and INSN.
247 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
248
219576a4 2492002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
5d9b5481
JR
250
251 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
252
c4bb8067
L
2532002-06-12 H.J. Lu <hjl@gnu.org>
254
255 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
256 false if xvec doesn't match.
257
e052cfbe
RS
2582002-06-10 Richard Sandiford <rsandifo@redhat.com>
259
260 * ldlang.c (lang_size_sections_1): Skip removed output sections.
261
4da711b1
AM
2622002-06-08 Alan Modra <amodra@bigpond.net.au>
263
264 * ldexp.c: Replace CONST with const.
265 * ldfile.c: Likewise.
266 * ldfile.h: Likewise.
267 * ldlex.l: Likewise.
268 * mri.c: Likewise.
269 * pe-dll.h: Likewise.
270
eb95bb9a
AM
2712002-06-07 Alan Modra <amodra@bigpond.net.au>
272
273 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
274
e0076ab3
NC
2752002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
276
277 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
278 to -1 == implicit enable.
279 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
280 initialize link_info.pei386_auto_import to -1 == implicit
281 enable.
282 (gld_${EMULATION_NAME}_parse_args): When processing
283 --enable-auto-import and --disable-auto-import options, use
284 '1' and '0' instead of 'true' and 'false'.
285 (pe_find_data_imports): Only issue message about auto-import
286 when the feature is implicitly enabled. Downgrade message to
287 informational instead of warning.
288
f13a5424
AM
2892002-06-07 Alan Modra <amodra@bigpond.net.au>
290
291 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
292
1abffd82
JL
2932002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
294
295 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
296 HOSTING_CRT0 and HOSTING_LIBS.
297
e0076ab3 2982002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
299
300 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
301
4a5e698d
JT
3022002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
303
304 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
305 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
306
1d475d82
AM
3072002-06-05 Alan Modra <amodra@bigpond.net.au>
308
309 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
310 SEC_EXCLUDE sections when doing a relocatable link.
311
5b0e55b6
JT
3122002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
313
314 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
315 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
316 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
317 (eshlelf64_nbsd.c): New rules.
318 * Makefile.in: Regenerate.
319 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
320 (sh64-*-netbsd*): New targets.
321 * emulparams/shelf32_nbsd.sh: New file.
322 * emulparams/shelf64_nbsd.sh: New file.
323 * emulparams/shlelf32_nbsd.sh: New file.
324 * emulparams/shlelf64_nbsd.sh: New file.
325
9ad85d9b
AM
3262002-06-04 Alan Modra <amodra@bigpond.net.au>
327
328 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
329
0c9b4fee
MM
3302002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
331
332 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
333 C++ constructors/destructors, loosely based on the m68hc11 port.
334
2c538bde
AM
3352002-05-31 Alan Modra <amodra@bigpond.net.au>
336
337 * Makefile.in: Regenerate.
338 * aclocal.m4: Regenerate.
339 * config.in: Regenerate.
340 * configure: Regenerate.
341
a0cb91c6
AM
3422002-05-31 Graeme Peterson <gp@qnx.com>
343
344 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
345 (ei386nto.c): Add rule.
346 * Makefile.in: Regenerate.
347 * configure.tgt: Add i[3456]86-*-nto-qnx*.
348 * emulparams/i386nto.sh: New file.
349
37020578
JT
3502002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
351
352 * NEWS: Add entry for VAX ELF support.
353
ab68f3e0 3542002-05-29 Matt Thomas <matt@3am-software.com>
a59f3d35 355 Jason Thorpe <thorpej@wasabisystems.com>
ab68f3e0
JT
356
357 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
358 (eelf32vax.c)
359 (evaxnbsd.c): New rules.
360 * Makefile.in: Regenerate.
361 * configure.tgt (vax-*-netbsdelf*)
362 (vax-*-netbsdaout*)
363 (vax-*-netbsd*): New targets.
364 * emulparams/elf32vax.sh: New file.
365 * emulparams/vaxnbsd.sh: New file.
366
8afb0e02
NC
3672002-05-29 Adam Nemet <anemet@lnxw.com>
368
369 * emultempl/armelf.em (arm_elf_after_open): Don't determine
370 bfd_for_interwork, instead add glue sections to each input bfd.
371 (bfd_for_interwork): New global.
372 (arm_elf_set_bfd_for_interworking): New function.
373 (arm_elf_before_allocation): Use it.
374
d172d4ba
NC
3752002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
376
377 * Makefile.am: Add DLX make target.
378 * configure.tgt: Add DLX configuration.
379 * Makefile.in: Regenerate.
380 * emulparams/elf32_dlx.sh: New file
381 * scripttempl/dlx.sc: New file
382
b4477fa8
NC
3832002-05-27 Per Lundberg <per@caleb.dnsalias.org>
384
385 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
386 * Makefile.in: Regenerate.
387 * emulparams/elf_chaos.sh: Use elf_chaos script.
388 * scripttempl/elf_chaos.sc: New file.
389
ee3cc2e2
RS
3902002-05-27 Richard Sandiford <rsandifo@redhat.com>
391
392 * ldlang.c (lang_size_sections_1): Move check for conflicting load
393 addresses and regions from here...
394 (lang_get_regions): ...to this new function.
395 (lang_leave_output_section_statement): Use lang_get_regions.
396 (lang_leave_overlay): Likewise.
397 * mri.c (mri_draw_tree): Pass null as last argument to
398 lang_leave_output_section_statement.
399 * emultempl/elf32.em (gld*_place_orphan): Likewise.
400 * emultempl/mmo.em (mmo_place_orphan): Likewise.
401 * emultempl/pe.em (gld*_place_orphan): Likewise.
402
aa501e5c
JT
4032002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
404
405 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
406
658957db
KH
4072002-05-25 Kazu Hirata <kazu@cs.umass.edu>
408
409 * ldemul.c: Fix formatting.
410 * ldfile.c: Likewise.
411 * pe-dll.c: Likewise.
412 * pe-dll.h: Likewise.
413
3511b595
AM
4142002-05-25 Alan Modra <amodra@bigpond.net.au>
415
0d6d936f
AM
416 * ldlang.c (lang_process): Formatting, grammar.
417
3511b595
AM
418 * ldlex.l: Use #include "" instead of <> for local header files.
419
436e8db0
NC
4202002-05-24 TAMURA Kent <kent@netbsd.org>
421
422 * configure.tgt: Add a target for i386-netbsdpe.
423
13ae64f3
JJ
4242002-05-23 Jakub Jelinek <jakub@redhat.com>
425
426 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
427 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
428 output section if necessary. Handle .tbss.
429 (lang_size_sections): Clear _raw_size for .tbss section
430 (it allocates space in PT_TLS segment only).
431 * ldwrite.c (build_link_order): Build link order for .tbss too.
432
68b2fc7a
AM
4332002-05-23 Alan Modra <amodra@bigpond.net.au>
434
435 * configure.in: Correct spelling of AC_PREREQ.
436
70b0be79
CF
4372002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
438
439 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
440 default.
441 (autofilter_objlist): Add crtbegin.o, crtend.o.
442
4432002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
444
445 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
446 (longopts): Add new option --exclude-libs.
447 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
448 (gld_${EMULATION_NAME}_parse_args): Use it.
449 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
450 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
451 from whole archives.
452 (pe_dll_add_excludes): Set excludes->type.
453 (auto_export): Add new variable libname and set to archive basename if
454 abfd. Use it when filtering default and user-specified libarary
455 excludes. Let string "ALL" mean all libs when filtering user-specified
456 libs.
457 * ld.texinfo: Document --exclude-libs.
458
fac1652d
AM
4592002-05-22 Alan Modra <amodra@bigpond.net.au>
460
461 * ldemul.c (ldemul_new_vers_pattern): New function.
462 * ldemul.h (ldemul_new_vers_pattern): Declare.
463 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
464 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
465 * emultempl/ppc64elf.em (dotsyms): New static var.
466 (gld${EMULATION_NAME}_new_vers_pattern): New function.
467 (LDEMUL_NEW_VERS_PATTERN): Define.
468 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
469 (PARSE_AND_LIST_LONGOPTS): Likewise.
470 (PARSE_AND_LIST_ARGS_CASES): Handle them.
471 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
472 initialiser.
473 * emultempl/armcoff.em: Likewise.
474 * emultempl/armelf_oabi.em: Likewise.
475 * emultempl/beos.em: Likewise.
476 * emultempl/elf32.em: Likewise.
477 * emultempl/generic.em: Likewise.
478 * emultempl/gld960.em: Likewise.
479 * emultempl/gld960c.em: Likewise.
480 * emultempl/linux.em: Likewise.
481 * emultempl/lnk960.em: Likewise.
482 * emultempl/m68kcoff.em: Likewise.
483 * emultempl/mipsecoff.em: Likewise.
484 * emultempl/pe.em: Likewise.
485 * emultempl/sunos.em: Likewise.
486 * emultempl/ticoff.em: Likewise.
487 * emultempl/vanilla.em: Likewise.
488
eb3d6bb8
AM
4892002-05-22 Alan Modra <amodra@bigpond.net.au>
490
491 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
492 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
493 (LIB_SEARCH_DIRS): No need to use "tr".
494 (COMPILE_IN): Only set for native targets.
495 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
496 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
497 * configure.tgt (powerpc*): Set tdir_*.
498 (powerpcle*): Correct targ_extra_emuls.
499 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
500 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
501
54f24647
AM
5022002-05-22 Alan Modra <amodra@bigpond.net.au>
503
504 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
505 calling lang_add_entry.
506
aa713662
L
5072002-05-21 H.J. Lu (hjl@gnu.org)
508
509 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
510 "-z muldefs".
511 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
512
513 * ld.texinfo: Updated for --allow-multiple-definition and
514 "-z muldefs".
515
516 * ldmain.c (main): Initialize the allow_multiple_definition
517 field to false.
518
519 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
520 (ld_options): Add --allow-multiple-definition.
521 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
522
658f2588
JT
5232002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
524
525 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
526 (earmelfb_nbsd.c): New rule.
a59f3d35 527 * Makefile.in: Regenerate.
658f2588 528 * configure.tgt (armeb-*-netbsdelf*): New target.
a59f3d35 529 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
658f2588
JT
530 (arm-*-netbsd*): Likewise.
531 * emulparams/armelfb_nbsd.sh: New file.
532
ca10c62d
TR
5332002-05-18 Tom Rix <trix@redhat.com>
534
a59f3d35 535 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
ca10c62d
TR
536 support.
537
fae1e84f
MM
5382002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
539
540 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
541 * Makefile.in: Regenerate.
542 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
543
7c8bf1e8
MM
5442002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
545
546 * emulparams/avr1.sh: New file.
547 * emulparams/avr2.sh: New file.
548 * emulparams/avr3.sh: New file.
549 * emulparams/avr4.sh: New file.
550 * emulparams/avr5.sh: New file.
551 * scripttempl/avr.sc: New file.
552
c2c01aa7
AM
5532002-05-15 Alan Modra <amodra@bigpond.net.au>
554
555 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
556 (lang_place_orphans): Abort if just_syms_flag.
557
f1f0d9ab
TR
5582002-05-10 Tom Rix <trix@redhat.com>
559
a59f3d35 560 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
f1f0d9ab
TR
561 architecture and machine information in the output bfd.
562 (gld*_before_parse): Remove old arch and machine code.
563 (choose_target): Rename to gld*_choose_target.
a59f3d35
AM
564 (rtld): Change type to int.
565 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
f1f0d9ab
TR
566 objects in XCOFF archives.
567 * ldfile.h: Update copyright date.
568
f4d73366
JJ
5692002-05-10 Jakub Jelinek <jakub@redhat.com>
570
571 * ldmain.c (main): Enable -z combreloc by default.
572
d3d8a9ee
NC
5732002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
574
575 * Makefile.am: Honour DESTDIR.
576 * Makefile.in: Regenerate.
577
9f88b410
RS
5782002-05-07 Richard Sandiford <rsandifo@redhat.com>
579
580 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
581 (lang_enter_overlay): Remove the last two parameters.
582 (lang_leave_overlay): Take them here instead.
583 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
584 (section): Pass LMA and crossref flag to lang_leave_overlay rather
585 than lang_enter_overlay.
586 * ldlang.c (lang_memory_region_lookup): Return null for null names.
587 (lang_output_section_statement_lookup): Initialize update_dot_tree.
588 (lang_size_sections_1): Evaluate it.
589 (lang_leave_output_section_statement): Rework LMA lookup.
590 (overlay_lma, overlay_nocrossrefs): Remove.
3511b595 591 (lang_enter_overlay): Remove LMA and crossref arguments.
9f88b410
RS
592 (lang_enter_overlay_section): Don't set the LMA here.
593 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
594 assignment to the last section's update_dot_tree. Unconditionally
595 use the load and run-time regions specified in the OVERLAY statement.
596 Likewise the first section's LMA. Only set the other sections' LMAs
597 when no load region is given.
598
b9a743c8
NC
5992002-05-06 Nick Clifton <nickc@redhat.com>
600
601 * po/sv.po: New translation.
602
a3d60be3
AM
6032002-05-04 Alan Modra <amodra@bigpond.net.au>
604
605 * emultempl/hppaelf.em (build_section_lists): New function.
606 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
607 and build_section_lists.
608
b7a26f91
KH
6092002-05-03 Kazu Hirata <kazu@cs.umass.edu>
610
611 * ld.h: Fix formatting.
612 * ldexp.c: Likewise.
613 * ldfile.c: Likewise.
614 * ldlang.c: Likewise.
615 * ldmain.c: Likewise.
616 * lexsup.c: Likewise.
617 * pe-dll.c: Likewise.
618
805fc799
AM
6192002-05-02 Alan Modra <amodra@bigpond.net.au>
620
621 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
622 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
623 (build_section_lists): Do output_section tests here.
624
cc7e59b2
TR
6252002-04-30 Tom Rix <trix@redhat.com>
626
627 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
628
9c1d81c1
AM
6292002-05-01 Alan Modra <amodra@bigpond.net.au>
630
631 Long branch stubs, multiple stub sections.
632 * emultempl/ppc64elf.em: Include ldctor.h.
633 (stub_file): New var.
634 (group_size): New var.
635 (ppc_create_output_section_statements): New function.
636 (struct hook_stub_info): New.
637 (hook_in_stub): New function.
638 (ppc_add_stub_section): New function.
639 (ppc_layout_sections_again): New function.
640 (build_section_lists): New function.
641 (gld${EMULATION_NAME}_finish): Rewrite.
642 (real_func): New var.
643 (ppc_for_each_input_file_wrapper): New function.
644 (ppc_lang_for_each_input_file): New function.
645 (lang_for_each_input_file): Define.
646 (PARSE_AND_LIST_PROLOGUE): Define.
647 (PARSE_AND_LIST_LONGOPTS): Define.
648 (PARSE_AND_LIST_OPTIONS): Define.
649 (PARSE_AND_LIST_ARGS_CASES): Define.
650 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
651
aa67bccf
TR
6522002-04-30 Tom Rix <trix@redhat.com>
653
a59f3d35
AM
654 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
655 -blibpath, -bnolibpath support.
656
94349e12
MM
6572002-04-30 Mark Mitchell <mark@codesourcery.com>
658
659 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
660 (eelf32ppcwindiss.c): New target.
661 * Makefile.in: Regenerated.
662 * configure.tgt: Add support for powerpc-*-windiss.
663 * emulparams/elf32ppcwindiss.sh: New file.
a59f3d35 664
7b17f854
RS
6652002-04-30 Richard Sandiford <rsandifo@redhat.com>
666
667 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
668 * ldexp.c (exp_print_token): Add "infix_p" argument.
669 (exp_print_tree): Update accordingly.
670
596dafeb
AM
6712002-04-28 Alan Modra <amodra@bigpond.net.au>
672
673 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
674 * Makefile.in: Regenerate.
675 * mpw-elfmips.c: Delete.
676 * mpw-eppcmac.c: Delete.
677 * mpw-esh.c: Delete.
678 * mpw-idtmips.c: Delete.
679
219576a4 6802002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
681
682 * emulparams/shelf32.sh (MACHINE): Now sh5.
683
944cd72c
TS
6842002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
685
686 * ldgram.y: Fix syntax warning.
687
5835c212
NC
6882002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
689
690 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
691 to prevent "-n" from being taken as an abbreviation for
692 "--no-pipeline-knowledge".
693
024531e2
AM
6942002-04-08 Alan Modra <amodra@bigpond.net.au>
695
d08a14c3
AM
696 * ldlang.c (lang_size_sections_1): Don't complain about
697 SEC_NEVER_LOAD sections having no memory region specified.
698
024531e2
AM
699 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
700
c657a1f0
MG
7012002-04-07 matthew green <mrg@redhat.com>
702
703 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
704
61bef6f1
AM
7052002-04-04 Alan Modra <amodra@bigpond.net.au>
706
707 * dep-in.sed: Cope with absolute paths.
708 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
709 Run "make dep-am".
710 * Makefile.in: Regenerate.
711
49ba2791
TS
7122002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
713
714 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
715
50e60fb5
JJ
7162002-04-03 Jakub Jelinek <jakub@redhat.com>
717
718 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
719 is smaller than maximum, round dot up to common page boundary.
720
6f12f4ca
AM
7212002-03-28 Alan Modra <amodra@bigpond.net.au>
722
723 * configure.host: Set up for generic hosts first, then tweak as
724 necessary in more specific targets.
725 (HOSTING_LIBS): Include libgcc_eh.a if found.
726
a8f1f017
AJ
7272002-03-23 Andreas Jaeger <aj@suse.de>
728
729 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
730
1d3fdf38
AM
7312002-03-21 Alan Modra <amodra@bigpond.net.au>
732
733 * Makefile.am: Run "make dep-am".
734 * Makefile.in: Regenerate.
735
79b1faa8
AM
7362002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
737
738 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
739
fcf0e35b
AM
7402002-03-20 Alan Modra <amodra@bigpond.net.au>
741
742 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
743 add the symbol to the linker hash table immediately.
744 (lang_place_undefineds): Split symbol creation out..
745 (insert_undefined): ..to here.
746
fed2999d
DB
7472002-03-18 David O'Brien <obrien@FreeBSD.org>
748
749 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
750 the contents of the buffer returned from basename function will are
751 getting overwritten while still being used.
752
219576a4
NC
7532002-03-18 Jan Hubicka <jh@suse.cz>
754 Andreas Jaeger <aj@suse.de>
755 Andreas Schwab <schwab@suse.de>
beb43bb9
JH
756
757 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
758 * elf_x86_64.sh (ARCH): Set to i386:x86-64
759 set libraries to default to lib64 paths.
760
eb1e0e80
NC
7612002-03-18 Tom Rix <trix@redhat.com>
762
763 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
764 * configure.tgt : Same.
765 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
766 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
767 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
768 emulation parameters for better -b32, -b64 support.
769 * emulparms/aixrs6.sh : Same.
770 * emulparms/ppcmacos.sh : Same.
771 * emultempl/aix.em (choose_target) : Use new emulation parameters
772 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
773 * Makefile.in : Regenerate.
774
a1c259a1
NC
7752002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
776
777 * po/fr.po: Updated version.
778
862120bd
AM
7792002-03-18 Alan Modra <amodra@bigpond.net.au>
780
781 * ldmain.c (main): Move .text readonly flag fudges from here..
782 * ldlang.c (lang_process): ..to here.
783
d35a52e2
AM
7842002-03-14 Alan Modra <amodra@bigpond.net.au>
785
786 * ldlang.c (lang_check): Remove the word size check added in last
787 change. Treat emitrelocations case as for relocatable links.
788
9ce88e60
NC
7892002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
790
791 * po/fr.po: Updated version.
792
30cba025
AM
7932002-03-13 Alan Modra <amodra@bigpond.net.au>
794
795 * ldlang.c (lang_check): Do relocatable link checks first, so that
796 warn_mismatch can't override. Check compatible and word size too.
797
84ec0e6d
DJ
7982002-03-07 Daniel Jacobowitz <drow@mvista.com>
799
800 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
801
2d13d8c5
JJ
8022002-03-05 Jakub Jelinek <jakub@redhat.com>
803
804 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
805 DATA_SEGMENT_ALIGN.
806
b5090659
L
8072002-03-04 H.J. Lu <hjl@gnu.org>
808
809 * scripttempl/elf.sc: Put .preinit_array, .init_array and
810 .fini_array in the data segment.
811
f42ce16e
AM
8122002-03-04 Alan Modra <amodra@bigpond.net.au>
813
814 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
815
de77b6ac
RH
8162002-03-01 David Mosberger <davidm@hpl.hp.com>
817
818 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
819 .init_array, and .fini_array.
820
997e08c0
AS
8212002-02-20 Andreas Schwab <schwab@suse.de>
822
823 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
824 .IA64_unwind* in a relocatable link.
825
9a66911f
NC
8262002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
827
828 * NEWS: Mark 2.12 branch.
829
d86bcc10
MS
8302002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
831
832 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
833 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
834
69f284c7
TR
8352002-02-18 Tom Rix <trix@redhat.com>
836
837 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
838 (gld*_before_allocation): Same.
a8f1f017 839 (gld*_create_output_section_statements): Generate
69f284c7
TR
840 __rtinit if run time linking. Add librtl.a to the link.
841 (gld*_read_file): Clean.
842
82bd7b59
AM
8432002-02-18 Alan Modra <amodra@bigpond.net.au>
844
845 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
846
ac3e50bf
DB
8472002-02-18 David O'Brien <obrien@FreeBSD.org>
848
6a7f963b 849 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
850 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
851 and eelf64alpha_fbsd.
6a7f963b 852 * Makefile.in: Regenerate.
ac3e50bf
DB
853 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
854 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
855 use a FreeBSD-specific emulation rather than the psABI one.
856 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
857 for all FreeBSD ELF systems.
858 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
859 emulation.
860 * emulparams/elf32ppc_fbsd.sh: Likewise.
861 * emulparams/elf64_ia64_fbsd.sh: Likewise.
862 * emulparams/elf64_sparc_fbsd.sh: Likewise.
863 * emulparams/elf64alpha_fbsd.sh: Likewise.
864 * emulparams/elf_i386_fbsd.sh: Likewise.
865 * emulparams/elf_x86_64_fbsd.sh: Likewise.
866
6ad738c5
NC
8672002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
868
869 * po/tr.po: Updated version.
870
9673c93c
AM
8712002-02-18 Alan Modra <amodra@bigpond.net.au>
872
873 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
874 (FILL): Likewise.
875
1c5e6447
HPN
8762002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
877
878 * emultempl/mmo.em (mmo_after_open): Don't call
879 _bfd_mmix_check_all_relocs when producing ELF output.
880
8bb57516
RH
8812002-02-15 Richard Henderson <rth@redhat.com>
882
de77b6ac 883 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
884 definition. Emit a unop+nop pair.
885
49fda6c8
HPN
8862002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
887
83c2d653
HPN
888 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
889 for presence of .MMIX.reg_contents.linker_allocated before early
890 exit.
891
49fda6c8
HPN
892 * NEWS: Mention support for MMIX.
893
2c382fb6
AM
8942002-02-15 Alan Modra <amodra@bigpond.net.au>
895
896 Support arbitrary length fill patterns.
a139d329
AM
897 * ld.texinfo (Output Section Fill): Describe fill expressions.
898 (FILL): Refer to the above.
2c382fb6
AM
899 * ldexp.h (etree_value_type): Add "str" field.
900 (union etree_union): Add "str" to "value" struct.
901 (exp_bigintop): Declare.
902 (exp_get_fill): Declare.
903 * ldexp.c: Include "safe-ctype.h".
904 (exp_intop): Set value.str to NULL.
905 (exp_bigintop): New function.
906 (new_rel): Pass in "str", and set new.str from it.
907 (new_rel_from_section): Set new.str to NULL.
908 (fold_name): Adjust calls to new_rel.
909 (exp_fold_tree): Likewise.
910 (exp_get_fill): New function.
911 * ldgram.y (struct big_int bigint, fill_type *fill): New.
912 (INT): Returns a "bigint". Adjust all code handling INTs.
913 (fill_opt): Returns a "fill".
914 (fill_exp): Split out of fill_opt, use for FILL.
915 * ldlang.h (struct _fill_type): New.
916 (fill_type): Move typedef to ldexp.h.
917 (lang_output_section_statement_type): "fill" is now a pointer.
918 (lang_fill_statement_type): Likewise.
919 (lang_padding_statement_type): Likewise.
920 (lang_add_fill): Now takes a "fill_type *" param.
921 (lang_leave_output_section_statement): Likewise.
922 (lang_do_assignments): Likewise.
923 (lang_size_sections): Likewise.
924 (lang_leave_overlay_section): Likewise.
925 (lang_leave_overlay): Likewise.
926 * ldlang.c: Include ldgram.h after ldexp.h.
927 (lang_output_section_statement_lookup): Adjust for fill_type change.
928 (print_fill_statement): Likewise.
929 (print_padding_statement): Likewise.
930 (insert_pad): Now takes a "fill_type *" arg.
931 (size_input_section): Likewise.
932 (lang_size_sections_1): Likewise.
933 (lang_size_sections): Likewise.
934 (lang_do_assignments): Likewise.
935 (lang_add_fill): Likewise.
936 (lang_leave_output_section_statement): Likewise.
937 (lang_leave_overlay_section): Likewise.
938 (lang_leave_overlay): Likewise.
939 Adjust all callers of the above function.
940 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
941 starting with "0X" as well as "0x". Return bigint.str for hex
942 numbers starting with "0x" or "0X", zero bigint.str otherwise.
943 Always use base 16 for numbers starting with "$".
944 * ldmain.c: Include ldgram.h after ldexp.h.
945 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
946 of bfd_fill_link_order.
947 * pe-dll.c: Adjust lang_do_assignments calls.
948 * emultempl/elf32.em: Likewise.
949 * emultempl/hppaelf.em: Likewise.
950 * emultempl/ppc64elf.em: Likewise.
951 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
952 lang_add_assignment call.
953 * emultempl/pe.em: Likewise.
954
313e35ee
AM
9552002-02-14 Phil Edwards <pme@gcc.gnu.org>
956
a139d329 957 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
958 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
959 the pattern in question is not a regexp.
960 * ldlang.c: Likewise.
961 * ldlang.h: Likewise.
962 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
963
2d20f7bf
JJ
9642002-02-12 Jakub Jelinek <jakub@redhat.com>
965
966 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
967 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
968 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
969 * ldexp.c (exp_data_seg): New variable.
970 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
971 (fold_binary): Handle DATA_SEGMENT_ALIGN.
972 (exp_fold_tree): Handle DATA_SEGMENT_END.
973 Pass allocation_done when recursing instead of hardcoding
974 lang_allocating_phase_enum.
975 * ldexp.h (exp_data_seg): New.
976 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
977 (lang_size_sections): New.
978 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
979 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
980 if COMMONPAGESIZE is defined.
981 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
982 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
983 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
984 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
985 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
986 libraries only.
987
06880219
AM
9882002-02-11 Alan Modra <amodra@bigpond.net.au>
989
990 * Makefile.in: Regenerate.
991
37b0ac0f
DJ
9922002-02-10 Daniel Jacobowitz <drow@mvista.com>
993
994 * lexsup.c: Remove strtoul declaration.
995
4e5bae56
DJ
9962002-02-10 Daniel Jacobowitz <drow@mvista.com>
997
998 * ldmain.c: Add prototype for main ().
999 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1000 * emultempl/lnk960.em (lnk960_choose_target): Function should
1001 take two arguments.
1002
1e281515
AM
10032002-02-10 Alan Modra <amodra@bigpond.net.au>
1004
1005 * ldlang.c (entry_section): New initialised variable.
1006 (lang_finish): Use it.
1007 * ldlang.h (entry_section): Declare.
1008 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1009 entry_section to ".opd".
1010
f92d92ff 10112002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
1012
1013 * ld.texinfo (Options): Add back in -nostdlib documentation,
1014 which had been inadvertently removed.
1015
74c44237
HPN
10162002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1017
1018 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1019 register section vma to a sane value after emitting error. Make
1020 fatal conditions cause program exit when emitting message.
1021
5e37cc46
NC
10222002-02-08 Ivan Guzvinec <ivang@opencores.org>
1023
1024 * configure.tgt: Add or32-*-rtems target.
1025
2d92cb7d
AO
10262002-02-08 Alexandre Oliva <aoliva@redhat.com>
1027
1028 Contribute sh64-elf.
1029 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1030 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1031 in OTHER_RELOCATABLE_SECTIONS.
1032 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1033 * emulparams/shelf32.sh (STACK_ADDR): Define.
1034 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1035 (OTHER_SECTIONS): this. Removed stack settings.
1036 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1037 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1038 2001-03-12 DJ Delorie <dj@redhat.com>
1039 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1040 relaxing if any shmedia or mixed sections are found.
1041 2001-03-07 DJ Delorie <dj@redhat.com>
1042 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1043 einfo. Gracefully decline to output to non-elf formats.
1044 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1045 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1046 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1047 * emulparams/shelf32.sh: Ditto.
1048 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1049 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1050 comment.
1051 2001-01-10 Ben Elliston <bje@redhat.com>
1052 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1053 non-portable shell constructs. From Hans-Peter Nilsson.
1054 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1055 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1056 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1057 dependencies to the shell script include chain.
1058 * Makefile.in: Regenerate.
1059 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1060 * emultempl/sh64elf.em: Update and tweak comments.
1061 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1062 make a .cranges section SEC_IN_MEMORY.
1063 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1064 * emultempl/sh64elf.em
1065 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1066 .cranges section found to be necessary; continue and set stored
1067 section contents flags for sections with non-mixed contents.
1068 Use a struct sh64_section_data container and sh64_elf_section_data
1069 to store contents-type flags.
1070 Remove unused update of "isec".
1071 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1072 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1073 access contents-type flags. Assert that the associated container
1074 is initialized. Use that container, not elf_gp_size, to hold size
1075 of linker-generated cranges contents.
1076 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1077 * emultempl/sh64elf.em
1078 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1079 there's already a .cranges section. When section flag difference
1080 is found, don't NULL-check cranges a second time. Tweak comments.
1081 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1082 merging, not max size, as size of ld-generated .cranges contents.
1083 Don't set ELF section flags in output section. When checking for
1084 needed .cranges descriptors, don't use a variable; compare
1085 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1086 comments.
1087 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1088 * emultempl/sh64elf.em: New file.
1089 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1090 * Makefile.in: Regenerate.
1091 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1092 (OTHER_RELOCATING_SECTIONS): Ditto.
1093 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1094 * emulparams/shlelf32.sh: Stub out all settings except
1095 OUTPUT_FORMAT. Source shelf32.sh.
1096 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1097 OTHER_RELOCATING_SECTIONS.
1098 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1099 * emulparams/shlelf64.sh: Stub out all settings except
1100 OUTPUT_FORMAT. Source shelf64.sh.
1101 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1102 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1103 .cranges section.
1104 (DATA_START_SYMBOLS): Define, provide ___data.
1105 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1106 for consecutive .data section.
1107 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1108 section after .data section.
1109 * emulparams/shlelf64.sh: Ditto.
1110 * emulparams/shelf32.sh: Ditto.
1111 (ALIGNMENT): Define to 8.
1112 * emulparams/shelf32.sh: Ditto.
1113 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1114 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1115 built-in linker scripts.
1116 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1117 * emulparams/shlelf64.sh: New.
1118 * emulparams/shelf64.sh: New.
1119 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1120 targ_extra_emuls.
1121 * Makefile.am: Add support for shlelf64 and shelf64.
1122 * Makefile.in: Regenerate.
1123 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1124 * configure.tgt (sh64-*-elf*): Add shelf as default.
1125 Add shlelf to targ_extra_emuls.
1126 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1127 * emulparams/shelf32.sh: New file.
1128 * emulparams/shlelf32.sh: New file.
1129 * Makefile.am: Add support for shlelf32 and shelf32.
1130 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1131 * Makefile.in: Regenerate.
1132
e3dc8847
HPN
11332002-02-05 Hans-Peter Nilsson <hp@axis.com>
1134
1135 * ldlang.c (lang_reset_memory_regions): Rename from
1136 reset_memory_regions. Change all callers. Make public.
1137 * ldlang.h (lang_reset_memory_regions): Prototype.
1138 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1139 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
1140 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1141 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 1142
8017dbcb
HPN
11432002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1144
1145 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1146 arithmetic when checking for too many global registers.
1147
006336b8
JT
11482002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1149
1150 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1151 (ehppanbsd.c): New rule.
1152 * Makefile.in: Regenerate.
1153 * configure.tgt (hppa*-*-netbsd*): New target.
1154 * emulparams/hppalinux.sh: Add comment to check other files
1155 that source this file it is modified, and list which
1156 files that do.
1157 * emulparams/hppanbsd.sh: New file.
1158
da1f2fec
GK
11592002-02-01 Geoffrey Keating <geoffk@redhat.com>
1160
1161 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1162 stack.
1163
48fa4a5d
HPN
11642002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1165
1166 Support on-demand global register allocation from
1167 R_MMIX_BASE_PLUS_OFFSET relocs.
1168 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1169 mmix_set_reg_section_vma. Call
1170 _bfd_mmix_finalize_linker_allocated_gregs.
1171 (mmix_before_allocation): New function.
1172 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1173 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1174 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1175 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1176 before .MMIX.reg_contents.
1177 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1178 (mmo_after_open): New function.
1179 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1180 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1181 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1182
3b16e843
NC
11832002-01-31 Ivan Guzvinec <ivang@opencores.org>
1184
1185 * emulparams/or32.sh: New file.
1186 * emulparams/or32elf.sh: New file.
1187 * scripttempl/or32.sc: New file.
1188 * configure.tgt : Add support for or32.
1189 * configure: Regenerate
1190 * Makefile.am: Add support for or32.
1191 * Makefile.in: Regenerate.
1192 * NEWS: Mention support for or32.
1193 * po/ld.pot: Regenerate.
1194
f744d540 11952002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 1196 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
1197
1198 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1199 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1200 reloc creation (ld --embedded-relocs).
1201
4867be41
DJ
12022002-01-27 Daniel Jacobowitz <drow@mvista.com>
1203
1204 * configure: Regenerated.
1205
cd8e197b
HPN
12062002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1207
1208 * Makefile.am (install): Depend on install-info.
1209 * Makefile.in: Regenerate.
1210
9cb61eab
AM
12112002-01-26 Christian Rose <menthos@menthos.com>
1212
1213 * ldmain.c (main): Use full sentences to ease translation.
1214
1caa7b23
NC
12152002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1216
1217 * po/fr.po: Updated version.
1218
1ddbd152
NC
12192002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1220
1221 * po/es.po: Updated version.
1222
1e84433f
AJ
12232002-01-25 Andreas Jaeger <aj@suse.de>
1224
1225 * ldlex.l (yy_input): Correct error check.
1226
6d39955e
AM
12272002-01-25 Alan Modra <amodra@bigpond.net.au>
1228
1229 * ldmisc.c (demangle): Put back dots when string not demangled.
1230
a9ed1e1b
RH
12312002-01-22 Richard Henderson <rth@redhat.com>
1232
1233 * emulparams/elf64alpha.sh (NOP): Use unop.
1234
968ec2b9
AJ
12352002-01-21 Andreas Jaeger <aj@suse.de>
1236
1237 * ldlex.l: Use fread instead of read.
1238
9596feea
JT
12392002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1240
1241 * configure.tgt (ia64-*-netbsd*): New target.
1242
493a6d47
L
12432002-01-21 H.J. Lu <hjl@gnu.org>
1244
1245 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1246 0.
1247 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1248
2a538ba5
AJ
12492002-01-18 Andreas Jaeger <aj@suse.de>
1250
1251 * ldver.c (ldversion): Update year.
1252
328577ad
NC
12532002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1254
1255 * po/ld.pot: Regenerate.
1256
1f808cd5
AM
12572002-01-16 Alan Modra <amodra@bigpond.net.au>
1258
1259 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1260 * Makefile.in: Regenerate.
1261 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1262 * emultempl/ppc64elf.em: New file.
1263
335c5610
DD
12642002-01-15 DJ Delorie <dj@redhat.com>
1265
1266 * scripttempl/pe.sc: Add support for constructor priorities.
1267
c40bbade
DC
12682002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1269
1270 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1271 * emulparams/avr23xx.sh: Likewise.
1272 * emulparams/avr4433.sh: Likewise.
1273 * emulparams/avr44x4.sh: Likewise.
1274 * emulparams/avr85xx.sh: Likewise.
1275 * emulparams/avrmega103.sh: Likewise.
1276 * emulparams/avrmega161.sh: Likewise.
1277 * emulparams/avrmega603.sh: Likewise.
1278 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1279
34efb449
AO
12802002-01-08 Alexandre Oliva <aoliva@redhat.com>
1281
1282 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1283 archive is excluded.
1284
8d05742f
JT
12852002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1286
1287 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 1288 (eshelf_nbsd.c): New rule.
8d05742f
JT
1289 (eshlelf_nbsd.c): New rule.
1290 * Makefile.in: Regenerate.
1291 * configure.tgt (sh*le-*-netbsdelf*): New target.
1292 (sh*-*-netbsdelf*): New target.
1293 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1294 * ld/emulparams/shelf_nbsd.sh: New emulation.
1295 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1296
be2d1673
NC
12972002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1298
1299 * po/es.po: New file: Spanish translation.
1300 * configure.in (ALL_LINGUAS): Add es.
1301 * configure: Regenerate.
1302
dbab7a7b
NC
13032002-01-06 John Marshall <jmarshall@acm.org>
1304
1305 * ld.texinfo: Note that --emit-relocs is currently only
1306 implemented for ELF.
1307
3dfe7a8c
AM
13082002-01-05 Alan Modra <amodra@bigpond.net.au>
1309
1310 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1311 of bfd_section_list_remove and bfd_section_list_insert macros.
1312 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1313 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1314
8a8b2d4b
AJ
13152002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1316
1317 * configure.tgt (x86_64-*-netbsd*): New target.
1318
9a4c7f16
TR
13192001-12-21 Tom Rix <trix@redhat.com>
1320
8a8b2d4b 1321 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
1322 For -binitfini support.
1323 * emultempl/aix.em (gld*_before_parse): Fix comment.
1324 * emultempl/aix.em (gld*_parse_args): Fix comment.
1325
3695c299
AM
13262001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1327
cf86e6df
AM
1328 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1329 mips*el-*-netbsd*.
1330 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1331
3695c299
AM
1332 * configure.tgt (arm-*-netbsdelf*): Add target.
1333 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1334 * emulparams/armelf_nbsd.sh: Added.
1335 * Makefile.am: Add rules for earmelf_nbsd.
1336 * Makefile.in: Regenerate.
1337
97cb79ae
AJ
13382001-12-19 Andreas Jaeger <aj@suse.de>,
1339 Susanne Oberhauser <froh@suse.de>
1340
1341 * configure.host: Add rules for x86_64-*linux-gnu. Change
1342 s390x-linux entry to use gcc to report configuration, replace gcc
1343 with $CC in s390-linux
1344
9d201f2f
AJ
13452001-12-19 Andreas Jaeger <aj@suse.de>
1346
1347 * ld.texinfo (VERSION): Fix markup.
1348
0b69cd08
MG
13492001-12-18 matthew green <mrg@eterna.com.au>
1350
1351 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1352 (m68kelfnbsd.c): New rule.
1353 * Makefile.in: Regenerate.
1354 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1355 (m68*-*-netbsd*4k*): .. this.
1356 (m68*-*-netbsdelf*): New target.
1357 (m68*-*-netbsd*): Also include ELF support.
1358 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1359 * emulparams/m68kelfnbsd.sh: New emulation.
1360
6b9b879a
JJ
13612001-12-18 Jakub Jelinek <jakub@redhat.com>
1362
1363 * ldgram.y (vers_node): Support anonymous version tags.
1364 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1365 tag is not defined together with non-anonymous versions.
1366 * ld.texinfo: Document it.
1367
9fc877ed
NC
13682001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1369
1370 * po/tr.po: New file: Turkish translation.
1371 * configure.in (ALL_LINGUAS): Add tr.
1372 * configure: Regenerate.
1373
fc18a3f3
RH
13742001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1375
1376 * Makefile.am: Add rules for eelf64alpha_nbsd.
1377 * Makefile.in: Regenerate.
1378 * configure.tgt (alpha*-*-netbsd*): Set
1379 targ_emul to elf64alpha_nbsd.
1380 * emulparams/elf64alpha_nbsd.sh: Added.
1381
76f63e91
AM
13822001-12-17 Alan Modra <amodra@bigpond.net.au>
1383
1384 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1385 section_tail when fiddling with section list.
1386 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1387 broken into separate strings to make translation easier.
1388 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1389 fiddling with section list.
1390 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1391
d03b89bd
HPN
13922001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1393
1394 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1395
320fec9a
AM
13962001-12-15 Alan Modra <amodra@bigpond.net.au>
1397
1398 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1399
65765700
JJ
14002001-12-13 Jakub Jelinek <jakub@redhat.com>
1401
1402 * emultempl/elf32.em (finish): Supply output_bfd
1403 to bfd_elf*_discard_info.
1404 (OPTION_EH_FRAME_HDR): Define.
1405 (longopts): Add --eh-frame-hdr.
1406 (parse_args): Handle it.
1407 (list_options): Add --eh-frame-hdr to help.
1408 * emultempl/hppaelf.em (finish): Supply output_bfd
1409 to bfd_elf*_discard_info.
1410 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1411
89894c62
AM
14122001-12-13 Alan Modra <amodra@bigpond.net.au>
1413
1414 * lexsup.c (parse_args): Don't pass shortopts to second call to
1415 getopt functions. Restore optind rather than decrementing before
1416 second call. Remove errind as it now duplicates last_optind.
1417
583f1926
CF
14182001-12-11 Christopher Faylor <cgf@redhat.com>
1419
1420 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1421
93fbbb04
GK
14222001-12-07 Geoffrey Keating <geoffk@redhat.com>
1423 Richard Henderson <rth@redhat.com>
1424
1425 * Makefile.am: Add support for xstormy16.
1426 * configure.tgt: Add support for xstormy16.
1427 * Makefile.in: Regenerate.
1428 * emulparams/elf32xstormy16.sh: New file.
1429 * scripttempl/xstormy16.sc: New file.
1430
583f1926
CF
14312001-10-01 Christopher Faylor <cgf@cygnus.com>
1432
fc18a3f3
RH
1433 * Makefile.in (LIB_PATH): Make configurable.
1434 (GENSCRIPTS): Set LIB_PATH in environment.
1435 * configure.in: Substitute LIB_PATH.
1436 * configure: Regenerate.
1437 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1438 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 1439
ff291a48
NC
14402001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1441
1442 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1443 describing the -N option so that it is easier to translate into
1444 foreign languages.
1445
e3c8793a
NC
14462001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1447
1448 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1449 statements describing a single option with a single, newline
1450 escaped fprintf. This allows better translation into other
1451 languages.
9d201f2f 1452
fc18a3f3
RH
1453 * ldmain.c (add_archive_element): Combine multiple strings
1454 into a single string to permit better translation into other
1455 languages.
e3c8793a 1456
f2eab0af
TR
14572001-12-05 Tom Rix <trix@redhat.com>
1458
1459 * Makefile.am: Remove eaixppc64.
9d201f2f 1460 * Makefile.in: Regenerate.
f2eab0af 1461
249172c3
TR
14622001-12-04 Tom Rix <trix@redhat.com>
1463
9d201f2f 1464 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
1465 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1466 warning.
1467 (gld*_read_file): Fix typo.
1468 (change_symbol_mode): Add prototype.
1469 (is_syscall): Same.
9d201f2f 1470
249172c3
TR
1471 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1472 * emulparams/aixrs6.sh : Same.
1473 * emulparams/ppcmacos.sh : Same.
1474 * emulparams/aixppc64.sh : Delete file.
1475 * emultempl/aix.em : Formatting changes.
1476
5b5cd1b0
HPN
14772001-12-04 Hans-Peter Nilsson <hp@axis.com>
1478
1479 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1480 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1481 __Sbss.
1482 (OTHER_END_SYMBOLS): Fix formatting.
1483 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1484 (OTHER_END_SYMBOLS): Fix formatting.
1485
7cecdbff
AM
14862001-12-04 Alan Modra <amodra@bigpond.net.au>
1487
1488 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1489
742aeb63 14902001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 1491
742aeb63 1492 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 1493 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
1494 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1495 (ldemul_default_target): Same.
1496 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
1497 * emultempl/gld960c.em (gld960_choose_target): Same.
1498 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
1499 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1500 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1501 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 1502 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
1503 -b32 and -b64.
1504
48459341
L
15052001-11-27 H.J. Lu <hjl@gnu.org>
1506
1507 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1508 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1509 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1510 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1511 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1512 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1513 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1514 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1515
7cecdbff 1516 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
1517 is not empty.
1518 (SDATA): Likewise.
1519 (REL_SDATA): Likewise.
1520 (REL_SBSS): Likewise.
1521 (REL_SDATA2): Likewise.
1522 (REL_SBSS2): Likewise.
1523 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1524 (SDATA2): Likewise.
1525
ecfdd20c
SC
15262001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1527
1528 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1529 destructor in rom.
7cecdbff 1530 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 1531
da54c6eb
L
15322001-11-22 H.J. Lu <hjl@gnu.org>
1533
1534 * Makefile.in: Regenerated with automake based on automake
1535 1.4-8 in RedHat 7.1.
1536
465bc359
AM
15372001-11-22 Alan Modra <amodra@bigpond.net.au>
1538
1539 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1540 (config.status): Delete rule.
1541 Add extra dependencies to cover sourced emulparams files.
1542 * Makefile.in: Regenerate.
1543
1544 * scripttempl/elf.sc: Order <section>, <section>.* and
1545 corresponding linkonce sections as seen in input files.
1546 Formatting fixes. Zero vma of all sections if not relocating.
1547 (STACK): Define and insert if STACK_ADDR defined.
1548 (OTHER_RELOCATING_SECTIONS): Delete.
1549 (OTHER_END_SYMBOLS): Define.
1550 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1551 (OTHER_READWRITE_SECTIONS): Likewise.
1552 (OTHER_GOT_SECTIONS): Likewise.
1553 (OTHER_SDATA_SECTIONS): Likewise.
1554 (OTHER_BSS_SECTIONS): Likewise.
1555 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1556 (OTHER_READWRITE_SECTIONS): Likewise.
1557 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1558 (OTHER_READWRITE_SECTIONS): Likewise
1559
1560 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1561 (STACK_ADDR): Define.
1562 * emulparams/armelf_oabi.sh: As for armelf.sh.
1563 * emulparams/elf32mcore.sh: As for armelf.sh.
1564 * emulparams/h8300elf.sh: As for armelf.sh.
1565 * emulparams/mn10200.sh: As for armelf.sh.
1566 * emulparams/shelf.sh: As for armelf.sh.
1567
1568 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1569 (OTHER_END_SYMBOLS): Define.
1570 * emulparams/m32relf.sh: As for elf32fr30.sh.
1571 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1572 * emulparams/h8300self.sh: As for elf32fr30.sh.
1573
1574 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1575 defines with RELOCATING test.
1576 (OTHER_SDATA_SECTIONS): Likewise.
1577 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1578 (OTHER_END_SYMBOLS): ..this.
1579 * emulparams/crislinux.sh: As for criself.sh.
1580
1581 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1582 if not relocating.
1583 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1584 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1585 normal and linkonce sections as seen in input files.
1586 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1587 (TEXT_DYNAMIC): Likewise.
1588 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1589 (OTHER_SDATA_SECTIONS): Likewise.
1590 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1591 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1592 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1593 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1594 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1595 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1596 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1597 sections as seen in input files.
1598 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1599 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1600 if not relocating.
1601 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1602 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1603 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1604 (OTHER_SECTIONS): Instead, use this..
1605 (OTHER_END_SYMBOLS): ..and this.
1606
1607 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1608 * emulparams/elf32bsmip.sh: Likewise.
1609 * emulparams/elf32btsmip.sh: Likewise.
1610 * emulparams/elf32ebmip.sh: Likewise.
1611 * emulparams/elf32lmip.sh: Likewise.
1612 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1613 * emulparams/elf32lsmip.sh: Likewise.
1614 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1615 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1616 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1617 * emulparams/elf64btsmip.sh: Likewise.
1618 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1619 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1620 * emulparams/elf32ppclinux.sh: Likewise.
1621 * emulparams/elf32ppcsim.sh: Likewise.
1622 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1623 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1624 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1625 * emulparams/h8300self.sh: Likewise.
1626 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1627 * emulparams/sh.sh: Comment.
1628 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1629 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1630 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1631
abc6ab0a
AM
16322001-11-21 David Heine <dlheine@tensilica.com>
1633 Alan Modra <amodra@bigpond.net.au>
1634
1635 * ldlang.c (map_input_to_output_sections): Replace "break"
1636 accidentally removed with 2001-08-03 change.
1637 (lang_gc_sections_1): Likewise.
1638
2181f54f
AM
16392001-11-21 Alan Modra <amodra@bigpond.net.au>
1640
1641 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1642
ca0b5847
AM
16432001-11-20 Angela Marie Thomas <angela@redhat.com>
1644
1645 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
1646 of false when calling lang_size_sections.
1647 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 1648
c56feb2b
AM
16492001-11-15 Alan Modra <amodra@bigpond.net.au>
1650
1651 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1652 function when LDEMUL_FINISH isn't set to the same name. Don't
1653 call ${LDEMUL_FINISH}.
1654 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1655 * emultempl/armelf.em (arm_elf_finish): Call
1656 gld${EMULATION_NAME}_finish.
1657 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1658 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1659 hppaelf_layout_sections_again if necessary.
1660 (need_laying_out): New var.
1661 (hppaelf_layaout_sections_again): Rename to
1662 hppaelf_layout_sections_again. Clear need_laying_out.
1663 (PARSE_AND_LIST_OPTIONS): Format text.
1664
a48ca7f2
L
16652001-11-14 H.J. Lu <hjl@gnu.org>
1666
1667 * emultempl/armelf.em (arm_elf_finish): Renamed from
1668 gld${EMULATION_NAME}_finish.
1669 (LDEMUL_FINISH): Set to arm_elf_finish.
1670
73d074b4
DJ
16712001-11-14 Daniel Jacobowitz <drow@mvista.com>
1672
1673 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1674 (struct ld_emulation_xfer_struct): Use it.
1675
3b16e843 16762001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 1677
465bc359 1678 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
1679 additional symbols referenced by newer crt0.o files from HP.
1680
f11b7027
NC
16812001-11-12 Anthony Green <green@redhat.com>
1682
1683 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1684
3bf2994f
AM
16852001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1686
1687 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1688 * Makefile.in: Regenerate.
1689
ff5dcc92
SC
16902001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1691
1692 * ld.texinfo: Use @command for commands, @option for options.
1693 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1694 the page man title.
1695 * Makefile.in: Rebuild.
1696
9fb9af6e
CD
16972001-11-04 Chris Demetriou <cgd@broadcom.com>
1698
1699 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1700 Add support for targets.
2181f54f 1701
3c62831e
NC
17022001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1703
1704 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1705 * configure: Regernate.
1706 * po/fr.po: New file.
1707 * po/sv.po: New file.
1708
3a9091c4
NC
17092001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1710
1711 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1712 as little endian default and to support big endian.
2181f54f 1713
361b220e
CD
17142001-11-01 Chris Demetriou <cgd@broadcom.com>
1715
1716 * ld.texinfo (Options): Document new option, -nostdlib.
1717 * lexsup.c (OPTION_NOSTDLIB): New definition.
1718 (ld_options): Add entry for "nostdlib".
1719 (parse_args): Handle OPTIONS_NOSTDLIB.
1720 * ldfile.c (ldfile_add_library_path): Don't add directories
1721 to the search path if they weren't specified on the command line
1722 and -nostdlib was specified.
1723 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1724
210a7bd1
NC
17252001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1726
1727 * lexsup.c (parse_args): Prevent infinite parsing loop when
1728 "-rpath.a" is specified on the command line.
1729 Replace calls to fprintf with calls to einfo.
1730
114283d8
NC
17312001-10-31 John Marshall <jmarshall@acm.org>
1732
1733 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1734 appear only once across all the linker scripts involved in a link
1735 invocation no longer applies. Make the documentation reflect
1736 that.
1737
7649aa50
NC
17382001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1739
1740 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1741 targets.
1742 (sh-*-linux*): Added targ_extra_libpath.
1743
6e814ff8
AM
17442001-10-31 David Heine <dlheine@tensilica.com>
1745
1746 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1747 for padding statements.
1748
3c3bdf30
NC
17492001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1750
1751 * configure.tgt (mmix-*-*): New target.
1752 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1753 Add dependencies to match.
1754 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1755 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1756 scripttempl/mmo.sc: New files.
1757 * gen-doc.texi: @set MMIX.
1758 * ld.texinfo: Ditto.
6e814ff8 1759 [MMIX] Add MMIX node.
3c3bdf30
NC
1760 * Makefile.in: Regenerate.
1761
ca0c1d3e
KH
17622001-10-29 Kazu Hirata <kazu@hxi.com>
1763
1764 * ldlang.c: Fix a comment typo.
1765
1a3d33ce
AM
17662001-10-23 Alan Modra <amodra@bigpond.net.au>
1767
1768 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1769 entries, and match *-*-linux*.
1770
b47c4208
AM
17712001-10-20 Alan Modra <amodra@bigpond.net.au>
1772
1773 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1774 with ldlex_script, ldlex_popstate.
1775 (ifile_p1): Likewise.
1776 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1777 correct slot.
1778 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1779 to 1. Don't BEGIN(SCRIPT).
1780 (lex_redirect): Similarly.
1781 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1782
fd521b47
NC
17832001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1784
1785 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1786 __EH_FRAME_END__ and accept eh frames into data section.
1787 Add ctor and dtor sections.
1788
59d28a94
DD
17892001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1790
1791 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1792 (auto-export): Fix indentation.
1793
663dd378
DD
17942001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1795
1796 * pe-dll.c (autofilter_objectlist): Add startup objects
1797 for profiling.
1798 (auto-export): Constify char * p.
6e814ff8 1799 Extract file basename and use strcmp rather than ststr
663dd378
DD
1800 for object lookup.
1801
31d677f9
CD
18022001-10-18 Chris Demetriou <cgd@broadcom.com>
1803
1804 * ldmain.c (get_emulation): Improve comment about the handling
1805 of -mipsN options.
1806
aa200fe8
AM
18072001-10-17 Alan Modra <amodra@bigpond.net.au>
1808
1809 * po/POTFILES.in: Regenerate.
1810
146e7110
AM
18112001-10-16 Vassili Karpov <malc@pulsesoft.com>
1812
1813 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1814 -z nocopyreloc and -z nocombreloc usage strings.
1815
b4330e85
NC
18162001-10-12 Vassili Karpov <malc@pulsesoft.com>
1817
146e7110 1818 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
1819 in usage.
1820
5af8a2fb
NC
18212001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1822
1823 * scripttempl/armaout.sc: Place .bss section after end of aligned
1824 data section to match behaviour of aout code in constructrion of
1825 header.
1826
5b784096
DD
18272001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1828
1829 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1830 startup files for mingw32 dlls to list.
1831
61585df2
CD
18322001-10-10 Chris Demetriou <cgd@broadcom.com>
1833
1834 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1835
45cf6f3e
AH
18362001-10-08 Aldy Hernandez <aldyh@redhat.com>
1837
1838 * configure.tgt (targ): Add arm9e-*-elf.
1839
e24d7c12
L
18402001-10-05 H.J. Lu <hjl@gnu.org>
1841
1842 * genscripts.sh: Fix a typo in the last change.
1843
ec38dd05
JJ
18442001-10-05 Jakub Jelinek <jakub@redhat.com>
1845
1846 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1847 -z nocombreloc in usage.
1848
cedd6b0d
JB
18492001-10-03 Jim Blandy <jimb@redhat.com>
1850
1851 * genscripts.sh: Include a comment at the top of each generated
1852 script, explaining its purpose.
1853
8bd621d8
AM
18542001-10-03 Vassili Karpov <malc@pulsesoft.com>
1855
1856 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1857 * NEWS: Mention -z nocopyreloc.
1858 * ld.texinfo (Options): Describe nocopyreloc.
1859
fcd8210c
AM
18602001-10-03 Alan Modra <amodra@bigpond.net.au>
1861
1862 * configure: Regenerate.
1863
d32820f2
AM
18642001-10-02 Alan Modra <amodra@bigpond.net.au>
1865
1866 * ldver.h (ld_program_version): Remove declaration.
1867 * lexsup.c (parse_args): Move printing of copyright message..
1868 * ldver.c (ldversion): .. to here.
1869 Use BFD_VERSION_STRING in place of BFD_VERSION.
1870 (ld_program_version): Remove.
1871 * Makefile.am (Makefile): Depend on bfd/configure.in.
1872 Run "make dep-am".
1873 * Makefile.in: Regenerate.
1874
af46bcdc
HPN
18752001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1876
1877 * Makefile.am: Update dependencies with "make dep-am".
1878 * Makefile.in: Regenerate.
1879
4818e05f 18802001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 1881
4818e05f
AM
1882 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1883 * lexsup.c: Add --no-define-common commandline option.
1884 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1885 * ldlex.l: Likewise.
1886 * ld.h: Add command_line.inhibit_common_definition.
1887 * ldmain.c (main): Initialize.
1888 * ld.texinfo: Document.
862517b6 1889
a59f3d35
AM
18902001-09-29 Alan Modra <amodra@bigpond.net.au>
1891
1892 * ldlang.c (section_already_linked): Remove assignment to kept_section.
1893
d5e0ebeb
AM
18942001-09-26 Alan Modra <amodra@bigpond.net.au>
1895
1896 * ldmisc.c (USE_STDARG): Remove.
1897 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1898 (einfo): Likewise.
1899 (minfo): Likewise.
1900 (lfinfo): Likewise.
1901
1902 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1903 declarations. Update copyright.
1904
2f8d8971
NC
19052001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1906
85c77458
NC
1907 * pe-dll.c: Remove obsoleted declaration of
1908 pe_get_data_import_dll_name.
1909 (pe_create_import_fixup): Fix thinko.
1910
2f8d8971
NC
1911 * ld.texinfo(enable-auto-import): Clarify the explanation.
1912
19132001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1914
1915 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1916 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1917 DLL_SUPPORT controlled code.
1918
72358f65 19192001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 1920
72358f65
NC
1921 * emultempl/pe.em(pe_data_import_dll): Make static.
1922 (pe_get_data_import_dll_name): New accessor function.
146e7110 1923 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
1924 pe_get_data_import_dll_name() from pe.em, instead of
1925 directly accessing pe_data_import_dll variable from pe.em.
1926
3882b010
L
19272001-09-18 Bruno Haible <haible@clisp.cons.org>
1928
1929 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1930 (def_file_add_directive): Use ISSPACE instead of isspace.
1931 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1932 isdigit/isxdigit/isalpha/isalnum.
1933 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1934 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1935 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1936 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1937 isalnum.
1938 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1939 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1940 isupper/tolower.
1941 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1942 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1943 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1944 (ctor_prio): Use ISDIGIT instead of isdigit.
1945 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1946 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1947 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1948 isupper/tolower.
1949 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1950 (stricpy): Use TOLOWER instead of isupper/tolower.
1951 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1952 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1953 (lex_warn_invalid): Use ISPRINT instead of isprint.
1954 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1955 (main): For gettext, also set the LC_CTYPE locate facet.
1956 (add_keepsyms_file): Use ISSPACE instead of isspace.
1957 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1958 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1959 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1960 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1961 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1962 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1963 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1964 (quoteput): Use ISSPACE instead of isspace.
1965 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1966 instead of isalnum.
1967
db09f25b
AM
19682001-09-18 Alan Modra <amodra@bigpond.net.au>
1969
1970 * deffilep.y (def_stash_module): Constify "name" param.
1971
1972 * pe-dll.c: Replace CONST with const throughout.
1973 (quick_symbol): Constify "n1", "n2", "n3" params.
1974 (make_singleton_name_thunk): Constify "import" param. Make
1975 "buffer_len" a size_t.
1976 (make_import_fixup_entry): Constify "name", "fixup_name",
1977 "dll_symname" params.
1978 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1979 (pe_get32): Likewise.
1980 (pe_implied_import_dll): Likewise.
1981
1982 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1983 (sort_by_section_name): Likewise.
1984
1985 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1986 (make_import_fixup): Cast printf arg, rel->address to long rather
1987 than int.
1988 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1989
74699268
AM
19902001-09-15 Alan Modra <amodra@bigpond.net.au>
1991
1992 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1993 defines BufferSize. Increase buffer size by one.
1994
775cabad
NC
19952001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1996
1997 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1998
056a1d49
NC
19992001-09-14 Kevin Lo <kevlo@openbsd.org>
2000
2001 * configure.tgt: Add arm-openbsd target.
2002
a7d792bb
L
20032001-09-12 H.J. Lu <hjl@gnu.org>
2004
2005 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2006 eelf64lppc.o to ...
2007 (ALL_64_EMULATIONS): Here.
2008 * Makefile.in: Regenerated.
2009
0d888aac
CW
20102001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2011
2012 * emultempl/pe.em(make_import_fixup): change signature to
2013 take asection as well as arelec; we need this for proper
146e7110 2014 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
2015 there is no attempt to add a constant addend to the reloc;
2016 otherwise, report error condition.
2017 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2018 since final argument is a pointer to make_import_fixup().
2019 Change call to cb() to match make_import_fixup() signature.
2020 (make_import_fixup_mark): make buffer_len unsigned.
2021 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2022
20232001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2024
2025 * ld.texinfo: add verbose documentation for auto-import
146e7110 2026 direct-addressing workaround, to compliment the terse
0d888aac
CW
2027 error message.
2028
cedacdc0
CM
20292001-09-12 Andrew MacLeod <amacleod@redhat.com>
2030
146e7110 2031 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 2032
3b16e843 20332001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
2034
2035 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2036 * emulparams/h8300self.sh: Similarly.
2037
559e4713
NC
20382001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2039
2040 * ld.texinfo (Options, --stack): Correct default value for stack
2041 reserve.
2042
1fdf0249
TR
20432001-09-05 Tom Rix <trix@redhat.com>
2044
2045 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 2046
9b5799b8
AJ
20472001-09-03 Andreas Jaeger <aj@suse.de>
2048
2049 * emultempl/beos.em: Declare prototypes for comparions functions,
2050 adjust definitions.
2051
48f6162b
AJ
20522001-09-02 Andreas Jaeger <aj@suse.de>
2053
2054 * emultempl/aix.em: Add missing prototype.
2055 * emultempl/lnk960.em: Likewise.
2056 * emultempl/vanilla.em: Likewise.
2057 * emultempl/armcoff.em: Likewise.
2058 * emultempl/armelf_oabi.em: Likewise.
2059 * emultempl/beos.em: Likewise.
2060 * emultempl/gld960c.em: Likewise.
2061 * emultempl/gld960.em: Likewise.
2062
2063 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2064 for prototype declaration.
2065
39e5585e
EC
20662001-08-31 Eric Christopher <echristo@redhat.com>
2067 Jason Eckhardt <jle@redhat.com>
2068
2069 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2070
3fc90ddb
AJ
20712001-08-31 Andreas Jaeger <aj@suse.de>
2072
2073 * emultempl/pe.em: Add missing prototypes.
2074 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2075 pe_find_data_imports.
2076 (pr_sym): Add unused attribute.
2077
d43ded80
PB
20782001-08-29 Joel Sherrill <joel@OARcorp.com>
2079
39e5585e 2080 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
2081 default from coff to elf.
2082
3946dd2f
JL
20832001-08-29 Jeff Law <law@redhat.com>
2084
2085 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2086 ARCH specification.
2087 * emulparams/h8300self.sh: Similarly.
2088
3b16e843 20892001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
2090
2091 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2092 eh8300self.o .
2093 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2094 * configure.tgt (h8300-*-elf*): New case.
2095 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2096 * emulparams/h8300self.sh: New file.
2097 * Makefile.in: Regenerated.
2098
70d0c6e9
NC
20992001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2100
2101 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2102 with macro name.
2103
5c67d4bb
AM
21042001-08-27 Linus Nordberg <linus@swox.com>
2105 Alan Modra <amodra@bigpond.net.au>
2106
2107 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2108 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2109 Run "make dep-am"
2110 * Makefile.in: Regenerate.
2111 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2112 entries to correct alphabetical position.
2113 * emulparams/elf64ppc.sh: New.
2114 * emulparams/elf64lppc.sh: New.
2115
08131015
NC
21162001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2117
2118 * ldmain.c (main): Declare BSIZE as static.
2119
db6751f2
JJ
21202001-08-23 Jakub Jelinek <jakub@redhat.com>
2121
2122 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2123 into .rel.dyn resp. .rela.dyn if combreloc.
2124 (get_script): If .x linker script is equal to .xn, only put it
2125 once into the binary.
2126 Add .xc and .xsc scripts.
2127 (parse_args): Handle -z combreloc and -z nocombreloc.
2128 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2129 For .xc and .xsc scripts put all .rel* or .rela* input sections
2130 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2131 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2132 is elf.
2133 Strip trailing whitespace from script.
2134 Generate .xc and .xsc scripts if requested.
2135 * ldmain.c (main): Initialize link_info.combreloc and
2136 link_info.spare_dynamic_tags.
2137 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2138 (ld_options): Add --spare-dynamic-tags option.
2139 (parse_args): Likewise.
2140 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2141 * ldint.texinfo: Document .xc and .xsc linker scripts.
2142 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2143
63d069c0
L
21442001-08-22 H.J. Lu <hjl@gnu.org>
2145
2146 * emulparams/elf32fr30.sh: Add a newline.
2147
948f9114
AJ
21482001-08-21 Andreas Jaeger <aj@suse.de>
2149
2150 * deffilep.y: Add missing prototypes.
2151 * pe-dll.c: Likewise.
2152
ae7fb08f
AM
21532001-08-20 Alan Modra <amodra@bigpond.net.au>
2154
2af02257
AM
2155 * ldlang.c (insert_pad): Fix typos in last patch.
2156
2157 * ldlang.c: When traversing lang_statement_union_type lists,
2158 consistently use "header.next" rather than "next".
2159 * mpw-eppcmac.c: Likewise.
2160 * emultempl/beos.em: Likewise.
2161 * emultempl/hppaelf.em: Likewise.
2162 * emultempl/pe.em: Likewise.
2163 * ldlang.h (union lang_statement_union): Remove "next" field.
2164
c0c330a7
AM
2165 * ldlang.c (insert_pad): Use offsetof macro.
2166 (lang_size_sections): Always neuter padding statements.
2167 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2168
ae7fb08f
AM
2169 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2170 passed to lang_size_sections.
2171 (pe_exe_fill_sections): Likewise.
2172 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2173 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2174
fab80407
AM
21752001-08-18 Alan Modra <amodra@bigpond.net.au>
2176
2177 * emultempl/aix.em: Formatting fixes.
2178
b3327aad
AM
21792001-08-18 Alan Modra <amodra@bigpond.net.au>
2180
2181 * ldlang.c (insert_pad): Make use of an existing pad statement if
2182 available. Move code calculating alignment, adjusting section
2183 alignment power, and adjusting dot to ..
2184 (size_input_section): .. here. Remove unused relax param.
2185 (lang_size_sections): Change boolean `relax' param to boolean *.
2186 Adjust call to size_input_section. Make use of insert_pad to
2187 place pad after the assignment statement. If relaxing, zap
2188 padding statements.
2189 (reset_memory_regions): Reset output_bfd section sizes too.
2190 (relax_again): Move to..
2191 (lang_process): ..here. Adjust call to lang_size_sections, and
2192 remove duplicated code.
2193 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2194
563e308f
AM
21952001-08-17 Alan Modra <amodra@bigpond.net.au>
2196
2197 * ld.texinfo: Document that fill values now use the four least
2198 significant bytes.
2199 * emulparams/elf32fr30.sh (NOP): Update.
2200 * emulparams/elf32mcore.sh: Likewise.
2201 * emulparams/elf64_s390.sh: Likewise.
2202 * emulparams/elf_i386.sh: Likewise.
2203 * emulparams/elf_i386_be.sh: Likewise.
2204 * emulparams/elf_i386_chaos.sh: Likewise.
2205 * emulparams/elf_i386_ldso.sh: Likewise.
2206 * emulparams/elf_s390.sh: Likewise.
2207 * emulparams/elf_x86_64.sh: Likewise.
2208 * emulparams/i386moss.sh: Likewise.
2209 * emulparams/i386nw.sh: Likewise.
2210 * emulparams/m68kelf.sh: Likewise.
2211 * scripttempl/elf.sc: Update NOP comment.
2212 * scripttempl/elfi370.sc: Likewise.
2213 * scripttempl/elfm68hc11.sc: Likewise.
2214 * scripttempl/elfm68hc12.sc: Likewise.
2215 * scripttempl/nw.sc: Likewise.
2216
b90e1c6f
TR
22172001-08-15 Tom Rix <trix@redhat.com>
2218
2219 * ldgram.y (saved_script_handle): Initialize to NULL.
2220 * ldmain.c (main): Change check on saved_script_handle.
948f9114 2221
39dcfe18
AM
22222001-08-14 Alan Modra <amodra@bigpond.net.au>
2223
cde43e70
AM
2224 * emultempl/elf32.em: Formatting fixes.
2225 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2226 looking at sec->owner.
2227 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2228 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2229 unused code, and reorganize orphan section placement code.
2230
39dcfe18
AM
2231 * ldlang.c (wild_doit): Rename to lang_add_section.
2232 * ldlang.h: Here too.
2233 * mpw-elfmips.c: And here.
2234 * emultempl/beos.em: And here.
2235 * emultempl/elf32.em: And here.
2236 * emultempl/hppaelf.em: And here.
2237 * emultempl/pe.em: And here.
2238
908d20b3
RH
22392001-08-13 Richard Henderson <rth@redhat.com>
2240
2241 * emultempl/needrelax.em: New file.
2242 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2243 * Makefile.am (eelf64_ia64.c): Depend on it.
2244 * Makefile.in: Rebuild.
2245
0f33d40b
AM
22462001-08-13 Alan Modra <amodra@bigpond.net.au>
2247
22af9fd3
AM
2248 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2249 output_section is set non-NULL.
2250
0f33d40b
AM
2251 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2252 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2253 needlessly create an output_section_statement. Treat a correctly
2254 named output_section_statement with NULL bfd_section as compatible.
2255
55ab6103
HPN
22562001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2257
2258 * emultempl/generic.em: Support EXTRA_EM_FILE.
2259 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2260 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2261 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2262 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2263 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2264 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2265 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2266 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2267 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2268 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2269
24098abb
RH
22702001-08-12 Richard Henderson <rth@redhat.com>
2271
2272 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2273 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2274 scripttempl/v850.sc: Keep .jcr data.
2275
b9a8de1e 22762001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
2277 Andrew Haley <aph@cambridge.redhat.com>
2278 Nick Clifton <nickc@redhat.com>
b9a8de1e 2279
146e7110 2280 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
2281 Change type to file handle.
2282 * ld.h (had_script): Rename and retype.
2283 * ldfile.c (ldfile_open_command_file): Save the file handle
2284 used in saved_script_handle.
2285 * lexsup.c (parse_args): Do not allow -c option to alter
2286 saved_script_handle.
2287 * ldmain.c (main): Print out the linker script used if
2288 --verbose is given. Check saved_script_handle to obtain the
2289 external linker script used, or if NULL, dump the builtin
2290 script.
2291 * ld.texinfo: Document that --verbose now dumps the linker
2292 script used, regardless of whether it was an internal or an
2293 external script.
2294
0218d1e4
AJ
22952001-08-10 Andreas Jaeger <aj@suse.de>
2296
2297 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2298 to build warnings.
2299 * configure: Regenerate.
2300
5253f23b
AM
23012001-08-09 Alan Modra <amodra@bigpond.net.au>
2302
73810896
AM
2303 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2304
5253f23b
AM
2305 * scripttempl/elf.sc: Move non-text .dynamic section before
2306 .plt/.got/.sdata* group.
2307 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2308 (OTHER_SDATA_SECTIONS): Add.
2309 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2310 OTHER_GOT_SECTIONS.
2311 * emulparams/crislinux.sh: Likewise.
2312 * emulparams/elf32b4300.sh: Likewise.
2313 * emulparams/elf32bmip.sh: Likewise.
2314 * emulparams/elf32bmipn32.sh: Likewise.
2315 * emulparams/elf32bsmip.sh: Likewise.
2316 * emulparams/elf32btsmip.sh: Likewise.
2317 * emulparams/elf32ebmip.sh: Likewise.
2318 * emulparams/elf32elmip.sh: Likewise.
2319 * emulparams/elf32l4300.sh: Likewise.
2320 * emulparams/elf32lmip.sh: Likewise.
2321 * emulparams/elf32lsmip.sh: Likewise.
2322 * emulparams/elf32ltsmip.sh: Likewise.
2323 * emulparams/elf64bmip.sh: Likewise.
2324 * emulparams/elf64btsmip.sh: Likewise.
2325 * emulparams/elf64ltsmip.sh: Likewise.
2326
179c732c
AM
23272001-08-08 Alan Modra <amodra@bigpond.net.au>
2328
2329 * genscripts.sh: Source the emulparams script before each output
2330 script is generated so that variables like `RELOCATING' may affect
2331 variables defined in the emulparams script.
2332
3fd36710
AM
23332001-08-04 Alan Modra <amodra@bigpond.net.au>
2334
20713691
AM
2335 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2336 order.
2337
3fd36710
AM
2338 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2339 ie. iterate over wild_statement.section_list.
2340 (gld${EMULATION_NAME}_place_orphan): Likewise.
2341
de0b1853
SC
23422001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2343
2344 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2345 .fini[0-4] sections used by _exit
2346 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2347 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2348 * scripttempl/elfm68hc11.sc: Likewise.
2349
ff7e6f88
L
23502001-08-03 H.J. Lu <hjl@gnu.org>
2351
2352 * emultempl/beos.em (init): Add the missing initialization.
2353
b6bf44ba
AM
23542001-08-03 Alan Modra <amodra@bigpond.net.au>
2355
2356 * ld.texinfo (Input Section Basics): Clarify ordering of output
2357 sections.
2358 * ldlang.c (callback_t): Add wildcard_list param.
2359 (walk_wild_section): Remove "section" param. Rewrite for
2360 lang_wild_statement_type change. Remove unique_section_p test.
2361 (walk_wild_file): Remove "section" param.
2362 (walk_wild): Remove "section" and "file" params.
2363 (lang_gc_wild): Likewise.
2364 (wild): Likewise. Modify for lang_wild_statement_type change.
2365 (wild_sort): Likewise. Add "sec" param.
2366 (gc_section_callback): Likewise.
2367 (output_section_callback): Likewise. Do unique_section_p test.
2368 (map_input_to_output_sections): Modify call to wild.
2369 (lang_gc_sections_1): Likewise.
2370 (print_wild_statement): Modify for lang_wild_statement_type
2371 change.
2372 (lang_add_wild): Replace filename, filenames_sorted param with
2373 filespec. Replace section_name, sections_sorted,
2374 exclude_filename_list with section_list.
2375 * ldlang.h (lang_add_wild): Here too.
2376 (lang_wild_statement_type): Replace section_name, sections_sorted,
2377 and exclude_filename_list with section_list.
2378 * ldgram.y (current_file): Delete.
2379 (%union): Add wildcard_list.
2380 (file_NAME_list): Set type to wildcard_list. Build a linked list
2381 rather than calling lang_add_wild for each entry.
2382 (input_section_spec_no_keep): Call lang_add_wild here instead.
2383 * ld.h (struct wildcard_list): Declare.
2384 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2385
b044cda1
CW
23862001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2387
2388 * ldmain.c (main): initialize link_info.pei386_auto_import
2389 * pe-dll.c: new tables for auto-export filtering
2390 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 2391 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
2392 "by hand".
2393
23942001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2395
b6bf44ba
AM
2396 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2397 static variable current_sec (static struct sec *). Add
b044cda1 2398 forward declaration for add_bfd_to_link.
b6bf44ba
AM
2399 (process_def_file): Don't export undefined symbols. Do not
2400 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
2401 with new API.
2402 (pe_walk_relocs_of_symbol): New function.
2403 (generate_reloc): add optional extra debugging
b6bf44ba 2404 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 2405 line in output
b6bf44ba 2406 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
2407 (DATA auto-import support).
2408 (make_singleton_name_thunk): New function.
2409 (make_import_fixup_mark): New function.
2410 (make_import_fixup_entry): New function.
2411 (pe_create_import_fixup): New function.
b6bf44ba 2412 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 2413 char *.
b6bf44ba
AM
2414 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2415 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
2416 pe_create_import_fixup.
2417 * emultempl/pe.em: add new options --enable-auto-import,
2418 --disable-auto-import, and --enable-extra-pe-debug.
2419 (make_import_fixup): New function.
2420 (pe_find_data_imports): New function.
2421 (pr_sym): New function.
b6bf44ba 2422 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
2423 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2424 CODE.
2425
24262001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 2427
b044cda1
CW
2428 * ld.texinfo: add additional documentation for
2429 --export-all-symbols. Document --out-implib,
2430 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
2431 --dll-search-prefix, --enable-auto-import, and
2432 --disable-auto-import.
b044cda1
CW
2433 * ldint.texinfo: Add detailed documentation on auto-import
2434 implementation.
2435
156e34dd
NC
24362001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2437
2438 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2439 example.
2440
d6231427
AM
24412001-07-24 Alan Modra <amodra@bigpond.net.au>
2442
2443 * Makefile.am: Update dependencies with "make dep-am".
2444 * Makefile.in: Regenerate
2445
e14ec88b
AM
24462001-07-23 Alan Modra <amodra@bigpond.net.au>
2447
2448 * ldcref.c (check_section_sym_xref): New function.
2449 (check_nocrossrefs): Call it.
2450 (check_nocrossref): Interate over h->refs here instead of..
2451 (check_refs): ..here. Pass in the symbol name, section, and bfd
2452 rather than hash_entry pointers.
2453 (struct check_refs_info): Keep symbol name rather than hash entry.
2454 Remove "same".
2455 (check_reloc_refs): Tweak for above changes in check_refs_info.
2456 Only report references to section syms when symname is NULL to
2457 prevent duplicate messages for the same reloc.
2458
1b577b00
NC
24592001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2460
c7d701b0
NC
2461 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2462 available. Do not print NULL trees.
2463 (exp_print_token): Print unknown tokens with values > 126 as
2464 decimal values not ASCII characters.
2465
1545243b
NC
2466 * ldlang.c (lang_leave_overlay): If a region is specified assign
2467 it to all sections inside the overlay unless they have been
2468 assigned to the own, non-default, memory region.
2469
1b577b00
NC
2470 * README: Add header for consistency with other README files.
2471
5030876b
L
24722001-07-14 H.J. Lu <hjl@gnu.org>
2473
2474 * emultempl/elf32.em (output_prev_sec_find): Never return
2475 bfd_abs_section_ptr, bfd_com_section_ptr nor
2476 bfd_und_section_ptr.
2477
18c7a9a5
NC
24782001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2479
22af9fd3 2480 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
2481 elf32.em.
2482 * Makefile.in: Regenerate.
2483
9ffecff1
MG
24842001-07-14 matthew green <mrg@eterna.com.au>
2485
2486 * configure.tgt (i386-*-netbsdelf*): New target.
2487 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2488
95500e1c
JJ
24892001-07-13 Jakub Jelinek <jakub@redhat.com>
2490
2491 * emultempl/elf32.em (output_prev_sec_find): New.
2492 (place_orphan): Use it.
2493
e97cb84f
L
24942001-07-11 H.J. Lu <hjl@gnu.org>
2495
2496 * ldmain.c (main): Fix typos in the last change.
2497
7333607e
JJ
24982001-07-11 Jakub Jelinek <jakub@redhat.com>
2499
2500 * ldmain.c (main): Disallow -F and -f without -shared.
2501
d29d80f2
NC
25022001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2503
2504 * emultempl/pe.em (after_open): Check for the output_bfd not
2505 having any coff_data structure allocated to it.
2506
c2a1a436
DB
25072001-07-09 David O'Brien <obrien@FreeBSD.org>
2508
2509 * emultempl/elf32.em: Do not assuming that contents of the buffer
2510 returned from basename function will remain unchanged accross other
2511 function calls.
2512
63653551
L
25132001-07-03 H.J. Lu <hjl@gnu.org>
2514
2515 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2516 2001-07-03. It creates dynamic entries even for static binaries.
2517
d303a449
L
25182001-07-03 Jakub Jelinek <jakub@redhat.com>
2519
2520 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2521 (DYNAMIC): Use it to reserve few dynamic entries for
2522 post-linking tools.
2523
9f22353f
AM
25242001-06-27 Alan Modra <amodra@bigpond.net.au>
2525
2526 * emulparams/hppa64linux.sh: New file.
2527 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2528 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2529 (ehppa64linux.c): Add rule to make it.
2530 Run "make dep-am".
2531 * Makefile.in: Regenerate.
2532
62bf86b4
HPN
25332001-06-21 Hans-Peter Nilsson <hp@axis.com>
2534
2535 * ld.texinfo (Options, -r): Mention restrictions when using
2536 different object formats.
2537
429d935d
HPN
25382001-06-19 Hans-Peter Nilsson <hp@axis.com>
2539
2540 * ldlang.c (lang_check): Emit fatal error if relocatable link
2541 between different object flavours with relocations in input.
2542
cb840a31
L
25432001-06-19 H.J. Lu <hjl@gnu.org>
2544
2545 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2546 (--version-script): Mention the language support.
2547
9bf03acc
L
25482001-06-19 H.J. Lu <hjl@gnu.org>
2549
2550 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2551
c45021f2
NC
25522001-06-18 H.J. Lu <hjl@gnu.org>
2553
b6bf44ba
AM
2554 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2555 (diststuff): Add $(MANS).
2556 * Makefile.in: Regenerated.
c45021f2 2557
b6bf44ba 2558 * ld.1: Removed.
c45021f2 2559
6caa99ab
HPN
25602001-06-18 Hans-Peter Nilsson <hp@axis.com>
2561
605d9b3a
HPN
2562 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2563 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2564 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2565 * ld.h (args_type): Remove member export_dynamic. All users
2566 changed to use struct bfd_link_info member.
2567
6caa99ab
HPN
2568 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2569 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2570 * Makefile.in: Regenerate.
2571
6f9efd97
L
25722001-06-18 H.J. Lu <hjl@gnu.org>
2573
2574 * ldlang.c (init_os): Add the newline to the einfo call.
2575 (lang_check): Likewise.
2576 (lang_do_version_exports_section): Likewise.
2577
5af9fd8b
L
25782001-06-15 H.J. Lu <hjl@gnu.org>
2579
2580 * lexsup.c (parse_args); Save optind to report unrecognized
2581 option.
2582
2a096f04
HPN
25832001-06-15 Hans-Peter Nilsson <hp@axis.com>
2584
7e66c3f5
HPN
2585 * ldlang.c (lang_check): Emit fatal error if relocatable link
2586 between different object flavours.
2587
2a096f04
HPN
2588 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2589 Set new link_info member export_dynamic.
2590 * ldmain.c (main): Initialize new link_info member export_dynamic.
2591
6770ec8c
NC
25922001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2593
2594 * ldlang.c (walk_wild): Only call walk_wild_file if
2595 lookup_name returns something.
b6bf44ba 2596 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 2597 (load_symbols): Change to a boolean function.
b6bf44ba 2598 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
2599 executable.
2600
8529105a
AM
26012001-06-08 Alan Modra <amodra@bigpond.net.au>
2602
2603 * ldlang.c (record_bfd_errors): Remove.
2604
2605 * emultempl/aix.em: Fix copyright dates.
2606
8f3aa7a0
AJ
26072001-06-07 Andreas Jaeger <aj@suse.de>
2608
2609 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2610 (TEXT_START_ADDR): Likewise.
2611
3277f888
AM
26122001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2613
2614 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2615
3763134d
DD
26162001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2617
2618 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2619
5929ebc0
L
26202001-05-31 H.J. Lu <hjl@gnu.org>
2621
2622 * ldlang.c (open_input_bfds): Don't change the bfd error
2623 handler whilst loading symbols.
2624
c04a062d
NC
26252001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2626
2627 * configure.tgt: Remove i370-mvs architecture, it is not currently
2628 supported.
2629
96fcab3e
L
26302001-05-25 H.J. Lu <hjl@gnu.org>
2631
2632 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2633 like emulparams/aixppc.sh.
2634
db8d4f23
L
26352001-05-25 H.J. Lu <hjl@gnu.org>
2636
2637 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2638 setting of output_filename after bfd_scan_arch.
2639 * emultempl/pe.em: Likewise.
2640
5f642101
L
26412001-05-25 H.J. Lu <hjl@gnu.org>
2642
2643 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2644 like emulparams/aixppc.sh.
2645
2646 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2647 instead of ${srcdir}/emultempl/stringify.sed.
2648
64e9ece0
TW
26492001-05-25 Timothy Wall <twall@oculustech.com>
2650
2651 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 2652 output.
64e9ece0 2653
c709b096
AM
26542001-05-25 Alan Modra <amodra@one.net.au>
2655
2656 * configure.host: Replace linuxoldld with linux*oldld.
2657 * configure.tgt: Likewise.
2658
6cbdcc6f
L
26592001-05-24 H.J. Lu <hjl@gnu.org>
2660
2661 * emultempl/stringify.sed: Removed again.
2662
86af25fe
L
26632001-05-24 H.J. Lu <hjl@gnu.org>
2664
2665 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2666 (gld${EMULATION_NAME}_before_parse): Initialize
2667 ldfile_output_architecture, ldfile_output_machine and
2668 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2669 * emultempl/beos.em: Likewise.
2670 * emultempl/elf32.em: Likewise.
2671 * emultempl/linux.em: Likewise.
2672 * emultempl/mipsecoff.em: Likewise.
2673 * emultempl/pe.em: Likewise.
2674 * emultempl/sunos.em: Likewise.
2675
3b1b01cf
TR
26762001-05-24 Tom Rix <trix@redhat.com>
2677
8f3aa7a0 2678 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
2679 udate import file format.
2680 (change_symbol_mode) New, same
2681 (is_syscall) New, same
2682 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2683 * emulparams/aixppc64.sh : same
2684 * emulparams/aixrs6.sh : same
2685 * emulparams/ppcmacos.sh : same
2686 * emultempl/aix.em : use strtoull to parse options
2687 * Makefile.am : add eaixppc64 emulation for xcoff64
2688 * Makefile.in : same
2689 * configure.tgt : same
2690
2691 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 2692 default data section offset to 0x20000000
3b1b01cf 2693 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 2694 loader and debug sections use the currect section offset.
3b1b01cf
TR
2695
2696 * emultempl/aix.em : Add xcoff64 support
2697 Add -binitfini support
8f3aa7a0 2698 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 2699 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 2700 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
2701 sections
2702
2703 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 2704
57e6abd2
AO
27052001-05-23 Alexandre Oliva <aoliva@redhat.com>
2706
2707 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2708 variable to avoid non-portable shell construct.
2709
d1cf510e
NC
27102001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2711
2712 * ldmain.c (get_emulation): Add -mips5 command line argument.
2713
506eee22
NC
27142001-05-22 Alexandre Oliva <aoliva@redhat.com>
2715
2716 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2717 (ELF_INTERPRETER_NAME): Define it.
2718 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2719 it.
2720 * configure.tgt (targ_emul, targ_extra_emuls)
2721 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2722 as primary, elf_i386 as extra.
2723 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2724 (eelf_i386_ldso.c): New rule.
2725 * Makefile.in: Rebuilt.
2726
27272001-05-22 Nick Clifton <nickc@redhat.com>
2728
2729 * lexsup.c (ld_options): Allow -I to be an alias for
2730 --dynamic-linker. This is for Solaris compatability.
2731 * ld.texinfo: Document that -I can be used.
2732 * ld.1: Regenerate.
2733
d1778b88
AM
27342001-05-16 Alan Modra <amodra@one.net.au>
2735
2736 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2737 whether an input section is the first one assigned to an output
2738 section.
2739 Assorted formatting fixes.
2740
02649152
DD
27412001-05-14 DJ Delorie <dj@delorie.com>
2742
2743 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2744 * Makefile.in: Ditto.
2745
579f31ac
JJ
27462001-05-11 Jakub Jelinek <jakub@redhat.com>
2747
2748 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2749 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2750 output sections.
2751 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2752
8550eb6e
JJ
27532001-05-11 Jakub Jelinek <jakub@redhat.com>
2754
2755 * ldlang.c (lang_process): Call bfd_merge_sections.
2756
8e5a525c
AM
27572001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2758
2759 * ldgram.y: Fix typo.
2760
1c9acd94
L
27612001-05-03 H.J. Lu <hjl@gnu.org>
2762
2763 * emultempl/elf32.em: Include "libiberty.h".
2764 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2765 basename of the bfd filename.
2766 (gld${EMULATION_NAME}_stat_needed): Likewise.
2767 (gld${EMULATION_NAME}_try_needed): Likewise.
2768 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2769
14fe918e
L
27702001-05-02 H.J. Lu <hjl@gnu.org>
2771
2772 * emultempl/pe.em: Include <ctype.h>.
2773
c7e40348
NC
27742001-05-02 Johan Rydberg <jrydberg@opencores.org>
2775
b6bf44ba 2776 * emulparams/elf32openrisc.sh: New file.
c7e40348 2777
b6bf44ba
AM
2778 * Makefile.am: Add OpenRISC target.
2779 * Makefile.in: Regenerated.
c7e40348 2780
b6bf44ba 2781 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
2782
27832001-05-02 Nick Clifton <nickc@redhat.com>
2784
2785 * emultempl/aix.em: Replace buystring with xstrdup.
2786 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 2787
d1b2b2dc
L
27882001-05-02 H.J. Lu <hjl@gnu.org>
2789
2790 * ldfile.c: Include "libiberty.h".
2791 * ldlex.l: Likewise.
2792
2793 * ldmisc.c (buystring): Removed.
2794 * ldmisc.h: Likewise.
2795
2796 * ldfile.c: Replace buystring with xstrdup.
2797 * ldlang.c: Likewise.
2798 * ldlex.l: Likewise.
2799 * ldmain.c: Likewise.
2800 * ldmisc.c: Likewise.
2801 * lexsup.c: Likewise.
2802 * mpw-eppcmac.c: Likewise.
2803
35714f2a
AJ
28042001-04-30 Andreas Jaeger <aj@suse.de>
2805
2806 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2807
884fb58e
NC
28082001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2809
b6bf44ba
AM
2810 * ldlang.c (load_symbols): Give emulation a chance
2811 to process unrecognized file before fatal error is
2812 reported, not after.
884fb58e 2813
87748b32
NC
28142001-04-27 Sean McNeil <sean@mcneil.com>
2815
2816 * configure.tgt: Add arm-vxworks target.
2817 * scripttempl/armcoff.sc: Support .text or .data as a section name
2818 prefix.
2819 Define _etext.
35714f2a 2820
7ce691ae
C
28212001-04-13 J.T. Conklin <jtc@redback.com>
2822
2823 * ld.texinfo: Document --fatal-warnings.
2824 * ld.1: Regenerate.
2825
2826 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 2827 warnings have been turned into errors.
7ce691ae
C
2828 * lexsup.c (OPTION_WARN_FATAL): Define.
2829 (ld_options): Entry for --fatal-warnings.
2830 (parse_args): Handle OPTION_WARN_FATAL.
2831 * ld.h (ld_config_type): Add fatal_warnings field.
2832
f5fa8ca2
JJ
28332001-04-13 Jakub Jelinek <jakub@redhat.com>
2834
2835 * ldmain.c (main): Default to discard_sec_merge.
2836 * lexsup.c (OPTION_DISCARD_NONE): Define.
2837 (ld_options): Add --discard-none.
2838 (parse_args): Handle OPTION_DISCARD_NONE.
2839 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2840 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2841 all its input sections match.
2842
fdec3cfc
L
28432001-04-05 Steven J. Hill <sjhill@cotw.com>
2844
2845 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2846 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2847 (eelf32ltsmip.c): New target.
2848 (eelf64btsmip.c): Likewise.
2849 (eelf64ltsmip.c): Likewise.
2850 * Makefile.in: Regenerated.
2851
2852 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2853 target.
2854 (mips*-*-linux-gnu*): Likewise.
2855
2856 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2857 MIPS taget.
35714f2a 2858 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
2859 target.
2860 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2861 endian target.
2862
589bad82
HPN
28632001-04-05 Hans-Peter Nilsson <hp@axis.com>
2864
2865 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2866 correct value of __Stext here.
2867 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2868 .startup section.
2869
2870 * emulparams/crislinux.sh: Remove FIXME.
2871
94202e16
AM
28722001-04-02 Alan Modra <alan@linuxcare.com.au>
2873
2874 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2875 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2876
1268a053
HPN
28772001-03-27 Hans-Peter Nilsson <hp@axis.com>
2878
2879 * configure.tgt (cris-*-*): Change default emulation to criself.
2880 (cris-*-*aout*): New rule.
2881
d85e9ff7
AM
28822001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2883
2884 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2885 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2886
0879a67a
AJ
28872001-03-26 Andreas Jaeger <aj@suse.de>
2888
2889 * ld.texinfo (Overview): Fix syntax in texi code.
2890
0285c67d
NC
28912001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2892
2893 * ld.texinfo: Put @c man indications to generate the ld man page.
2894 When generating man, define all the variables. Define SEEALSO
2895 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2896 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2897 (ld.1): Generate from ld.texinfo.
2898 * Makefile.in: Regenerate.
2899
c20ec07b
NC
29002001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2901
2902 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 2903 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 2904
cc5ce052
UD
29052001-03-17 Ulrich Drepper <drepper@redhat.com>
2906
2907 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2908 is an absolute path look only for this file and not along the path.
2909
a1ab1d2a
UD
29102001-03-17 Ulrich Drepper <drepper@redhat.com>
2911
2912 * emultempl/elf32.em (OPTION_GROUP): New macro.
2913 Add new option Bgroup to longopts.
2914 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2915 (gld*_list_options): Add -Bgroup and -z defs.
2916 * ld.1: Document -Bgroup and -z defs.
2917 * ld.texinfo: Likewise.
2918
788fca5a
MM
29192001-03-07 Michael Meissner <meissner@redhat.com>
2920
2921 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2922 with sections created by -fdata-sections.
2923 (.dynbss,.bss): Ditto.
2924
1c7566d1
AM
29252001-03-05 Alan Modra <alan@linuxcare.com.au>
2926
2927 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2928 after_allocation_default, not gld..._before_allocation.
2929
27b7e12d
AM
29302001-02-27 Alan Modra <alan@linuxcare.com.au>
2931
2932 * configure.in (BFD_VERSION): New.
2933 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2934 * configure: Regenerate.
2935 * Makefile.am: Run "make dep-am"
2936 * Makefile.in: Regenerate.
2937
2bc551c7
TW
29382001-02-26 Timothy Wall <twall@cygnus.com>
2939
2940 * emulparams/elf64_aix.sh: Add additional read-only sections;
2941 uncomment lines which are now required.
2942
1276aefa
NC
29432001-02-26 H.J. Lu <hjl@gnu.org>
2944
2945 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
2946 that problems can be caught whilst loading symbols.
2947 (record_bfd_errors): New function: Report BFD errors and mark
2948 the executable output as being invalid.
1276aefa 2949
41c49998
TW
29502001-02-22 Timothy Wall <twall@cygnus.com>
2951
2952 * configure.host: Add configuration for ia64-*-aix*.
2953 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2954 Add dependencies for eelf64_aix.c.
2955 * Makefile.in: Regenerate.
2956 * configure.tgt: Add ia64-*-aix* mapping.
2957 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 2958 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
2959 AIX-specific test.
2960
78f85fd7
L
29612001-02-20 H.J. Lu <hjl@gnu.org>
2962
2963 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2964 false if we found the file.
2965
1ac7e077 29662001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
2967
2968 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2969 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2970
e135f41b
NC
29712001-02-18 lars brinkhoff <lars@nocrew.org>
2972
2973 * Makefile.am: Add PDP-11 target.
2974 * configure.tgt: Likewise.
2975 * emulparams/pdp11.sh: New file.
2976
a842aceb
DB
29772001-02-17 David O'Brien <obrien@FreeBSD.org>
2978
2979 * configure.host: Add a generic FreeBSD configuration entry such that
2980 all [modern] FreeBSD systems on all platforms will look the same.
2981
24174db0
L
29822001-02-14 H.J. Lu <hjl@gnu.org>
2983
2984 * configure.tgt: Remove mention of earmelf_linux26.
2985
30c3c13a
RH
29862001-02-13 Richard Henderson <rth@redhat.com>
2987
2988 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2989
b46a87b1
L
29902001-02-13 H.J. Lu <hjl@gnu.org>
2991
2992 * ldexp.h (node_type): Add etree_provided.
2993 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2994 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 2995 for etree_provided.
b46a87b1
L
2996 (exp_print_tree): Handle etree_provided.
2997 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2998 etree_provided.
2999
f3988fd9
RH
30002001-02-09 David Mosberger <davidm@hpl.hp.com>
3001
3002 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3003 .IA_64.unwind.* pattern to unwind table section and
3004 .IA_64.unwind_info* pattern to unwind info section.
3005
a85d7ed0
NC
30062001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3007
3008 * Makefile.am: Add linux target for S/390.
3009 * Makefile.in: Likewise.
3010 * configure.host: Likewise.
3011 * configure.tgt: Likewise.
3012 * emulparams/elf64_s390.sh: New file.
3013 * emulparams/elf_s390.sh: New file.
3014
780248c4
JJ
30152001-02-09 Jakub Jelinek <jakub@redhat.com>
3016
3017 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3018 targ_extra_libpath.
3019 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3020
0e2534bd
PB
30212001-02-06 Philip Blundell <philb@gnu.org>
3022
3023 * Makefile.am: Remove mention of earmelf_linux26.
3024 * Makefile.in: Regenerate.
3025
46c1ea57
PB
30262001-02-04 Philip Blundell <philb@gnu.org>
3027
3028 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3029 * emulparams/armelf_linux26.sh: Delete.
3030 * configure.tgt: Remove mention of armelf_linux26 emulation.
3031
0088edd2
NC
30322001-02-01 Nick Clifton <nickc@redhat.com>
3033
3034 * ld.1: Replace occurances of -oformat with --oformat.
3035
02aa14fb
AM
30362001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3037
3038 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3039 load_base is specified.
3040
f813923c
HPN
30412001-01-24 Hans-Peter Nilsson <hp@axis.com>
3042
3043 * emultempl/elf32.em: Correct spelling in comments and listed
3044 options.
3045
c1eb1488
AM
30462001-01-23 Alan Modra <alan@linuxcare.com.au>
3047
3048 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3049 default for the first section of a group of overlay sections.
3050
d9fc3714
AM
30512001-01-22 Alan Modra <alan@linuxcare.com.au>
3052
3053 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3054 * Makefile.in: Regenerate.
3055 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3056 Check for null tool_dir.
3057
6be0ca94
JW
30582001-01-16 Jim Wilson <wilson@redhat.com>
3059
3060 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3061 and IA_64.unwind.info.
3062
b9247304
L
30632001-01-16 H.J. Lu <hjl@gnu.org>
3064
3065 * ldlang.c (lang_check): Merge the private data only if the
3066 input file has contents.
3067
577a0623
AM
30682001-01-14 Alan Modra <alan@linuxcare.com.au>
3069
d952f17a
AM
3070 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3071
ffd6e9de
AM
3072 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3073 enabling search for libmilli. On a relocatable link, make .text
3074 sections unique.
3075 (LDEMUL_AFTER_PARSE): Define.
3076 (hppaelf_finish): Correct spelling of relocatable in comments.
3077
577a0623
AM
3078 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3079 rummage through the script for sections on the unique list.
3080 Correct length of strncmp for ".note".
3081 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3082
3083 * ldlang.c (unique_section_list): New var.
3084 (unique_section_p): New function.
3085 (walk_wild_section): Don't match sections on unique_section_list.
3086 (lang_add_unique): New function.
ffd6e9de 3087 Correct spelling of relocatable in comments.
577a0623
AM
3088
3089 * ldlang.h (struct unique_sections): Declare.
3090 (unique_section_list): Declare.
3091 (unique_section_p): Declare.
3092 (lang_add_unique): Declare.
3093
3094 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3095 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3096
3097 * ld.texinfo (--unique): Update.
3098
b7ed8fad
NC
30992001-01-13 Nick Clifton <nickc@redhat.com>
3100
3101 * lexsup.c (parse_args): Remove spurious white space.
3102
d0398d6a
NC
31032001-01-12 Nick Clifton <nickc@redhat.com>
3104
3105 * lexsup.c (parse_args): Update copyright date.
3106
350fdb00
PB
31072001-01-12 Philip Blundell <pb@futuretv.com>
3108
3109 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3110
60c6797e
KH
31112001-01-10 Kazu Hirata <kazu@hxi.com>
3112
3113 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3114 * scripttempl/h8300h.sc: Fix formatting.
3115 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
3116 * scripttempl/h8500.sc: Likewise.
3117 * scripttempl/h8500b.sc: Likewise.
3118 * scripttempl/h8500c.sc: Likewise.
3119 * scripttempl/h8500m.sc: Likewise.
3120 * scripttempl/h8500s.sc: Likewise.
60c6797e 3121
482e8b32
DB
31222000-01-07 David O'Brien <obrien@BSDi.com>
3123
3124 * emultempl/elf32.em: Only perform Linux ld hints processing when
3125 targeting Linux.
3126
d7ed7ca6
PB
31272001-01-07 Philip Blundell <philb@gnu.org>
3128
3129 * ld.texinfo (Bug Reporting): Update email address for reports.
3130
0fc3347a
NC
31312000-12-31 Nick Clifton <nickc@redhat.com>
3132
3133 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3134 options by checking for a return value of '?' not -1.
3135
e4897a32
NC
31362000-12-28 Nick Clifton <nickc@redhat.com>
3137
3138 * lexsup.c (struct ld_option): Add new enum value:
3139 EXACTLY_TWO_DASHES.
3140 (ld_options[]): Change -omagic, -output and -oformat options
3141 to be EXACTLY_TWO_DASHES.
3142 (OUTPUT_COUNT): Use ARRAY_SIZE.
3143 (parse_args): Change parameter 'argc' to unsigned.
3144 Place EXACTLY_TWO_DASHES options into new really_longopts
3145 array.
3146 If getopt_long_only fails, try calling getopt_long using the
3147 really_longopts array.
3148 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3149 TWO_DASHES options.
3150
3151 * ldlex.h: Fix prototype of parse_args.
3152
3153 * ld.texinfo: Document that long options starting with 'o'
3154 must be preceeded by two dashes. Change example of a single
3155 dashed long option from -oformat to -trace-symbol.
3156
1122a5fc
NC
31572000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3158
3159 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3160 (longopts[]): New --no-default-excludes option.
3161 (gld_${EMULATION_NAME}_list_options): Document.
3162 (gld_${EMULATION_NAME}_parse_args): Handle.
3163
037849a9
NC
31642000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3165
3166 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3167 whitespace, it breaks the K&R C preprocessor.
3168
7ec229ce
DD
31692000-12-11 DJ Delorie <dj@redhat.com>
3170
3171 * ld.texinfo: Add notes about --whole-archive and gcc.
3172
b79e8c78
NC
31732000-11-18 Fred Fish <fnf@be.com>
3174
3175 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3176 (ld_options): Entry for --allow-shlib-undefined.
3177 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3178 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3179 to false.
3180 * ld.texinfo: Document new command line switch.
d952f17a 3181
9a8e2505
GK
31822000-12-12 Geoffrey Keating <geoffk@redhat.com>
3183
3184 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3185 .fixup is actually read/write.
3186 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3187 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3188 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3189
3b16e843 31902000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
3191
3192 * NEWS: Add note about x86_64 architecture.
3193
93b63cd3
DD
31942000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3195
3196 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3197 Set DWARF2 sections to a VMA of zero.
3198
68b2fc7a 31992000-12-01 Joel Sherrill <joel@OARcorp.com>
24f6971a 3200
d952f17a 3201 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
3202 New targets.
3203 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3204 (sparc*-*-rtems*): Switched from a.out to ELF.
3205
2be3aa03
NC
32062000-11-30 Jan Hubicka <jh@suse.cz>
3207
3208 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3209 (eelf_x86_64.c): New.
3210 * Makefile.in: Regenerate.
3211 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3212 * emulparams/elf_x86_64.sh: New.
3213
8c899858
HPN
32142000-11-30 Hans-Peter Nilsson <hp@axis.com>
3215
3216 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3217 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3218
3219 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3220 merging non-a.out sections into CONSTRUCTING.
3221
e47b9e39
NC
32222000-11-28 Nick Clifton <nickc@redhat.com>
3223
3224 * ld.1 (COPYING): Mention that the GNU Free Documentation
3225 License is present in the sources, but not the output, and
3226 also available from the GNU website.
3227 (GNU Free Documentation License): Comment out this section.
3228
ad95f82a
DB
32292000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3230
3231 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3232 does not use them.
3233
fd89e65f
DB
32342000-11-25 David O'Brien <obrien@FreeBSD.org>
3235
3236 * ld.1: Remove old date so it does not give the impression the manpage
3237 is way out of date.
3238
077b8428
NC
32392000-11-24 Nick Clifton <nickc@redhat.com>
3240
3241 * configure.tgt (xscale-coff): Add target.
3242 (xscale-elf): Add target.
3243
49425d28
NC
32442000-11-24 Fred Fish <fnf@be.com>
3245
d952f17a
AM
3246 * ldmain.c (main): Remove redundant init of config.make_executable
3247 to true.
49425d28 3248
d3480244
RH
32492000-11-15 Richard Henderson <rth@redhat.com>
3250
3251 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3252
1ce7de8b
KH
32532000-11-14 Kazu Hirata <kazu@hxi.com>
3254
3255 * scripttempl/h8300.sc: Fix formatting.
3256 * scripttempl/h8300h.sc: Likewise.
3257 * scripttempl/h8300s.sc: Likewise.
3258
3b16e843 32592000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
3260
3261 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3262
2e418547
PB
32632000-11-09 Philip Blundell <pb@futuretv.com>
3264
3265 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3266 around orphan sections whose names can be represented in C.
3267
c940e6fc
JW
32682000-11-07 Jim Wilson <wilson@redhat.com>
3269
3270 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3271 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3272
704c465c
NC
32732000-11-06 Nick Clifton <nickc@redhat.com>
3274
3275 * ld.texinfo: Add GNU Free Documentation License.
3276 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 3277 * ld.1: Add GNU Free Documentation License.
704c465c 3278
dca7760f
AM
32792000-11-05 Alan Modra <alan@linuxcare.com.au>
3280
3281 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3282 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3283
3284 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3285 Move 2000-11-02 Makefile.in changes to this file.
3286 * Makefile.in: Regenerate.
3287
40a633d5
NC
32882000-11-03 Nick Clifton <nickc@redhat.com>
3289
3290 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3291 constructors and destructors.
3292 * scripttempl/h8300h.sc: Ditto.
3293 * scripttempl/h8300s.sc: Ditto.
3294 * scripttempl/h8500.sc: Ditto.
3295 * scripttempl/h8500b.sc: Ditto.
3296 * scripttempl/h8500c.sc: Ditto.
3297 * scripttempl/h8500m.sc: Ditto.
3298 * scripttempl/h8500s.sc: Ditto.
3299 * scripttempl/v850.sc: Ditto.
3300 * scripttempl/w65.sc: Ditto.
3301 * scripttempl/z8000.sc: Ditto.
3302
59ff2774
NC
33032000-11-02 Per Lundberg <plundis@chaosdev.org>
3304
3305 * Makefile.in (e_i386_chaos.c): New rule.
3306 (ALL_EMULATIONS): Added e_i386_chaos.o.
3307 * emulparams/elf_i386_chaos.sh: New file.
3308 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3309
645571e1
JJ
33102000-10-20 Jakub Jelinek <jakub@redhat.com>
3311
3312 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3313 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3314 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3315 library path suffix.
3316 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3317
c5975a45
HPN
33182000-10-18 Hans-Peter Nilsson <hp@axis.com>
3319
3320 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3321 for consecutive sections.
3322
ea20a7da
CC
33232000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3324
d952f17a
AM
3325 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3326 options.
3327 * ld.texinfo: Added notes about this new option.
ea20a7da 3328
6e45556a
NC
33292000-10-16 Nick Clifton <nickc@redhat.com>
3330
3331 * emultempl/pe.em (_after_open): Add tests of return values from
3332 bfd functions. Emit appropriate error messages if necessary.
3333
b9a69188
NC
33342000-10-13 Nick Clifton <nickc@redhat.com>
3335
3336 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
3337 local variables - they are not used, but leave in the call to
3338 bfd_canonicalize_symtab.
b9a69188
NC
3339 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3340 pe_dll_search_prefix.
3341
627427de 33422000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 3343
627427de
DD
3344 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3345 (longopts): New --dll-search-prefix option.
3346 (gld_${EMULATION_NAME}_list_options): Document.
3347 (gld_${EMULATION_NAME}_parse_args): Handle.
3348 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3349 dynamically, search for a dll named '<prefix><basename>.dll'
3350 in preference to 'lib<basename>.dll' if --dll-search-prefix
3351 is specified.
3352
24376d1b
AM
33532000-10-12 Alan Modra <alan@linuxcare.com.au>
3354
3355 * ldlang.c (section_already_linked): Set kept_section instead of
3356 sec->comdat->sec.
3357
e47d05ad
KH
33582000-10-10 Kazu Hirata <kazu@hxi.com>
3359
3360 * deffile.h: Fix formatting.
3361 * lexsup.c: Likewise.
3362 * mri.c: Likewise.
3363
23a87948
DD
33642000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3365
3366 * pe-dll.c (make_one): Do not generate code thunk for DATA
3367 exports.
3368 (process_def_file): deduce DATA flag for auto-export sumbols.
3369
86b1cc60
KH
33702000-10-09 Kazu Hirata <kazu@hxi.com>
3371
89cdebba
KH
3372 * ld.h: Fix formatting.
3373 * ldcref.c: Likewise.
3374 * ldctor.h: Likewise.
3375 * ldemul.c: Likewise.
3376 * ldemul.h: Likewise.
3377 * ldexp.c: Likewise.
3378 * ldexp.h: Likewise.
3379 * ldfile.c: Likewise.
3380 * ldfile.h: Likewise.
3381 * ldlang.c: Likewise.
3382 * ldlang.h: Likewise.
3383 * ldmain.c: Likewise.
7bfd51a3
KH
3384 * pe-dll.c: Likewise.
3385
3386 * pe-dll.c: Revert some formatting fixes.
86b1cc60 3387
d643799d
KH
33882000-10-08 Kazu Hirata <kazu@hxi.com>
3389
3390 * pe-dll.c: Fix formatting.
3391
08da4cac
KH
33922000-10-05 Kazu Hirata <kazu@hxi.com>
3393
3394 * ldlang.c: Fix formatting.
3395
c2a94a7a
DD
33962000-10-03 DJ Delorie <dj@redhat.com>
3397
3398 * pe-dll.c (fill_edata): initialize entire block
3399 (make_one): fill in correct section.
3400
8c95a62e
KH
34012000-10-03 Kazu Hirata <kazu@hxi.com>
3402
3403 * ldexp.c: Fix formatting.
3404
486e80e2
DD
34052000-10-02 DJ Delorie <dj@redhat.com>
3406
3407 * emultempl/pe.em (gld_*_after_open): detect case where there two
3408 import libraries for same dll; rename one to ensure proper link
3409 order.
3410
3411 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3412 typo
3413 (generate_edata): fix typo
3414
24dd9f75
HPN
34152000-09-29 Hans-Peter Nilsson <hp@axis.com>
3416
3417 * scripttempl/crisaout.sc (ENTRY): Now __start.
3418 (.text): Add default setting for __start.
3419 Remove CONSTRUCTORS handling.
3420 (/DISCARD/): Add .gnu.warning.*.
3421 * emulparams/crislinux.sh (ENTRY): Now __start.
3422 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3423 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3424 (ENTRY): Now __start.
3425 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3426 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3427
4de2d33d
KH
34282000-09-29 Kazu Hirata <kazu@hxi.com>
3429
5cc18311
KH
3430 * deffile.h: Fix formatting.
3431 * ld.h: Likewise.
3432 * ldcref.c: Likewise.
4de2d33d 3433 * ldctor.c: Likewise.
5cc18311 3434 * ldctor.h: Likewise.
4de2d33d 3435 * ldemul.c: Likewise.
5cc18311 3436 * ldemul.h: Likewise.
4de2d33d 3437 * ldexp.c: Likewise.
5cc18311 3438 * ldexp.h: Likewise.
4de2d33d 3439 * ldfile.c: Likewise.
5cc18311 3440 * ldfile.h: Likewise.
4de2d33d 3441 * ldlang.c: Likewise.
5cc18311
KH
3442 * ldlang.h: Likewise.
3443 * lexsup.c: Likewise.
3444 * mri.c: Likewise.
3445 * pe-dll.c: Likewise.
4de2d33d 3446
45b1f63c
DD
34472000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3448
3449 * pe-dll.c (process_def_file): Uninitialized data wasn't
3450 exported with --export-all-symbols switch.
d952f17a 3451
45b1f63c
DD
34522000-09-28 DJ Delorie <dj@redhat.com>
3453
3454 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3455 noname work properly.
3456
47d89dba
AM
34572000-09-28 Alan Modra <alan@linuxcare.com.au>
3458
3459 * ld.texinfo (HPPA ELF32): New section.
3460
3461 * emultempl/hppaelf.em (group_size): New.
3462 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3463 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3464 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3465 options to prevent abbreviations matching.
3466 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3467 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3468
36bdbeec
NC
34692000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3470
3471 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3472 on the m68*-*-elf target. Make it support COFF input objects.
3473
6d5e62f8
KH
34742000-09-21 Kazu Hirata <kazu@hxi.com>
3475
3476 * ldmain.c: Fix formatting.
3477 * ldmisc.c: Likewise.
3478 * ldver.c: Likewise.
3479 * ldwrite.c: Likewise.
3480
e2eb67d9
AM
34812000-09-21 Alan Modra <alan@linuxcare.com.au>
3482
3483 * ldwrite.c (clone_section): Silence gcc warnings.
3484
b3ea3584
AM
34852000-09-20 Alan Modra <alan@linuxcare.com.au>
3486
3487 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3488 out of memory failure.
3489
3490 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3491 (clone_section): Handle out of memory failures. Rename var to
3492 avoid c++ reserved word.
3493
25f72752
AM
34942000-09-18 Alan Modra <alan@linuxcare.com.au>
3495
3496 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3497 stub_name param to stub_sec_name.
3498 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3499
0752970e
NC
35002000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3501
3502 * emultempl/m68kelf.em: New file.
3503 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3504 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3505 * Makefile.in: Regenerate.
3506
92b7e9d8
AM
35072000-09-15 Alan Modra <alan@linuxcare.com.au>
3508
3509 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3510 only as needed.
3511
9b14b192
NC
35122000-09-13 Nick Clifton <nickc@redhat.com>
3513
3514 * ldmain.c (multiple_definition): Disable relaxation if
3515 multiple symbol definitions are encountered - otherwise the
3516 linker could abort with an assertion failure.
3517
891fa266
NC
35182000-09-10 Nick Clifton <nickc@redhat.com>
3519
3520 * mri.c: Fix formatting.
3521
5d64ca4e
L
35222000-09-07 H.J. Lu <hjl@gnu.org>
3523
3524 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3525 * configure: Rebuild.
3526
dd94604f
L
35272000-09-07 H.J. Lu <hjl@gnu.org>
3528
3529 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3530 * Makefile.in: Rebuild.
3531
71bfc0ae
AM
35322000-09-07 Alan Modra <alan@linuxcare.com.au>
3533
3534 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3535 broken list handling. Create __start_SECNAME and __stop_SECNAME
3536 when no place-holder. Add some comments. Test both SEC_CODE and
3537 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 3538 Handle case where no output section statement created.
71bfc0ae 3539
4a428502
AO
35402000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3541
3542 * configure.tgt (sh-*-linux*): Added.
3543 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3544 * Makefile.in: Rebuilt.
3545 * emulparams/shelf_linux.sh: New file.
3546 * emulparams/shlelf_linux.sh: New file.
3547
f9989030
AM
35482000-09-06 Alan Modra <alan@linuxcare.com.au>
3549
3550 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3551 try shuffling sections when the orphan happens to be the place
3552 holder. Keep count of unique section names generated so we speed
3553 the search for a new name.
3554
58cccadb
AO
35552000-09-06 Alexandre Oliva <aoliva@redhat.com>
3556
3557 * configure: Rebuilt with new libtool.m4.
3558
5b343f5a
NC
35592000-09-05 Nick Clifton <nickc@redhat.com>
3560
3561 * Makefile.in: Regenerate.
3562 * aclocal.m4: Regenerate.
3563 * configure: Regenerate.
3564 * config.in: Regenerate.
3565 * po/ld.pot: Regenerate.
3566
3567 * ldint.texinfo: Remove CVS revision marker - it foils local
3568 comparisons.
3569
3570 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 3571
a854a4a7
AM
35722000-09-05 Alan Modra <alan@linuxcare.com.au>
3573
3231d22e
AM
3574 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3575 to stub section flags.
3576 (hppa_for_each_input_file_wrapper): New.
3577 (hppa_lang_for_each_input_file): New.
3578 (lang_for_each_input_file): Define to call above.
3579 (multi_subspace): New.
3580 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3581 (PARSE_AND_LIST_PROLOGUE): Define.
3582 (PARSE_AND_LIST_LONGOPTS): Define.
3583 (PARSE_AND_LIST_OPTIONS): Define.
3584 (PARSE_AND_LIST_ARGS_CASES): Define.
3585 (hppaelf_finish): Call elf32_hppa_set_gp.
3586 (hppaelf_set_output_arch): Remove.
3587 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3588
3589 * emulparams/hppalinux.sh (ELFSIZE): Define.
3590 (MACHINE): Define.
3591 (OTHER_READONLY_SECTIONS): Define.
3592 (DATA_PLT): Define.
3593 (GENERATE_SHLIB_SCRIPT): Define.
3594
5f992e62
AM
3595 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3596 to const throughout. Change `void *' to `PTR' throughout.
3597 (lang_memory_default): Function is local to file, add `static'.
3598
3599 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3600 (ehppalinux.c): Likewise.
3601 (earmelf.c): Likewise.
3602 (earmelf_linux.c): Likewise.
3603 (earmelf_linux26.c): Likewise.
3604 * Makefile.in: Regenerate.
3605
a854a4a7
AM
3606 * ld.h (ld_config_type): Add unique_orphan_sections.
3607 * lexsup.c (OPTION_UNIQUE): Define.
3608 (ld_options): Add "--unique".
3609 (parse_args): Handle it.
3610 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3611 search for an existing output section if unique_orphan_sections is
3612 set. Make use of bfd_get_unique_section_name rather than
3613 duplicating code here.
3614 * ld.texinfo: Describe --unique.
3615
3616 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3617 optional arg to split-by-file.
3618 (parse_args): Handle them.
3619 * ld.texinfo: Update description of these options.
3620 * ldwrite.c (clone_section): Pass in the section name. Replace
3621 local code with bfd_get_unique_section_name.
3622 (split_sections): Tidy code and comments. Use a list traversal
3623 more appropriate to the list construction. Handle cooked section
3624 sizes. Split when split_by_reloc reached rather than exceeded.
3625 Track section size and split when split_by_file reached. Fix
3626 link_order_tail (even though it's not used).
3627 (ldwrite): Modify condition for calling split_sections to suit
3628 changed split_by_reloc and split_by_file.
3629 * ldmain.c (main): Init config.split_by_reloc and
3630 config.split_by_file to -1.
3631 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3632 Change split_by_file to bfd_size_type.
3633
18e03609
NC
36342000-09-02 Nick Clifton <nickc@redhat.com>
3635
3636 * configure.in: Increase version number to 2.10.91.
3637 * NEWS: Mention new ability to support removal of duplicate DWARF2
3638 debug information.
3639 * configure: Regenerate.
3640 * aclocal.m4: Regenerate.
3641 * config.in: Regenerate.
3642
3a9d486c
NC
36432000-09-02 Daniel Berlin <dberlin@redhat.com>
3644
3645 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3646 sections.
a2b64bed 3647 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
3648 * scripttempl/elfd10v.sc: Ditto.
3649 * scripttempl/elfd30v.sc: Ditto.
3650 * scripttempl/elfi370.sc: Ditto.
3651 * scripttempl/elfm68hc11.sc: Ditto.
3652 * scripttempl/elfm68hc12.sc: Ditto.
3653 * scripttempl/elfi386beos.sc: Ditto.
3654 * scripttempl/v850.sc: Ditto.
50bbae35 3655
ac48eca1
AO
36562000-08-31 Alexandre Oliva <aoliva@redhat.com>
3657
3658 * acinclude.m4: Include libtool and gettext macros from the
3659 top level.
3660 * aclocal.m4, configure: Rebuilt.
3661
c13b1b77
NC
36622000-08-25 Nick Clifton <nickc@redhat.com>
3663
3664 * ldlang.c (open_output): When choosing the target for a
3665 particular endianness, do nothing if the target is not
3666 supported.
3667
dcb0bd0e
L
36682000-08-25 H.J. Lu <hjl@gnu.org>
3669
3670 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3671 check -rpath nor LD_RUN_PATH for cross link.
3672 * ld.texinfo: Document the change.
3673
5bcac8a4
HPN
36742000-08-24 Hans-Peter Nilsson <hp@axis.com>
3675
3676 * NEWS: Mention support for CRIS.
3677
6dd8c765
L
36782000-08-23 H.J. Lu <hjl@gnu.org>
3679
3680 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3681 the current runpath list from bfd_elf_get_runpath_list ()
3682 before search.
3683
ec4eb78a
L
36842000-08-22 H.J. Lu <hjl@gnu.org>
3685
3686 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3687 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3688 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3689 trace_file_tries is non-zero.
3690 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3691 if trace_file_tries is non-zero.
3692
3693 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 3694 * NEWS: Mention it.
ec4eb78a 3695
22b36938
JE
36962000-08-14 Jason Eckhardt <jle@cygnus.com>
3697
3698 * NEWS: Mention i860 support.
3699
d73e9da0
AS
37002000-08-14 Andreas Schwab <schwab@suse.de>
3701
3702 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 3703 syntax.
d73e9da0 3704
9ac4db9c
GK
37052000-08-10 Geoff Keating <geoffk@cygnus.com>
3706
3707 * scripttempl/elf.sc: Add a comment giving the correspondence
3708 between sections, per-datum sections, and linkonce sections. Make
3709 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3710 .sbss2.
3711
165589e4
JE
37122000-08-10 Jason Eckhardt <jle@cygnus.com>
3713
3714 * emulparams/elf32_i860.sh: New file.
3715 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3716 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3717 (eelf32_i860.c): New rule.
3718 * Makefile.in: Regenerate.
3719
345a835d
NC
37202000-08-10 Nick Clifton <nickc@cygnus.com>
3721
3722 * emulparams/mipspe.sh (ENTRY): Add definition.
3723
e374f1d9
NC
37242000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3725
3726 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3727 in error message.
3728
236d5abf
NC
37292000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3730
3731 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3732 the final size of .bss section.
3733 * scripttempl/elfm68hc12.sc: Likewise.
3734
4b209b22
AM
37352000-08-04 Alan Modra <alan@linuxcare.com.au>
3736
3737 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3738 gld${EMULATION_NAME}_parse_args for consistency. Combine
3739 lastoptind and prevoptind vars, and keep track of last optind.
3740 (gld_${EMULATION_NAME}_list_options): Rename to
3741 gld${EMULATION_NAME}_list_options.
3742
28423a68
AM
37432000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3744
3745 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3746 (i586-sco-sysv5uw7.1.0).
3747
b2009ff7
L
37482000-07-27 H.J. Lu <hjl@gnu.org>
3749
3750 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3751 (PARSE_AND_LIST_PROLOGUE): New.
3752 (PARSE_AND_LIST_LONGOPTS): Likewise.
3753 (PARSE_AND_LIST_OPTIONS): Likewise.
3754 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3755 (PARSE_AND_LIST_EPILOGUE): Likewise.
3756
04925e1e
AM
37572000-07-28 Alan Modra <alan@linuxcare.com.au>
3758
41392f03
AM
3759 * emultempl/armelf.em: Elide functions common to elf32.em,
3760 ie. most of the file.
3761 (arm_elf_after_open): New. Do arm specific things then call
3762 gld${EMULATION_NAME}_after_open.
3763 (arm_elf_before_allocation): New. Call
3764 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3765 (PARSE_AND_LIST_PROLOGUE): Define.
3766 (PARSE_AND_LIST_SHORTOPTS): Define.
3767 (PARSE_AND_LIST_LONGOPTS): Define.
3768 (PARSE_AND_LIST_OPTIONS): Define.
3769 (PARSE_AND_LIST_ARGS_CASES): Define.
3770 (LDEMUL_AFTER_OPEN): Define.
3771 (LDEMUL_BEFORE_ALLOCATION): Define.
3772 (LDEMUL_BEFORE_PARSE): Define.
3773 (LDEMUL_FINISH): Define.
3774
3775 * emultempl/hppaelf.em: Similarly zap most of this file.
3776 (hppaelf_add_stub_section): Prototype.
3777 (hppaelf_layaout_sections_again): Prototype.
3778 (hook_in_stub): Prototype.
3779 (LDEMUL_SET_OUTPUT_ARCH): Define.
3780 (LDEMUL_FINISH): Define.
3781 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3782
3783 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3784 (EXTRA_EM_FILE): New.
3785 * emulparams/armelf_linux.sh: Likewise.
3786 * emulparams/armelf_linux26.sh: Likewise.
3787 * emulparams/hppalinux.sh: Likewise.
3788 * emulparams/hppaelf.sh: Likewise.
3789 (NOP): Define.
3790
3791 * emultempl/elf32.em: Fix formatting.
3792 (EXTRA_EM_FILE): Source it.
3793 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3794 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3795 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3796 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3797 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3798 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3799 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3800 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3801 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3802 allow functions in this file to be overridden.
3803 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3804
3805 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3806
04925e1e
AM
3807 * emultempl/elf32.em: Reorganize file.
3808
88cdf297
NC
38092000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3810
3811 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3812 specific option to fit 64-bit executable in the lower
3813 31-bit address range. This is done by changing start
3814 address of .interp (the very first section of executable)
3815 and then setting EF_ALPHA_32BIT elf header flag.
3816
20bccb34
NC
38172000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3818
3819 * emultempl/m68kcoff.em: New file.
3820 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3821 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3822 generic.em.
3823 * Makefile.in: Regenerate.
3824
699845ef
L
38252000-07-20 H.J. Lu <hjl@gnu.org>
3826
3827 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3828 and "disable-new-dtags" to stop getopt from treating -d/-e as
3829 abbreviations for these options.
3830
6c1439be
L
38312000-07-20 H.J. Lu <hjl@gnu.org>
3832
3833 * ld.texinfo: Add documentation for --disable-new-dtags and
3834 --enable-new-dtags.
3835
3836 * ldmain.c (main): Initialize link_info.new_dtags to false.
3837
3838 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3839 --disable-new-dtags and --enable-new-dtags.
3840 (gld_${EMULATION_NAME}_list_options): Likewise.
3841
28c309a2
NC
38422000-07-05 Kenneth Block <krblock@computer.org>
3843
a2b64bed
NC
3844 * lexsup.c: Add optional style to demangle switch
3845 * ld.texinfo: Document optional style to demangle switch.
50bbae35 3846
9d06555c
HPN
38472000-07-20 Hans-Peter Nilsson <hp@axis.com>
3848
3849 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3850 ecrislinux.o.
3851 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3852 Regenerate dependencies.
3853 * Makefile.in: Rebuild.
3854 * configure.tgt (cris-*-*): New target.
3855 * emulparams/crisaout.sh, emulparams/criself.sh,
3856 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3857 * po/POTFILES.in, po/ld.pot: Regenerate.
3858
19e3be22
L
38592000-07-20 H.J. Lu <hjl@gnu.org>
3860
3861 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3862 Print out ignored -z options.
3863
e0ee487b
L
38642000-07-19 H.J. Lu <hjl@gnu.org>
3865
19e3be22
L
3866 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3867 (PARSE_AND_LIST_PROLOGUE): New.
3868 (PARSE_AND_LIST_LONGOPTS): Likewise.
3869 (PARSE_AND_LIST_OPTIONS): Likewise.
3870 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3871
3872 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3873
3874 * lexsup.c (ld_options): Comment out 'z'.
3875 (parse_args): Likewise.
3876
3877 * emultempl/elf32.em: Include "elf/common.h".
3878 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3879 options.
3880 (gld_${EMULATION_NAME}_list_options): Likewise.
3881
3882 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 3883
49e56c49
L
38842000-07-19 H.J. Lu <hjl@gnu.org>
3885
3886 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3887 bfd_elf_set_dt_needed_soname ().
3888
9d68bc82
DD
38892000-07-18 DJ Delorie <dj@cygnus.com>
3890
3891 * pe-dll.c (pe_dll_id_target): check object target name also
3892
53db15ed
HPN
38932000-07-18 Hans-Peter Nilsson <hp@axis.com>
3894
3895 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3896 ${INIT_END} if relocating.
3897 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3898
0ad8cf4c
DD
38992000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3900
a2b64bed 3901 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
3902 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3903 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3904 errors introduced by the old dynamic lib search order.
3905
874c8c99
DD
39062000-07-17 DJ Delorie <dj@cygnus.com>
3907
3908 * pe-dll.c (process_def_file): auto-export data items also
3909 (pe_process_import_defs): also see if _imp_ form needed
3910
5b4cf3f4
DD
39112000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3912
3913 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3914 for dll import libraries
3915
062739d1
NC
39162000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3917
3918 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 3919 gcc 2.95.2 and later.
062739d1 3920
1c64c4ed
NC
39212000-07-11 Kazu Hirata <kazu@hxi.com>
3922
50bbae35
AM
3923 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3924 message.
1c64c4ed 3925
b71e2778
AM
39262000-07-10 Alan Modra <alan@linuxcare.com.au>
3927
3928 * ldemul.h (struct lang_input_statement_struct): Remove forward
3929 declaration.
3930 (struct search_dirs): Likewise.
3931 * ldfile.h (struct lang_input_statement_struct): Likewise.
3932 Protect file from multiple inclusion.
3933 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3934 declaration from macro to file scope.
3935
3936 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3937 * ldgram.y: Likewise here.
3938 * ldlang.c: And here.
3939 * ldmain.c: And here.
3940 * mpw-elfmips.c: And here.
3941 * mpw-eppcmac.c: And here.
3942 * emultempl/aix.em: And here.
3943 * emultempl/armcoff.em: And here.
3944 * emultempl/armelf.em: And here.
3945 * emultempl/armelf_oabi.em: And here.
3946 * emultempl/beos.em: And here.
3947 * emultempl/elf32.em: And here.
3948 * emultempl/hppaelf.em: And here.
3949 * emultempl/linux.em: And here.
3950 * emultempl/lnk960.em: And here.
3951 * emultempl/pe.em: And here.
3952 * emultempl/sunos.em: And here.
3953 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3954 * mpw-idtmips.c: Ditto.
3955 * emultempl/generic.em: Ditto.
3956 * emultempl/gld960.em: Ditto.
3957 * emultempl/gld960c.em: Ditto.
3958 * emultempl/mipsecoff.em: Ditto.
3959 * emultempl/ticoff.em: Ditto.
3960 * emultempl/vanilla.em: Ditto.
3961
3962 * pe-dll.c: Include ldfile.h
3963 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3964
3965 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3966 arguments to bfd_elf32_size_dynamic_sections call.
3967 (gldelf32ebmip_place_orphan): Add missing arguments to
3968 lang_leave_output_section_statement call.
3969
2ef53d66
L
39702000-07-10 H.J. Lu <hjl@gnu.org>
3971
3972 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3973 DLL_SUPPORT.
3974 (strhash): Likewise.
3975 (compute_dll_image_base): Likewise.
3976 (pe_undef_found_sym): Likewise.
3977 (pe_undef_cdecl_match): Likewise.
3978 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3979 argument "arch" with ATTRIBUTE_UNUSED.
3980
9a8cbb09
AM
39812000-07-10 Alan Modra <alan@linuxcare.com.au>
3982
3983 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3984
3985 From Ryan Bradetich <rbradetich@uswest.net>
3986 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 3987
4900fc06
AM
39882000-07-09 Alan Modra <alan@linuxcare.com.au>
3989
3990 Changes to create multiple linker stubs, positioned immediately
3991 before the section where they are required.
3992 * emultempl/hppaelf.em: Include elf32-hppa.h.
3993 (stub_sec, file_chain): Delete.
3994 (hppaelf_create_output_section_statements): Don't make a stub
3995 section here.
3996 (hook_stub_info): New struct.
3997 (hook_in_stub): New function.
3998 (hppaelf_add_stub_section): New function.
3999 (hppaelf_finish): Do nothing for relocateable links. Modify the
4000 call to elf32_hppa_size_stubs. Move code for updating section
4001 layout from here...
4002 (hppaelf_layaout_sections_again): ..to here, a new function.
4003
4004 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4005 broken list handling. Pass in a pointer to the list.
4006 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4007 for above changes.
4008 (hppaelf_before_parse): Prototype.
4009 (hppaelf_set_output_arch): Prototype.
4010 (hppaelf_create_output_section_statements): Prototype.
4011 (hppaelf_delete_padding_statements): Prototype.
4012 (hppaelf_finish): Prototype.
4013
4014 Merge from elf32.em
4015 * emultempl/hppaelf.em: Include ctype.h.
4016 (struct orphan_save): New.
4017 (gld${EMULATION_NAME}_place_orphan): New.
4018 (output_rel_find): New.
4019 (hppaelf_get_script): Update from elf32.em.
4020 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4021 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 4022 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
4023
4024 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4025 ehppalinux.o, sort it. Regenerate dependencies.
4026 (ehppalinux.c): Depend on hppaelf.em
4027 * Makefile.in: Regenerate.
4028
4029 * configure.tgt: targ_emul=hppalinux for hppa*linux
4030
4031 * emulparams/hppalinux.sh: New.
4032 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4033
227aeb07
AM
40342000-07-08 Alan Modra <alan@linuxcare.com.au>
4035
4036 * lexsup.c (parse_args): Copy section name.
4037
28609fd4 40382000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 4039
2ef53d66 4040 * emultempl/pe.em: institute the following search order for
602e90d3
DD
4041 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4042 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4043 static lib (libfoo.a) if none of the above are found.
4044
5f577f7d
DD
40452000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4046
50bbae35 4047 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 4048 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 4049 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
4050 (gld_${EMULATION_NAME}_parse): Handle.
4051 (strhash): New static function.
50bbae35 4052 (compute_dll_image_base): New static function.
5f577f7d
DD
4053 (gld_${EMULATION_NAME}_set_symbols): Use.
4054
9a8cbb09 40552000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
4056
4057 * MAINTAINERS: new
4058
3548145d 40592000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
4060
4061 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4062 * emulparams/elf32btsmip.sh: New file.
4063 * Makefile.am: Add traditional mips target.
4064 * Makefile.in: Rebuild.
4065
67798033
L
40662000-07-01 H.J. Lu <hjl@gnu.org>
4067
4068 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4069 automake to use YLWRAP.
4070 * Makefile.in: Rebuild.
4071
0bdaf48b
AM
40722000-07-01 Alan Modra <alan@linuxcare.com.au>
4073
4074 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4075 (CLEANFILES): Add DEPA.
4076 * Makefile.in: Regenerate.
4077
c9e769c2
TW
40782000-06-30 Timothy Wall <twall@ppc>
4079
4080 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4081 the page in the upper octet of the address.
4082
65aa24b6
NC
40832000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4084
4085 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4086
4667035e
AM
40872000-06-24 Alan Modra <alan@linuxcare.com.au>
4088
4089 * NEWS: arm-elf does --gc-sections too.
4090
1581f8c9
AM
40912000-06-22 Alan Modra <alan@linuxcare.com.au>
4092
4093 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4094 find one.
4095 * Makefile.in: Regenerate.
4096
01580992
L
40972000-06-21 H.J. Lu <hjl@gnu.org>
4098
4099 * Makefile.am: Rebuild dependency.
4100 * Makefile.in: Rebuild.
4101
bbeb2e03
L
41022000-06-20 H.J. Lu <hjl@gnu.org>
4103
4104 * Makefile.am: Rebuild dependency.
4105 * Makefile.in: Rebuild.
4106
74459f0e
TW
41072000-06-20 Timothy Wall <twall@cygnus.com>
4108
4109 * scripttempl/tic54xcoff.sc: New.
4110 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4111 * gen-doc.texi: Add flag for TI COFF.
4112 * ld.texinfo: Add documentation for TI COFF handling switches.
4113 * emultempl/ticoff.em: New. TI COFF handling.
4114 * configure.tgt: Add tic54x target.
4115 * Makefile.am: Add tic54x target.
4116 * Makefile.in: Ditto.
4117
2ab47eed
AM
41182000-06-20 Alan Modra <alan@linuxcare.com.au>
4119
4120 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4121 checking for backslashes.
4122
919e4093
AM
41232000-06-19 Alan Modra <alan@linuxcare.com.au>
4124
4125 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4126
987fd5b4
AM
41272000-06-18 Alan Modra <alan@linuxcare.com.au>
4128
4129 * NEWS: Update list of targets supporting --gc-sections.
4130
4131 * scripttempl/elf.sc: KEEP .eh_frame contents.
4132 * scripttempl/elfd30v.sc: Same here.
4133
60bcf0fa
NC
41342000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4135
4136 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4137 and m68hc11 (elf).
4138 * Makefile.in: Rebuild.
4139 * configure.tgt: Recognize m68hc12 and m68hc11.
4140 * scripttempl/elfm68hc12.sc: New file.
4141 * emulparams/m68hc12elfb: New emulation.
4142 * emulparams/m68hc12elf: New emulation.
4143 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4144 (includes a memory.x script to define the ROM and RAM banks).
4145 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4146 New configuration files for support of Motorola 68hc11
4147
c7c54483
AM
41482000-06-15 Alan Modra <alan@linuxcare.com.au>
4149
4150 * ldmain.c (main): Only change SEC_READONLY for final link.
4151
bcef29e6
L
41522000-06-13 H.J. Lu <hjl@gnu.org>
4153
4154 * configure: Regenerate.
4155
946efd95
DB
41562000-06-08 David O'Brien <obrien@FreeBSD.org>
4157
4158 * configure.in (VERSION): Update to show this is the CVS mainline.
4159
57a6fd07
DB
41602000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4161
4162 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4163 input objects to be ECOFF.
4164 (check_sections): einfo takes %B, not %P, to print a BFD name.
4165
e06cae36
L
41662000-06-05 Michael Matz <matz@ifh.de>
4167
4168 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 4169 version scripts.
e06cae36 4170
d952f17a 4171 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 4172
2f0b56c0
DC
41732000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4174
4175 * emulparams/avr1200.sh (STACK): Define as 0.
4176 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4177 * emulparams/avr4433.sh (STACK): Likewise.
4178 * emulparams/avr44x4.sh (STACK): Likewise.
4179 * emulparams/avr85xx.sh (STACK): Likewise.
4180 * emulparams/avrmega103.sh (STACK): Likewise.
4181 * emulparams/avrmega161.sh (STACK): Likewise.
4182 * emulparams/avrmega603.sh (STACK): Likewise.
4183 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4184 (__stack): Define from ${STACK} for main().
4185
2114f57b
AM
41862000-05-26 Alan Modra <alan@linuxcare.com.au>
4187
4188 * Makefile.am: Update dependencies with "make dep-am"
4189 * Makefile.in: Regenerate.
4190
5af11cab
AM
41912000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4192
4193 * ldmain.c: Include filenames.h.
4194 (set_scripts_dir): Support backslashes in program name.
4195
1f0df59a
NC
41962000-05-22 Igor Shevlyakov <igor@windriver.com>
4197
4198 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
4199 read-only, don't forget to reset SEC_READONLY because it
4200 could be already set.
1f0df59a 4201
176355da
NC
42022000-05-22 Thomas de Lellis <tdel@windriver.com>
4203
50bbae35
AM
4204 * ld.1: Add documentation for new command line option:
4205 --section-start <sectionname>=<sectionorg>
4206 This is a generic version of -Ttext etc. which accepts
4207 any section name as a parameter instead of just text/data/
4208 bss.
4209 * ld.texinfo: More docs.
4210 * NEWS: More docs.
4211 * lexsup.c: (parse_args): Recognize new command line option.
176355da 4212 (ld_options): Add new option.
50bbae35 4213
8c5ff972
L
42142000-05-18 H.J. Lu <hjl@gnu.org>
4215
4216 * lexsup.c (parse_args): `i' == `r', not `q'.
4217
3b16e843 42182000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
4219
4220 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4221
a712da20
NC
42222000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4223 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 4224
a712da20
NC
4225 Add support for '-q' == '--emit-relocs' switch.
4226 * ldmain.c (main): Default to false.
4227 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4228 * NEWS: Describe the emitrelocations switch.
4229 * ld.texinfo: Describe the emitrelocations switch.
4230
690a460e
NC
42312000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4232
a2b64bed 4233 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
4234 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4235 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4236 link options.
50bbae35 4237
c2f1343c
AM
42382000-05-15 David O'Brien <obrien@FreeBSD.org>
4239
4240 * lexsup.c (parse_args): Update the year in the copyright notice.
4241
897083bd
AM
42422000-05-13 Alan Modra <alan@linuxcare.com.au>
4243
4244 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4245 Replace defines with those from intl/libgettext.h to quieten gcc
4246 warnings.
4247
cd4c806a
L
42482000-05-10 H.J. Lu <hjl@gnu.org>
4249
4250 * ldlang.c (open_input_bfds): Don't load the same file within
4251 a group again if the whole archive has been loaded already.
4252
93697284
AM
42532000-05-03 Alan Modra <alan@linuxcare.com.au>
4254
4255 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4256 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4257 strtoul.
4258
3b16e843 42592000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 4260
99a4150f 4261 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 4262
ebd6fc29
JW
4263 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4264 host "ia64-*-linux-gnu*".
4265
a1934524
AM
42662000-04-29 Andreas Jaeger <aj@suse.de>
4267
4268 * ld.h: Correctly check GCC version.
4269
3b16e843 42702000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
4271
4272 * Makefile.am: Add PA64 support. Add missing dependencies for
4273 PA32 elf support.
4274 * Makefile.in: Rebuilt.
4275 * configure.tgt: Add PA64 support (currently disabled).
4276
aea4bd9d
AM
42772000-04-25 Alan Modra <alan@linuxcare.com.au>
4278
4279 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4280 (output_rel_find): New function.
4281 (hold_section, hold_use): Delete.
4282 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4283 hold_interp): Make local to place_orphan.
4284 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4285 rather than place_section to find possible previous use of orphan.
4286 Similarly find the place-holder output sections. Use returned
4287 value from lang_enter_output_section_statement rather than calling
4288 lang_output_section_statement_lookup.
4289 * emultempl/armelf.em: Same here.
4290 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4291
4292 * ldlang.c (lang_enter_output_section_statement): Return output
4293 section statement.
4294 * ldlang.h (lang_enter_output_section_statement): Change
4295 declaration too.
4296
4297 * ldlang.h (lang_output_section_statement): Export it.
4298 * ldlang.c (lang_output_section_statement): Ditto.
4299
2b5fc1f5
NC
43002000-04-24 Nick Clifton <nickc@cygnus.com>
4301
4302 * ld.texinfo (Output Section Data): Add note that section data
4303 commands cannot appear outside of section directives.
4304
d8475ff6
JL
43052000-04-2 Matthew Green <mrg@cygnus.com>
4306
4307 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4308
3b16e843
NC
43092000-04-21 Richard Henderson <rth@cygnus.com>
4310 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
4311
4312 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4313 (eelf64_ia64.c): New rule.
4314 * Makefile.in: Rebuild.
4315 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4316 * emulparams/elf64_ia64.sh: New file.
50bbae35 4317
c9637625
RH
43182000-04-21 Richard Henderson <rth@cygnus.com>
4319
4320 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4321
28ea9521
AM
43222000-04-19 Alan Modra <alan@linuxcare.com.au>
4323
4324 * dep-in.sed: Match space at start of file name, not at end.
4325
20d04697
L
43262000-04-18 H.J. Lu <hjl@gnu.org>
4327
4328 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4329 lang_leave_output_section_statement () after calling
4330 lang_enter_output_section_statement ().
4331 * emultempl/armelf.em: Likewise.
4332
5ba47421
AM
43332000-04-18 Alan Modra <alan@linuxcare.com.au>
4334
4335 * emultempl/elf32.em (struct orphan_save): Add section field.
4336 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4337 better order, and place first orphan section as we did before the
4338 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4339 Don't call make_bfd_section here, let wild_doit do the job for us.
4340 Don't build a statement list when we'll only throw it away.
4341 * emultempl/armelf.em: Ditto.
4342 * emultempl/pe.em: Similarly.
4343
bdbe5705
GK
43442000-04-14 Geoff Keating <geoffk@cygnus.com>
4345
4346 * scripttempl/elfppc.sc: Remove.
4347 * emulparams/elf32ppc.sh: Use elf.sc.
4348 * emulparams/elf32lppc.sh: Use elf.sc.
4349 * emulparams/elf32ppclinux.sh: Use elf.sc.
4350 * emulparams/elf32ppcsim.sh: New file.
4351 * emulparams/elf32lppcsim.sh: New file.
4352 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4353 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4354 * Makefile.in: Regenerate.
4355 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4356
01cc8ff8
AM
43572000-04-14 Alan Modra <alan@linuxcare.com.au>
4358
5ba47421 4359 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 4360 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
4361 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4362 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
4363 Also set all relocateable section start addresses.
4364
6c86c541
GK
43652000-04-13 Geoff Keating <geoffk@cygnus.com>
4366
4367 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4368 Add new BSS_PLT variable for when .plt need not be contained in
4369 the file. Move _etext so that it is also after .fini, and provide
4370 both etext and _etext with a leading underscore. Mark the start
4371 and end of .sbss.
4372
6a345e87
AM
43732000-04-12 Alan Modra <alan@linuxcare.com.au>
4374
4375 * emultempl/elf32.em (struct orphan_save): New.
4376 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4377 hold_interp): Make them struct orphan_save.
4378 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4379 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4380 the end of the relevant section list. Also add associated section
4381 statements to the end of any previous orphan statements.
4382 * emultempl/armelf.em: Similarly.
4383 * emultempl/pe.em: Similarly.
4384
8be86746
AM
43852000-04-11 Alan Modra <alan@linuxcare.com.au>
4386
4387 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4388
3b16e843 43892000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 4390
a2d91340 4391 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 4392 --enable-build-warnings option.
a2d91340
AC
4393 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4394 * Makefile.in, configure: Re-generate.
4395
41b49281
AM
43962000-04-04 Alan Modra <alan@linuxcare.com.au>
4397
8ad3436c
AM
4398 * po/ld.pot: Regenerate.
4399
4400 * lexsup.c (help): Restore translated part of bug string.
4401
41b49281
AM
4402 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4403 (DEP): Quote when passing vars to sub-make. Add warning message
4404 to end.
4405 (DEP1): Rewrite for "gcc -MM".
4406 (CLEANFILES): Add DEP2.
4407 Update dependencies.
4408 * Makefile.in: Regenerate.
4409
c20f4f8c
AM
44102000-04-03 Alan Modra <alan@linuxcare.com.au>
4411
4412 * ld.h: #include "bin-bugs.h"
4413 * lexsup.c (help): Use REPORT_BUGS_TO.
4414
adde6300
AM
44152000-03-27 Denis Chertykov <denisc@overta.ru>
4416
4417 * configure.tgt (avr-*-*): New target support.
4418 * Makefile.am: Likewise.
4419 * scripttempl/elf32avr.sc: New script file.
4420 * emulparams/avr1200.sh: New file.
4421 * emulparams/avr23xx.sh: New file.
4422 * emulparams/avr4433.sh New file.
4423 * emulparams/avr44x4.sh New file.
4424 * emulparams/avr85xx.sh New file.
4425 * emulparams/avrmega103.sh New file.
4426 * emulparams/avrmega161.sh New file.
4427 * emulparams/avrmega603.sh New file.
4428 * Makefile.in: Regenerate.
4429
9282ff41
L
44302000-03-09 Andreas Jaeger <aj@suse.de>
4431
4432 * Makefile.am (check-DEJAGNU): Also unset LANG.
4433 * Makefile.in: Rebuild.
4434
a9998805
ILT
44352000-03-06 Ian Lance Taylor <ian@zembu.com>
4436
4437 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4438 archive.
4439
f9bc20e7
NC
44402000-03-02 H.J. Lu <hjl@gnu.org>
4441
4442 * emulparams/elf32mcore.sh: Include "getopt.h".
4443
4e277b38
ILT
44442000-03-01 Ian Lance Taylor <ian@zembu.com>
4445
4446 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4447
f0c87f88
NC
44482000-03-01 H.J. Lu <hjl@gnu.org>
4449
4450 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4451 * emulparams/shpe.sh: Likewise.
4452
44532000-03-01 Nick Clifton <nickc@cygnus.com>
4454
4455 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4456 to unused parameters.
4457
4458 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4459 functions only used by DLL code.
4460 (_place_orphan): Initialise 'dollar'.
4461
b6f29aaa
L
44622000-03-01 H.J. Lu <hjl@gnu.org>
4463
4464 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4465 indicate if the undefined symbol is a fatal error or not.
4466 Don't delete the output file if "fatal" is false.
4467
af28fce3
L
44682000-02-29 H.J. Lu <hjl@gnu.org>
4469
50bbae35 4470 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
4471 Set LC_COLLATE and LC_ALL to null and export them. It is for
4472 sort which expects the C locale.
4473 Add $(LIBS) to all $(HOSTING_LIBS).
4474 * Makefile.in: Rebuild.
4475
40d109bf
AM
44762000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4477
4478 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4479 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4480 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4481 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4482 find_potential_libraries.
4483
db5be682
JB
44842000-02-28 Jim Blandy <jimb@redhat.com>
4485
4486 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 4487 list entries; the lexer considers commas to be valid part of a
db5be682
JB
4488 filename, so in something like `foo, bar' the comma is considered
4489 part of the first filename, `foo,'.
4490 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4491
3558ff4c
ILT
44922000-02-27 Loren J. Rittle <ljrittle@acm.org>
4493
4494 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4495 host "i[3456]86-*-freebsdelf*".
4496
4eee2681
ILT
44972000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4498
4499 * scripttempl/i386go32.sc: Move misplaced semicolons.
4500
8d75d12d
ILT
45012000-02-25 Ian Lance Taylor <ian@zembu.com>
4502
4503 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4504 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4505 (eelf64hppa.c, ehppaelf.c): Remove targets.
4506 * Makefile.in: Rebuild.
4507
a1836d49
AO
45082000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4509
ad51fb57
AO
4510 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4511 GNU/Linux/sparc, but keep the default as 32.
4512
a1836d49
AO
4513 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4514 it default if sparcv9 or sparc64.
4515
344a211f
NC
45162000-02-24 Nick Clifton <nickc@cygnus.com>
4517
4518 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4519 * Makefile.in: Regenerate.
4520 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4521
4522 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4523 find_potential_libraries.
4524 * ldemul.c (ldemul_find_potential_libraries): New function.
4525
4526 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 4527 exported.
344a211f
NC
4528 (ldfile_open_file): Call ldemul_find_potential_libraries.
4529 * ldfile.h: Add prototype for ldfile_open_file_search.
4530
4531 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4532
4533 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4534 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4535
4536 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4537 (gld_X_find_potential_libraries): New function. Search for
4538 libraries called "*.lib".
4539
a2b64bed 4540 * scripttempl/pe.sc: Add .pdata section.
344a211f 4541
eaba1dd3
RH
45422000-02-23 Richard Henderson <rth@cygnus.com>
4543
4544 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4545 Add and use memory regions.
4546
5b93d8bb
AM
45472000-02-23 Linas Vepstas (linas@linas.org)
4548
4549 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4550
4551 * Makefile.am: Add support for Linux/IBM 370.
4552 * configure.tgt: Likewise.
4553
4554 * Makefile.in: Regenerate.
4555
f6af82bd
AM
45562000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4557
4558 * ldlang.c (print_input_section, print_data_statement,
4559 print_reloc_statement, print_padding_statement, insert_pad,
4560 size_input_section, lang_check_section_addresses,
4561 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 4562 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
4563 (lang_do_assignments): Also change `size' to unsigned.
4564
9e673ad1
RH
45652000-02-16 Richard Henderson <rth@cygnus.com>
4566
4567 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4568
562d3460
TW
45692000-02-16 Timothy Wall <twall@cygnus.com>
4570
4571 * mri.c (mri_draw_tree): Add default LMA region argument to call
4572 to lang_leave_output_section_statement.
4573 * ldlang.h: Update prototypes with LMA region arguments.
4574 * ldlang.c (lang_size_sections): Encapsulate region bounds
4575 checking in os_check_region call.
4576 (os_check_region): New function.
4577 (lang_output_section_statement_lookup): Initialize lma_region.
4578 (lang_leave_output_section_statement): Add LMA region argument.
4579 (lang_leave_overlay): Ditto.
4580 * ldgram.y: Handle LMA region syntax.
4581 * ld.texinfo (Output Section Description): Describe LMA region usage.
4582 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 4583 lma region in call to lang_leave_output_section_statement.
562d3460 4584 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 4585 lma region in call to lang_leave_output_section_statement.
562d3460 4586 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 4587 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
4588
4589
9e4ed18c
TW
45902000-02-04 Timothy Wall <twall@redhat.com>
4591
4592 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4593 octets when calculating section end addresses.
4594
32edc927
TW
45952000-02-04 Timothy Wall <twall@redhat.com>
4596
4597 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4598
4cbfc3ac
TW
45992000-02-03 Timothy Wall <twall@redhat.com>
4600
a2b64bed 4601 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 4602 octet count.
a2b64bed 4603 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
4604 print_reloc_statement, print_padding_statement): Print target
4605 address values and section sizes as bytes, not octets.
4606 (insert_pad) Calculate padding size in octets, and adjust "dot"
4607 by bytes.
4608 (size_input_section) Always adjust "dot" by bytes, not octets.
4609 (lang_check_section_addresses, lang_do_assignments) Adjust
4610 "dot" by bytes, not octets. Use the larger of the directive size
4611 or octets_per_byte for the number of octets actually allocated in
4612 the output section.
4613 (lang_set_startof) Make sure STARTOF returns a target address.
4614 (lang_one_common) Record size changes in octets.
4615 (lang_abs_symbol_at_end_of) Section end symbol's value is
4616 recorded in target bytes.
68b2fc7a 4617 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4cbfc3ac 4618 to be clear about behavior when an octet is smaller than one byte.
50bbae35 4619
305c7206
AM
46202000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4621
4622 * ldcref.c (output_cref): Don't pass message strings to printf
4623 as format arg.
4624 Update copyright.
4625
4626 * ldmisc.c (vfinfo): Same here.
4627 Update copyright.
4628
e1c47aa4
AM
46292000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4630
4631 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4632 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4633 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4634 Add missing NULL initialisers, and comments.
4635
4636 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4637
13392b77
NC
46382000-01-21 Nick Clifton <nickc@cygnus.com>
4639
4640 * ldlang.c (lang_size_sections): Fix typo in comment.
4641
cce4c4c5
NC
46422000-01-18 H.J. Lu <hjl@gnu.org>
4643
4644 * ldlang.c (lang_size_sections): Also update the current
4645 address of a region if the SEC_NEVER_LOAD bit is not set.
4646
0decc840
NC
46472000-01-10 Philip Blundell <pb@futuretv.com>
4648
4649 * configure.tgt (arm*-*-conix*): New target.
4650
4e53152f
NC
46512000-01-07 Nick Clifton <nickc@cygnus.com>
4652
4653 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
4654 line switches with -Wl, (or whatever is appropriate) if it is
4655 being invoked by a comnpiler driver program.
50bbae35 4656 Fix description of the behaviour of the -n command line switch.
4e53152f 4657
3b16e843 46582000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
4659
4660 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4661 (name_list): New.
4662 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4663 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4664 (exclude_name_list): New.
4665 ldlang.c (walk_wild_section): Support list of excluded files.
4666 (print_wild_statement): Likewise.
4667 (lang_add_wild): Likewise.
4668 * ldlang.h (lang_wild_statement_type): Likewise.
4669 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 4670
5aaace27
NC
46712000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4672
870df5dc
NC
4673 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4674 (process_def_file): Use.
4675 (pe_dll_compat_implib): New variable.
4676 (make_one): Use.
50bbae35 4677
870df5dc
NC
4678 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4679 pe_dll_compat_implib.
50bbae35
AM
4680
4681 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
4682 compat-implib options.
4683 (gld_${EMULATION_NAME}_list_options): List new options.
4684 (gld_${EMULATION_NAME}_parse_args): Handle.
4685
50bbae35 4686 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 4687 dll.
50bbae35
AM
4688
4689 * deffilep.y (opt_name): Allow "." in name.
5aaace27 4690
2f6d2f85 4691For older changes see ChangeLog-9899
252b5132
RH
4692\f
4693Local Variables:
4694mode: change-log
4695left-margin: 8
4696fill-column: 74
4697version-control: never
4698End:
This page took 0.406736 seconds and 4 git commands to generate.