* elf.c (elf_fake_sections): Fix up .tbss sh_size and sh_type.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
704afa60
JJ
12002-07-30 Jakub Jelinek <jakub@redhat.com>
2
3 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
4 for relocatable link.
5 (lang_size_sections_1): Don't make .tbss zero size for relocatable
6 link.
7
7dcd22c2
BS
82002-07-26 Bernd Schmidt <bernds@redhat.com>
9
10 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
11 (STACK_ADDR): New.
12
219576a4
NC
132002-07-25 Nick Clifton <nickc@redhat.com>
14
15 * po/sv.po: Updated Swedish translation.
16 * po/es.po: Updated Spanish translation.
17 * po/fr.po: Updated French translation.
18
ff3063f5
NC
192002-07-24 Nick Clifton <nickc@redhat.com>
20
21 * po/sv.po: Updated Swedish translation.
22 * po/es.po: Updated Spanish translation.
23
0461a601
NC
242002-07-23 Nick Clifton <nickc@redhat.com>
25
ff3063f5 26 * po/fr.po: Updated French translation.
0461a601 27
25844aae
AM
282002-07-20 Alan Modra <amodra@bigpond.net.au>
29
30 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
31 bomb on /DISCARD/ input section.
32 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
33 * emultempl/mmo.em (mmo_place_orphan): Likewise.
34
3595bd6e
HPN
352002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
36
37 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
38 output section.
39
cf88bb9f
NC
402002-07-16 Denis Chertykov <denisc@overta.ru>
41 Nick Clifton <nickc@redhat.com>
42 Frank Ch. Eigler <fche@redhat.com>
43 John Healy <jhealy@redhat.com>
44
45 * configure.tgt: Add support for ip2k-elf.
46 * Makefile.am: Add support for ip2k-elf.
47 * Makefile.in: Regenerate.
48 * emulparams/elf32ip2k.sh: New file.
49 * scripttempl/ip2k.sc: New file
50 * NEWS: Mention support for new port.
51
2cbb2eef
NC
522002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
53
54 * NEWS: Add 'Changes in 2.13'.
55
96a94295
L
562002-07-14 H.J. Lu <hjl@gnu.org>
57
58 * ld.texinfo: Document a .symver takes precedence over a
59 version script.
60
120d20f2
AM
612002-07-12 Alan Modra <amodra@bigpond.net.au>
62
63 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
64 (COMMONPAGESIZE): Define.
65
0d2ddeb2
AM
662002-07-09 Alan Modra <amodra@bigpond.net.au>
67
68 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
69
554690ed
AM
702002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
71
72 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
73 powerpc-*-openbsd* and sparc64-*-openbsd*.
74 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
75 * Makefile.in: Regenerate.
76 * emulparams/hppaobsd.sh: New file.
77
34786259
AM
782002-07-05 Alan Modra <amodra@bigpond.net.au>
79
80 * ldlang.c (print_wild_statement): Fix output formatting.
81
4bd5a393
AM
822002-07-04 Alan Modra <amodra@bigpond.net.au>
83
84 * ldlang.c: (strip_excluded_output_sections): New function.
85 (lang_process): Call it.
86 (lang_size_sections_1): Revert 2002-06-10 change.
87
ce4f7385
AM
882002-07-03 Alan Modra <amodra@bigpond.net.au>
89
90 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
91 Run "make dep-am".
92 * Makefile.in: Regenerate.
93
b7b482a3
AM
942002-07-02 Alan Modra <amodra@bigpond.net.au>
95
71daf8b4
AM
96 * ldfile.c (ldfile_try_open_bfd): Formatting.
97
b7b482a3
AM
98 * ldmisc.c (demangle): Move so that it doesn't intrude between
99 vfinfo comment and body. Add comment.
100
29e2951e
AM
1012002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
102
103 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
104
e3e942e9
AM
1052002-07-01 Alan Modra <amodra@bigpond.net.au>
106
107 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
108 * ldlang.c (entry_sym): Likewise.
109 (ldlang_undef_chain_list_type): Likewise.
110 (lang_finish): Adjust references to entry_symbol.
111 (lang_add_entry): Likewise.
112 (lang_gc_sections): Use link_info.gc_sym_list.
113 (lang_process): Set link_info.gc_sym_list.
114 * ldlex.l: Include bfdlink.h.
115 * ldmain.c (main): Init link_info.gc_sym_list.
116 * emultempl/aix.em: Adjust references to entry_symbol.
117 * emultempl/armcoff.em: Likewise.
118 * emultempl/armelf.em: Likewise.
119 * emultempl/pe.em: Likewise.
120 * emultempl/ppc64elf.em (ppc_after_open): New function.
121 (LDEMUL_AFTER_OPEN): Define.
122 * emulparams/elf64ppc.sh: KEEP .opd sections.
123
a66c0f2c
SC
1242002-06-29 Stephane Carrez <stcarrez@nerim.fr>
125
126 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
127 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
128 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
129 (EEPROM_START_ADDR): Define.
130 (EEPROM_MEMORY): Define.
131 * emulparams/m68hc12elf.sh: Likewise.
132 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
133 section to put soft registers in .page0.
134 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
135
2b67cf00
JL
1362002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
137
138 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
139 section. Add ${RELOCATING-0}.
140
219576a4 1412002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
164c4054
JR
142
143 * emulparams/shelf.sh (STACK_ADDR): Don't define.
144 (OTHER_SECTIONS): Define.
145 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
146 (OTHER_SECTIONS): Undef.
147
fc28fbc2
AM
1482002-06-26 Alan Modra <amodra@bigpond.net.au>
149
150 * ldmisc.c (demangle): Restore dots stripped from sym name.
151
a13a0de8
L
1522002-06-25 H.J. Lu <hjl@gnu.org>
153
154 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
155 * Makefile.in: Regenerated.
156
b553b183
NC
1572002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
158
159 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
160 the size of attached object files, to allow make the object files
161 available via FTP or HTTP and to mention that the mail will be
162 sent to a mailing list.
163
2755afba
NC
1642002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
165
166 * ld/configure.host (romp): Drop support.
167
7d0a848e
CD
1682002-06-18 Chris Demetriou <cgd@broadcom.com>
169
170 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
171 section flags for SEC_DATA, rather than for SEC_CODE being unset.
172
8505f884
CD
1732002-06-18 Chris Demetriou <cgd@broadcom.com>
174
175 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
176 format specifier used to print BFD name.
177
7d553a40
DB
1782002-06-18 Dave Brolley <brolley@redhat.com>
179
180 From Catherine Moore, Michael Meissner, Jim Blandy:
181 * emulparams/elf32frv.sh: New file.
182 * configure.tgt: Support frv-*-*.
183 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
184 (eelf32frv.c): New target.
185
82434356
TR
1862002-06-17 Tom Rix <trix@redhat.com>
187
a59f3d35 188 * emultempl/elf32.em: gld*_get_script: Check for
82434356
TR
189 GENERATE_COMBRELOC_SCRIPT.
190 * scripttempl/elfd10v.sc : Fix STACK and INSN.
191 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
192
219576a4 1932002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
5d9b5481
JR
194
195 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
196
c4bb8067
L
1972002-06-12 H.J. Lu <hjl@gnu.org>
198
199 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
200 false if xvec doesn't match.
201
e052cfbe
RS
2022002-06-10 Richard Sandiford <rsandifo@redhat.com>
203
204 * ldlang.c (lang_size_sections_1): Skip removed output sections.
205
4da711b1
AM
2062002-06-08 Alan Modra <amodra@bigpond.net.au>
207
208 * ldexp.c: Replace CONST with const.
209 * ldfile.c: Likewise.
210 * ldfile.h: Likewise.
211 * ldlex.l: Likewise.
212 * mri.c: Likewise.
213 * pe-dll.h: Likewise.
214
eb95bb9a
AM
2152002-06-07 Alan Modra <amodra@bigpond.net.au>
216
217 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
218
e0076ab3
NC
2192002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
220
221 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
222 to -1 == implicit enable.
223 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
224 initialize link_info.pei386_auto_import to -1 == implicit
225 enable.
226 (gld_${EMULATION_NAME}_parse_args): When processing
227 --enable-auto-import and --disable-auto-import options, use
228 '1' and '0' instead of 'true' and 'false'.
229 (pe_find_data_imports): Only issue message about auto-import
230 when the feature is implicitly enabled. Downgrade message to
231 informational instead of warning.
232
f13a5424
AM
2332002-06-07 Alan Modra <amodra@bigpond.net.au>
234
235 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
236
1abffd82
JL
2372002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
238
239 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
240 HOSTING_CRT0 and HOSTING_LIBS.
241
e0076ab3 2422002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
243
244 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
245
4a5e698d
JT
2462002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
247
248 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
249 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
250
1d475d82
AM
2512002-06-05 Alan Modra <amodra@bigpond.net.au>
252
253 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
254 SEC_EXCLUDE sections when doing a relocatable link.
255
5b0e55b6
JT
2562002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
257
258 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
259 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
260 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
261 (eshlelf64_nbsd.c): New rules.
262 * Makefile.in: Regenerate.
263 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
264 (sh64-*-netbsd*): New targets.
265 * emulparams/shelf32_nbsd.sh: New file.
266 * emulparams/shelf64_nbsd.sh: New file.
267 * emulparams/shlelf32_nbsd.sh: New file.
268 * emulparams/shlelf64_nbsd.sh: New file.
269
9ad85d9b
AM
2702002-06-04 Alan Modra <amodra@bigpond.net.au>
271
272 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
273
0c9b4fee
MM
2742002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
275
276 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
277 C++ constructors/destructors, loosely based on the m68hc11 port.
278
2c538bde
AM
2792002-05-31 Alan Modra <amodra@bigpond.net.au>
280
281 * Makefile.in: Regenerate.
282 * aclocal.m4: Regenerate.
283 * config.in: Regenerate.
284 * configure: Regenerate.
285
a0cb91c6
AM
2862002-05-31 Graeme Peterson <gp@qnx.com>
287
288 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
289 (ei386nto.c): Add rule.
290 * Makefile.in: Regenerate.
291 * configure.tgt: Add i[3456]86-*-nto-qnx*.
292 * emulparams/i386nto.sh: New file.
293
37020578
JT
2942002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
295
296 * NEWS: Add entry for VAX ELF support.
297
ab68f3e0 2982002-05-29 Matt Thomas <matt@3am-software.com>
a59f3d35 299 Jason Thorpe <thorpej@wasabisystems.com>
ab68f3e0
JT
300
301 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
302 (eelf32vax.c)
303 (evaxnbsd.c): New rules.
304 * Makefile.in: Regenerate.
305 * configure.tgt (vax-*-netbsdelf*)
306 (vax-*-netbsdaout*)
307 (vax-*-netbsd*): New targets.
308 * emulparams/elf32vax.sh: New file.
309 * emulparams/vaxnbsd.sh: New file.
310
8afb0e02
NC
3112002-05-29 Adam Nemet <anemet@lnxw.com>
312
313 * emultempl/armelf.em (arm_elf_after_open): Don't determine
314 bfd_for_interwork, instead add glue sections to each input bfd.
315 (bfd_for_interwork): New global.
316 (arm_elf_set_bfd_for_interworking): New function.
317 (arm_elf_before_allocation): Use it.
318
d172d4ba
NC
3192002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
320
321 * Makefile.am: Add DLX make target.
322 * configure.tgt: Add DLX configuration.
323 * Makefile.in: Regenerate.
324 * emulparams/elf32_dlx.sh: New file
325 * scripttempl/dlx.sc: New file
326
b4477fa8
NC
3272002-05-27 Per Lundberg <per@caleb.dnsalias.org>
328
329 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
330 * Makefile.in: Regenerate.
331 * emulparams/elf_chaos.sh: Use elf_chaos script.
332 * scripttempl/elf_chaos.sc: New file.
333
ee3cc2e2
RS
3342002-05-27 Richard Sandiford <rsandifo@redhat.com>
335
336 * ldlang.c (lang_size_sections_1): Move check for conflicting load
337 addresses and regions from here...
338 (lang_get_regions): ...to this new function.
339 (lang_leave_output_section_statement): Use lang_get_regions.
340 (lang_leave_overlay): Likewise.
341 * mri.c (mri_draw_tree): Pass null as last argument to
342 lang_leave_output_section_statement.
343 * emultempl/elf32.em (gld*_place_orphan): Likewise.
344 * emultempl/mmo.em (mmo_place_orphan): Likewise.
345 * emultempl/pe.em (gld*_place_orphan): Likewise.
346
aa501e5c
JT
3472002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
348
349 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
350
658957db
KH
3512002-05-25 Kazu Hirata <kazu@cs.umass.edu>
352
353 * ldemul.c: Fix formatting.
354 * ldfile.c: Likewise.
355 * pe-dll.c: Likewise.
356 * pe-dll.h: Likewise.
357
3511b595
AM
3582002-05-25 Alan Modra <amodra@bigpond.net.au>
359
0d6d936f
AM
360 * ldlang.c (lang_process): Formatting, grammar.
361
3511b595
AM
362 * ldlex.l: Use #include "" instead of <> for local header files.
363
436e8db0
NC
3642002-05-24 TAMURA Kent <kent@netbsd.org>
365
366 * configure.tgt: Add a target for i386-netbsdpe.
367
13ae64f3
JJ
3682002-05-23 Jakub Jelinek <jakub@redhat.com>
369
370 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
371 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
372 output section if necessary. Handle .tbss.
373 (lang_size_sections): Clear _raw_size for .tbss section
374 (it allocates space in PT_TLS segment only).
375 * ldwrite.c (build_link_order): Build link order for .tbss too.
376
68b2fc7a
AM
3772002-05-23 Alan Modra <amodra@bigpond.net.au>
378
379 * configure.in: Correct spelling of AC_PREREQ.
380
70b0be79
CF
3812002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
382
383 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
384 default.
385 (autofilter_objlist): Add crtbegin.o, crtend.o.
386
3872002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
388
389 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
390 (longopts): Add new option --exclude-libs.
391 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
392 (gld_${EMULATION_NAME}_parse_args): Use it.
393 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
394 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
395 from whole archives.
396 (pe_dll_add_excludes): Set excludes->type.
397 (auto_export): Add new variable libname and set to archive basename if
398 abfd. Use it when filtering default and user-specified libarary
399 excludes. Let string "ALL" mean all libs when filtering user-specified
400 libs.
401 * ld.texinfo: Document --exclude-libs.
402
fac1652d
AM
4032002-05-22 Alan Modra <amodra@bigpond.net.au>
404
405 * ldemul.c (ldemul_new_vers_pattern): New function.
406 * ldemul.h (ldemul_new_vers_pattern): Declare.
407 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
408 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
409 * emultempl/ppc64elf.em (dotsyms): New static var.
410 (gld${EMULATION_NAME}_new_vers_pattern): New function.
411 (LDEMUL_NEW_VERS_PATTERN): Define.
412 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
413 (PARSE_AND_LIST_LONGOPTS): Likewise.
414 (PARSE_AND_LIST_ARGS_CASES): Handle them.
415 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
416 initialiser.
417 * emultempl/armcoff.em: Likewise.
418 * emultempl/armelf_oabi.em: Likewise.
419 * emultempl/beos.em: Likewise.
420 * emultempl/elf32.em: Likewise.
421 * emultempl/generic.em: Likewise.
422 * emultempl/gld960.em: Likewise.
423 * emultempl/gld960c.em: Likewise.
424 * emultempl/linux.em: Likewise.
425 * emultempl/lnk960.em: Likewise.
426 * emultempl/m68kcoff.em: Likewise.
427 * emultempl/mipsecoff.em: Likewise.
428 * emultempl/pe.em: Likewise.
429 * emultempl/sunos.em: Likewise.
430 * emultempl/ticoff.em: Likewise.
431 * emultempl/vanilla.em: Likewise.
432
eb3d6bb8
AM
4332002-05-22 Alan Modra <amodra@bigpond.net.au>
434
435 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
436 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
437 (LIB_SEARCH_DIRS): No need to use "tr".
438 (COMPILE_IN): Only set for native targets.
439 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
440 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
441 * configure.tgt (powerpc*): Set tdir_*.
442 (powerpcle*): Correct targ_extra_emuls.
443 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
444 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
445
54f24647
AM
4462002-05-22 Alan Modra <amodra@bigpond.net.au>
447
448 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
449 calling lang_add_entry.
450
aa713662
L
4512002-05-21 H.J. Lu (hjl@gnu.org)
452
453 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
454 "-z muldefs".
455 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
456
457 * ld.texinfo: Updated for --allow-multiple-definition and
458 "-z muldefs".
459
460 * ldmain.c (main): Initialize the allow_multiple_definition
461 field to false.
462
463 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
464 (ld_options): Add --allow-multiple-definition.
465 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
466
658f2588
JT
4672002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
468
469 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
470 (earmelfb_nbsd.c): New rule.
a59f3d35 471 * Makefile.in: Regenerate.
658f2588 472 * configure.tgt (armeb-*-netbsdelf*): New target.
a59f3d35 473 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
658f2588
JT
474 (arm-*-netbsd*): Likewise.
475 * emulparams/armelfb_nbsd.sh: New file.
476
ca10c62d
TR
4772002-05-18 Tom Rix <trix@redhat.com>
478
a59f3d35 479 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
ca10c62d
TR
480 support.
481
fae1e84f
MM
4822002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
483
484 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
485 * Makefile.in: Regenerate.
486 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
487
7c8bf1e8
MM
4882002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
489
490 * emulparams/avr1.sh: New file.
491 * emulparams/avr2.sh: New file.
492 * emulparams/avr3.sh: New file.
493 * emulparams/avr4.sh: New file.
494 * emulparams/avr5.sh: New file.
495 * scripttempl/avr.sc: New file.
496
c2c01aa7
AM
4972002-05-15 Alan Modra <amodra@bigpond.net.au>
498
499 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
500 (lang_place_orphans): Abort if just_syms_flag.
501
f1f0d9ab
TR
5022002-05-10 Tom Rix <trix@redhat.com>
503
a59f3d35 504 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
f1f0d9ab
TR
505 architecture and machine information in the output bfd.
506 (gld*_before_parse): Remove old arch and machine code.
507 (choose_target): Rename to gld*_choose_target.
a59f3d35
AM
508 (rtld): Change type to int.
509 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
f1f0d9ab
TR
510 objects in XCOFF archives.
511 * ldfile.h: Update copyright date.
512
f4d73366
JJ
5132002-05-10 Jakub Jelinek <jakub@redhat.com>
514
515 * ldmain.c (main): Enable -z combreloc by default.
516
d3d8a9ee
NC
5172002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
518
519 * Makefile.am: Honour DESTDIR.
520 * Makefile.in: Regenerate.
521
9f88b410
RS
5222002-05-07 Richard Sandiford <rsandifo@redhat.com>
523
524 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
525 (lang_enter_overlay): Remove the last two parameters.
526 (lang_leave_overlay): Take them here instead.
527 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
528 (section): Pass LMA and crossref flag to lang_leave_overlay rather
529 than lang_enter_overlay.
530 * ldlang.c (lang_memory_region_lookup): Return null for null names.
531 (lang_output_section_statement_lookup): Initialize update_dot_tree.
532 (lang_size_sections_1): Evaluate it.
533 (lang_leave_output_section_statement): Rework LMA lookup.
534 (overlay_lma, overlay_nocrossrefs): Remove.
3511b595 535 (lang_enter_overlay): Remove LMA and crossref arguments.
9f88b410
RS
536 (lang_enter_overlay_section): Don't set the LMA here.
537 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
538 assignment to the last section's update_dot_tree. Unconditionally
539 use the load and run-time regions specified in the OVERLAY statement.
540 Likewise the first section's LMA. Only set the other sections' LMAs
541 when no load region is given.
542
b9a743c8
NC
5432002-05-06 Nick Clifton <nickc@redhat.com>
544
545 * po/sv.po: New translation.
546
a3d60be3
AM
5472002-05-04 Alan Modra <amodra@bigpond.net.au>
548
549 * emultempl/hppaelf.em (build_section_lists): New function.
550 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
551 and build_section_lists.
552
b7a26f91
KH
5532002-05-03 Kazu Hirata <kazu@cs.umass.edu>
554
555 * ld.h: Fix formatting.
556 * ldexp.c: Likewise.
557 * ldfile.c: Likewise.
558 * ldlang.c: Likewise.
559 * ldmain.c: Likewise.
560 * lexsup.c: Likewise.
561 * pe-dll.c: Likewise.
562
805fc799
AM
5632002-05-02 Alan Modra <amodra@bigpond.net.au>
564
565 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
566 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
567 (build_section_lists): Do output_section tests here.
568
cc7e59b2
TR
5692002-04-30 Tom Rix <trix@redhat.com>
570
571 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
572
9c1d81c1
AM
5732002-05-01 Alan Modra <amodra@bigpond.net.au>
574
575 Long branch stubs, multiple stub sections.
576 * emultempl/ppc64elf.em: Include ldctor.h.
577 (stub_file): New var.
578 (group_size): New var.
579 (ppc_create_output_section_statements): New function.
580 (struct hook_stub_info): New.
581 (hook_in_stub): New function.
582 (ppc_add_stub_section): New function.
583 (ppc_layout_sections_again): New function.
584 (build_section_lists): New function.
585 (gld${EMULATION_NAME}_finish): Rewrite.
586 (real_func): New var.
587 (ppc_for_each_input_file_wrapper): New function.
588 (ppc_lang_for_each_input_file): New function.
589 (lang_for_each_input_file): Define.
590 (PARSE_AND_LIST_PROLOGUE): Define.
591 (PARSE_AND_LIST_LONGOPTS): Define.
592 (PARSE_AND_LIST_OPTIONS): Define.
593 (PARSE_AND_LIST_ARGS_CASES): Define.
594 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
595
aa67bccf
TR
5962002-04-30 Tom Rix <trix@redhat.com>
597
a59f3d35
AM
598 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
599 -blibpath, -bnolibpath support.
600
94349e12
MM
6012002-04-30 Mark Mitchell <mark@codesourcery.com>
602
603 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
604 (eelf32ppcwindiss.c): New target.
605 * Makefile.in: Regenerated.
606 * configure.tgt: Add support for powerpc-*-windiss.
607 * emulparams/elf32ppcwindiss.sh: New file.
a59f3d35 608
7b17f854
RS
6092002-04-30 Richard Sandiford <rsandifo@redhat.com>
610
611 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
612 * ldexp.c (exp_print_token): Add "infix_p" argument.
613 (exp_print_tree): Update accordingly.
614
596dafeb
AM
6152002-04-28 Alan Modra <amodra@bigpond.net.au>
616
617 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
618 * Makefile.in: Regenerate.
619 * mpw-elfmips.c: Delete.
620 * mpw-eppcmac.c: Delete.
621 * mpw-esh.c: Delete.
622 * mpw-idtmips.c: Delete.
623
219576a4 6242002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
625
626 * emulparams/shelf32.sh (MACHINE): Now sh5.
627
944cd72c
TS
6282002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
629
630 * ldgram.y: Fix syntax warning.
631
5835c212
NC
6322002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
633
634 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
635 to prevent "-n" from being taken as an abbreviation for
636 "--no-pipeline-knowledge".
637
024531e2
AM
6382002-04-08 Alan Modra <amodra@bigpond.net.au>
639
d08a14c3
AM
640 * ldlang.c (lang_size_sections_1): Don't complain about
641 SEC_NEVER_LOAD sections having no memory region specified.
642
024531e2
AM
643 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
644
c657a1f0
MG
6452002-04-07 matthew green <mrg@redhat.com>
646
647 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
648
61bef6f1
AM
6492002-04-04 Alan Modra <amodra@bigpond.net.au>
650
651 * dep-in.sed: Cope with absolute paths.
652 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
653 Run "make dep-am".
654 * Makefile.in: Regenerate.
655
49ba2791
TS
6562002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
657
658 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
659
50e60fb5
JJ
6602002-04-03 Jakub Jelinek <jakub@redhat.com>
661
662 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
663 is smaller than maximum, round dot up to common page boundary.
664
6f12f4ca
AM
6652002-03-28 Alan Modra <amodra@bigpond.net.au>
666
667 * configure.host: Set up for generic hosts first, then tweak as
668 necessary in more specific targets.
669 (HOSTING_LIBS): Include libgcc_eh.a if found.
670
a8f1f017
AJ
6712002-03-23 Andreas Jaeger <aj@suse.de>
672
673 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
674
1d3fdf38
AM
6752002-03-21 Alan Modra <amodra@bigpond.net.au>
676
677 * Makefile.am: Run "make dep-am".
678 * Makefile.in: Regenerate.
679
79b1faa8
AM
6802002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
681
682 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
683
fcf0e35b
AM
6842002-03-20 Alan Modra <amodra@bigpond.net.au>
685
686 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
687 add the symbol to the linker hash table immediately.
688 (lang_place_undefineds): Split symbol creation out..
689 (insert_undefined): ..to here.
690
fed2999d
DB
6912002-03-18 David O'Brien <obrien@FreeBSD.org>
692
693 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
694 the contents of the buffer returned from basename function will are
695 getting overwritten while still being used.
696
219576a4
NC
6972002-03-18 Jan Hubicka <jh@suse.cz>
698 Andreas Jaeger <aj@suse.de>
699 Andreas Schwab <schwab@suse.de>
beb43bb9
JH
700
701 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
702 * elf_x86_64.sh (ARCH): Set to i386:x86-64
703 set libraries to default to lib64 paths.
704
eb1e0e80
NC
7052002-03-18 Tom Rix <trix@redhat.com>
706
707 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
708 * configure.tgt : Same.
709 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
710 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
711 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
712 emulation parameters for better -b32, -b64 support.
713 * emulparms/aixrs6.sh : Same.
714 * emulparms/ppcmacos.sh : Same.
715 * emultempl/aix.em (choose_target) : Use new emulation parameters
716 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
717 * Makefile.in : Regenerate.
718
a1c259a1
NC
7192002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
720
721 * po/fr.po: Updated version.
722
862120bd
AM
7232002-03-18 Alan Modra <amodra@bigpond.net.au>
724
725 * ldmain.c (main): Move .text readonly flag fudges from here..
726 * ldlang.c (lang_process): ..to here.
727
d35a52e2
AM
7282002-03-14 Alan Modra <amodra@bigpond.net.au>
729
730 * ldlang.c (lang_check): Remove the word size check added in last
731 change. Treat emitrelocations case as for relocatable links.
732
9ce88e60
NC
7332002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
734
735 * po/fr.po: Updated version.
736
30cba025
AM
7372002-03-13 Alan Modra <amodra@bigpond.net.au>
738
739 * ldlang.c (lang_check): Do relocatable link checks first, so that
740 warn_mismatch can't override. Check compatible and word size too.
741
84ec0e6d
DJ
7422002-03-07 Daniel Jacobowitz <drow@mvista.com>
743
744 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
745
2d13d8c5
JJ
7462002-03-05 Jakub Jelinek <jakub@redhat.com>
747
748 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
749 DATA_SEGMENT_ALIGN.
750
b5090659
L
7512002-03-04 H.J. Lu <hjl@gnu.org>
752
753 * scripttempl/elf.sc: Put .preinit_array, .init_array and
754 .fini_array in the data segment.
755
f42ce16e
AM
7562002-03-04 Alan Modra <amodra@bigpond.net.au>
757
758 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
759
de77b6ac
RH
7602002-03-01 David Mosberger <davidm@hpl.hp.com>
761
762 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
763 .init_array, and .fini_array.
764
997e08c0
AS
7652002-02-20 Andreas Schwab <schwab@suse.de>
766
767 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
768 .IA64_unwind* in a relocatable link.
769
9a66911f
NC
7702002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
771
772 * NEWS: Mark 2.12 branch.
773
d86bcc10
MS
7742002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
775
776 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
777 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
778
69f284c7
TR
7792002-02-18 Tom Rix <trix@redhat.com>
780
781 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
782 (gld*_before_allocation): Same.
a8f1f017 783 (gld*_create_output_section_statements): Generate
69f284c7
TR
784 __rtinit if run time linking. Add librtl.a to the link.
785 (gld*_read_file): Clean.
786
82bd7b59
AM
7872002-02-18 Alan Modra <amodra@bigpond.net.au>
788
789 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
790
ac3e50bf
DB
7912002-02-18 David O'Brien <obrien@FreeBSD.org>
792
6a7f963b 793 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
794 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
795 and eelf64alpha_fbsd.
6a7f963b 796 * Makefile.in: Regenerate.
ac3e50bf
DB
797 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
798 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
799 use a FreeBSD-specific emulation rather than the psABI one.
800 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
801 for all FreeBSD ELF systems.
802 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
803 emulation.
804 * emulparams/elf32ppc_fbsd.sh: Likewise.
805 * emulparams/elf64_ia64_fbsd.sh: Likewise.
806 * emulparams/elf64_sparc_fbsd.sh: Likewise.
807 * emulparams/elf64alpha_fbsd.sh: Likewise.
808 * emulparams/elf_i386_fbsd.sh: Likewise.
809 * emulparams/elf_x86_64_fbsd.sh: Likewise.
810
6ad738c5
NC
8112002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
812
813 * po/tr.po: Updated version.
814
9673c93c
AM
8152002-02-18 Alan Modra <amodra@bigpond.net.au>
816
817 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
818 (FILL): Likewise.
819
1c5e6447
HPN
8202002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
821
822 * emultempl/mmo.em (mmo_after_open): Don't call
823 _bfd_mmix_check_all_relocs when producing ELF output.
824
8bb57516
RH
8252002-02-15 Richard Henderson <rth@redhat.com>
826
de77b6ac 827 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
828 definition. Emit a unop+nop pair.
829
49fda6c8
HPN
8302002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
831
83c2d653
HPN
832 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
833 for presence of .MMIX.reg_contents.linker_allocated before early
834 exit.
835
49fda6c8
HPN
836 * NEWS: Mention support for MMIX.
837
2c382fb6
AM
8382002-02-15 Alan Modra <amodra@bigpond.net.au>
839
840 Support arbitrary length fill patterns.
a139d329
AM
841 * ld.texinfo (Output Section Fill): Describe fill expressions.
842 (FILL): Refer to the above.
2c382fb6
AM
843 * ldexp.h (etree_value_type): Add "str" field.
844 (union etree_union): Add "str" to "value" struct.
845 (exp_bigintop): Declare.
846 (exp_get_fill): Declare.
847 * ldexp.c: Include "safe-ctype.h".
848 (exp_intop): Set value.str to NULL.
849 (exp_bigintop): New function.
850 (new_rel): Pass in "str", and set new.str from it.
851 (new_rel_from_section): Set new.str to NULL.
852 (fold_name): Adjust calls to new_rel.
853 (exp_fold_tree): Likewise.
854 (exp_get_fill): New function.
855 * ldgram.y (struct big_int bigint, fill_type *fill): New.
856 (INT): Returns a "bigint". Adjust all code handling INTs.
857 (fill_opt): Returns a "fill".
858 (fill_exp): Split out of fill_opt, use for FILL.
859 * ldlang.h (struct _fill_type): New.
860 (fill_type): Move typedef to ldexp.h.
861 (lang_output_section_statement_type): "fill" is now a pointer.
862 (lang_fill_statement_type): Likewise.
863 (lang_padding_statement_type): Likewise.
864 (lang_add_fill): Now takes a "fill_type *" param.
865 (lang_leave_output_section_statement): Likewise.
866 (lang_do_assignments): Likewise.
867 (lang_size_sections): Likewise.
868 (lang_leave_overlay_section): Likewise.
869 (lang_leave_overlay): Likewise.
870 * ldlang.c: Include ldgram.h after ldexp.h.
871 (lang_output_section_statement_lookup): Adjust for fill_type change.
872 (print_fill_statement): Likewise.
873 (print_padding_statement): Likewise.
874 (insert_pad): Now takes a "fill_type *" arg.
875 (size_input_section): Likewise.
876 (lang_size_sections_1): Likewise.
877 (lang_size_sections): Likewise.
878 (lang_do_assignments): Likewise.
879 (lang_add_fill): Likewise.
880 (lang_leave_output_section_statement): Likewise.
881 (lang_leave_overlay_section): Likewise.
882 (lang_leave_overlay): Likewise.
883 Adjust all callers of the above function.
884 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
885 starting with "0X" as well as "0x". Return bigint.str for hex
886 numbers starting with "0x" or "0X", zero bigint.str otherwise.
887 Always use base 16 for numbers starting with "$".
888 * ldmain.c: Include ldgram.h after ldexp.h.
889 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
890 of bfd_fill_link_order.
891 * pe-dll.c: Adjust lang_do_assignments calls.
892 * emultempl/elf32.em: Likewise.
893 * emultempl/hppaelf.em: Likewise.
894 * emultempl/ppc64elf.em: Likewise.
895 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
896 lang_add_assignment call.
897 * emultempl/pe.em: Likewise.
898
313e35ee
AM
8992002-02-14 Phil Edwards <pme@gcc.gnu.org>
900
a139d329 901 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
902 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
903 the pattern in question is not a regexp.
904 * ldlang.c: Likewise.
905 * ldlang.h: Likewise.
906 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
907
2d20f7bf
JJ
9082002-02-12 Jakub Jelinek <jakub@redhat.com>
909
910 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
911 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
912 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
913 * ldexp.c (exp_data_seg): New variable.
914 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
915 (fold_binary): Handle DATA_SEGMENT_ALIGN.
916 (exp_fold_tree): Handle DATA_SEGMENT_END.
917 Pass allocation_done when recursing instead of hardcoding
918 lang_allocating_phase_enum.
919 * ldexp.h (exp_data_seg): New.
920 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
921 (lang_size_sections): New.
922 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
923 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
924 if COMMONPAGESIZE is defined.
925 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
926 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
927 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
928 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
929 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
930 libraries only.
931
06880219
AM
9322002-02-11 Alan Modra <amodra@bigpond.net.au>
933
934 * Makefile.in: Regenerate.
935
37b0ac0f
DJ
9362002-02-10 Daniel Jacobowitz <drow@mvista.com>
937
938 * lexsup.c: Remove strtoul declaration.
939
4e5bae56
DJ
9402002-02-10 Daniel Jacobowitz <drow@mvista.com>
941
942 * ldmain.c: Add prototype for main ().
943 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
944 * emultempl/lnk960.em (lnk960_choose_target): Function should
945 take two arguments.
946
1e281515
AM
9472002-02-10 Alan Modra <amodra@bigpond.net.au>
948
949 * ldlang.c (entry_section): New initialised variable.
950 (lang_finish): Use it.
951 * ldlang.h (entry_section): Declare.
952 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
953 entry_section to ".opd".
954
f92d92ff 9552002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
956
957 * ld.texinfo (Options): Add back in -nostdlib documentation,
958 which had been inadvertently removed.
959
74c44237
HPN
9602002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
961
962 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
963 register section vma to a sane value after emitting error. Make
964 fatal conditions cause program exit when emitting message.
965
5e37cc46
NC
9662002-02-08 Ivan Guzvinec <ivang@opencores.org>
967
968 * configure.tgt: Add or32-*-rtems target.
969
2d92cb7d
AO
9702002-02-08 Alexandre Oliva <aoliva@redhat.com>
971
972 Contribute sh64-elf.
973 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
974 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
975 in OTHER_RELOCATABLE_SECTIONS.
976 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
977 * emulparams/shelf32.sh (STACK_ADDR): Define.
978 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
979 (OTHER_SECTIONS): this. Removed stack settings.
980 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
981 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
982 2001-03-12 DJ Delorie <dj@redhat.com>
983 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
984 relaxing if any shmedia or mixed sections are found.
985 2001-03-07 DJ Delorie <dj@redhat.com>
986 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
987 einfo. Gracefully decline to output to non-elf formats.
988 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
989 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
990 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
991 * emulparams/shelf32.sh: Ditto.
992 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
993 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
994 comment.
995 2001-01-10 Ben Elliston <bje@redhat.com>
996 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
997 non-portable shell constructs. From Hans-Peter Nilsson.
998 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
999 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1000 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1001 dependencies to the shell script include chain.
1002 * Makefile.in: Regenerate.
1003 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1004 * emultempl/sh64elf.em: Update and tweak comments.
1005 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1006 make a .cranges section SEC_IN_MEMORY.
1007 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1008 * emultempl/sh64elf.em
1009 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1010 .cranges section found to be necessary; continue and set stored
1011 section contents flags for sections with non-mixed contents.
1012 Use a struct sh64_section_data container and sh64_elf_section_data
1013 to store contents-type flags.
1014 Remove unused update of "isec".
1015 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1016 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1017 access contents-type flags. Assert that the associated container
1018 is initialized. Use that container, not elf_gp_size, to hold size
1019 of linker-generated cranges contents.
1020 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1021 * emultempl/sh64elf.em
1022 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1023 there's already a .cranges section. When section flag difference
1024 is found, don't NULL-check cranges a second time. Tweak comments.
1025 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1026 merging, not max size, as size of ld-generated .cranges contents.
1027 Don't set ELF section flags in output section. When checking for
1028 needed .cranges descriptors, don't use a variable; compare
1029 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1030 comments.
1031 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1032 * emultempl/sh64elf.em: New file.
1033 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1034 * Makefile.in: Regenerate.
1035 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1036 (OTHER_RELOCATING_SECTIONS): Ditto.
1037 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1038 * emulparams/shlelf32.sh: Stub out all settings except
1039 OUTPUT_FORMAT. Source shelf32.sh.
1040 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1041 OTHER_RELOCATING_SECTIONS.
1042 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1043 * emulparams/shlelf64.sh: Stub out all settings except
1044 OUTPUT_FORMAT. Source shelf64.sh.
1045 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1046 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1047 .cranges section.
1048 (DATA_START_SYMBOLS): Define, provide ___data.
1049 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1050 for consecutive .data section.
1051 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1052 section after .data section.
1053 * emulparams/shlelf64.sh: Ditto.
1054 * emulparams/shelf32.sh: Ditto.
1055 (ALIGNMENT): Define to 8.
1056 * emulparams/shelf32.sh: Ditto.
1057 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1058 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1059 built-in linker scripts.
1060 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1061 * emulparams/shlelf64.sh: New.
1062 * emulparams/shelf64.sh: New.
1063 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1064 targ_extra_emuls.
1065 * Makefile.am: Add support for shlelf64 and shelf64.
1066 * Makefile.in: Regenerate.
1067 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1068 * configure.tgt (sh64-*-elf*): Add shelf as default.
1069 Add shlelf to targ_extra_emuls.
1070 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1071 * emulparams/shelf32.sh: New file.
1072 * emulparams/shlelf32.sh: New file.
1073 * Makefile.am: Add support for shlelf32 and shelf32.
1074 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1075 * Makefile.in: Regenerate.
1076
e3dc8847
HPN
10772002-02-05 Hans-Peter Nilsson <hp@axis.com>
1078
1079 * ldlang.c (lang_reset_memory_regions): Rename from
1080 reset_memory_regions. Change all callers. Make public.
1081 * ldlang.h (lang_reset_memory_regions): Prototype.
1082 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1083 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
1084 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1085 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 1086
8017dbcb
HPN
10872002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1088
1089 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1090 arithmetic when checking for too many global registers.
1091
006336b8
JT
10922002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1093
1094 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1095 (ehppanbsd.c): New rule.
1096 * Makefile.in: Regenerate.
1097 * configure.tgt (hppa*-*-netbsd*): New target.
1098 * emulparams/hppalinux.sh: Add comment to check other files
1099 that source this file it is modified, and list which
1100 files that do.
1101 * emulparams/hppanbsd.sh: New file.
1102
da1f2fec
GK
11032002-02-01 Geoffrey Keating <geoffk@redhat.com>
1104
1105 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1106 stack.
1107
48fa4a5d
HPN
11082002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1109
1110 Support on-demand global register allocation from
1111 R_MMIX_BASE_PLUS_OFFSET relocs.
1112 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1113 mmix_set_reg_section_vma. Call
1114 _bfd_mmix_finalize_linker_allocated_gregs.
1115 (mmix_before_allocation): New function.
1116 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1117 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1118 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1119 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1120 before .MMIX.reg_contents.
1121 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1122 (mmo_after_open): New function.
1123 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1124 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1125 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1126
3b16e843
NC
11272002-01-31 Ivan Guzvinec <ivang@opencores.org>
1128
1129 * emulparams/or32.sh: New file.
1130 * emulparams/or32elf.sh: New file.
1131 * scripttempl/or32.sc: New file.
1132 * configure.tgt : Add support for or32.
1133 * configure: Regenerate
1134 * Makefile.am: Add support for or32.
1135 * Makefile.in: Regenerate.
1136 * NEWS: Mention support for or32.
1137 * po/ld.pot: Regenerate.
1138
f744d540 11392002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 1140 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
1141
1142 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1143 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1144 reloc creation (ld --embedded-relocs).
1145
4867be41
DJ
11462002-01-27 Daniel Jacobowitz <drow@mvista.com>
1147
1148 * configure: Regenerated.
1149
cd8e197b
HPN
11502002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1151
1152 * Makefile.am (install): Depend on install-info.
1153 * Makefile.in: Regenerate.
1154
9cb61eab
AM
11552002-01-26 Christian Rose <menthos@menthos.com>
1156
1157 * ldmain.c (main): Use full sentences to ease translation.
1158
1caa7b23
NC
11592002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1160
1161 * po/fr.po: Updated version.
1162
1ddbd152
NC
11632002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1164
1165 * po/es.po: Updated version.
1166
1e84433f
AJ
11672002-01-25 Andreas Jaeger <aj@suse.de>
1168
1169 * ldlex.l (yy_input): Correct error check.
1170
6d39955e
AM
11712002-01-25 Alan Modra <amodra@bigpond.net.au>
1172
1173 * ldmisc.c (demangle): Put back dots when string not demangled.
1174
a9ed1e1b
RH
11752002-01-22 Richard Henderson <rth@redhat.com>
1176
1177 * emulparams/elf64alpha.sh (NOP): Use unop.
1178
968ec2b9
AJ
11792002-01-21 Andreas Jaeger <aj@suse.de>
1180
1181 * ldlex.l: Use fread instead of read.
1182
9596feea
JT
11832002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1184
1185 * configure.tgt (ia64-*-netbsd*): New target.
1186
493a6d47
L
11872002-01-21 H.J. Lu <hjl@gnu.org>
1188
1189 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1190 0.
1191 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1192
2a538ba5
AJ
11932002-01-18 Andreas Jaeger <aj@suse.de>
1194
1195 * ldver.c (ldversion): Update year.
1196
328577ad
NC
11972002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1198
1199 * po/ld.pot: Regenerate.
1200
1f808cd5
AM
12012002-01-16 Alan Modra <amodra@bigpond.net.au>
1202
1203 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1204 * Makefile.in: Regenerate.
1205 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1206 * emultempl/ppc64elf.em: New file.
1207
335c5610
DD
12082002-01-15 DJ Delorie <dj@redhat.com>
1209
1210 * scripttempl/pe.sc: Add support for constructor priorities.
1211
c40bbade
DC
12122002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1213
1214 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1215 * emulparams/avr23xx.sh: Likewise.
1216 * emulparams/avr4433.sh: Likewise.
1217 * emulparams/avr44x4.sh: Likewise.
1218 * emulparams/avr85xx.sh: Likewise.
1219 * emulparams/avrmega103.sh: Likewise.
1220 * emulparams/avrmega161.sh: Likewise.
1221 * emulparams/avrmega603.sh: Likewise.
1222 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1223
34efb449
AO
12242002-01-08 Alexandre Oliva <aoliva@redhat.com>
1225
1226 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1227 archive is excluded.
1228
8d05742f
JT
12292002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1230
1231 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 1232 (eshelf_nbsd.c): New rule.
8d05742f
JT
1233 (eshlelf_nbsd.c): New rule.
1234 * Makefile.in: Regenerate.
1235 * configure.tgt (sh*le-*-netbsdelf*): New target.
1236 (sh*-*-netbsdelf*): New target.
1237 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1238 * ld/emulparams/shelf_nbsd.sh: New emulation.
1239 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1240
be2d1673
NC
12412002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1242
1243 * po/es.po: New file: Spanish translation.
1244 * configure.in (ALL_LINGUAS): Add es.
1245 * configure: Regenerate.
1246
dbab7a7b
NC
12472002-01-06 John Marshall <jmarshall@acm.org>
1248
1249 * ld.texinfo: Note that --emit-relocs is currently only
1250 implemented for ELF.
1251
3dfe7a8c
AM
12522002-01-05 Alan Modra <amodra@bigpond.net.au>
1253
1254 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1255 of bfd_section_list_remove and bfd_section_list_insert macros.
1256 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1257 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1258
8a8b2d4b
AJ
12592002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1260
1261 * configure.tgt (x86_64-*-netbsd*): New target.
1262
9a4c7f16
TR
12632001-12-21 Tom Rix <trix@redhat.com>
1264
8a8b2d4b 1265 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
1266 For -binitfini support.
1267 * emultempl/aix.em (gld*_before_parse): Fix comment.
1268 * emultempl/aix.em (gld*_parse_args): Fix comment.
1269
3695c299
AM
12702001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1271
cf86e6df
AM
1272 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1273 mips*el-*-netbsd*.
1274 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1275
3695c299
AM
1276 * configure.tgt (arm-*-netbsdelf*): Add target.
1277 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1278 * emulparams/armelf_nbsd.sh: Added.
1279 * Makefile.am: Add rules for earmelf_nbsd.
1280 * Makefile.in: Regenerate.
1281
97cb79ae
AJ
12822001-12-19 Andreas Jaeger <aj@suse.de>,
1283 Susanne Oberhauser <froh@suse.de>
1284
1285 * configure.host: Add rules for x86_64-*linux-gnu. Change
1286 s390x-linux entry to use gcc to report configuration, replace gcc
1287 with $CC in s390-linux
1288
9d201f2f
AJ
12892001-12-19 Andreas Jaeger <aj@suse.de>
1290
1291 * ld.texinfo (VERSION): Fix markup.
1292
0b69cd08
MG
12932001-12-18 matthew green <mrg@eterna.com.au>
1294
1295 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1296 (m68kelfnbsd.c): New rule.
1297 * Makefile.in: Regenerate.
1298 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1299 (m68*-*-netbsd*4k*): .. this.
1300 (m68*-*-netbsdelf*): New target.
1301 (m68*-*-netbsd*): Also include ELF support.
1302 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1303 * emulparams/m68kelfnbsd.sh: New emulation.
1304
6b9b879a
JJ
13052001-12-18 Jakub Jelinek <jakub@redhat.com>
1306
1307 * ldgram.y (vers_node): Support anonymous version tags.
1308 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1309 tag is not defined together with non-anonymous versions.
1310 * ld.texinfo: Document it.
1311
9fc877ed
NC
13122001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1313
1314 * po/tr.po: New file: Turkish translation.
1315 * configure.in (ALL_LINGUAS): Add tr.
1316 * configure: Regenerate.
1317
fc18a3f3
RH
13182001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1319
1320 * Makefile.am: Add rules for eelf64alpha_nbsd.
1321 * Makefile.in: Regenerate.
1322 * configure.tgt (alpha*-*-netbsd*): Set
1323 targ_emul to elf64alpha_nbsd.
1324 * emulparams/elf64alpha_nbsd.sh: Added.
1325
76f63e91
AM
13262001-12-17 Alan Modra <amodra@bigpond.net.au>
1327
1328 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1329 section_tail when fiddling with section list.
1330 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1331 broken into separate strings to make translation easier.
1332 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1333 fiddling with section list.
1334 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1335
d03b89bd
HPN
13362001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1337
1338 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1339
320fec9a
AM
13402001-12-15 Alan Modra <amodra@bigpond.net.au>
1341
1342 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1343
65765700
JJ
13442001-12-13 Jakub Jelinek <jakub@redhat.com>
1345
1346 * emultempl/elf32.em (finish): Supply output_bfd
1347 to bfd_elf*_discard_info.
1348 (OPTION_EH_FRAME_HDR): Define.
1349 (longopts): Add --eh-frame-hdr.
1350 (parse_args): Handle it.
1351 (list_options): Add --eh-frame-hdr to help.
1352 * emultempl/hppaelf.em (finish): Supply output_bfd
1353 to bfd_elf*_discard_info.
1354 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1355
89894c62
AM
13562001-12-13 Alan Modra <amodra@bigpond.net.au>
1357
1358 * lexsup.c (parse_args): Don't pass shortopts to second call to
1359 getopt functions. Restore optind rather than decrementing before
1360 second call. Remove errind as it now duplicates last_optind.
1361
583f1926
CF
13622001-12-11 Christopher Faylor <cgf@redhat.com>
1363
1364 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1365
93fbbb04
GK
13662001-12-07 Geoffrey Keating <geoffk@redhat.com>
1367 Richard Henderson <rth@redhat.com>
1368
1369 * Makefile.am: Add support for xstormy16.
1370 * configure.tgt: Add support for xstormy16.
1371 * Makefile.in: Regenerate.
1372 * emulparams/elf32xstormy16.sh: New file.
1373 * scripttempl/xstormy16.sc: New file.
1374
583f1926
CF
13752001-10-01 Christopher Faylor <cgf@cygnus.com>
1376
fc18a3f3
RH
1377 * Makefile.in (LIB_PATH): Make configurable.
1378 (GENSCRIPTS): Set LIB_PATH in environment.
1379 * configure.in: Substitute LIB_PATH.
1380 * configure: Regenerate.
1381 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1382 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 1383
ff291a48
NC
13842001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1385
1386 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1387 describing the -N option so that it is easier to translate into
1388 foreign languages.
1389
e3c8793a
NC
13902001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1391
1392 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1393 statements describing a single option with a single, newline
1394 escaped fprintf. This allows better translation into other
1395 languages.
9d201f2f 1396
fc18a3f3
RH
1397 * ldmain.c (add_archive_element): Combine multiple strings
1398 into a single string to permit better translation into other
1399 languages.
e3c8793a 1400
f2eab0af
TR
14012001-12-05 Tom Rix <trix@redhat.com>
1402
1403 * Makefile.am: Remove eaixppc64.
9d201f2f 1404 * Makefile.in: Regenerate.
f2eab0af 1405
249172c3
TR
14062001-12-04 Tom Rix <trix@redhat.com>
1407
9d201f2f 1408 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
1409 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1410 warning.
1411 (gld*_read_file): Fix typo.
1412 (change_symbol_mode): Add prototype.
1413 (is_syscall): Same.
9d201f2f 1414
249172c3
TR
1415 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1416 * emulparams/aixrs6.sh : Same.
1417 * emulparams/ppcmacos.sh : Same.
1418 * emulparams/aixppc64.sh : Delete file.
1419 * emultempl/aix.em : Formatting changes.
1420
5b5cd1b0
HPN
14212001-12-04 Hans-Peter Nilsson <hp@axis.com>
1422
1423 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1424 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1425 __Sbss.
1426 (OTHER_END_SYMBOLS): Fix formatting.
1427 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1428 (OTHER_END_SYMBOLS): Fix formatting.
1429
7cecdbff
AM
14302001-12-04 Alan Modra <amodra@bigpond.net.au>
1431
1432 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1433
742aeb63 14342001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 1435
742aeb63 1436 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 1437 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
1438 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1439 (ldemul_default_target): Same.
1440 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
1441 * emultempl/gld960c.em (gld960_choose_target): Same.
1442 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
1443 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1444 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1445 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 1446 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
1447 -b32 and -b64.
1448
48459341
L
14492001-11-27 H.J. Lu <hjl@gnu.org>
1450
1451 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1452 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1453 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1454 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1455 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1456 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1457 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1458 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1459
7cecdbff 1460 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
1461 is not empty.
1462 (SDATA): Likewise.
1463 (REL_SDATA): Likewise.
1464 (REL_SBSS): Likewise.
1465 (REL_SDATA2): Likewise.
1466 (REL_SBSS2): Likewise.
1467 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1468 (SDATA2): Likewise.
1469
ecfdd20c
SC
14702001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1471
1472 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1473 destructor in rom.
7cecdbff 1474 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 1475
da54c6eb
L
14762001-11-22 H.J. Lu <hjl@gnu.org>
1477
1478 * Makefile.in: Regenerated with automake based on automake
1479 1.4-8 in RedHat 7.1.
1480
465bc359
AM
14812001-11-22 Alan Modra <amodra@bigpond.net.au>
1482
1483 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1484 (config.status): Delete rule.
1485 Add extra dependencies to cover sourced emulparams files.
1486 * Makefile.in: Regenerate.
1487
1488 * scripttempl/elf.sc: Order <section>, <section>.* and
1489 corresponding linkonce sections as seen in input files.
1490 Formatting fixes. Zero vma of all sections if not relocating.
1491 (STACK): Define and insert if STACK_ADDR defined.
1492 (OTHER_RELOCATING_SECTIONS): Delete.
1493 (OTHER_END_SYMBOLS): Define.
1494 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1495 (OTHER_READWRITE_SECTIONS): Likewise.
1496 (OTHER_GOT_SECTIONS): Likewise.
1497 (OTHER_SDATA_SECTIONS): Likewise.
1498 (OTHER_BSS_SECTIONS): Likewise.
1499 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1500 (OTHER_READWRITE_SECTIONS): Likewise.
1501 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1502 (OTHER_READWRITE_SECTIONS): Likewise
1503
1504 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1505 (STACK_ADDR): Define.
1506 * emulparams/armelf_oabi.sh: As for armelf.sh.
1507 * emulparams/elf32mcore.sh: As for armelf.sh.
1508 * emulparams/h8300elf.sh: As for armelf.sh.
1509 * emulparams/mn10200.sh: As for armelf.sh.
1510 * emulparams/shelf.sh: As for armelf.sh.
1511
1512 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1513 (OTHER_END_SYMBOLS): Define.
1514 * emulparams/m32relf.sh: As for elf32fr30.sh.
1515 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1516 * emulparams/h8300self.sh: As for elf32fr30.sh.
1517
1518 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1519 defines with RELOCATING test.
1520 (OTHER_SDATA_SECTIONS): Likewise.
1521 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1522 (OTHER_END_SYMBOLS): ..this.
1523 * emulparams/crislinux.sh: As for criself.sh.
1524
1525 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1526 if not relocating.
1527 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1528 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1529 normal and linkonce sections as seen in input files.
1530 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1531 (TEXT_DYNAMIC): Likewise.
1532 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1533 (OTHER_SDATA_SECTIONS): Likewise.
1534 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1535 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1536 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1537 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1538 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1539 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1540 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1541 sections as seen in input files.
1542 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1543 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1544 if not relocating.
1545 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1546 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1547 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1548 (OTHER_SECTIONS): Instead, use this..
1549 (OTHER_END_SYMBOLS): ..and this.
1550
1551 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1552 * emulparams/elf32bsmip.sh: Likewise.
1553 * emulparams/elf32btsmip.sh: Likewise.
1554 * emulparams/elf32ebmip.sh: Likewise.
1555 * emulparams/elf32lmip.sh: Likewise.
1556 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1557 * emulparams/elf32lsmip.sh: Likewise.
1558 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1559 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1560 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1561 * emulparams/elf64btsmip.sh: Likewise.
1562 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1563 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1564 * emulparams/elf32ppclinux.sh: Likewise.
1565 * emulparams/elf32ppcsim.sh: Likewise.
1566 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1567 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1568 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1569 * emulparams/h8300self.sh: Likewise.
1570 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1571 * emulparams/sh.sh: Comment.
1572 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1573 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1574 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1575
abc6ab0a
AM
15762001-11-21 David Heine <dlheine@tensilica.com>
1577 Alan Modra <amodra@bigpond.net.au>
1578
1579 * ldlang.c (map_input_to_output_sections): Replace "break"
1580 accidentally removed with 2001-08-03 change.
1581 (lang_gc_sections_1): Likewise.
1582
2181f54f
AM
15832001-11-21 Alan Modra <amodra@bigpond.net.au>
1584
1585 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1586
ca0b5847
AM
15872001-11-20 Angela Marie Thomas <angela@redhat.com>
1588
1589 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
1590 of false when calling lang_size_sections.
1591 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 1592
c56feb2b
AM
15932001-11-15 Alan Modra <amodra@bigpond.net.au>
1594
1595 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1596 function when LDEMUL_FINISH isn't set to the same name. Don't
1597 call ${LDEMUL_FINISH}.
1598 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1599 * emultempl/armelf.em (arm_elf_finish): Call
1600 gld${EMULATION_NAME}_finish.
1601 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1602 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1603 hppaelf_layout_sections_again if necessary.
1604 (need_laying_out): New var.
1605 (hppaelf_layaout_sections_again): Rename to
1606 hppaelf_layout_sections_again. Clear need_laying_out.
1607 (PARSE_AND_LIST_OPTIONS): Format text.
1608
a48ca7f2
L
16092001-11-14 H.J. Lu <hjl@gnu.org>
1610
1611 * emultempl/armelf.em (arm_elf_finish): Renamed from
1612 gld${EMULATION_NAME}_finish.
1613 (LDEMUL_FINISH): Set to arm_elf_finish.
1614
73d074b4
DJ
16152001-11-14 Daniel Jacobowitz <drow@mvista.com>
1616
1617 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1618 (struct ld_emulation_xfer_struct): Use it.
1619
3b16e843 16202001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 1621
465bc359 1622 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
1623 additional symbols referenced by newer crt0.o files from HP.
1624
f11b7027
NC
16252001-11-12 Anthony Green <green@redhat.com>
1626
1627 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1628
3bf2994f
AM
16292001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1630
1631 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1632 * Makefile.in: Regenerate.
1633
ff5dcc92
SC
16342001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1635
1636 * ld.texinfo: Use @command for commands, @option for options.
1637 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1638 the page man title.
1639 * Makefile.in: Rebuild.
1640
9fb9af6e
CD
16412001-11-04 Chris Demetriou <cgd@broadcom.com>
1642
1643 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1644 Add support for targets.
2181f54f 1645
3c62831e
NC
16462001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1647
1648 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1649 * configure: Regernate.
1650 * po/fr.po: New file.
1651 * po/sv.po: New file.
1652
3a9091c4
NC
16532001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1654
1655 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1656 as little endian default and to support big endian.
2181f54f 1657
361b220e
CD
16582001-11-01 Chris Demetriou <cgd@broadcom.com>
1659
1660 * ld.texinfo (Options): Document new option, -nostdlib.
1661 * lexsup.c (OPTION_NOSTDLIB): New definition.
1662 (ld_options): Add entry for "nostdlib".
1663 (parse_args): Handle OPTIONS_NOSTDLIB.
1664 * ldfile.c (ldfile_add_library_path): Don't add directories
1665 to the search path if they weren't specified on the command line
1666 and -nostdlib was specified.
1667 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1668
210a7bd1
NC
16692001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1670
1671 * lexsup.c (parse_args): Prevent infinite parsing loop when
1672 "-rpath.a" is specified on the command line.
1673 Replace calls to fprintf with calls to einfo.
1674
114283d8
NC
16752001-10-31 John Marshall <jmarshall@acm.org>
1676
1677 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1678 appear only once across all the linker scripts involved in a link
1679 invocation no longer applies. Make the documentation reflect
1680 that.
1681
7649aa50
NC
16822001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1683
1684 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1685 targets.
1686 (sh-*-linux*): Added targ_extra_libpath.
1687
6e814ff8
AM
16882001-10-31 David Heine <dlheine@tensilica.com>
1689
1690 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1691 for padding statements.
1692
3c3bdf30
NC
16932001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1694
1695 * configure.tgt (mmix-*-*): New target.
1696 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1697 Add dependencies to match.
1698 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1699 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1700 scripttempl/mmo.sc: New files.
1701 * gen-doc.texi: @set MMIX.
1702 * ld.texinfo: Ditto.
6e814ff8 1703 [MMIX] Add MMIX node.
3c3bdf30
NC
1704 * Makefile.in: Regenerate.
1705
ca0c1d3e
KH
17062001-10-29 Kazu Hirata <kazu@hxi.com>
1707
1708 * ldlang.c: Fix a comment typo.
1709
1a3d33ce
AM
17102001-10-23 Alan Modra <amodra@bigpond.net.au>
1711
1712 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1713 entries, and match *-*-linux*.
1714
b47c4208
AM
17152001-10-20 Alan Modra <amodra@bigpond.net.au>
1716
1717 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1718 with ldlex_script, ldlex_popstate.
1719 (ifile_p1): Likewise.
1720 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1721 correct slot.
1722 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1723 to 1. Don't BEGIN(SCRIPT).
1724 (lex_redirect): Similarly.
1725 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1726
fd521b47
NC
17272001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1728
1729 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1730 __EH_FRAME_END__ and accept eh frames into data section.
1731 Add ctor and dtor sections.
1732
59d28a94
DD
17332001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1734
1735 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1736 (auto-export): Fix indentation.
1737
663dd378
DD
17382001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1739
1740 * pe-dll.c (autofilter_objectlist): Add startup objects
1741 for profiling.
1742 (auto-export): Constify char * p.
6e814ff8 1743 Extract file basename and use strcmp rather than ststr
663dd378
DD
1744 for object lookup.
1745
31d677f9
CD
17462001-10-18 Chris Demetriou <cgd@broadcom.com>
1747
1748 * ldmain.c (get_emulation): Improve comment about the handling
1749 of -mipsN options.
1750
aa200fe8
AM
17512001-10-17 Alan Modra <amodra@bigpond.net.au>
1752
1753 * po/POTFILES.in: Regenerate.
1754
146e7110
AM
17552001-10-16 Vassili Karpov <malc@pulsesoft.com>
1756
1757 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1758 -z nocopyreloc and -z nocombreloc usage strings.
1759
b4330e85
NC
17602001-10-12 Vassili Karpov <malc@pulsesoft.com>
1761
146e7110 1762 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
1763 in usage.
1764
5af8a2fb
NC
17652001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1766
1767 * scripttempl/armaout.sc: Place .bss section after end of aligned
1768 data section to match behaviour of aout code in constructrion of
1769 header.
1770
5b784096
DD
17712001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1772
1773 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1774 startup files for mingw32 dlls to list.
1775
61585df2
CD
17762001-10-10 Chris Demetriou <cgd@broadcom.com>
1777
1778 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1779
45cf6f3e
AH
17802001-10-08 Aldy Hernandez <aldyh@redhat.com>
1781
1782 * configure.tgt (targ): Add arm9e-*-elf.
1783
e24d7c12
L
17842001-10-05 H.J. Lu <hjl@gnu.org>
1785
1786 * genscripts.sh: Fix a typo in the last change.
1787
ec38dd05
JJ
17882001-10-05 Jakub Jelinek <jakub@redhat.com>
1789
1790 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1791 -z nocombreloc in usage.
1792
cedd6b0d
JB
17932001-10-03 Jim Blandy <jimb@redhat.com>
1794
1795 * genscripts.sh: Include a comment at the top of each generated
1796 script, explaining its purpose.
1797
8bd621d8
AM
17982001-10-03 Vassili Karpov <malc@pulsesoft.com>
1799
1800 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1801 * NEWS: Mention -z nocopyreloc.
1802 * ld.texinfo (Options): Describe nocopyreloc.
1803
fcd8210c
AM
18042001-10-03 Alan Modra <amodra@bigpond.net.au>
1805
1806 * configure: Regenerate.
1807
d32820f2
AM
18082001-10-02 Alan Modra <amodra@bigpond.net.au>
1809
1810 * ldver.h (ld_program_version): Remove declaration.
1811 * lexsup.c (parse_args): Move printing of copyright message..
1812 * ldver.c (ldversion): .. to here.
1813 Use BFD_VERSION_STRING in place of BFD_VERSION.
1814 (ld_program_version): Remove.
1815 * Makefile.am (Makefile): Depend on bfd/configure.in.
1816 Run "make dep-am".
1817 * Makefile.in: Regenerate.
1818
af46bcdc
HPN
18192001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1820
1821 * Makefile.am: Update dependencies with "make dep-am".
1822 * Makefile.in: Regenerate.
1823
4818e05f 18242001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 1825
4818e05f
AM
1826 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1827 * lexsup.c: Add --no-define-common commandline option.
1828 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1829 * ldlex.l: Likewise.
1830 * ld.h: Add command_line.inhibit_common_definition.
1831 * ldmain.c (main): Initialize.
1832 * ld.texinfo: Document.
862517b6 1833
a59f3d35
AM
18342001-09-29 Alan Modra <amodra@bigpond.net.au>
1835
1836 * ldlang.c (section_already_linked): Remove assignment to kept_section.
1837
d5e0ebeb
AM
18382001-09-26 Alan Modra <amodra@bigpond.net.au>
1839
1840 * ldmisc.c (USE_STDARG): Remove.
1841 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1842 (einfo): Likewise.
1843 (minfo): Likewise.
1844 (lfinfo): Likewise.
1845
1846 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1847 declarations. Update copyright.
1848
2f8d8971
NC
18492001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1850
85c77458
NC
1851 * pe-dll.c: Remove obsoleted declaration of
1852 pe_get_data_import_dll_name.
1853 (pe_create_import_fixup): Fix thinko.
1854
2f8d8971
NC
1855 * ld.texinfo(enable-auto-import): Clarify the explanation.
1856
18572001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1858
1859 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1860 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1861 DLL_SUPPORT controlled code.
1862
72358f65 18632001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 1864
72358f65
NC
1865 * emultempl/pe.em(pe_data_import_dll): Make static.
1866 (pe_get_data_import_dll_name): New accessor function.
146e7110 1867 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
1868 pe_get_data_import_dll_name() from pe.em, instead of
1869 directly accessing pe_data_import_dll variable from pe.em.
1870
3882b010
L
18712001-09-18 Bruno Haible <haible@clisp.cons.org>
1872
1873 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1874 (def_file_add_directive): Use ISSPACE instead of isspace.
1875 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1876 isdigit/isxdigit/isalpha/isalnum.
1877 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1878 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1879 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1880 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1881 isalnum.
1882 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1883 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1884 isupper/tolower.
1885 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1886 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1887 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1888 (ctor_prio): Use ISDIGIT instead of isdigit.
1889 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1890 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1891 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1892 isupper/tolower.
1893 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1894 (stricpy): Use TOLOWER instead of isupper/tolower.
1895 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1896 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1897 (lex_warn_invalid): Use ISPRINT instead of isprint.
1898 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1899 (main): For gettext, also set the LC_CTYPE locate facet.
1900 (add_keepsyms_file): Use ISSPACE instead of isspace.
1901 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1902 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1903 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1904 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1905 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1906 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1907 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1908 (quoteput): Use ISSPACE instead of isspace.
1909 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1910 instead of isalnum.
1911
db09f25b
AM
19122001-09-18 Alan Modra <amodra@bigpond.net.au>
1913
1914 * deffilep.y (def_stash_module): Constify "name" param.
1915
1916 * pe-dll.c: Replace CONST with const throughout.
1917 (quick_symbol): Constify "n1", "n2", "n3" params.
1918 (make_singleton_name_thunk): Constify "import" param. Make
1919 "buffer_len" a size_t.
1920 (make_import_fixup_entry): Constify "name", "fixup_name",
1921 "dll_symname" params.
1922 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1923 (pe_get32): Likewise.
1924 (pe_implied_import_dll): Likewise.
1925
1926 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1927 (sort_by_section_name): Likewise.
1928
1929 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1930 (make_import_fixup): Cast printf arg, rel->address to long rather
1931 than int.
1932 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1933
74699268
AM
19342001-09-15 Alan Modra <amodra@bigpond.net.au>
1935
1936 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1937 defines BufferSize. Increase buffer size by one.
1938
775cabad
NC
19392001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1940
1941 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1942
056a1d49
NC
19432001-09-14 Kevin Lo <kevlo@openbsd.org>
1944
1945 * configure.tgt: Add arm-openbsd target.
1946
a7d792bb
L
19472001-09-12 H.J. Lu <hjl@gnu.org>
1948
1949 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1950 eelf64lppc.o to ...
1951 (ALL_64_EMULATIONS): Here.
1952 * Makefile.in: Regenerated.
1953
0d888aac
CW
19542001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1955
1956 * emultempl/pe.em(make_import_fixup): change signature to
1957 take asection as well as arelec; we need this for proper
146e7110 1958 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
1959 there is no attempt to add a constant addend to the reloc;
1960 otherwise, report error condition.
1961 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1962 since final argument is a pointer to make_import_fixup().
1963 Change call to cb() to match make_import_fixup() signature.
1964 (make_import_fixup_mark): make buffer_len unsigned.
1965 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1966
19672001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1968
1969 * ld.texinfo: add verbose documentation for auto-import
146e7110 1970 direct-addressing workaround, to compliment the terse
0d888aac
CW
1971 error message.
1972
cedacdc0
CM
19732001-09-12 Andrew MacLeod <amacleod@redhat.com>
1974
146e7110 1975 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 1976
3b16e843 19772001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
1978
1979 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1980 * emulparams/h8300self.sh: Similarly.
1981
559e4713
NC
19822001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1983
1984 * ld.texinfo (Options, --stack): Correct default value for stack
1985 reserve.
1986
1fdf0249
TR
19872001-09-05 Tom Rix <trix@redhat.com>
1988
1989 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 1990
9b5799b8
AJ
19912001-09-03 Andreas Jaeger <aj@suse.de>
1992
1993 * emultempl/beos.em: Declare prototypes for comparions functions,
1994 adjust definitions.
1995
48f6162b
AJ
19962001-09-02 Andreas Jaeger <aj@suse.de>
1997
1998 * emultempl/aix.em: Add missing prototype.
1999 * emultempl/lnk960.em: Likewise.
2000 * emultempl/vanilla.em: Likewise.
2001 * emultempl/armcoff.em: Likewise.
2002 * emultempl/armelf_oabi.em: Likewise.
2003 * emultempl/beos.em: Likewise.
2004 * emultempl/gld960c.em: Likewise.
2005 * emultempl/gld960.em: Likewise.
2006
2007 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2008 for prototype declaration.
2009
39e5585e
EC
20102001-08-31 Eric Christopher <echristo@redhat.com>
2011 Jason Eckhardt <jle@redhat.com>
2012
2013 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2014
3fc90ddb
AJ
20152001-08-31 Andreas Jaeger <aj@suse.de>
2016
2017 * emultempl/pe.em: Add missing prototypes.
2018 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2019 pe_find_data_imports.
2020 (pr_sym): Add unused attribute.
2021
d43ded80
PB
20222001-08-29 Joel Sherrill <joel@OARcorp.com>
2023
39e5585e 2024 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
2025 default from coff to elf.
2026
3946dd2f
JL
20272001-08-29 Jeff Law <law@redhat.com>
2028
2029 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2030 ARCH specification.
2031 * emulparams/h8300self.sh: Similarly.
2032
3b16e843 20332001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
2034
2035 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2036 eh8300self.o .
2037 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2038 * configure.tgt (h8300-*-elf*): New case.
2039 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2040 * emulparams/h8300self.sh: New file.
2041 * Makefile.in: Regenerated.
2042
70d0c6e9
NC
20432001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2044
2045 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2046 with macro name.
2047
5c67d4bb
AM
20482001-08-27 Linus Nordberg <linus@swox.com>
2049 Alan Modra <amodra@bigpond.net.au>
2050
2051 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2052 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2053 Run "make dep-am"
2054 * Makefile.in: Regenerate.
2055 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2056 entries to correct alphabetical position.
2057 * emulparams/elf64ppc.sh: New.
2058 * emulparams/elf64lppc.sh: New.
2059
08131015
NC
20602001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2061
2062 * ldmain.c (main): Declare BSIZE as static.
2063
db6751f2
JJ
20642001-08-23 Jakub Jelinek <jakub@redhat.com>
2065
2066 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2067 into .rel.dyn resp. .rela.dyn if combreloc.
2068 (get_script): If .x linker script is equal to .xn, only put it
2069 once into the binary.
2070 Add .xc and .xsc scripts.
2071 (parse_args): Handle -z combreloc and -z nocombreloc.
2072 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2073 For .xc and .xsc scripts put all .rel* or .rela* input sections
2074 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2075 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2076 is elf.
2077 Strip trailing whitespace from script.
2078 Generate .xc and .xsc scripts if requested.
2079 * ldmain.c (main): Initialize link_info.combreloc and
2080 link_info.spare_dynamic_tags.
2081 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2082 (ld_options): Add --spare-dynamic-tags option.
2083 (parse_args): Likewise.
2084 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2085 * ldint.texinfo: Document .xc and .xsc linker scripts.
2086 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2087
63d069c0
L
20882001-08-22 H.J. Lu <hjl@gnu.org>
2089
2090 * emulparams/elf32fr30.sh: Add a newline.
2091
948f9114
AJ
20922001-08-21 Andreas Jaeger <aj@suse.de>
2093
2094 * deffilep.y: Add missing prototypes.
2095 * pe-dll.c: Likewise.
2096
ae7fb08f
AM
20972001-08-20 Alan Modra <amodra@bigpond.net.au>
2098
2af02257
AM
2099 * ldlang.c (insert_pad): Fix typos in last patch.
2100
2101 * ldlang.c: When traversing lang_statement_union_type lists,
2102 consistently use "header.next" rather than "next".
2103 * mpw-eppcmac.c: Likewise.
2104 * emultempl/beos.em: Likewise.
2105 * emultempl/hppaelf.em: Likewise.
2106 * emultempl/pe.em: Likewise.
2107 * ldlang.h (union lang_statement_union): Remove "next" field.
2108
c0c330a7
AM
2109 * ldlang.c (insert_pad): Use offsetof macro.
2110 (lang_size_sections): Always neuter padding statements.
2111 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2112
ae7fb08f
AM
2113 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2114 passed to lang_size_sections.
2115 (pe_exe_fill_sections): Likewise.
2116 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2117 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2118
fab80407
AM
21192001-08-18 Alan Modra <amodra@bigpond.net.au>
2120
2121 * emultempl/aix.em: Formatting fixes.
2122
b3327aad
AM
21232001-08-18 Alan Modra <amodra@bigpond.net.au>
2124
2125 * ldlang.c (insert_pad): Make use of an existing pad statement if
2126 available. Move code calculating alignment, adjusting section
2127 alignment power, and adjusting dot to ..
2128 (size_input_section): .. here. Remove unused relax param.
2129 (lang_size_sections): Change boolean `relax' param to boolean *.
2130 Adjust call to size_input_section. Make use of insert_pad to
2131 place pad after the assignment statement. If relaxing, zap
2132 padding statements.
2133 (reset_memory_regions): Reset output_bfd section sizes too.
2134 (relax_again): Move to..
2135 (lang_process): ..here. Adjust call to lang_size_sections, and
2136 remove duplicated code.
2137 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2138
563e308f
AM
21392001-08-17 Alan Modra <amodra@bigpond.net.au>
2140
2141 * ld.texinfo: Document that fill values now use the four least
2142 significant bytes.
2143 * emulparams/elf32fr30.sh (NOP): Update.
2144 * emulparams/elf32mcore.sh: Likewise.
2145 * emulparams/elf64_s390.sh: Likewise.
2146 * emulparams/elf_i386.sh: Likewise.
2147 * emulparams/elf_i386_be.sh: Likewise.
2148 * emulparams/elf_i386_chaos.sh: Likewise.
2149 * emulparams/elf_i386_ldso.sh: Likewise.
2150 * emulparams/elf_s390.sh: Likewise.
2151 * emulparams/elf_x86_64.sh: Likewise.
2152 * emulparams/i386moss.sh: Likewise.
2153 * emulparams/i386nw.sh: Likewise.
2154 * emulparams/m68kelf.sh: Likewise.
2155 * scripttempl/elf.sc: Update NOP comment.
2156 * scripttempl/elfi370.sc: Likewise.
2157 * scripttempl/elfm68hc11.sc: Likewise.
2158 * scripttempl/elfm68hc12.sc: Likewise.
2159 * scripttempl/nw.sc: Likewise.
2160
b90e1c6f
TR
21612001-08-15 Tom Rix <trix@redhat.com>
2162
2163 * ldgram.y (saved_script_handle): Initialize to NULL.
2164 * ldmain.c (main): Change check on saved_script_handle.
948f9114 2165
39dcfe18
AM
21662001-08-14 Alan Modra <amodra@bigpond.net.au>
2167
cde43e70
AM
2168 * emultempl/elf32.em: Formatting fixes.
2169 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2170 looking at sec->owner.
2171 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2172 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2173 unused code, and reorganize orphan section placement code.
2174
39dcfe18
AM
2175 * ldlang.c (wild_doit): Rename to lang_add_section.
2176 * ldlang.h: Here too.
2177 * mpw-elfmips.c: And here.
2178 * emultempl/beos.em: And here.
2179 * emultempl/elf32.em: And here.
2180 * emultempl/hppaelf.em: And here.
2181 * emultempl/pe.em: And here.
2182
908d20b3
RH
21832001-08-13 Richard Henderson <rth@redhat.com>
2184
2185 * emultempl/needrelax.em: New file.
2186 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2187 * Makefile.am (eelf64_ia64.c): Depend on it.
2188 * Makefile.in: Rebuild.
2189
0f33d40b
AM
21902001-08-13 Alan Modra <amodra@bigpond.net.au>
2191
22af9fd3
AM
2192 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2193 output_section is set non-NULL.
2194
0f33d40b
AM
2195 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2196 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2197 needlessly create an output_section_statement. Treat a correctly
2198 named output_section_statement with NULL bfd_section as compatible.
2199
55ab6103
HPN
22002001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2201
2202 * emultempl/generic.em: Support EXTRA_EM_FILE.
2203 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2204 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2205 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2206 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2207 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2208 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2209 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2210 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2211 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2212 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2213
24098abb
RH
22142001-08-12 Richard Henderson <rth@redhat.com>
2215
2216 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2217 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2218 scripttempl/v850.sc: Keep .jcr data.
2219
b9a8de1e 22202001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
2221 Andrew Haley <aph@cambridge.redhat.com>
2222 Nick Clifton <nickc@redhat.com>
b9a8de1e 2223
146e7110 2224 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
2225 Change type to file handle.
2226 * ld.h (had_script): Rename and retype.
2227 * ldfile.c (ldfile_open_command_file): Save the file handle
2228 used in saved_script_handle.
2229 * lexsup.c (parse_args): Do not allow -c option to alter
2230 saved_script_handle.
2231 * ldmain.c (main): Print out the linker script used if
2232 --verbose is given. Check saved_script_handle to obtain the
2233 external linker script used, or if NULL, dump the builtin
2234 script.
2235 * ld.texinfo: Document that --verbose now dumps the linker
2236 script used, regardless of whether it was an internal or an
2237 external script.
2238
0218d1e4
AJ
22392001-08-10 Andreas Jaeger <aj@suse.de>
2240
2241 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2242 to build warnings.
2243 * configure: Regenerate.
2244
5253f23b
AM
22452001-08-09 Alan Modra <amodra@bigpond.net.au>
2246
73810896
AM
2247 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2248
5253f23b
AM
2249 * scripttempl/elf.sc: Move non-text .dynamic section before
2250 .plt/.got/.sdata* group.
2251 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2252 (OTHER_SDATA_SECTIONS): Add.
2253 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2254 OTHER_GOT_SECTIONS.
2255 * emulparams/crislinux.sh: Likewise.
2256 * emulparams/elf32b4300.sh: Likewise.
2257 * emulparams/elf32bmip.sh: Likewise.
2258 * emulparams/elf32bmipn32.sh: Likewise.
2259 * emulparams/elf32bsmip.sh: Likewise.
2260 * emulparams/elf32btsmip.sh: Likewise.
2261 * emulparams/elf32ebmip.sh: Likewise.
2262 * emulparams/elf32elmip.sh: Likewise.
2263 * emulparams/elf32l4300.sh: Likewise.
2264 * emulparams/elf32lmip.sh: Likewise.
2265 * emulparams/elf32lsmip.sh: Likewise.
2266 * emulparams/elf32ltsmip.sh: Likewise.
2267 * emulparams/elf64bmip.sh: Likewise.
2268 * emulparams/elf64btsmip.sh: Likewise.
2269 * emulparams/elf64ltsmip.sh: Likewise.
2270
179c732c
AM
22712001-08-08 Alan Modra <amodra@bigpond.net.au>
2272
2273 * genscripts.sh: Source the emulparams script before each output
2274 script is generated so that variables like `RELOCATING' may affect
2275 variables defined in the emulparams script.
2276
3fd36710
AM
22772001-08-04 Alan Modra <amodra@bigpond.net.au>
2278
20713691
AM
2279 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2280 order.
2281
3fd36710
AM
2282 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2283 ie. iterate over wild_statement.section_list.
2284 (gld${EMULATION_NAME}_place_orphan): Likewise.
2285
de0b1853
SC
22862001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2287
2288 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2289 .fini[0-4] sections used by _exit
2290 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2291 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2292 * scripttempl/elfm68hc11.sc: Likewise.
2293
ff7e6f88
L
22942001-08-03 H.J. Lu <hjl@gnu.org>
2295
2296 * emultempl/beos.em (init): Add the missing initialization.
2297
b6bf44ba
AM
22982001-08-03 Alan Modra <amodra@bigpond.net.au>
2299
2300 * ld.texinfo (Input Section Basics): Clarify ordering of output
2301 sections.
2302 * ldlang.c (callback_t): Add wildcard_list param.
2303 (walk_wild_section): Remove "section" param. Rewrite for
2304 lang_wild_statement_type change. Remove unique_section_p test.
2305 (walk_wild_file): Remove "section" param.
2306 (walk_wild): Remove "section" and "file" params.
2307 (lang_gc_wild): Likewise.
2308 (wild): Likewise. Modify for lang_wild_statement_type change.
2309 (wild_sort): Likewise. Add "sec" param.
2310 (gc_section_callback): Likewise.
2311 (output_section_callback): Likewise. Do unique_section_p test.
2312 (map_input_to_output_sections): Modify call to wild.
2313 (lang_gc_sections_1): Likewise.
2314 (print_wild_statement): Modify for lang_wild_statement_type
2315 change.
2316 (lang_add_wild): Replace filename, filenames_sorted param with
2317 filespec. Replace section_name, sections_sorted,
2318 exclude_filename_list with section_list.
2319 * ldlang.h (lang_add_wild): Here too.
2320 (lang_wild_statement_type): Replace section_name, sections_sorted,
2321 and exclude_filename_list with section_list.
2322 * ldgram.y (current_file): Delete.
2323 (%union): Add wildcard_list.
2324 (file_NAME_list): Set type to wildcard_list. Build a linked list
2325 rather than calling lang_add_wild for each entry.
2326 (input_section_spec_no_keep): Call lang_add_wild here instead.
2327 * ld.h (struct wildcard_list): Declare.
2328 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2329
b044cda1
CW
23302001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2331
2332 * ldmain.c (main): initialize link_info.pei386_auto_import
2333 * pe-dll.c: new tables for auto-export filtering
2334 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 2335 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
2336 "by hand".
2337
23382001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2339
b6bf44ba
AM
2340 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2341 static variable current_sec (static struct sec *). Add
b044cda1 2342 forward declaration for add_bfd_to_link.
b6bf44ba
AM
2343 (process_def_file): Don't export undefined symbols. Do not
2344 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
2345 with new API.
2346 (pe_walk_relocs_of_symbol): New function.
2347 (generate_reloc): add optional extra debugging
b6bf44ba 2348 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 2349 line in output
b6bf44ba 2350 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
2351 (DATA auto-import support).
2352 (make_singleton_name_thunk): New function.
2353 (make_import_fixup_mark): New function.
2354 (make_import_fixup_entry): New function.
2355 (pe_create_import_fixup): New function.
b6bf44ba 2356 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 2357 char *.
b6bf44ba
AM
2358 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2359 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
2360 pe_create_import_fixup.
2361 * emultempl/pe.em: add new options --enable-auto-import,
2362 --disable-auto-import, and --enable-extra-pe-debug.
2363 (make_import_fixup): New function.
2364 (pe_find_data_imports): New function.
2365 (pr_sym): New function.
b6bf44ba 2366 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
2367 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2368 CODE.
2369
23702001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 2371
b044cda1
CW
2372 * ld.texinfo: add additional documentation for
2373 --export-all-symbols. Document --out-implib,
2374 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
2375 --dll-search-prefix, --enable-auto-import, and
2376 --disable-auto-import.
b044cda1
CW
2377 * ldint.texinfo: Add detailed documentation on auto-import
2378 implementation.
2379
156e34dd
NC
23802001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2381
2382 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2383 example.
2384
d6231427
AM
23852001-07-24 Alan Modra <amodra@bigpond.net.au>
2386
2387 * Makefile.am: Update dependencies with "make dep-am".
2388 * Makefile.in: Regenerate
2389
e14ec88b
AM
23902001-07-23 Alan Modra <amodra@bigpond.net.au>
2391
2392 * ldcref.c (check_section_sym_xref): New function.
2393 (check_nocrossrefs): Call it.
2394 (check_nocrossref): Interate over h->refs here instead of..
2395 (check_refs): ..here. Pass in the symbol name, section, and bfd
2396 rather than hash_entry pointers.
2397 (struct check_refs_info): Keep symbol name rather than hash entry.
2398 Remove "same".
2399 (check_reloc_refs): Tweak for above changes in check_refs_info.
2400 Only report references to section syms when symname is NULL to
2401 prevent duplicate messages for the same reloc.
2402
1b577b00
NC
24032001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2404
c7d701b0
NC
2405 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2406 available. Do not print NULL trees.
2407 (exp_print_token): Print unknown tokens with values > 126 as
2408 decimal values not ASCII characters.
2409
1545243b
NC
2410 * ldlang.c (lang_leave_overlay): If a region is specified assign
2411 it to all sections inside the overlay unless they have been
2412 assigned to the own, non-default, memory region.
2413
1b577b00
NC
2414 * README: Add header for consistency with other README files.
2415
5030876b
L
24162001-07-14 H.J. Lu <hjl@gnu.org>
2417
2418 * emultempl/elf32.em (output_prev_sec_find): Never return
2419 bfd_abs_section_ptr, bfd_com_section_ptr nor
2420 bfd_und_section_ptr.
2421
18c7a9a5
NC
24222001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2423
22af9fd3 2424 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
2425 elf32.em.
2426 * Makefile.in: Regenerate.
2427
9ffecff1
MG
24282001-07-14 matthew green <mrg@eterna.com.au>
2429
2430 * configure.tgt (i386-*-netbsdelf*): New target.
2431 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2432
95500e1c
JJ
24332001-07-13 Jakub Jelinek <jakub@redhat.com>
2434
2435 * emultempl/elf32.em (output_prev_sec_find): New.
2436 (place_orphan): Use it.
2437
e97cb84f
L
24382001-07-11 H.J. Lu <hjl@gnu.org>
2439
2440 * ldmain.c (main): Fix typos in the last change.
2441
7333607e
JJ
24422001-07-11 Jakub Jelinek <jakub@redhat.com>
2443
2444 * ldmain.c (main): Disallow -F and -f without -shared.
2445
d29d80f2
NC
24462001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2447
2448 * emultempl/pe.em (after_open): Check for the output_bfd not
2449 having any coff_data structure allocated to it.
2450
c2a1a436
DB
24512001-07-09 David O'Brien <obrien@FreeBSD.org>
2452
2453 * emultempl/elf32.em: Do not assuming that contents of the buffer
2454 returned from basename function will remain unchanged accross other
2455 function calls.
2456
63653551
L
24572001-07-03 H.J. Lu <hjl@gnu.org>
2458
2459 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2460 2001-07-03. It creates dynamic entries even for static binaries.
2461
d303a449
L
24622001-07-03 Jakub Jelinek <jakub@redhat.com>
2463
2464 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2465 (DYNAMIC): Use it to reserve few dynamic entries for
2466 post-linking tools.
2467
9f22353f
AM
24682001-06-27 Alan Modra <amodra@bigpond.net.au>
2469
2470 * emulparams/hppa64linux.sh: New file.
2471 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2472 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2473 (ehppa64linux.c): Add rule to make it.
2474 Run "make dep-am".
2475 * Makefile.in: Regenerate.
2476
62bf86b4
HPN
24772001-06-21 Hans-Peter Nilsson <hp@axis.com>
2478
2479 * ld.texinfo (Options, -r): Mention restrictions when using
2480 different object formats.
2481
429d935d
HPN
24822001-06-19 Hans-Peter Nilsson <hp@axis.com>
2483
2484 * ldlang.c (lang_check): Emit fatal error if relocatable link
2485 between different object flavours with relocations in input.
2486
cb840a31
L
24872001-06-19 H.J. Lu <hjl@gnu.org>
2488
2489 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2490 (--version-script): Mention the language support.
2491
9bf03acc
L
24922001-06-19 H.J. Lu <hjl@gnu.org>
2493
2494 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2495
c45021f2
NC
24962001-06-18 H.J. Lu <hjl@gnu.org>
2497
b6bf44ba
AM
2498 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2499 (diststuff): Add $(MANS).
2500 * Makefile.in: Regenerated.
c45021f2 2501
b6bf44ba 2502 * ld.1: Removed.
c45021f2 2503
6caa99ab
HPN
25042001-06-18 Hans-Peter Nilsson <hp@axis.com>
2505
605d9b3a
HPN
2506 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2507 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2508 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2509 * ld.h (args_type): Remove member export_dynamic. All users
2510 changed to use struct bfd_link_info member.
2511
6caa99ab
HPN
2512 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2513 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2514 * Makefile.in: Regenerate.
2515
6f9efd97
L
25162001-06-18 H.J. Lu <hjl@gnu.org>
2517
2518 * ldlang.c (init_os): Add the newline to the einfo call.
2519 (lang_check): Likewise.
2520 (lang_do_version_exports_section): Likewise.
2521
5af9fd8b
L
25222001-06-15 H.J. Lu <hjl@gnu.org>
2523
2524 * lexsup.c (parse_args); Save optind to report unrecognized
2525 option.
2526
2a096f04
HPN
25272001-06-15 Hans-Peter Nilsson <hp@axis.com>
2528
7e66c3f5
HPN
2529 * ldlang.c (lang_check): Emit fatal error if relocatable link
2530 between different object flavours.
2531
2a096f04
HPN
2532 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2533 Set new link_info member export_dynamic.
2534 * ldmain.c (main): Initialize new link_info member export_dynamic.
2535
6770ec8c
NC
25362001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2537
2538 * ldlang.c (walk_wild): Only call walk_wild_file if
2539 lookup_name returns something.
b6bf44ba 2540 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 2541 (load_symbols): Change to a boolean function.
b6bf44ba 2542 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
2543 executable.
2544
8529105a
AM
25452001-06-08 Alan Modra <amodra@bigpond.net.au>
2546
2547 * ldlang.c (record_bfd_errors): Remove.
2548
2549 * emultempl/aix.em: Fix copyright dates.
2550
8f3aa7a0
AJ
25512001-06-07 Andreas Jaeger <aj@suse.de>
2552
2553 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2554 (TEXT_START_ADDR): Likewise.
2555
3277f888
AM
25562001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2557
2558 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2559
3763134d
DD
25602001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2561
2562 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2563
5929ebc0
L
25642001-05-31 H.J. Lu <hjl@gnu.org>
2565
2566 * ldlang.c (open_input_bfds): Don't change the bfd error
2567 handler whilst loading symbols.
2568
c04a062d
NC
25692001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2570
2571 * configure.tgt: Remove i370-mvs architecture, it is not currently
2572 supported.
2573
96fcab3e
L
25742001-05-25 H.J. Lu <hjl@gnu.org>
2575
2576 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2577 like emulparams/aixppc.sh.
2578
db8d4f23
L
25792001-05-25 H.J. Lu <hjl@gnu.org>
2580
2581 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2582 setting of output_filename after bfd_scan_arch.
2583 * emultempl/pe.em: Likewise.
2584
5f642101
L
25852001-05-25 H.J. Lu <hjl@gnu.org>
2586
2587 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2588 like emulparams/aixppc.sh.
2589
2590 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2591 instead of ${srcdir}/emultempl/stringify.sed.
2592
64e9ece0
TW
25932001-05-25 Timothy Wall <twall@oculustech.com>
2594
2595 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 2596 output.
64e9ece0 2597
c709b096
AM
25982001-05-25 Alan Modra <amodra@one.net.au>
2599
2600 * configure.host: Replace linuxoldld with linux*oldld.
2601 * configure.tgt: Likewise.
2602
6cbdcc6f
L
26032001-05-24 H.J. Lu <hjl@gnu.org>
2604
2605 * emultempl/stringify.sed: Removed again.
2606
86af25fe
L
26072001-05-24 H.J. Lu <hjl@gnu.org>
2608
2609 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2610 (gld${EMULATION_NAME}_before_parse): Initialize
2611 ldfile_output_architecture, ldfile_output_machine and
2612 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2613 * emultempl/beos.em: Likewise.
2614 * emultempl/elf32.em: Likewise.
2615 * emultempl/linux.em: Likewise.
2616 * emultempl/mipsecoff.em: Likewise.
2617 * emultempl/pe.em: Likewise.
2618 * emultempl/sunos.em: Likewise.
2619
3b1b01cf
TR
26202001-05-24 Tom Rix <trix@redhat.com>
2621
8f3aa7a0 2622 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
2623 udate import file format.
2624 (change_symbol_mode) New, same
2625 (is_syscall) New, same
2626 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2627 * emulparams/aixppc64.sh : same
2628 * emulparams/aixrs6.sh : same
2629 * emulparams/ppcmacos.sh : same
2630 * emultempl/aix.em : use strtoull to parse options
2631 * Makefile.am : add eaixppc64 emulation for xcoff64
2632 * Makefile.in : same
2633 * configure.tgt : same
2634
2635 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 2636 default data section offset to 0x20000000
3b1b01cf 2637 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 2638 loader and debug sections use the currect section offset.
3b1b01cf
TR
2639
2640 * emultempl/aix.em : Add xcoff64 support
2641 Add -binitfini support
8f3aa7a0 2642 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 2643 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 2644 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
2645 sections
2646
2647 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 2648
57e6abd2
AO
26492001-05-23 Alexandre Oliva <aoliva@redhat.com>
2650
2651 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2652 variable to avoid non-portable shell construct.
2653
d1cf510e
NC
26542001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2655
2656 * ldmain.c (get_emulation): Add -mips5 command line argument.
2657
506eee22
NC
26582001-05-22 Alexandre Oliva <aoliva@redhat.com>
2659
2660 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2661 (ELF_INTERPRETER_NAME): Define it.
2662 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2663 it.
2664 * configure.tgt (targ_emul, targ_extra_emuls)
2665 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2666 as primary, elf_i386 as extra.
2667 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2668 (eelf_i386_ldso.c): New rule.
2669 * Makefile.in: Rebuilt.
2670
26712001-05-22 Nick Clifton <nickc@redhat.com>
2672
2673 * lexsup.c (ld_options): Allow -I to be an alias for
2674 --dynamic-linker. This is for Solaris compatability.
2675 * ld.texinfo: Document that -I can be used.
2676 * ld.1: Regenerate.
2677
d1778b88
AM
26782001-05-16 Alan Modra <amodra@one.net.au>
2679
2680 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2681 whether an input section is the first one assigned to an output
2682 section.
2683 Assorted formatting fixes.
2684
02649152
DD
26852001-05-14 DJ Delorie <dj@delorie.com>
2686
2687 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2688 * Makefile.in: Ditto.
2689
579f31ac
JJ
26902001-05-11 Jakub Jelinek <jakub@redhat.com>
2691
2692 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2693 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2694 output sections.
2695 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2696
8550eb6e
JJ
26972001-05-11 Jakub Jelinek <jakub@redhat.com>
2698
2699 * ldlang.c (lang_process): Call bfd_merge_sections.
2700
8e5a525c
AM
27012001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2702
2703 * ldgram.y: Fix typo.
2704
1c9acd94
L
27052001-05-03 H.J. Lu <hjl@gnu.org>
2706
2707 * emultempl/elf32.em: Include "libiberty.h".
2708 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2709 basename of the bfd filename.
2710 (gld${EMULATION_NAME}_stat_needed): Likewise.
2711 (gld${EMULATION_NAME}_try_needed): Likewise.
2712 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2713
14fe918e
L
27142001-05-02 H.J. Lu <hjl@gnu.org>
2715
2716 * emultempl/pe.em: Include <ctype.h>.
2717
c7e40348
NC
27182001-05-02 Johan Rydberg <jrydberg@opencores.org>
2719
b6bf44ba 2720 * emulparams/elf32openrisc.sh: New file.
c7e40348 2721
b6bf44ba
AM
2722 * Makefile.am: Add OpenRISC target.
2723 * Makefile.in: Regenerated.
c7e40348 2724
b6bf44ba 2725 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
2726
27272001-05-02 Nick Clifton <nickc@redhat.com>
2728
2729 * emultempl/aix.em: Replace buystring with xstrdup.
2730 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 2731
d1b2b2dc
L
27322001-05-02 H.J. Lu <hjl@gnu.org>
2733
2734 * ldfile.c: Include "libiberty.h".
2735 * ldlex.l: Likewise.
2736
2737 * ldmisc.c (buystring): Removed.
2738 * ldmisc.h: Likewise.
2739
2740 * ldfile.c: Replace buystring with xstrdup.
2741 * ldlang.c: Likewise.
2742 * ldlex.l: Likewise.
2743 * ldmain.c: Likewise.
2744 * ldmisc.c: Likewise.
2745 * lexsup.c: Likewise.
2746 * mpw-eppcmac.c: Likewise.
2747
35714f2a
AJ
27482001-04-30 Andreas Jaeger <aj@suse.de>
2749
2750 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2751
884fb58e
NC
27522001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2753
b6bf44ba
AM
2754 * ldlang.c (load_symbols): Give emulation a chance
2755 to process unrecognized file before fatal error is
2756 reported, not after.
884fb58e 2757
87748b32
NC
27582001-04-27 Sean McNeil <sean@mcneil.com>
2759
2760 * configure.tgt: Add arm-vxworks target.
2761 * scripttempl/armcoff.sc: Support .text or .data as a section name
2762 prefix.
2763 Define _etext.
35714f2a 2764
7ce691ae
C
27652001-04-13 J.T. Conklin <jtc@redback.com>
2766
2767 * ld.texinfo: Document --fatal-warnings.
2768 * ld.1: Regenerate.
2769
2770 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 2771 warnings have been turned into errors.
7ce691ae
C
2772 * lexsup.c (OPTION_WARN_FATAL): Define.
2773 (ld_options): Entry for --fatal-warnings.
2774 (parse_args): Handle OPTION_WARN_FATAL.
2775 * ld.h (ld_config_type): Add fatal_warnings field.
2776
f5fa8ca2
JJ
27772001-04-13 Jakub Jelinek <jakub@redhat.com>
2778
2779 * ldmain.c (main): Default to discard_sec_merge.
2780 * lexsup.c (OPTION_DISCARD_NONE): Define.
2781 (ld_options): Add --discard-none.
2782 (parse_args): Handle OPTION_DISCARD_NONE.
2783 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2784 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2785 all its input sections match.
2786
fdec3cfc
L
27872001-04-05 Steven J. Hill <sjhill@cotw.com>
2788
2789 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2790 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2791 (eelf32ltsmip.c): New target.
2792 (eelf64btsmip.c): Likewise.
2793 (eelf64ltsmip.c): Likewise.
2794 * Makefile.in: Regenerated.
2795
2796 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2797 target.
2798 (mips*-*-linux-gnu*): Likewise.
2799
2800 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2801 MIPS taget.
35714f2a 2802 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
2803 target.
2804 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2805 endian target.
2806
589bad82
HPN
28072001-04-05 Hans-Peter Nilsson <hp@axis.com>
2808
2809 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2810 correct value of __Stext here.
2811 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2812 .startup section.
2813
2814 * emulparams/crislinux.sh: Remove FIXME.
2815
94202e16
AM
28162001-04-02 Alan Modra <alan@linuxcare.com.au>
2817
2818 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2819 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2820
1268a053
HPN
28212001-03-27 Hans-Peter Nilsson <hp@axis.com>
2822
2823 * configure.tgt (cris-*-*): Change default emulation to criself.
2824 (cris-*-*aout*): New rule.
2825
d85e9ff7
AM
28262001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2827
2828 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2829 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2830
0879a67a
AJ
28312001-03-26 Andreas Jaeger <aj@suse.de>
2832
2833 * ld.texinfo (Overview): Fix syntax in texi code.
2834
0285c67d
NC
28352001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2836
2837 * ld.texinfo: Put @c man indications to generate the ld man page.
2838 When generating man, define all the variables. Define SEEALSO
2839 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2840 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2841 (ld.1): Generate from ld.texinfo.
2842 * Makefile.in: Regenerate.
2843
c20ec07b
NC
28442001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2845
2846 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 2847 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 2848
cc5ce052
UD
28492001-03-17 Ulrich Drepper <drepper@redhat.com>
2850
2851 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2852 is an absolute path look only for this file and not along the path.
2853
a1ab1d2a
UD
28542001-03-17 Ulrich Drepper <drepper@redhat.com>
2855
2856 * emultempl/elf32.em (OPTION_GROUP): New macro.
2857 Add new option Bgroup to longopts.
2858 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2859 (gld*_list_options): Add -Bgroup and -z defs.
2860 * ld.1: Document -Bgroup and -z defs.
2861 * ld.texinfo: Likewise.
2862
788fca5a
MM
28632001-03-07 Michael Meissner <meissner@redhat.com>
2864
2865 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2866 with sections created by -fdata-sections.
2867 (.dynbss,.bss): Ditto.
2868
1c7566d1
AM
28692001-03-05 Alan Modra <alan@linuxcare.com.au>
2870
2871 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2872 after_allocation_default, not gld..._before_allocation.
2873
27b7e12d
AM
28742001-02-27 Alan Modra <alan@linuxcare.com.au>
2875
2876 * configure.in (BFD_VERSION): New.
2877 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2878 * configure: Regenerate.
2879 * Makefile.am: Run "make dep-am"
2880 * Makefile.in: Regenerate.
2881
2bc551c7
TW
28822001-02-26 Timothy Wall <twall@cygnus.com>
2883
2884 * emulparams/elf64_aix.sh: Add additional read-only sections;
2885 uncomment lines which are now required.
2886
1276aefa
NC
28872001-02-26 H.J. Lu <hjl@gnu.org>
2888
2889 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
2890 that problems can be caught whilst loading symbols.
2891 (record_bfd_errors): New function: Report BFD errors and mark
2892 the executable output as being invalid.
1276aefa 2893
41c49998
TW
28942001-02-22 Timothy Wall <twall@cygnus.com>
2895
2896 * configure.host: Add configuration for ia64-*-aix*.
2897 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2898 Add dependencies for eelf64_aix.c.
2899 * Makefile.in: Regenerate.
2900 * configure.tgt: Add ia64-*-aix* mapping.
2901 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 2902 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
2903 AIX-specific test.
2904
78f85fd7
L
29052001-02-20 H.J. Lu <hjl@gnu.org>
2906
2907 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2908 false if we found the file.
2909
1ac7e077 29102001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
2911
2912 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2913 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2914
e135f41b
NC
29152001-02-18 lars brinkhoff <lars@nocrew.org>
2916
2917 * Makefile.am: Add PDP-11 target.
2918 * configure.tgt: Likewise.
2919 * emulparams/pdp11.sh: New file.
2920
a842aceb
DB
29212001-02-17 David O'Brien <obrien@FreeBSD.org>
2922
2923 * configure.host: Add a generic FreeBSD configuration entry such that
2924 all [modern] FreeBSD systems on all platforms will look the same.
2925
24174db0
L
29262001-02-14 H.J. Lu <hjl@gnu.org>
2927
2928 * configure.tgt: Remove mention of earmelf_linux26.
2929
30c3c13a
RH
29302001-02-13 Richard Henderson <rth@redhat.com>
2931
2932 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2933
b46a87b1
L
29342001-02-13 H.J. Lu <hjl@gnu.org>
2935
2936 * ldexp.h (node_type): Add etree_provided.
2937 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2938 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 2939 for etree_provided.
b46a87b1
L
2940 (exp_print_tree): Handle etree_provided.
2941 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2942 etree_provided.
2943
f3988fd9
RH
29442001-02-09 David Mosberger <davidm@hpl.hp.com>
2945
2946 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2947 .IA_64.unwind.* pattern to unwind table section and
2948 .IA_64.unwind_info* pattern to unwind info section.
2949
a85d7ed0
NC
29502001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2951
2952 * Makefile.am: Add linux target for S/390.
2953 * Makefile.in: Likewise.
2954 * configure.host: Likewise.
2955 * configure.tgt: Likewise.
2956 * emulparams/elf64_s390.sh: New file.
2957 * emulparams/elf_s390.sh: New file.
2958
780248c4
JJ
29592001-02-09 Jakub Jelinek <jakub@redhat.com>
2960
2961 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2962 targ_extra_libpath.
2963 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2964
0e2534bd
PB
29652001-02-06 Philip Blundell <philb@gnu.org>
2966
2967 * Makefile.am: Remove mention of earmelf_linux26.
2968 * Makefile.in: Regenerate.
2969
46c1ea57
PB
29702001-02-04 Philip Blundell <philb@gnu.org>
2971
2972 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2973 * emulparams/armelf_linux26.sh: Delete.
2974 * configure.tgt: Remove mention of armelf_linux26 emulation.
2975
0088edd2
NC
29762001-02-01 Nick Clifton <nickc@redhat.com>
2977
2978 * ld.1: Replace occurances of -oformat with --oformat.
2979
02aa14fb
AM
29802001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2981
2982 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2983 load_base is specified.
2984
f813923c
HPN
29852001-01-24 Hans-Peter Nilsson <hp@axis.com>
2986
2987 * emultempl/elf32.em: Correct spelling in comments and listed
2988 options.
2989
c1eb1488
AM
29902001-01-23 Alan Modra <alan@linuxcare.com.au>
2991
2992 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2993 default for the first section of a group of overlay sections.
2994
d9fc3714
AM
29952001-01-22 Alan Modra <alan@linuxcare.com.au>
2996
2997 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2998 * Makefile.in: Regenerate.
2999 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3000 Check for null tool_dir.
3001
6be0ca94
JW
30022001-01-16 Jim Wilson <wilson@redhat.com>
3003
3004 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3005 and IA_64.unwind.info.
3006
b9247304
L
30072001-01-16 H.J. Lu <hjl@gnu.org>
3008
3009 * ldlang.c (lang_check): Merge the private data only if the
3010 input file has contents.
3011
577a0623
AM
30122001-01-14 Alan Modra <alan@linuxcare.com.au>
3013
d952f17a
AM
3014 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3015
ffd6e9de
AM
3016 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3017 enabling search for libmilli. On a relocatable link, make .text
3018 sections unique.
3019 (LDEMUL_AFTER_PARSE): Define.
3020 (hppaelf_finish): Correct spelling of relocatable in comments.
3021
577a0623
AM
3022 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3023 rummage through the script for sections on the unique list.
3024 Correct length of strncmp for ".note".
3025 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3026
3027 * ldlang.c (unique_section_list): New var.
3028 (unique_section_p): New function.
3029 (walk_wild_section): Don't match sections on unique_section_list.
3030 (lang_add_unique): New function.
ffd6e9de 3031 Correct spelling of relocatable in comments.
577a0623
AM
3032
3033 * ldlang.h (struct unique_sections): Declare.
3034 (unique_section_list): Declare.
3035 (unique_section_p): Declare.
3036 (lang_add_unique): Declare.
3037
3038 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3039 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3040
3041 * ld.texinfo (--unique): Update.
3042
b7ed8fad
NC
30432001-01-13 Nick Clifton <nickc@redhat.com>
3044
3045 * lexsup.c (parse_args): Remove spurious white space.
3046
d0398d6a
NC
30472001-01-12 Nick Clifton <nickc@redhat.com>
3048
3049 * lexsup.c (parse_args): Update copyright date.
3050
350fdb00
PB
30512001-01-12 Philip Blundell <pb@futuretv.com>
3052
3053 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3054
60c6797e
KH
30552001-01-10 Kazu Hirata <kazu@hxi.com>
3056
3057 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3058 * scripttempl/h8300h.sc: Fix formatting.
3059 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
3060 * scripttempl/h8500.sc: Likewise.
3061 * scripttempl/h8500b.sc: Likewise.
3062 * scripttempl/h8500c.sc: Likewise.
3063 * scripttempl/h8500m.sc: Likewise.
3064 * scripttempl/h8500s.sc: Likewise.
60c6797e 3065
482e8b32
DB
30662000-01-07 David O'Brien <obrien@BSDi.com>
3067
3068 * emultempl/elf32.em: Only perform Linux ld hints processing when
3069 targeting Linux.
3070
d7ed7ca6
PB
30712001-01-07 Philip Blundell <philb@gnu.org>
3072
3073 * ld.texinfo (Bug Reporting): Update email address for reports.
3074
0fc3347a
NC
30752000-12-31 Nick Clifton <nickc@redhat.com>
3076
3077 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3078 options by checking for a return value of '?' not -1.
3079
e4897a32
NC
30802000-12-28 Nick Clifton <nickc@redhat.com>
3081
3082 * lexsup.c (struct ld_option): Add new enum value:
3083 EXACTLY_TWO_DASHES.
3084 (ld_options[]): Change -omagic, -output and -oformat options
3085 to be EXACTLY_TWO_DASHES.
3086 (OUTPUT_COUNT): Use ARRAY_SIZE.
3087 (parse_args): Change parameter 'argc' to unsigned.
3088 Place EXACTLY_TWO_DASHES options into new really_longopts
3089 array.
3090 If getopt_long_only fails, try calling getopt_long using the
3091 really_longopts array.
3092 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3093 TWO_DASHES options.
3094
3095 * ldlex.h: Fix prototype of parse_args.
3096
3097 * ld.texinfo: Document that long options starting with 'o'
3098 must be preceeded by two dashes. Change example of a single
3099 dashed long option from -oformat to -trace-symbol.
3100
1122a5fc
NC
31012000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3102
3103 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3104 (longopts[]): New --no-default-excludes option.
3105 (gld_${EMULATION_NAME}_list_options): Document.
3106 (gld_${EMULATION_NAME}_parse_args): Handle.
3107
037849a9
NC
31082000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3109
3110 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3111 whitespace, it breaks the K&R C preprocessor.
3112
7ec229ce
DD
31132000-12-11 DJ Delorie <dj@redhat.com>
3114
3115 * ld.texinfo: Add notes about --whole-archive and gcc.
3116
b79e8c78
NC
31172000-11-18 Fred Fish <fnf@be.com>
3118
3119 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3120 (ld_options): Entry for --allow-shlib-undefined.
3121 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3122 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3123 to false.
3124 * ld.texinfo: Document new command line switch.
d952f17a 3125
9a8e2505
GK
31262000-12-12 Geoffrey Keating <geoffk@redhat.com>
3127
3128 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3129 .fixup is actually read/write.
3130 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3131 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3132 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3133
3b16e843 31342000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
3135
3136 * NEWS: Add note about x86_64 architecture.
3137
93b63cd3
DD
31382000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3139
3140 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3141 Set DWARF2 sections to a VMA of zero.
3142
68b2fc7a 31432000-12-01 Joel Sherrill <joel@OARcorp.com>
24f6971a 3144
d952f17a 3145 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
3146 New targets.
3147 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3148 (sparc*-*-rtems*): Switched from a.out to ELF.
3149
2be3aa03
NC
31502000-11-30 Jan Hubicka <jh@suse.cz>
3151
3152 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3153 (eelf_x86_64.c): New.
3154 * Makefile.in: Regenerate.
3155 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3156 * emulparams/elf_x86_64.sh: New.
3157
8c899858
HPN
31582000-11-30 Hans-Peter Nilsson <hp@axis.com>
3159
3160 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3161 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3162
3163 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3164 merging non-a.out sections into CONSTRUCTING.
3165
e47b9e39
NC
31662000-11-28 Nick Clifton <nickc@redhat.com>
3167
3168 * ld.1 (COPYING): Mention that the GNU Free Documentation
3169 License is present in the sources, but not the output, and
3170 also available from the GNU website.
3171 (GNU Free Documentation License): Comment out this section.
3172
ad95f82a
DB
31732000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3174
3175 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3176 does not use them.
3177
fd89e65f
DB
31782000-11-25 David O'Brien <obrien@FreeBSD.org>
3179
3180 * ld.1: Remove old date so it does not give the impression the manpage
3181 is way out of date.
3182
077b8428
NC
31832000-11-24 Nick Clifton <nickc@redhat.com>
3184
3185 * configure.tgt (xscale-coff): Add target.
3186 (xscale-elf): Add target.
3187
49425d28
NC
31882000-11-24 Fred Fish <fnf@be.com>
3189
d952f17a
AM
3190 * ldmain.c (main): Remove redundant init of config.make_executable
3191 to true.
49425d28 3192
d3480244
RH
31932000-11-15 Richard Henderson <rth@redhat.com>
3194
3195 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3196
1ce7de8b
KH
31972000-11-14 Kazu Hirata <kazu@hxi.com>
3198
3199 * scripttempl/h8300.sc: Fix formatting.
3200 * scripttempl/h8300h.sc: Likewise.
3201 * scripttempl/h8300s.sc: Likewise.
3202
3b16e843 32032000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
3204
3205 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3206
2e418547
PB
32072000-11-09 Philip Blundell <pb@futuretv.com>
3208
3209 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3210 around orphan sections whose names can be represented in C.
3211
c940e6fc
JW
32122000-11-07 Jim Wilson <wilson@redhat.com>
3213
3214 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3215 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3216
704c465c
NC
32172000-11-06 Nick Clifton <nickc@redhat.com>
3218
3219 * ld.texinfo: Add GNU Free Documentation License.
3220 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 3221 * ld.1: Add GNU Free Documentation License.
704c465c 3222
dca7760f
AM
32232000-11-05 Alan Modra <alan@linuxcare.com.au>
3224
3225 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3226 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3227
3228 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3229 Move 2000-11-02 Makefile.in changes to this file.
3230 * Makefile.in: Regenerate.
3231
40a633d5
NC
32322000-11-03 Nick Clifton <nickc@redhat.com>
3233
3234 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3235 constructors and destructors.
3236 * scripttempl/h8300h.sc: Ditto.
3237 * scripttempl/h8300s.sc: Ditto.
3238 * scripttempl/h8500.sc: Ditto.
3239 * scripttempl/h8500b.sc: Ditto.
3240 * scripttempl/h8500c.sc: Ditto.
3241 * scripttempl/h8500m.sc: Ditto.
3242 * scripttempl/h8500s.sc: Ditto.
3243 * scripttempl/v850.sc: Ditto.
3244 * scripttempl/w65.sc: Ditto.
3245 * scripttempl/z8000.sc: Ditto.
3246
59ff2774
NC
32472000-11-02 Per Lundberg <plundis@chaosdev.org>
3248
3249 * Makefile.in (e_i386_chaos.c): New rule.
3250 (ALL_EMULATIONS): Added e_i386_chaos.o.
3251 * emulparams/elf_i386_chaos.sh: New file.
3252 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3253
645571e1
JJ
32542000-10-20 Jakub Jelinek <jakub@redhat.com>
3255
3256 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3257 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3258 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3259 library path suffix.
3260 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3261
c5975a45
HPN
32622000-10-18 Hans-Peter Nilsson <hp@axis.com>
3263
3264 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3265 for consecutive sections.
3266
ea20a7da
CC
32672000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3268
d952f17a
AM
3269 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3270 options.
3271 * ld.texinfo: Added notes about this new option.
ea20a7da 3272
6e45556a
NC
32732000-10-16 Nick Clifton <nickc@redhat.com>
3274
3275 * emultempl/pe.em (_after_open): Add tests of return values from
3276 bfd functions. Emit appropriate error messages if necessary.
3277
b9a69188
NC
32782000-10-13 Nick Clifton <nickc@redhat.com>
3279
3280 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
3281 local variables - they are not used, but leave in the call to
3282 bfd_canonicalize_symtab.
b9a69188
NC
3283 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3284 pe_dll_search_prefix.
3285
627427de 32862000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 3287
627427de
DD
3288 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3289 (longopts): New --dll-search-prefix option.
3290 (gld_${EMULATION_NAME}_list_options): Document.
3291 (gld_${EMULATION_NAME}_parse_args): Handle.
3292 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3293 dynamically, search for a dll named '<prefix><basename>.dll'
3294 in preference to 'lib<basename>.dll' if --dll-search-prefix
3295 is specified.
3296
24376d1b
AM
32972000-10-12 Alan Modra <alan@linuxcare.com.au>
3298
3299 * ldlang.c (section_already_linked): Set kept_section instead of
3300 sec->comdat->sec.
3301
e47d05ad
KH
33022000-10-10 Kazu Hirata <kazu@hxi.com>
3303
3304 * deffile.h: Fix formatting.
3305 * lexsup.c: Likewise.
3306 * mri.c: Likewise.
3307
23a87948
DD
33082000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3309
3310 * pe-dll.c (make_one): Do not generate code thunk for DATA
3311 exports.
3312 (process_def_file): deduce DATA flag for auto-export sumbols.
3313
86b1cc60
KH
33142000-10-09 Kazu Hirata <kazu@hxi.com>
3315
89cdebba
KH
3316 * ld.h: Fix formatting.
3317 * ldcref.c: Likewise.
3318 * ldctor.h: Likewise.
3319 * ldemul.c: Likewise.
3320 * ldemul.h: Likewise.
3321 * ldexp.c: Likewise.
3322 * ldexp.h: Likewise.
3323 * ldfile.c: Likewise.
3324 * ldfile.h: Likewise.
3325 * ldlang.c: Likewise.
3326 * ldlang.h: Likewise.
3327 * ldmain.c: Likewise.
7bfd51a3
KH
3328 * pe-dll.c: Likewise.
3329
3330 * pe-dll.c: Revert some formatting fixes.
86b1cc60 3331
d643799d
KH
33322000-10-08 Kazu Hirata <kazu@hxi.com>
3333
3334 * pe-dll.c: Fix formatting.
3335
08da4cac
KH
33362000-10-05 Kazu Hirata <kazu@hxi.com>
3337
3338 * ldlang.c: Fix formatting.
3339
c2a94a7a
DD
33402000-10-03 DJ Delorie <dj@redhat.com>
3341
3342 * pe-dll.c (fill_edata): initialize entire block
3343 (make_one): fill in correct section.
3344
8c95a62e
KH
33452000-10-03 Kazu Hirata <kazu@hxi.com>
3346
3347 * ldexp.c: Fix formatting.
3348
486e80e2
DD
33492000-10-02 DJ Delorie <dj@redhat.com>
3350
3351 * emultempl/pe.em (gld_*_after_open): detect case where there two
3352 import libraries for same dll; rename one to ensure proper link
3353 order.
3354
3355 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3356 typo
3357 (generate_edata): fix typo
3358
24dd9f75
HPN
33592000-09-29 Hans-Peter Nilsson <hp@axis.com>
3360
3361 * scripttempl/crisaout.sc (ENTRY): Now __start.
3362 (.text): Add default setting for __start.
3363 Remove CONSTRUCTORS handling.
3364 (/DISCARD/): Add .gnu.warning.*.
3365 * emulparams/crislinux.sh (ENTRY): Now __start.
3366 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3367 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3368 (ENTRY): Now __start.
3369 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3370 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3371
4de2d33d
KH
33722000-09-29 Kazu Hirata <kazu@hxi.com>
3373
5cc18311
KH
3374 * deffile.h: Fix formatting.
3375 * ld.h: Likewise.
3376 * ldcref.c: Likewise.
4de2d33d 3377 * ldctor.c: Likewise.
5cc18311 3378 * ldctor.h: Likewise.
4de2d33d 3379 * ldemul.c: Likewise.
5cc18311 3380 * ldemul.h: Likewise.
4de2d33d 3381 * ldexp.c: Likewise.
5cc18311 3382 * ldexp.h: Likewise.
4de2d33d 3383 * ldfile.c: Likewise.
5cc18311 3384 * ldfile.h: Likewise.
4de2d33d 3385 * ldlang.c: Likewise.
5cc18311
KH
3386 * ldlang.h: Likewise.
3387 * lexsup.c: Likewise.
3388 * mri.c: Likewise.
3389 * pe-dll.c: Likewise.
4de2d33d 3390
45b1f63c
DD
33912000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3392
3393 * pe-dll.c (process_def_file): Uninitialized data wasn't
3394 exported with --export-all-symbols switch.
d952f17a 3395
45b1f63c
DD
33962000-09-28 DJ Delorie <dj@redhat.com>
3397
3398 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3399 noname work properly.
3400
47d89dba
AM
34012000-09-28 Alan Modra <alan@linuxcare.com.au>
3402
3403 * ld.texinfo (HPPA ELF32): New section.
3404
3405 * emultempl/hppaelf.em (group_size): New.
3406 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3407 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3408 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3409 options to prevent abbreviations matching.
3410 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3411 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3412
36bdbeec
NC
34132000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3414
3415 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3416 on the m68*-*-elf target. Make it support COFF input objects.
3417
6d5e62f8
KH
34182000-09-21 Kazu Hirata <kazu@hxi.com>
3419
3420 * ldmain.c: Fix formatting.
3421 * ldmisc.c: Likewise.
3422 * ldver.c: Likewise.
3423 * ldwrite.c: Likewise.
3424
e2eb67d9
AM
34252000-09-21 Alan Modra <alan@linuxcare.com.au>
3426
3427 * ldwrite.c (clone_section): Silence gcc warnings.
3428
b3ea3584
AM
34292000-09-20 Alan Modra <alan@linuxcare.com.au>
3430
3431 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3432 out of memory failure.
3433
3434 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3435 (clone_section): Handle out of memory failures. Rename var to
3436 avoid c++ reserved word.
3437
25f72752
AM
34382000-09-18 Alan Modra <alan@linuxcare.com.au>
3439
3440 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3441 stub_name param to stub_sec_name.
3442 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3443
0752970e
NC
34442000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3445
3446 * emultempl/m68kelf.em: New file.
3447 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3448 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3449 * Makefile.in: Regenerate.
3450
92b7e9d8
AM
34512000-09-15 Alan Modra <alan@linuxcare.com.au>
3452
3453 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3454 only as needed.
3455
9b14b192
NC
34562000-09-13 Nick Clifton <nickc@redhat.com>
3457
3458 * ldmain.c (multiple_definition): Disable relaxation if
3459 multiple symbol definitions are encountered - otherwise the
3460 linker could abort with an assertion failure.
3461
891fa266
NC
34622000-09-10 Nick Clifton <nickc@redhat.com>
3463
3464 * mri.c: Fix formatting.
3465
5d64ca4e
L
34662000-09-07 H.J. Lu <hjl@gnu.org>
3467
3468 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3469 * configure: Rebuild.
3470
dd94604f
L
34712000-09-07 H.J. Lu <hjl@gnu.org>
3472
3473 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3474 * Makefile.in: Rebuild.
3475
71bfc0ae
AM
34762000-09-07 Alan Modra <alan@linuxcare.com.au>
3477
3478 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3479 broken list handling. Create __start_SECNAME and __stop_SECNAME
3480 when no place-holder. Add some comments. Test both SEC_CODE and
3481 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 3482 Handle case where no output section statement created.
71bfc0ae 3483
4a428502
AO
34842000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3485
3486 * configure.tgt (sh-*-linux*): Added.
3487 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3488 * Makefile.in: Rebuilt.
3489 * emulparams/shelf_linux.sh: New file.
3490 * emulparams/shlelf_linux.sh: New file.
3491
f9989030
AM
34922000-09-06 Alan Modra <alan@linuxcare.com.au>
3493
3494 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3495 try shuffling sections when the orphan happens to be the place
3496 holder. Keep count of unique section names generated so we speed
3497 the search for a new name.
3498
58cccadb
AO
34992000-09-06 Alexandre Oliva <aoliva@redhat.com>
3500
3501 * configure: Rebuilt with new libtool.m4.
3502
5b343f5a
NC
35032000-09-05 Nick Clifton <nickc@redhat.com>
3504
3505 * Makefile.in: Regenerate.
3506 * aclocal.m4: Regenerate.
3507 * configure: Regenerate.
3508 * config.in: Regenerate.
3509 * po/ld.pot: Regenerate.
3510
3511 * ldint.texinfo: Remove CVS revision marker - it foils local
3512 comparisons.
3513
3514 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 3515
a854a4a7
AM
35162000-09-05 Alan Modra <alan@linuxcare.com.au>
3517
3231d22e
AM
3518 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3519 to stub section flags.
3520 (hppa_for_each_input_file_wrapper): New.
3521 (hppa_lang_for_each_input_file): New.
3522 (lang_for_each_input_file): Define to call above.
3523 (multi_subspace): New.
3524 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3525 (PARSE_AND_LIST_PROLOGUE): Define.
3526 (PARSE_AND_LIST_LONGOPTS): Define.
3527 (PARSE_AND_LIST_OPTIONS): Define.
3528 (PARSE_AND_LIST_ARGS_CASES): Define.
3529 (hppaelf_finish): Call elf32_hppa_set_gp.
3530 (hppaelf_set_output_arch): Remove.
3531 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3532
3533 * emulparams/hppalinux.sh (ELFSIZE): Define.
3534 (MACHINE): Define.
3535 (OTHER_READONLY_SECTIONS): Define.
3536 (DATA_PLT): Define.
3537 (GENERATE_SHLIB_SCRIPT): Define.
3538
5f992e62
AM
3539 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3540 to const throughout. Change `void *' to `PTR' throughout.
3541 (lang_memory_default): Function is local to file, add `static'.
3542
3543 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3544 (ehppalinux.c): Likewise.
3545 (earmelf.c): Likewise.
3546 (earmelf_linux.c): Likewise.
3547 (earmelf_linux26.c): Likewise.
3548 * Makefile.in: Regenerate.
3549
a854a4a7
AM
3550 * ld.h (ld_config_type): Add unique_orphan_sections.
3551 * lexsup.c (OPTION_UNIQUE): Define.
3552 (ld_options): Add "--unique".
3553 (parse_args): Handle it.
3554 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3555 search for an existing output section if unique_orphan_sections is
3556 set. Make use of bfd_get_unique_section_name rather than
3557 duplicating code here.
3558 * ld.texinfo: Describe --unique.
3559
3560 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3561 optional arg to split-by-file.
3562 (parse_args): Handle them.
3563 * ld.texinfo: Update description of these options.
3564 * ldwrite.c (clone_section): Pass in the section name. Replace
3565 local code with bfd_get_unique_section_name.
3566 (split_sections): Tidy code and comments. Use a list traversal
3567 more appropriate to the list construction. Handle cooked section
3568 sizes. Split when split_by_reloc reached rather than exceeded.
3569 Track section size and split when split_by_file reached. Fix
3570 link_order_tail (even though it's not used).
3571 (ldwrite): Modify condition for calling split_sections to suit
3572 changed split_by_reloc and split_by_file.
3573 * ldmain.c (main): Init config.split_by_reloc and
3574 config.split_by_file to -1.
3575 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3576 Change split_by_file to bfd_size_type.
3577
18e03609
NC
35782000-09-02 Nick Clifton <nickc@redhat.com>
3579
3580 * configure.in: Increase version number to 2.10.91.
3581 * NEWS: Mention new ability to support removal of duplicate DWARF2
3582 debug information.
3583 * configure: Regenerate.
3584 * aclocal.m4: Regenerate.
3585 * config.in: Regenerate.
3586
3a9d486c
NC
35872000-09-02 Daniel Berlin <dberlin@redhat.com>
3588
3589 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3590 sections.
a2b64bed 3591 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
3592 * scripttempl/elfd10v.sc: Ditto.
3593 * scripttempl/elfd30v.sc: Ditto.
3594 * scripttempl/elfi370.sc: Ditto.
3595 * scripttempl/elfm68hc11.sc: Ditto.
3596 * scripttempl/elfm68hc12.sc: Ditto.
3597 * scripttempl/elfi386beos.sc: Ditto.
3598 * scripttempl/v850.sc: Ditto.
50bbae35 3599
ac48eca1
AO
36002000-08-31 Alexandre Oliva <aoliva@redhat.com>
3601
3602 * acinclude.m4: Include libtool and gettext macros from the
3603 top level.
3604 * aclocal.m4, configure: Rebuilt.
3605
c13b1b77
NC
36062000-08-25 Nick Clifton <nickc@redhat.com>
3607
3608 * ldlang.c (open_output): When choosing the target for a
3609 particular endianness, do nothing if the target is not
3610 supported.
3611
dcb0bd0e
L
36122000-08-25 H.J. Lu <hjl@gnu.org>
3613
3614 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3615 check -rpath nor LD_RUN_PATH for cross link.
3616 * ld.texinfo: Document the change.
3617
5bcac8a4
HPN
36182000-08-24 Hans-Peter Nilsson <hp@axis.com>
3619
3620 * NEWS: Mention support for CRIS.
3621
6dd8c765
L
36222000-08-23 H.J. Lu <hjl@gnu.org>
3623
3624 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3625 the current runpath list from bfd_elf_get_runpath_list ()
3626 before search.
3627
ec4eb78a
L
36282000-08-22 H.J. Lu <hjl@gnu.org>
3629
3630 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3631 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3632 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3633 trace_file_tries is non-zero.
3634 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3635 if trace_file_tries is non-zero.
3636
3637 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 3638 * NEWS: Mention it.
ec4eb78a 3639
22b36938
JE
36402000-08-14 Jason Eckhardt <jle@cygnus.com>
3641
3642 * NEWS: Mention i860 support.
3643
d73e9da0
AS
36442000-08-14 Andreas Schwab <schwab@suse.de>
3645
3646 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 3647 syntax.
d73e9da0 3648
9ac4db9c
GK
36492000-08-10 Geoff Keating <geoffk@cygnus.com>
3650
3651 * scripttempl/elf.sc: Add a comment giving the correspondence
3652 between sections, per-datum sections, and linkonce sections. Make
3653 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3654 .sbss2.
3655
165589e4
JE
36562000-08-10 Jason Eckhardt <jle@cygnus.com>
3657
3658 * emulparams/elf32_i860.sh: New file.
3659 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3660 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3661 (eelf32_i860.c): New rule.
3662 * Makefile.in: Regenerate.
3663
345a835d
NC
36642000-08-10 Nick Clifton <nickc@cygnus.com>
3665
3666 * emulparams/mipspe.sh (ENTRY): Add definition.
3667
e374f1d9
NC
36682000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3669
3670 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3671 in error message.
3672
236d5abf
NC
36732000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3674
3675 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3676 the final size of .bss section.
3677 * scripttempl/elfm68hc12.sc: Likewise.
3678
4b209b22
AM
36792000-08-04 Alan Modra <alan@linuxcare.com.au>
3680
3681 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3682 gld${EMULATION_NAME}_parse_args for consistency. Combine
3683 lastoptind and prevoptind vars, and keep track of last optind.
3684 (gld_${EMULATION_NAME}_list_options): Rename to
3685 gld${EMULATION_NAME}_list_options.
3686
28423a68
AM
36872000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3688
3689 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3690 (i586-sco-sysv5uw7.1.0).
3691
b2009ff7
L
36922000-07-27 H.J. Lu <hjl@gnu.org>
3693
3694 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3695 (PARSE_AND_LIST_PROLOGUE): New.
3696 (PARSE_AND_LIST_LONGOPTS): Likewise.
3697 (PARSE_AND_LIST_OPTIONS): Likewise.
3698 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3699 (PARSE_AND_LIST_EPILOGUE): Likewise.
3700
04925e1e
AM
37012000-07-28 Alan Modra <alan@linuxcare.com.au>
3702
41392f03
AM
3703 * emultempl/armelf.em: Elide functions common to elf32.em,
3704 ie. most of the file.
3705 (arm_elf_after_open): New. Do arm specific things then call
3706 gld${EMULATION_NAME}_after_open.
3707 (arm_elf_before_allocation): New. Call
3708 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3709 (PARSE_AND_LIST_PROLOGUE): Define.
3710 (PARSE_AND_LIST_SHORTOPTS): Define.
3711 (PARSE_AND_LIST_LONGOPTS): Define.
3712 (PARSE_AND_LIST_OPTIONS): Define.
3713 (PARSE_AND_LIST_ARGS_CASES): Define.
3714 (LDEMUL_AFTER_OPEN): Define.
3715 (LDEMUL_BEFORE_ALLOCATION): Define.
3716 (LDEMUL_BEFORE_PARSE): Define.
3717 (LDEMUL_FINISH): Define.
3718
3719 * emultempl/hppaelf.em: Similarly zap most of this file.
3720 (hppaelf_add_stub_section): Prototype.
3721 (hppaelf_layaout_sections_again): Prototype.
3722 (hook_in_stub): Prototype.
3723 (LDEMUL_SET_OUTPUT_ARCH): Define.
3724 (LDEMUL_FINISH): Define.
3725 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3726
3727 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3728 (EXTRA_EM_FILE): New.
3729 * emulparams/armelf_linux.sh: Likewise.
3730 * emulparams/armelf_linux26.sh: Likewise.
3731 * emulparams/hppalinux.sh: Likewise.
3732 * emulparams/hppaelf.sh: Likewise.
3733 (NOP): Define.
3734
3735 * emultempl/elf32.em: Fix formatting.
3736 (EXTRA_EM_FILE): Source it.
3737 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3738 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3739 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3740 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3741 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3742 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3743 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3744 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3745 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3746 allow functions in this file to be overridden.
3747 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3748
3749 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3750
04925e1e
AM
3751 * emultempl/elf32.em: Reorganize file.
3752
88cdf297
NC
37532000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3754
3755 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3756 specific option to fit 64-bit executable in the lower
3757 31-bit address range. This is done by changing start
3758 address of .interp (the very first section of executable)
3759 and then setting EF_ALPHA_32BIT elf header flag.
3760
20bccb34
NC
37612000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3762
3763 * emultempl/m68kcoff.em: New file.
3764 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3765 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3766 generic.em.
3767 * Makefile.in: Regenerate.
3768
699845ef
L
37692000-07-20 H.J. Lu <hjl@gnu.org>
3770
3771 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3772 and "disable-new-dtags" to stop getopt from treating -d/-e as
3773 abbreviations for these options.
3774
6c1439be
L
37752000-07-20 H.J. Lu <hjl@gnu.org>
3776
3777 * ld.texinfo: Add documentation for --disable-new-dtags and
3778 --enable-new-dtags.
3779
3780 * ldmain.c (main): Initialize link_info.new_dtags to false.
3781
3782 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3783 --disable-new-dtags and --enable-new-dtags.
3784 (gld_${EMULATION_NAME}_list_options): Likewise.
3785
28c309a2
NC
37862000-07-05 Kenneth Block <krblock@computer.org>
3787
a2b64bed
NC
3788 * lexsup.c: Add optional style to demangle switch
3789 * ld.texinfo: Document optional style to demangle switch.
50bbae35 3790
9d06555c
HPN
37912000-07-20 Hans-Peter Nilsson <hp@axis.com>
3792
3793 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3794 ecrislinux.o.
3795 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3796 Regenerate dependencies.
3797 * Makefile.in: Rebuild.
3798 * configure.tgt (cris-*-*): New target.
3799 * emulparams/crisaout.sh, emulparams/criself.sh,
3800 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3801 * po/POTFILES.in, po/ld.pot: Regenerate.
3802
19e3be22
L
38032000-07-20 H.J. Lu <hjl@gnu.org>
3804
3805 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3806 Print out ignored -z options.
3807
e0ee487b
L
38082000-07-19 H.J. Lu <hjl@gnu.org>
3809
19e3be22
L
3810 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3811 (PARSE_AND_LIST_PROLOGUE): New.
3812 (PARSE_AND_LIST_LONGOPTS): Likewise.
3813 (PARSE_AND_LIST_OPTIONS): Likewise.
3814 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3815
3816 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3817
3818 * lexsup.c (ld_options): Comment out 'z'.
3819 (parse_args): Likewise.
3820
3821 * emultempl/elf32.em: Include "elf/common.h".
3822 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3823 options.
3824 (gld_${EMULATION_NAME}_list_options): Likewise.
3825
3826 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 3827
49e56c49
L
38282000-07-19 H.J. Lu <hjl@gnu.org>
3829
3830 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3831 bfd_elf_set_dt_needed_soname ().
3832
9d68bc82
DD
38332000-07-18 DJ Delorie <dj@cygnus.com>
3834
3835 * pe-dll.c (pe_dll_id_target): check object target name also
3836
53db15ed
HPN
38372000-07-18 Hans-Peter Nilsson <hp@axis.com>
3838
3839 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3840 ${INIT_END} if relocating.
3841 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3842
0ad8cf4c
DD
38432000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3844
a2b64bed 3845 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
3846 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3847 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3848 errors introduced by the old dynamic lib search order.
3849
874c8c99
DD
38502000-07-17 DJ Delorie <dj@cygnus.com>
3851
3852 * pe-dll.c (process_def_file): auto-export data items also
3853 (pe_process_import_defs): also see if _imp_ form needed
3854
5b4cf3f4
DD
38552000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3856
3857 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3858 for dll import libraries
3859
062739d1
NC
38602000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3861
3862 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 3863 gcc 2.95.2 and later.
062739d1 3864
1c64c4ed
NC
38652000-07-11 Kazu Hirata <kazu@hxi.com>
3866
50bbae35
AM
3867 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3868 message.
1c64c4ed 3869
b71e2778
AM
38702000-07-10 Alan Modra <alan@linuxcare.com.au>
3871
3872 * ldemul.h (struct lang_input_statement_struct): Remove forward
3873 declaration.
3874 (struct search_dirs): Likewise.
3875 * ldfile.h (struct lang_input_statement_struct): Likewise.
3876 Protect file from multiple inclusion.
3877 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3878 declaration from macro to file scope.
3879
3880 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3881 * ldgram.y: Likewise here.
3882 * ldlang.c: And here.
3883 * ldmain.c: And here.
3884 * mpw-elfmips.c: And here.
3885 * mpw-eppcmac.c: And here.
3886 * emultempl/aix.em: And here.
3887 * emultempl/armcoff.em: And here.
3888 * emultempl/armelf.em: And here.
3889 * emultempl/armelf_oabi.em: And here.
3890 * emultempl/beos.em: And here.
3891 * emultempl/elf32.em: And here.
3892 * emultempl/hppaelf.em: And here.
3893 * emultempl/linux.em: And here.
3894 * emultempl/lnk960.em: And here.
3895 * emultempl/pe.em: And here.
3896 * emultempl/sunos.em: And here.
3897 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3898 * mpw-idtmips.c: Ditto.
3899 * emultempl/generic.em: Ditto.
3900 * emultempl/gld960.em: Ditto.
3901 * emultempl/gld960c.em: Ditto.
3902 * emultempl/mipsecoff.em: Ditto.
3903 * emultempl/ticoff.em: Ditto.
3904 * emultempl/vanilla.em: Ditto.
3905
3906 * pe-dll.c: Include ldfile.h
3907 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3908
3909 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3910 arguments to bfd_elf32_size_dynamic_sections call.
3911 (gldelf32ebmip_place_orphan): Add missing arguments to
3912 lang_leave_output_section_statement call.
3913
2ef53d66
L
39142000-07-10 H.J. Lu <hjl@gnu.org>
3915
3916 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3917 DLL_SUPPORT.
3918 (strhash): Likewise.
3919 (compute_dll_image_base): Likewise.
3920 (pe_undef_found_sym): Likewise.
3921 (pe_undef_cdecl_match): Likewise.
3922 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3923 argument "arch" with ATTRIBUTE_UNUSED.
3924
9a8cbb09
AM
39252000-07-10 Alan Modra <alan@linuxcare.com.au>
3926
3927 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3928
3929 From Ryan Bradetich <rbradetich@uswest.net>
3930 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 3931
4900fc06
AM
39322000-07-09 Alan Modra <alan@linuxcare.com.au>
3933
3934 Changes to create multiple linker stubs, positioned immediately
3935 before the section where they are required.
3936 * emultempl/hppaelf.em: Include elf32-hppa.h.
3937 (stub_sec, file_chain): Delete.
3938 (hppaelf_create_output_section_statements): Don't make a stub
3939 section here.
3940 (hook_stub_info): New struct.
3941 (hook_in_stub): New function.
3942 (hppaelf_add_stub_section): New function.
3943 (hppaelf_finish): Do nothing for relocateable links. Modify the
3944 call to elf32_hppa_size_stubs. Move code for updating section
3945 layout from here...
3946 (hppaelf_layaout_sections_again): ..to here, a new function.
3947
3948 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3949 broken list handling. Pass in a pointer to the list.
3950 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3951 for above changes.
3952 (hppaelf_before_parse): Prototype.
3953 (hppaelf_set_output_arch): Prototype.
3954 (hppaelf_create_output_section_statements): Prototype.
3955 (hppaelf_delete_padding_statements): Prototype.
3956 (hppaelf_finish): Prototype.
3957
3958 Merge from elf32.em
3959 * emultempl/hppaelf.em: Include ctype.h.
3960 (struct orphan_save): New.
3961 (gld${EMULATION_NAME}_place_orphan): New.
3962 (output_rel_find): New.
3963 (hppaelf_get_script): Update from elf32.em.
3964 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3965 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 3966 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
3967
3968 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3969 ehppalinux.o, sort it. Regenerate dependencies.
3970 (ehppalinux.c): Depend on hppaelf.em
3971 * Makefile.in: Regenerate.
3972
3973 * configure.tgt: targ_emul=hppalinux for hppa*linux
3974
3975 * emulparams/hppalinux.sh: New.
3976 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3977
227aeb07
AM
39782000-07-08 Alan Modra <alan@linuxcare.com.au>
3979
3980 * lexsup.c (parse_args): Copy section name.
3981
28609fd4 39822000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 3983
2ef53d66 3984 * emultempl/pe.em: institute the following search order for
602e90d3
DD
3985 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3986 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3987 static lib (libfoo.a) if none of the above are found.
3988
5f577f7d
DD
39892000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3990
50bbae35 3991 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 3992 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 3993 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
3994 (gld_${EMULATION_NAME}_parse): Handle.
3995 (strhash): New static function.
50bbae35 3996 (compute_dll_image_base): New static function.
5f577f7d
DD
3997 (gld_${EMULATION_NAME}_set_symbols): Use.
3998
9a8cbb09 39992000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
4000
4001 * MAINTAINERS: new
4002
3548145d 40032000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
4004
4005 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4006 * emulparams/elf32btsmip.sh: New file.
4007 * Makefile.am: Add traditional mips target.
4008 * Makefile.in: Rebuild.
4009
67798033
L
40102000-07-01 H.J. Lu <hjl@gnu.org>
4011
4012 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4013 automake to use YLWRAP.
4014 * Makefile.in: Rebuild.
4015
0bdaf48b
AM
40162000-07-01 Alan Modra <alan@linuxcare.com.au>
4017
4018 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4019 (CLEANFILES): Add DEPA.
4020 * Makefile.in: Regenerate.
4021
c9e769c2
TW
40222000-06-30 Timothy Wall <twall@ppc>
4023
4024 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4025 the page in the upper octet of the address.
4026
65aa24b6
NC
40272000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4028
4029 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4030
4667035e
AM
40312000-06-24 Alan Modra <alan@linuxcare.com.au>
4032
4033 * NEWS: arm-elf does --gc-sections too.
4034
1581f8c9
AM
40352000-06-22 Alan Modra <alan@linuxcare.com.au>
4036
4037 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4038 find one.
4039 * Makefile.in: Regenerate.
4040
01580992
L
40412000-06-21 H.J. Lu <hjl@gnu.org>
4042
4043 * Makefile.am: Rebuild dependency.
4044 * Makefile.in: Rebuild.
4045
bbeb2e03
L
40462000-06-20 H.J. Lu <hjl@gnu.org>
4047
4048 * Makefile.am: Rebuild dependency.
4049 * Makefile.in: Rebuild.
4050
74459f0e
TW
40512000-06-20 Timothy Wall <twall@cygnus.com>
4052
4053 * scripttempl/tic54xcoff.sc: New.
4054 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4055 * gen-doc.texi: Add flag for TI COFF.
4056 * ld.texinfo: Add documentation for TI COFF handling switches.
4057 * emultempl/ticoff.em: New. TI COFF handling.
4058 * configure.tgt: Add tic54x target.
4059 * Makefile.am: Add tic54x target.
4060 * Makefile.in: Ditto.
4061
2ab47eed
AM
40622000-06-20 Alan Modra <alan@linuxcare.com.au>
4063
4064 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4065 checking for backslashes.
4066
919e4093
AM
40672000-06-19 Alan Modra <alan@linuxcare.com.au>
4068
4069 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4070
987fd5b4
AM
40712000-06-18 Alan Modra <alan@linuxcare.com.au>
4072
4073 * NEWS: Update list of targets supporting --gc-sections.
4074
4075 * scripttempl/elf.sc: KEEP .eh_frame contents.
4076 * scripttempl/elfd30v.sc: Same here.
4077
60bcf0fa
NC
40782000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4079
4080 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4081 and m68hc11 (elf).
4082 * Makefile.in: Rebuild.
4083 * configure.tgt: Recognize m68hc12 and m68hc11.
4084 * scripttempl/elfm68hc12.sc: New file.
4085 * emulparams/m68hc12elfb: New emulation.
4086 * emulparams/m68hc12elf: New emulation.
4087 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4088 (includes a memory.x script to define the ROM and RAM banks).
4089 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4090 New configuration files for support of Motorola 68hc11
4091
c7c54483
AM
40922000-06-15 Alan Modra <alan@linuxcare.com.au>
4093
4094 * ldmain.c (main): Only change SEC_READONLY for final link.
4095
bcef29e6
L
40962000-06-13 H.J. Lu <hjl@gnu.org>
4097
4098 * configure: Regenerate.
4099
946efd95
DB
41002000-06-08 David O'Brien <obrien@FreeBSD.org>
4101
4102 * configure.in (VERSION): Update to show this is the CVS mainline.
4103
57a6fd07
DB
41042000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4105
4106 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4107 input objects to be ECOFF.
4108 (check_sections): einfo takes %B, not %P, to print a BFD name.
4109
e06cae36
L
41102000-06-05 Michael Matz <matz@ifh.de>
4111
4112 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 4113 version scripts.
e06cae36 4114
d952f17a 4115 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 4116
2f0b56c0
DC
41172000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4118
4119 * emulparams/avr1200.sh (STACK): Define as 0.
4120 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4121 * emulparams/avr4433.sh (STACK): Likewise.
4122 * emulparams/avr44x4.sh (STACK): Likewise.
4123 * emulparams/avr85xx.sh (STACK): Likewise.
4124 * emulparams/avrmega103.sh (STACK): Likewise.
4125 * emulparams/avrmega161.sh (STACK): Likewise.
4126 * emulparams/avrmega603.sh (STACK): Likewise.
4127 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4128 (__stack): Define from ${STACK} for main().
4129
2114f57b
AM
41302000-05-26 Alan Modra <alan@linuxcare.com.au>
4131
4132 * Makefile.am: Update dependencies with "make dep-am"
4133 * Makefile.in: Regenerate.
4134
5af11cab
AM
41352000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4136
4137 * ldmain.c: Include filenames.h.
4138 (set_scripts_dir): Support backslashes in program name.
4139
1f0df59a
NC
41402000-05-22 Igor Shevlyakov <igor@windriver.com>
4141
4142 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
4143 read-only, don't forget to reset SEC_READONLY because it
4144 could be already set.
1f0df59a 4145
176355da
NC
41462000-05-22 Thomas de Lellis <tdel@windriver.com>
4147
50bbae35
AM
4148 * ld.1: Add documentation for new command line option:
4149 --section-start <sectionname>=<sectionorg>
4150 This is a generic version of -Ttext etc. which accepts
4151 any section name as a parameter instead of just text/data/
4152 bss.
4153 * ld.texinfo: More docs.
4154 * NEWS: More docs.
4155 * lexsup.c: (parse_args): Recognize new command line option.
176355da 4156 (ld_options): Add new option.
50bbae35 4157
8c5ff972
L
41582000-05-18 H.J. Lu <hjl@gnu.org>
4159
4160 * lexsup.c (parse_args): `i' == `r', not `q'.
4161
3b16e843 41622000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
4163
4164 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4165
a712da20
NC
41662000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4167 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 4168
a712da20
NC
4169 Add support for '-q' == '--emit-relocs' switch.
4170 * ldmain.c (main): Default to false.
4171 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4172 * NEWS: Describe the emitrelocations switch.
4173 * ld.texinfo: Describe the emitrelocations switch.
4174
690a460e
NC
41752000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4176
a2b64bed 4177 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
4178 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4179 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4180 link options.
50bbae35 4181
c2f1343c
AM
41822000-05-15 David O'Brien <obrien@FreeBSD.org>
4183
4184 * lexsup.c (parse_args): Update the year in the copyright notice.
4185
897083bd
AM
41862000-05-13 Alan Modra <alan@linuxcare.com.au>
4187
4188 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4189 Replace defines with those from intl/libgettext.h to quieten gcc
4190 warnings.
4191
cd4c806a
L
41922000-05-10 H.J. Lu <hjl@gnu.org>
4193
4194 * ldlang.c (open_input_bfds): Don't load the same file within
4195 a group again if the whole archive has been loaded already.
4196
93697284
AM
41972000-05-03 Alan Modra <alan@linuxcare.com.au>
4198
4199 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4200 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4201 strtoul.
4202
3b16e843 42032000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 4204
99a4150f 4205 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 4206
ebd6fc29
JW
4207 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4208 host "ia64-*-linux-gnu*".
4209
a1934524
AM
42102000-04-29 Andreas Jaeger <aj@suse.de>
4211
4212 * ld.h: Correctly check GCC version.
4213
3b16e843 42142000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
4215
4216 * Makefile.am: Add PA64 support. Add missing dependencies for
4217 PA32 elf support.
4218 * Makefile.in: Rebuilt.
4219 * configure.tgt: Add PA64 support (currently disabled).
4220
aea4bd9d
AM
42212000-04-25 Alan Modra <alan@linuxcare.com.au>
4222
4223 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4224 (output_rel_find): New function.
4225 (hold_section, hold_use): Delete.
4226 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4227 hold_interp): Make local to place_orphan.
4228 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4229 rather than place_section to find possible previous use of orphan.
4230 Similarly find the place-holder output sections. Use returned
4231 value from lang_enter_output_section_statement rather than calling
4232 lang_output_section_statement_lookup.
4233 * emultempl/armelf.em: Same here.
4234 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4235
4236 * ldlang.c (lang_enter_output_section_statement): Return output
4237 section statement.
4238 * ldlang.h (lang_enter_output_section_statement): Change
4239 declaration too.
4240
4241 * ldlang.h (lang_output_section_statement): Export it.
4242 * ldlang.c (lang_output_section_statement): Ditto.
4243
2b5fc1f5
NC
42442000-04-24 Nick Clifton <nickc@cygnus.com>
4245
4246 * ld.texinfo (Output Section Data): Add note that section data
4247 commands cannot appear outside of section directives.
4248
d8475ff6
JL
42492000-04-2 Matthew Green <mrg@cygnus.com>
4250
4251 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4252
3b16e843
NC
42532000-04-21 Richard Henderson <rth@cygnus.com>
4254 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
4255
4256 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4257 (eelf64_ia64.c): New rule.
4258 * Makefile.in: Rebuild.
4259 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4260 * emulparams/elf64_ia64.sh: New file.
50bbae35 4261
c9637625
RH
42622000-04-21 Richard Henderson <rth@cygnus.com>
4263
4264 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4265
28ea9521
AM
42662000-04-19 Alan Modra <alan@linuxcare.com.au>
4267
4268 * dep-in.sed: Match space at start of file name, not at end.
4269
20d04697
L
42702000-04-18 H.J. Lu <hjl@gnu.org>
4271
4272 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4273 lang_leave_output_section_statement () after calling
4274 lang_enter_output_section_statement ().
4275 * emultempl/armelf.em: Likewise.
4276
5ba47421
AM
42772000-04-18 Alan Modra <alan@linuxcare.com.au>
4278
4279 * emultempl/elf32.em (struct orphan_save): Add section field.
4280 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4281 better order, and place first orphan section as we did before the
4282 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4283 Don't call make_bfd_section here, let wild_doit do the job for us.
4284 Don't build a statement list when we'll only throw it away.
4285 * emultempl/armelf.em: Ditto.
4286 * emultempl/pe.em: Similarly.
4287
bdbe5705
GK
42882000-04-14 Geoff Keating <geoffk@cygnus.com>
4289
4290 * scripttempl/elfppc.sc: Remove.
4291 * emulparams/elf32ppc.sh: Use elf.sc.
4292 * emulparams/elf32lppc.sh: Use elf.sc.
4293 * emulparams/elf32ppclinux.sh: Use elf.sc.
4294 * emulparams/elf32ppcsim.sh: New file.
4295 * emulparams/elf32lppcsim.sh: New file.
4296 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4297 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4298 * Makefile.in: Regenerate.
4299 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4300
01cc8ff8
AM
43012000-04-14 Alan Modra <alan@linuxcare.com.au>
4302
5ba47421 4303 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 4304 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
4305 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4306 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
4307 Also set all relocateable section start addresses.
4308
6c86c541
GK
43092000-04-13 Geoff Keating <geoffk@cygnus.com>
4310
4311 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4312 Add new BSS_PLT variable for when .plt need not be contained in
4313 the file. Move _etext so that it is also after .fini, and provide
4314 both etext and _etext with a leading underscore. Mark the start
4315 and end of .sbss.
4316
6a345e87
AM
43172000-04-12 Alan Modra <alan@linuxcare.com.au>
4318
4319 * emultempl/elf32.em (struct orphan_save): New.
4320 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4321 hold_interp): Make them struct orphan_save.
4322 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4323 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4324 the end of the relevant section list. Also add associated section
4325 statements to the end of any previous orphan statements.
4326 * emultempl/armelf.em: Similarly.
4327 * emultempl/pe.em: Similarly.
4328
8be86746
AM
43292000-04-11 Alan Modra <alan@linuxcare.com.au>
4330
4331 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4332
3b16e843 43332000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 4334
a2d91340 4335 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 4336 --enable-build-warnings option.
a2d91340
AC
4337 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4338 * Makefile.in, configure: Re-generate.
4339
41b49281
AM
43402000-04-04 Alan Modra <alan@linuxcare.com.au>
4341
8ad3436c
AM
4342 * po/ld.pot: Regenerate.
4343
4344 * lexsup.c (help): Restore translated part of bug string.
4345
41b49281
AM
4346 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4347 (DEP): Quote when passing vars to sub-make. Add warning message
4348 to end.
4349 (DEP1): Rewrite for "gcc -MM".
4350 (CLEANFILES): Add DEP2.
4351 Update dependencies.
4352 * Makefile.in: Regenerate.
4353
c20f4f8c
AM
43542000-04-03 Alan Modra <alan@linuxcare.com.au>
4355
4356 * ld.h: #include "bin-bugs.h"
4357 * lexsup.c (help): Use REPORT_BUGS_TO.
4358
adde6300
AM
43592000-03-27 Denis Chertykov <denisc@overta.ru>
4360
4361 * configure.tgt (avr-*-*): New target support.
4362 * Makefile.am: Likewise.
4363 * scripttempl/elf32avr.sc: New script file.
4364 * emulparams/avr1200.sh: New file.
4365 * emulparams/avr23xx.sh: New file.
4366 * emulparams/avr4433.sh New file.
4367 * emulparams/avr44x4.sh New file.
4368 * emulparams/avr85xx.sh New file.
4369 * emulparams/avrmega103.sh New file.
4370 * emulparams/avrmega161.sh New file.
4371 * emulparams/avrmega603.sh New file.
4372 * Makefile.in: Regenerate.
4373
9282ff41
L
43742000-03-09 Andreas Jaeger <aj@suse.de>
4375
4376 * Makefile.am (check-DEJAGNU): Also unset LANG.
4377 * Makefile.in: Rebuild.
4378
a9998805
ILT
43792000-03-06 Ian Lance Taylor <ian@zembu.com>
4380
4381 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4382 archive.
4383
f9bc20e7
NC
43842000-03-02 H.J. Lu <hjl@gnu.org>
4385
4386 * emulparams/elf32mcore.sh: Include "getopt.h".
4387
4e277b38
ILT
43882000-03-01 Ian Lance Taylor <ian@zembu.com>
4389
4390 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4391
f0c87f88
NC
43922000-03-01 H.J. Lu <hjl@gnu.org>
4393
4394 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4395 * emulparams/shpe.sh: Likewise.
4396
43972000-03-01 Nick Clifton <nickc@cygnus.com>
4398
4399 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4400 to unused parameters.
4401
4402 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4403 functions only used by DLL code.
4404 (_place_orphan): Initialise 'dollar'.
4405
b6f29aaa
L
44062000-03-01 H.J. Lu <hjl@gnu.org>
4407
4408 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4409 indicate if the undefined symbol is a fatal error or not.
4410 Don't delete the output file if "fatal" is false.
4411
af28fce3
L
44122000-02-29 H.J. Lu <hjl@gnu.org>
4413
50bbae35 4414 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
4415 Set LC_COLLATE and LC_ALL to null and export them. It is for
4416 sort which expects the C locale.
4417 Add $(LIBS) to all $(HOSTING_LIBS).
4418 * Makefile.in: Rebuild.
4419
40d109bf
AM
44202000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4421
4422 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4423 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4424 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4425 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4426 find_potential_libraries.
4427
db5be682
JB
44282000-02-28 Jim Blandy <jimb@redhat.com>
4429
4430 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 4431 list entries; the lexer considers commas to be valid part of a
db5be682
JB
4432 filename, so in something like `foo, bar' the comma is considered
4433 part of the first filename, `foo,'.
4434 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4435
3558ff4c
ILT
44362000-02-27 Loren J. Rittle <ljrittle@acm.org>
4437
4438 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4439 host "i[3456]86-*-freebsdelf*".
4440
4eee2681
ILT
44412000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4442
4443 * scripttempl/i386go32.sc: Move misplaced semicolons.
4444
8d75d12d
ILT
44452000-02-25 Ian Lance Taylor <ian@zembu.com>
4446
4447 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4448 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4449 (eelf64hppa.c, ehppaelf.c): Remove targets.
4450 * Makefile.in: Rebuild.
4451
a1836d49
AO
44522000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4453
ad51fb57
AO
4454 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4455 GNU/Linux/sparc, but keep the default as 32.
4456
a1836d49
AO
4457 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4458 it default if sparcv9 or sparc64.
4459
344a211f
NC
44602000-02-24 Nick Clifton <nickc@cygnus.com>
4461
4462 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4463 * Makefile.in: Regenerate.
4464 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4465
4466 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4467 find_potential_libraries.
4468 * ldemul.c (ldemul_find_potential_libraries): New function.
4469
4470 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 4471 exported.
344a211f
NC
4472 (ldfile_open_file): Call ldemul_find_potential_libraries.
4473 * ldfile.h: Add prototype for ldfile_open_file_search.
4474
4475 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4476
4477 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4478 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4479
4480 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4481 (gld_X_find_potential_libraries): New function. Search for
4482 libraries called "*.lib".
4483
a2b64bed 4484 * scripttempl/pe.sc: Add .pdata section.
344a211f 4485
eaba1dd3
RH
44862000-02-23 Richard Henderson <rth@cygnus.com>
4487
4488 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4489 Add and use memory regions.
4490
5b93d8bb
AM
44912000-02-23 Linas Vepstas (linas@linas.org)
4492
4493 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4494
4495 * Makefile.am: Add support for Linux/IBM 370.
4496 * configure.tgt: Likewise.
4497
4498 * Makefile.in: Regenerate.
4499
f6af82bd
AM
45002000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4501
4502 * ldlang.c (print_input_section, print_data_statement,
4503 print_reloc_statement, print_padding_statement, insert_pad,
4504 size_input_section, lang_check_section_addresses,
4505 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 4506 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
4507 (lang_do_assignments): Also change `size' to unsigned.
4508
9e673ad1
RH
45092000-02-16 Richard Henderson <rth@cygnus.com>
4510
4511 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4512
562d3460
TW
45132000-02-16 Timothy Wall <twall@cygnus.com>
4514
4515 * mri.c (mri_draw_tree): Add default LMA region argument to call
4516 to lang_leave_output_section_statement.
4517 * ldlang.h: Update prototypes with LMA region arguments.
4518 * ldlang.c (lang_size_sections): Encapsulate region bounds
4519 checking in os_check_region call.
4520 (os_check_region): New function.
4521 (lang_output_section_statement_lookup): Initialize lma_region.
4522 (lang_leave_output_section_statement): Add LMA region argument.
4523 (lang_leave_overlay): Ditto.
4524 * ldgram.y: Handle LMA region syntax.
4525 * ld.texinfo (Output Section Description): Describe LMA region usage.
4526 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 4527 lma region in call to lang_leave_output_section_statement.
562d3460 4528 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 4529 lma region in call to lang_leave_output_section_statement.
562d3460 4530 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 4531 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
4532
4533
9e4ed18c
TW
45342000-02-04 Timothy Wall <twall@redhat.com>
4535
4536 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4537 octets when calculating section end addresses.
4538
32edc927
TW
45392000-02-04 Timothy Wall <twall@redhat.com>
4540
4541 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4542
4cbfc3ac
TW
45432000-02-03 Timothy Wall <twall@redhat.com>
4544
a2b64bed 4545 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 4546 octet count.
a2b64bed 4547 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
4548 print_reloc_statement, print_padding_statement): Print target
4549 address values and section sizes as bytes, not octets.
4550 (insert_pad) Calculate padding size in octets, and adjust "dot"
4551 by bytes.
4552 (size_input_section) Always adjust "dot" by bytes, not octets.
4553 (lang_check_section_addresses, lang_do_assignments) Adjust
4554 "dot" by bytes, not octets. Use the larger of the directive size
4555 or octets_per_byte for the number of octets actually allocated in
4556 the output section.
4557 (lang_set_startof) Make sure STARTOF returns a target address.
4558 (lang_one_common) Record size changes in octets.
4559 (lang_abs_symbol_at_end_of) Section end symbol's value is
4560 recorded in target bytes.
68b2fc7a 4561 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4cbfc3ac 4562 to be clear about behavior when an octet is smaller than one byte.
50bbae35 4563
305c7206
AM
45642000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4565
4566 * ldcref.c (output_cref): Don't pass message strings to printf
4567 as format arg.
4568 Update copyright.
4569
4570 * ldmisc.c (vfinfo): Same here.
4571 Update copyright.
4572
e1c47aa4
AM
45732000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4574
4575 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4576 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4577 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4578 Add missing NULL initialisers, and comments.
4579
4580 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4581
13392b77
NC
45822000-01-21 Nick Clifton <nickc@cygnus.com>
4583
4584 * ldlang.c (lang_size_sections): Fix typo in comment.
4585
cce4c4c5
NC
45862000-01-18 H.J. Lu <hjl@gnu.org>
4587
4588 * ldlang.c (lang_size_sections): Also update the current
4589 address of a region if the SEC_NEVER_LOAD bit is not set.
4590
0decc840
NC
45912000-01-10 Philip Blundell <pb@futuretv.com>
4592
4593 * configure.tgt (arm*-*-conix*): New target.
4594
4e53152f
NC
45952000-01-07 Nick Clifton <nickc@cygnus.com>
4596
4597 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
4598 line switches with -Wl, (or whatever is appropriate) if it is
4599 being invoked by a comnpiler driver program.
50bbae35 4600 Fix description of the behaviour of the -n command line switch.
4e53152f 4601
3b16e843 46022000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
4603
4604 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4605 (name_list): New.
4606 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4607 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4608 (exclude_name_list): New.
4609 ldlang.c (walk_wild_section): Support list of excluded files.
4610 (print_wild_statement): Likewise.
4611 (lang_add_wild): Likewise.
4612 * ldlang.h (lang_wild_statement_type): Likewise.
4613 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 4614
5aaace27
NC
46152000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4616
870df5dc
NC
4617 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4618 (process_def_file): Use.
4619 (pe_dll_compat_implib): New variable.
4620 (make_one): Use.
50bbae35 4621
870df5dc
NC
4622 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4623 pe_dll_compat_implib.
50bbae35
AM
4624
4625 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
4626 compat-implib options.
4627 (gld_${EMULATION_NAME}_list_options): List new options.
4628 (gld_${EMULATION_NAME}_parse_args): Handle.
4629
50bbae35 4630 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 4631 dll.
50bbae35
AM
4632
4633 * deffilep.y (opt_name): Allow "." in name.
5aaace27 4634
2f6d2f85 4635For older changes see ChangeLog-9899
252b5132
RH
4636\f
4637Local Variables:
4638mode: change-log
4639left-margin: 8
4640fill-column: 74
4641version-control: never
4642End:
This page took 0.425531 seconds and 4 git commands to generate.