* configure.in: Move generic linux case to end. Copy generic
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
7e392df6
NC
12002-07-30 Graeme Peterson <gp@qnx.com>
2
3 * configure.tgt: Add support for arm-*-nto target.
4 * Makefile.am: Add earmnto.o file.
5 * Makefile.in: Regenerate.
6 * NEWS: Mention port of ARM support to QNX.
7 * emulparams/armnto.sh: New file.
8
704afa60
JJ
92002-07-30 Jakub Jelinek <jakub@redhat.com>
10
11 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
12 for relocatable link.
13 (lang_size_sections_1): Don't make .tbss zero size for relocatable
14 link.
15
7dcd22c2
BS
162002-07-26 Bernd Schmidt <bernds@redhat.com>
17
18 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
19 (STACK_ADDR): New.
20
219576a4
NC
212002-07-25 Nick Clifton <nickc@redhat.com>
22
23 * po/sv.po: Updated Swedish translation.
24 * po/es.po: Updated Spanish translation.
25 * po/fr.po: Updated French translation.
26
ff3063f5
NC
272002-07-24 Nick Clifton <nickc@redhat.com>
28
29 * po/sv.po: Updated Swedish translation.
30 * po/es.po: Updated Spanish translation.
31
0461a601
NC
322002-07-23 Nick Clifton <nickc@redhat.com>
33
ff3063f5 34 * po/fr.po: Updated French translation.
0461a601 35
25844aae
AM
362002-07-20 Alan Modra <amodra@bigpond.net.au>
37
38 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
39 bomb on /DISCARD/ input section.
40 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
41 * emultempl/mmo.em (mmo_place_orphan): Likewise.
42
3595bd6e
HPN
432002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
44
45 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
46 output section.
47
cf88bb9f
NC
482002-07-16 Denis Chertykov <denisc@overta.ru>
49 Nick Clifton <nickc@redhat.com>
50 Frank Ch. Eigler <fche@redhat.com>
51 John Healy <jhealy@redhat.com>
52
53 * configure.tgt: Add support for ip2k-elf.
54 * Makefile.am: Add support for ip2k-elf.
55 * Makefile.in: Regenerate.
56 * emulparams/elf32ip2k.sh: New file.
57 * scripttempl/ip2k.sc: New file
58 * NEWS: Mention support for new port.
59
2cbb2eef
NC
602002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
61
62 * NEWS: Add 'Changes in 2.13'.
63
96a94295
L
642002-07-14 H.J. Lu <hjl@gnu.org>
65
66 * ld.texinfo: Document a .symver takes precedence over a
67 version script.
68
120d20f2
AM
692002-07-12 Alan Modra <amodra@bigpond.net.au>
70
71 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
72 (COMMONPAGESIZE): Define.
73
0d2ddeb2
AM
742002-07-09 Alan Modra <amodra@bigpond.net.au>
75
76 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
77
554690ed
AM
782002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
79
80 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
81 powerpc-*-openbsd* and sparc64-*-openbsd*.
82 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
83 * Makefile.in: Regenerate.
84 * emulparams/hppaobsd.sh: New file.
85
34786259
AM
862002-07-05 Alan Modra <amodra@bigpond.net.au>
87
88 * ldlang.c (print_wild_statement): Fix output formatting.
89
4bd5a393
AM
902002-07-04 Alan Modra <amodra@bigpond.net.au>
91
92 * ldlang.c: (strip_excluded_output_sections): New function.
93 (lang_process): Call it.
94 (lang_size_sections_1): Revert 2002-06-10 change.
95
ce4f7385
AM
962002-07-03 Alan Modra <amodra@bigpond.net.au>
97
98 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
99 Run "make dep-am".
100 * Makefile.in: Regenerate.
101
b7b482a3
AM
1022002-07-02 Alan Modra <amodra@bigpond.net.au>
103
71daf8b4
AM
104 * ldfile.c (ldfile_try_open_bfd): Formatting.
105
b7b482a3
AM
106 * ldmisc.c (demangle): Move so that it doesn't intrude between
107 vfinfo comment and body. Add comment.
108
29e2951e
AM
1092002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
110
111 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
112
e3e942e9
AM
1132002-07-01 Alan Modra <amodra@bigpond.net.au>
114
115 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
116 * ldlang.c (entry_sym): Likewise.
117 (ldlang_undef_chain_list_type): Likewise.
118 (lang_finish): Adjust references to entry_symbol.
119 (lang_add_entry): Likewise.
120 (lang_gc_sections): Use link_info.gc_sym_list.
121 (lang_process): Set link_info.gc_sym_list.
122 * ldlex.l: Include bfdlink.h.
123 * ldmain.c (main): Init link_info.gc_sym_list.
124 * emultempl/aix.em: Adjust references to entry_symbol.
125 * emultempl/armcoff.em: Likewise.
126 * emultempl/armelf.em: Likewise.
127 * emultempl/pe.em: Likewise.
128 * emultempl/ppc64elf.em (ppc_after_open): New function.
129 (LDEMUL_AFTER_OPEN): Define.
130 * emulparams/elf64ppc.sh: KEEP .opd sections.
131
a66c0f2c
SC
1322002-06-29 Stephane Carrez <stcarrez@nerim.fr>
133
134 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
135 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
136 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
137 (EEPROM_START_ADDR): Define.
138 (EEPROM_MEMORY): Define.
139 * emulparams/m68hc12elf.sh: Likewise.
140 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
141 section to put soft registers in .page0.
142 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
143
2b67cf00
JL
1442002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
145
146 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
147 section. Add ${RELOCATING-0}.
148
219576a4 1492002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
164c4054
JR
150
151 * emulparams/shelf.sh (STACK_ADDR): Don't define.
152 (OTHER_SECTIONS): Define.
153 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
154 (OTHER_SECTIONS): Undef.
155
fc28fbc2
AM
1562002-06-26 Alan Modra <amodra@bigpond.net.au>
157
158 * ldmisc.c (demangle): Restore dots stripped from sym name.
159
a13a0de8
L
1602002-06-25 H.J. Lu <hjl@gnu.org>
161
162 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
163 * Makefile.in: Regenerated.
164
b553b183
NC
1652002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
166
167 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
168 the size of attached object files, to allow make the object files
169 available via FTP or HTTP and to mention that the mail will be
170 sent to a mailing list.
171
2755afba
NC
1722002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
173
174 * ld/configure.host (romp): Drop support.
175
7d0a848e
CD
1762002-06-18 Chris Demetriou <cgd@broadcom.com>
177
178 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
179 section flags for SEC_DATA, rather than for SEC_CODE being unset.
180
8505f884
CD
1812002-06-18 Chris Demetriou <cgd@broadcom.com>
182
183 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
184 format specifier used to print BFD name.
185
7d553a40
DB
1862002-06-18 Dave Brolley <brolley@redhat.com>
187
188 From Catherine Moore, Michael Meissner, Jim Blandy:
189 * emulparams/elf32frv.sh: New file.
190 * configure.tgt: Support frv-*-*.
191 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
192 (eelf32frv.c): New target.
193
82434356
TR
1942002-06-17 Tom Rix <trix@redhat.com>
195
a59f3d35 196 * emultempl/elf32.em: gld*_get_script: Check for
82434356
TR
197 GENERATE_COMBRELOC_SCRIPT.
198 * scripttempl/elfd10v.sc : Fix STACK and INSN.
199 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
200
219576a4 2012002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
5d9b5481
JR
202
203 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
204
c4bb8067
L
2052002-06-12 H.J. Lu <hjl@gnu.org>
206
207 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
208 false if xvec doesn't match.
209
e052cfbe
RS
2102002-06-10 Richard Sandiford <rsandifo@redhat.com>
211
212 * ldlang.c (lang_size_sections_1): Skip removed output sections.
213
4da711b1
AM
2142002-06-08 Alan Modra <amodra@bigpond.net.au>
215
216 * ldexp.c: Replace CONST with const.
217 * ldfile.c: Likewise.
218 * ldfile.h: Likewise.
219 * ldlex.l: Likewise.
220 * mri.c: Likewise.
221 * pe-dll.h: Likewise.
222
eb95bb9a
AM
2232002-06-07 Alan Modra <amodra@bigpond.net.au>
224
225 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
226
e0076ab3
NC
2272002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
228
229 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
230 to -1 == implicit enable.
231 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
232 initialize link_info.pei386_auto_import to -1 == implicit
233 enable.
234 (gld_${EMULATION_NAME}_parse_args): When processing
235 --enable-auto-import and --disable-auto-import options, use
236 '1' and '0' instead of 'true' and 'false'.
237 (pe_find_data_imports): Only issue message about auto-import
238 when the feature is implicitly enabled. Downgrade message to
239 informational instead of warning.
240
f13a5424
AM
2412002-06-07 Alan Modra <amodra@bigpond.net.au>
242
243 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
244
1abffd82
JL
2452002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
246
247 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
248 HOSTING_CRT0 and HOSTING_LIBS.
249
e0076ab3 2502002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
251
252 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
253
4a5e698d
JT
2542002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
255
256 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
257 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
258
1d475d82
AM
2592002-06-05 Alan Modra <amodra@bigpond.net.au>
260
261 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
262 SEC_EXCLUDE sections when doing a relocatable link.
263
5b0e55b6
JT
2642002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
265
266 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
267 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
268 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
269 (eshlelf64_nbsd.c): New rules.
270 * Makefile.in: Regenerate.
271 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
272 (sh64-*-netbsd*): New targets.
273 * emulparams/shelf32_nbsd.sh: New file.
274 * emulparams/shelf64_nbsd.sh: New file.
275 * emulparams/shlelf32_nbsd.sh: New file.
276 * emulparams/shlelf64_nbsd.sh: New file.
277
9ad85d9b
AM
2782002-06-04 Alan Modra <amodra@bigpond.net.au>
279
280 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
281
0c9b4fee
MM
2822002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
283
284 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
285 C++ constructors/destructors, loosely based on the m68hc11 port.
286
2c538bde
AM
2872002-05-31 Alan Modra <amodra@bigpond.net.au>
288
289 * Makefile.in: Regenerate.
290 * aclocal.m4: Regenerate.
291 * config.in: Regenerate.
292 * configure: Regenerate.
293
a0cb91c6
AM
2942002-05-31 Graeme Peterson <gp@qnx.com>
295
296 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
297 (ei386nto.c): Add rule.
298 * Makefile.in: Regenerate.
299 * configure.tgt: Add i[3456]86-*-nto-qnx*.
300 * emulparams/i386nto.sh: New file.
301
37020578
JT
3022002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
303
304 * NEWS: Add entry for VAX ELF support.
305
ab68f3e0 3062002-05-29 Matt Thomas <matt@3am-software.com>
a59f3d35 307 Jason Thorpe <thorpej@wasabisystems.com>
ab68f3e0
JT
308
309 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
310 (eelf32vax.c)
311 (evaxnbsd.c): New rules.
312 * Makefile.in: Regenerate.
313 * configure.tgt (vax-*-netbsdelf*)
314 (vax-*-netbsdaout*)
315 (vax-*-netbsd*): New targets.
316 * emulparams/elf32vax.sh: New file.
317 * emulparams/vaxnbsd.sh: New file.
318
8afb0e02
NC
3192002-05-29 Adam Nemet <anemet@lnxw.com>
320
321 * emultempl/armelf.em (arm_elf_after_open): Don't determine
322 bfd_for_interwork, instead add glue sections to each input bfd.
323 (bfd_for_interwork): New global.
324 (arm_elf_set_bfd_for_interworking): New function.
325 (arm_elf_before_allocation): Use it.
326
d172d4ba
NC
3272002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
328
329 * Makefile.am: Add DLX make target.
330 * configure.tgt: Add DLX configuration.
331 * Makefile.in: Regenerate.
332 * emulparams/elf32_dlx.sh: New file
333 * scripttempl/dlx.sc: New file
334
b4477fa8
NC
3352002-05-27 Per Lundberg <per@caleb.dnsalias.org>
336
337 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
338 * Makefile.in: Regenerate.
339 * emulparams/elf_chaos.sh: Use elf_chaos script.
340 * scripttempl/elf_chaos.sc: New file.
341
ee3cc2e2
RS
3422002-05-27 Richard Sandiford <rsandifo@redhat.com>
343
344 * ldlang.c (lang_size_sections_1): Move check for conflicting load
345 addresses and regions from here...
346 (lang_get_regions): ...to this new function.
347 (lang_leave_output_section_statement): Use lang_get_regions.
348 (lang_leave_overlay): Likewise.
349 * mri.c (mri_draw_tree): Pass null as last argument to
350 lang_leave_output_section_statement.
351 * emultempl/elf32.em (gld*_place_orphan): Likewise.
352 * emultempl/mmo.em (mmo_place_orphan): Likewise.
353 * emultempl/pe.em (gld*_place_orphan): Likewise.
354
aa501e5c
JT
3552002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
356
357 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
358
658957db
KH
3592002-05-25 Kazu Hirata <kazu@cs.umass.edu>
360
361 * ldemul.c: Fix formatting.
362 * ldfile.c: Likewise.
363 * pe-dll.c: Likewise.
364 * pe-dll.h: Likewise.
365
3511b595
AM
3662002-05-25 Alan Modra <amodra@bigpond.net.au>
367
0d6d936f
AM
368 * ldlang.c (lang_process): Formatting, grammar.
369
3511b595
AM
370 * ldlex.l: Use #include "" instead of <> for local header files.
371
436e8db0
NC
3722002-05-24 TAMURA Kent <kent@netbsd.org>
373
374 * configure.tgt: Add a target for i386-netbsdpe.
375
13ae64f3
JJ
3762002-05-23 Jakub Jelinek <jakub@redhat.com>
377
378 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
379 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
380 output section if necessary. Handle .tbss.
381 (lang_size_sections): Clear _raw_size for .tbss section
382 (it allocates space in PT_TLS segment only).
383 * ldwrite.c (build_link_order): Build link order for .tbss too.
384
68b2fc7a
AM
3852002-05-23 Alan Modra <amodra@bigpond.net.au>
386
387 * configure.in: Correct spelling of AC_PREREQ.
388
70b0be79
CF
3892002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
390
391 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
392 default.
393 (autofilter_objlist): Add crtbegin.o, crtend.o.
394
3952002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
396
397 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
398 (longopts): Add new option --exclude-libs.
399 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
400 (gld_${EMULATION_NAME}_parse_args): Use it.
401 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
402 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
403 from whole archives.
404 (pe_dll_add_excludes): Set excludes->type.
405 (auto_export): Add new variable libname and set to archive basename if
406 abfd. Use it when filtering default and user-specified libarary
407 excludes. Let string "ALL" mean all libs when filtering user-specified
408 libs.
409 * ld.texinfo: Document --exclude-libs.
410
fac1652d
AM
4112002-05-22 Alan Modra <amodra@bigpond.net.au>
412
413 * ldemul.c (ldemul_new_vers_pattern): New function.
414 * ldemul.h (ldemul_new_vers_pattern): Declare.
415 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
416 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
417 * emultempl/ppc64elf.em (dotsyms): New static var.
418 (gld${EMULATION_NAME}_new_vers_pattern): New function.
419 (LDEMUL_NEW_VERS_PATTERN): Define.
420 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
421 (PARSE_AND_LIST_LONGOPTS): Likewise.
422 (PARSE_AND_LIST_ARGS_CASES): Handle them.
423 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
424 initialiser.
425 * emultempl/armcoff.em: Likewise.
426 * emultempl/armelf_oabi.em: Likewise.
427 * emultempl/beos.em: Likewise.
428 * emultempl/elf32.em: Likewise.
429 * emultempl/generic.em: Likewise.
430 * emultempl/gld960.em: Likewise.
431 * emultempl/gld960c.em: Likewise.
432 * emultempl/linux.em: Likewise.
433 * emultempl/lnk960.em: Likewise.
434 * emultempl/m68kcoff.em: Likewise.
435 * emultempl/mipsecoff.em: Likewise.
436 * emultempl/pe.em: Likewise.
437 * emultempl/sunos.em: Likewise.
438 * emultempl/ticoff.em: Likewise.
439 * emultempl/vanilla.em: Likewise.
440
eb3d6bb8
AM
4412002-05-22 Alan Modra <amodra@bigpond.net.au>
442
443 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
444 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
445 (LIB_SEARCH_DIRS): No need to use "tr".
446 (COMPILE_IN): Only set for native targets.
447 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
448 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
449 * configure.tgt (powerpc*): Set tdir_*.
450 (powerpcle*): Correct targ_extra_emuls.
451 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
452 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
453
54f24647
AM
4542002-05-22 Alan Modra <amodra@bigpond.net.au>
455
456 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
457 calling lang_add_entry.
458
aa713662
L
4592002-05-21 H.J. Lu (hjl@gnu.org)
460
461 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
462 "-z muldefs".
463 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
464
465 * ld.texinfo: Updated for --allow-multiple-definition and
466 "-z muldefs".
467
468 * ldmain.c (main): Initialize the allow_multiple_definition
469 field to false.
470
471 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
472 (ld_options): Add --allow-multiple-definition.
473 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
474
658f2588
JT
4752002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
476
477 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
478 (earmelfb_nbsd.c): New rule.
a59f3d35 479 * Makefile.in: Regenerate.
658f2588 480 * configure.tgt (armeb-*-netbsdelf*): New target.
a59f3d35 481 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
658f2588
JT
482 (arm-*-netbsd*): Likewise.
483 * emulparams/armelfb_nbsd.sh: New file.
484
ca10c62d
TR
4852002-05-18 Tom Rix <trix@redhat.com>
486
a59f3d35 487 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
ca10c62d
TR
488 support.
489
fae1e84f
MM
4902002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
491
492 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
493 * Makefile.in: Regenerate.
494 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
495
7c8bf1e8
MM
4962002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
497
498 * emulparams/avr1.sh: New file.
499 * emulparams/avr2.sh: New file.
500 * emulparams/avr3.sh: New file.
501 * emulparams/avr4.sh: New file.
502 * emulparams/avr5.sh: New file.
503 * scripttempl/avr.sc: New file.
504
c2c01aa7
AM
5052002-05-15 Alan Modra <amodra@bigpond.net.au>
506
507 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
508 (lang_place_orphans): Abort if just_syms_flag.
509
f1f0d9ab
TR
5102002-05-10 Tom Rix <trix@redhat.com>
511
a59f3d35 512 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
f1f0d9ab
TR
513 architecture and machine information in the output bfd.
514 (gld*_before_parse): Remove old arch and machine code.
515 (choose_target): Rename to gld*_choose_target.
a59f3d35
AM
516 (rtld): Change type to int.
517 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
f1f0d9ab
TR
518 objects in XCOFF archives.
519 * ldfile.h: Update copyright date.
520
f4d73366
JJ
5212002-05-10 Jakub Jelinek <jakub@redhat.com>
522
523 * ldmain.c (main): Enable -z combreloc by default.
524
d3d8a9ee
NC
5252002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
526
527 * Makefile.am: Honour DESTDIR.
528 * Makefile.in: Regenerate.
529
9f88b410
RS
5302002-05-07 Richard Sandiford <rsandifo@redhat.com>
531
532 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
533 (lang_enter_overlay): Remove the last two parameters.
534 (lang_leave_overlay): Take them here instead.
535 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
536 (section): Pass LMA and crossref flag to lang_leave_overlay rather
537 than lang_enter_overlay.
538 * ldlang.c (lang_memory_region_lookup): Return null for null names.
539 (lang_output_section_statement_lookup): Initialize update_dot_tree.
540 (lang_size_sections_1): Evaluate it.
541 (lang_leave_output_section_statement): Rework LMA lookup.
542 (overlay_lma, overlay_nocrossrefs): Remove.
3511b595 543 (lang_enter_overlay): Remove LMA and crossref arguments.
9f88b410
RS
544 (lang_enter_overlay_section): Don't set the LMA here.
545 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
546 assignment to the last section's update_dot_tree. Unconditionally
547 use the load and run-time regions specified in the OVERLAY statement.
548 Likewise the first section's LMA. Only set the other sections' LMAs
549 when no load region is given.
550
b9a743c8
NC
5512002-05-06 Nick Clifton <nickc@redhat.com>
552
553 * po/sv.po: New translation.
554
a3d60be3
AM
5552002-05-04 Alan Modra <amodra@bigpond.net.au>
556
557 * emultempl/hppaelf.em (build_section_lists): New function.
558 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
559 and build_section_lists.
560
b7a26f91
KH
5612002-05-03 Kazu Hirata <kazu@cs.umass.edu>
562
563 * ld.h: Fix formatting.
564 * ldexp.c: Likewise.
565 * ldfile.c: Likewise.
566 * ldlang.c: Likewise.
567 * ldmain.c: Likewise.
568 * lexsup.c: Likewise.
569 * pe-dll.c: Likewise.
570
805fc799
AM
5712002-05-02 Alan Modra <amodra@bigpond.net.au>
572
573 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
574 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
575 (build_section_lists): Do output_section tests here.
576
cc7e59b2
TR
5772002-04-30 Tom Rix <trix@redhat.com>
578
579 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
580
9c1d81c1
AM
5812002-05-01 Alan Modra <amodra@bigpond.net.au>
582
583 Long branch stubs, multiple stub sections.
584 * emultempl/ppc64elf.em: Include ldctor.h.
585 (stub_file): New var.
586 (group_size): New var.
587 (ppc_create_output_section_statements): New function.
588 (struct hook_stub_info): New.
589 (hook_in_stub): New function.
590 (ppc_add_stub_section): New function.
591 (ppc_layout_sections_again): New function.
592 (build_section_lists): New function.
593 (gld${EMULATION_NAME}_finish): Rewrite.
594 (real_func): New var.
595 (ppc_for_each_input_file_wrapper): New function.
596 (ppc_lang_for_each_input_file): New function.
597 (lang_for_each_input_file): Define.
598 (PARSE_AND_LIST_PROLOGUE): Define.
599 (PARSE_AND_LIST_LONGOPTS): Define.
600 (PARSE_AND_LIST_OPTIONS): Define.
601 (PARSE_AND_LIST_ARGS_CASES): Define.
602 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
603
aa67bccf
TR
6042002-04-30 Tom Rix <trix@redhat.com>
605
a59f3d35
AM
606 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
607 -blibpath, -bnolibpath support.
608
94349e12
MM
6092002-04-30 Mark Mitchell <mark@codesourcery.com>
610
611 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
612 (eelf32ppcwindiss.c): New target.
613 * Makefile.in: Regenerated.
614 * configure.tgt: Add support for powerpc-*-windiss.
615 * emulparams/elf32ppcwindiss.sh: New file.
a59f3d35 616
7b17f854
RS
6172002-04-30 Richard Sandiford <rsandifo@redhat.com>
618
619 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
620 * ldexp.c (exp_print_token): Add "infix_p" argument.
621 (exp_print_tree): Update accordingly.
622
596dafeb
AM
6232002-04-28 Alan Modra <amodra@bigpond.net.au>
624
625 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
626 * Makefile.in: Regenerate.
627 * mpw-elfmips.c: Delete.
628 * mpw-eppcmac.c: Delete.
629 * mpw-esh.c: Delete.
630 * mpw-idtmips.c: Delete.
631
219576a4 6322002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
633
634 * emulparams/shelf32.sh (MACHINE): Now sh5.
635
944cd72c
TS
6362002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
637
638 * ldgram.y: Fix syntax warning.
639
5835c212
NC
6402002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
641
642 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
643 to prevent "-n" from being taken as an abbreviation for
644 "--no-pipeline-knowledge".
645
024531e2
AM
6462002-04-08 Alan Modra <amodra@bigpond.net.au>
647
d08a14c3
AM
648 * ldlang.c (lang_size_sections_1): Don't complain about
649 SEC_NEVER_LOAD sections having no memory region specified.
650
024531e2
AM
651 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
652
c657a1f0
MG
6532002-04-07 matthew green <mrg@redhat.com>
654
655 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
656
61bef6f1
AM
6572002-04-04 Alan Modra <amodra@bigpond.net.au>
658
659 * dep-in.sed: Cope with absolute paths.
660 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
661 Run "make dep-am".
662 * Makefile.in: Regenerate.
663
49ba2791
TS
6642002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
665
666 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
667
50e60fb5
JJ
6682002-04-03 Jakub Jelinek <jakub@redhat.com>
669
670 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
671 is smaller than maximum, round dot up to common page boundary.
672
6f12f4ca
AM
6732002-03-28 Alan Modra <amodra@bigpond.net.au>
674
675 * configure.host: Set up for generic hosts first, then tweak as
676 necessary in more specific targets.
677 (HOSTING_LIBS): Include libgcc_eh.a if found.
678
a8f1f017
AJ
6792002-03-23 Andreas Jaeger <aj@suse.de>
680
681 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
682
1d3fdf38
AM
6832002-03-21 Alan Modra <amodra@bigpond.net.au>
684
685 * Makefile.am: Run "make dep-am".
686 * Makefile.in: Regenerate.
687
79b1faa8
AM
6882002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
689
690 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
691
fcf0e35b
AM
6922002-03-20 Alan Modra <amodra@bigpond.net.au>
693
694 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
695 add the symbol to the linker hash table immediately.
696 (lang_place_undefineds): Split symbol creation out..
697 (insert_undefined): ..to here.
698
fed2999d
DB
6992002-03-18 David O'Brien <obrien@FreeBSD.org>
700
701 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
702 the contents of the buffer returned from basename function will are
703 getting overwritten while still being used.
704
219576a4
NC
7052002-03-18 Jan Hubicka <jh@suse.cz>
706 Andreas Jaeger <aj@suse.de>
707 Andreas Schwab <schwab@suse.de>
beb43bb9
JH
708
709 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
710 * elf_x86_64.sh (ARCH): Set to i386:x86-64
711 set libraries to default to lib64 paths.
712
eb1e0e80
NC
7132002-03-18 Tom Rix <trix@redhat.com>
714
715 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
716 * configure.tgt : Same.
717 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
718 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
719 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
720 emulation parameters for better -b32, -b64 support.
721 * emulparms/aixrs6.sh : Same.
722 * emulparms/ppcmacos.sh : Same.
723 * emultempl/aix.em (choose_target) : Use new emulation parameters
724 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
725 * Makefile.in : Regenerate.
726
a1c259a1
NC
7272002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
728
729 * po/fr.po: Updated version.
730
862120bd
AM
7312002-03-18 Alan Modra <amodra@bigpond.net.au>
732
733 * ldmain.c (main): Move .text readonly flag fudges from here..
734 * ldlang.c (lang_process): ..to here.
735
d35a52e2
AM
7362002-03-14 Alan Modra <amodra@bigpond.net.au>
737
738 * ldlang.c (lang_check): Remove the word size check added in last
739 change. Treat emitrelocations case as for relocatable links.
740
9ce88e60
NC
7412002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
742
743 * po/fr.po: Updated version.
744
30cba025
AM
7452002-03-13 Alan Modra <amodra@bigpond.net.au>
746
747 * ldlang.c (lang_check): Do relocatable link checks first, so that
748 warn_mismatch can't override. Check compatible and word size too.
749
84ec0e6d
DJ
7502002-03-07 Daniel Jacobowitz <drow@mvista.com>
751
752 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
753
2d13d8c5
JJ
7542002-03-05 Jakub Jelinek <jakub@redhat.com>
755
756 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
757 DATA_SEGMENT_ALIGN.
758
b5090659
L
7592002-03-04 H.J. Lu <hjl@gnu.org>
760
761 * scripttempl/elf.sc: Put .preinit_array, .init_array and
762 .fini_array in the data segment.
763
f42ce16e
AM
7642002-03-04 Alan Modra <amodra@bigpond.net.au>
765
766 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
767
de77b6ac
RH
7682002-03-01 David Mosberger <davidm@hpl.hp.com>
769
770 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
771 .init_array, and .fini_array.
772
997e08c0
AS
7732002-02-20 Andreas Schwab <schwab@suse.de>
774
775 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
776 .IA64_unwind* in a relocatable link.
777
9a66911f
NC
7782002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
779
780 * NEWS: Mark 2.12 branch.
781
d86bcc10
MS
7822002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
783
784 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
785 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
786
69f284c7
TR
7872002-02-18 Tom Rix <trix@redhat.com>
788
789 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
790 (gld*_before_allocation): Same.
a8f1f017 791 (gld*_create_output_section_statements): Generate
69f284c7
TR
792 __rtinit if run time linking. Add librtl.a to the link.
793 (gld*_read_file): Clean.
794
82bd7b59
AM
7952002-02-18 Alan Modra <amodra@bigpond.net.au>
796
797 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
798
ac3e50bf
DB
7992002-02-18 David O'Brien <obrien@FreeBSD.org>
800
6a7f963b 801 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
802 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
803 and eelf64alpha_fbsd.
6a7f963b 804 * Makefile.in: Regenerate.
ac3e50bf
DB
805 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
806 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
807 use a FreeBSD-specific emulation rather than the psABI one.
808 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
809 for all FreeBSD ELF systems.
810 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
811 emulation.
812 * emulparams/elf32ppc_fbsd.sh: Likewise.
813 * emulparams/elf64_ia64_fbsd.sh: Likewise.
814 * emulparams/elf64_sparc_fbsd.sh: Likewise.
815 * emulparams/elf64alpha_fbsd.sh: Likewise.
816 * emulparams/elf_i386_fbsd.sh: Likewise.
817 * emulparams/elf_x86_64_fbsd.sh: Likewise.
818
6ad738c5
NC
8192002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
820
821 * po/tr.po: Updated version.
822
9673c93c
AM
8232002-02-18 Alan Modra <amodra@bigpond.net.au>
824
825 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
826 (FILL): Likewise.
827
1c5e6447
HPN
8282002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
829
830 * emultempl/mmo.em (mmo_after_open): Don't call
831 _bfd_mmix_check_all_relocs when producing ELF output.
832
8bb57516
RH
8332002-02-15 Richard Henderson <rth@redhat.com>
834
de77b6ac 835 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
836 definition. Emit a unop+nop pair.
837
49fda6c8
HPN
8382002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
839
83c2d653
HPN
840 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
841 for presence of .MMIX.reg_contents.linker_allocated before early
842 exit.
843
49fda6c8
HPN
844 * NEWS: Mention support for MMIX.
845
2c382fb6
AM
8462002-02-15 Alan Modra <amodra@bigpond.net.au>
847
848 Support arbitrary length fill patterns.
a139d329
AM
849 * ld.texinfo (Output Section Fill): Describe fill expressions.
850 (FILL): Refer to the above.
2c382fb6
AM
851 * ldexp.h (etree_value_type): Add "str" field.
852 (union etree_union): Add "str" to "value" struct.
853 (exp_bigintop): Declare.
854 (exp_get_fill): Declare.
855 * ldexp.c: Include "safe-ctype.h".
856 (exp_intop): Set value.str to NULL.
857 (exp_bigintop): New function.
858 (new_rel): Pass in "str", and set new.str from it.
859 (new_rel_from_section): Set new.str to NULL.
860 (fold_name): Adjust calls to new_rel.
861 (exp_fold_tree): Likewise.
862 (exp_get_fill): New function.
863 * ldgram.y (struct big_int bigint, fill_type *fill): New.
864 (INT): Returns a "bigint". Adjust all code handling INTs.
865 (fill_opt): Returns a "fill".
866 (fill_exp): Split out of fill_opt, use for FILL.
867 * ldlang.h (struct _fill_type): New.
868 (fill_type): Move typedef to ldexp.h.
869 (lang_output_section_statement_type): "fill" is now a pointer.
870 (lang_fill_statement_type): Likewise.
871 (lang_padding_statement_type): Likewise.
872 (lang_add_fill): Now takes a "fill_type *" param.
873 (lang_leave_output_section_statement): Likewise.
874 (lang_do_assignments): Likewise.
875 (lang_size_sections): Likewise.
876 (lang_leave_overlay_section): Likewise.
877 (lang_leave_overlay): Likewise.
878 * ldlang.c: Include ldgram.h after ldexp.h.
879 (lang_output_section_statement_lookup): Adjust for fill_type change.
880 (print_fill_statement): Likewise.
881 (print_padding_statement): Likewise.
882 (insert_pad): Now takes a "fill_type *" arg.
883 (size_input_section): Likewise.
884 (lang_size_sections_1): Likewise.
885 (lang_size_sections): Likewise.
886 (lang_do_assignments): Likewise.
887 (lang_add_fill): Likewise.
888 (lang_leave_output_section_statement): Likewise.
889 (lang_leave_overlay_section): Likewise.
890 (lang_leave_overlay): Likewise.
891 Adjust all callers of the above function.
892 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
893 starting with "0X" as well as "0x". Return bigint.str for hex
894 numbers starting with "0x" or "0X", zero bigint.str otherwise.
895 Always use base 16 for numbers starting with "$".
896 * ldmain.c: Include ldgram.h after ldexp.h.
897 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
898 of bfd_fill_link_order.
899 * pe-dll.c: Adjust lang_do_assignments calls.
900 * emultempl/elf32.em: Likewise.
901 * emultempl/hppaelf.em: Likewise.
902 * emultempl/ppc64elf.em: Likewise.
903 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
904 lang_add_assignment call.
905 * emultempl/pe.em: Likewise.
906
313e35ee
AM
9072002-02-14 Phil Edwards <pme@gcc.gnu.org>
908
a139d329 909 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
910 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
911 the pattern in question is not a regexp.
912 * ldlang.c: Likewise.
913 * ldlang.h: Likewise.
914 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
915
2d20f7bf
JJ
9162002-02-12 Jakub Jelinek <jakub@redhat.com>
917
918 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
919 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
920 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
921 * ldexp.c (exp_data_seg): New variable.
922 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
923 (fold_binary): Handle DATA_SEGMENT_ALIGN.
924 (exp_fold_tree): Handle DATA_SEGMENT_END.
925 Pass allocation_done when recursing instead of hardcoding
926 lang_allocating_phase_enum.
927 * ldexp.h (exp_data_seg): New.
928 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
929 (lang_size_sections): New.
930 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
931 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
932 if COMMONPAGESIZE is defined.
933 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
934 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
935 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
936 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
937 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
938 libraries only.
939
06880219
AM
9402002-02-11 Alan Modra <amodra@bigpond.net.au>
941
942 * Makefile.in: Regenerate.
943
37b0ac0f
DJ
9442002-02-10 Daniel Jacobowitz <drow@mvista.com>
945
946 * lexsup.c: Remove strtoul declaration.
947
4e5bae56
DJ
9482002-02-10 Daniel Jacobowitz <drow@mvista.com>
949
950 * ldmain.c: Add prototype for main ().
951 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
952 * emultempl/lnk960.em (lnk960_choose_target): Function should
953 take two arguments.
954
1e281515
AM
9552002-02-10 Alan Modra <amodra@bigpond.net.au>
956
957 * ldlang.c (entry_section): New initialised variable.
958 (lang_finish): Use it.
959 * ldlang.h (entry_section): Declare.
960 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
961 entry_section to ".opd".
962
f92d92ff 9632002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
964
965 * ld.texinfo (Options): Add back in -nostdlib documentation,
966 which had been inadvertently removed.
967
74c44237
HPN
9682002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
969
970 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
971 register section vma to a sane value after emitting error. Make
972 fatal conditions cause program exit when emitting message.
973
5e37cc46
NC
9742002-02-08 Ivan Guzvinec <ivang@opencores.org>
975
976 * configure.tgt: Add or32-*-rtems target.
977
2d92cb7d
AO
9782002-02-08 Alexandre Oliva <aoliva@redhat.com>
979
980 Contribute sh64-elf.
981 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
982 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
983 in OTHER_RELOCATABLE_SECTIONS.
984 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
985 * emulparams/shelf32.sh (STACK_ADDR): Define.
986 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
987 (OTHER_SECTIONS): this. Removed stack settings.
988 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
989 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
990 2001-03-12 DJ Delorie <dj@redhat.com>
991 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
992 relaxing if any shmedia or mixed sections are found.
993 2001-03-07 DJ Delorie <dj@redhat.com>
994 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
995 einfo. Gracefully decline to output to non-elf formats.
996 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
997 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
998 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
999 * emulparams/shelf32.sh: Ditto.
1000 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1001 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1002 comment.
1003 2001-01-10 Ben Elliston <bje@redhat.com>
1004 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1005 non-portable shell constructs. From Hans-Peter Nilsson.
1006 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1007 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1008 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1009 dependencies to the shell script include chain.
1010 * Makefile.in: Regenerate.
1011 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1012 * emultempl/sh64elf.em: Update and tweak comments.
1013 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1014 make a .cranges section SEC_IN_MEMORY.
1015 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1016 * emultempl/sh64elf.em
1017 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1018 .cranges section found to be necessary; continue and set stored
1019 section contents flags for sections with non-mixed contents.
1020 Use a struct sh64_section_data container and sh64_elf_section_data
1021 to store contents-type flags.
1022 Remove unused update of "isec".
1023 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1024 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1025 access contents-type flags. Assert that the associated container
1026 is initialized. Use that container, not elf_gp_size, to hold size
1027 of linker-generated cranges contents.
1028 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1029 * emultempl/sh64elf.em
1030 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1031 there's already a .cranges section. When section flag difference
1032 is found, don't NULL-check cranges a second time. Tweak comments.
1033 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1034 merging, not max size, as size of ld-generated .cranges contents.
1035 Don't set ELF section flags in output section. When checking for
1036 needed .cranges descriptors, don't use a variable; compare
1037 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1038 comments.
1039 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1040 * emultempl/sh64elf.em: New file.
1041 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1042 * Makefile.in: Regenerate.
1043 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1044 (OTHER_RELOCATING_SECTIONS): Ditto.
1045 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1046 * emulparams/shlelf32.sh: Stub out all settings except
1047 OUTPUT_FORMAT. Source shelf32.sh.
1048 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1049 OTHER_RELOCATING_SECTIONS.
1050 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1051 * emulparams/shlelf64.sh: Stub out all settings except
1052 OUTPUT_FORMAT. Source shelf64.sh.
1053 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1054 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1055 .cranges section.
1056 (DATA_START_SYMBOLS): Define, provide ___data.
1057 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1058 for consecutive .data section.
1059 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1060 section after .data section.
1061 * emulparams/shlelf64.sh: Ditto.
1062 * emulparams/shelf32.sh: Ditto.
1063 (ALIGNMENT): Define to 8.
1064 * emulparams/shelf32.sh: Ditto.
1065 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1066 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1067 built-in linker scripts.
1068 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1069 * emulparams/shlelf64.sh: New.
1070 * emulparams/shelf64.sh: New.
1071 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1072 targ_extra_emuls.
1073 * Makefile.am: Add support for shlelf64 and shelf64.
1074 * Makefile.in: Regenerate.
1075 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1076 * configure.tgt (sh64-*-elf*): Add shelf as default.
1077 Add shlelf to targ_extra_emuls.
1078 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1079 * emulparams/shelf32.sh: New file.
1080 * emulparams/shlelf32.sh: New file.
1081 * Makefile.am: Add support for shlelf32 and shelf32.
1082 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1083 * Makefile.in: Regenerate.
1084
e3dc8847
HPN
10852002-02-05 Hans-Peter Nilsson <hp@axis.com>
1086
1087 * ldlang.c (lang_reset_memory_regions): Rename from
1088 reset_memory_regions. Change all callers. Make public.
1089 * ldlang.h (lang_reset_memory_regions): Prototype.
1090 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1091 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
1092 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1093 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 1094
8017dbcb
HPN
10952002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1096
1097 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1098 arithmetic when checking for too many global registers.
1099
006336b8
JT
11002002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1101
1102 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1103 (ehppanbsd.c): New rule.
1104 * Makefile.in: Regenerate.
1105 * configure.tgt (hppa*-*-netbsd*): New target.
1106 * emulparams/hppalinux.sh: Add comment to check other files
1107 that source this file it is modified, and list which
1108 files that do.
1109 * emulparams/hppanbsd.sh: New file.
1110
da1f2fec
GK
11112002-02-01 Geoffrey Keating <geoffk@redhat.com>
1112
1113 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1114 stack.
1115
48fa4a5d
HPN
11162002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1117
1118 Support on-demand global register allocation from
1119 R_MMIX_BASE_PLUS_OFFSET relocs.
1120 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1121 mmix_set_reg_section_vma. Call
1122 _bfd_mmix_finalize_linker_allocated_gregs.
1123 (mmix_before_allocation): New function.
1124 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1125 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1126 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1127 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1128 before .MMIX.reg_contents.
1129 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1130 (mmo_after_open): New function.
1131 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1132 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1133 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1134
3b16e843
NC
11352002-01-31 Ivan Guzvinec <ivang@opencores.org>
1136
1137 * emulparams/or32.sh: New file.
1138 * emulparams/or32elf.sh: New file.
1139 * scripttempl/or32.sc: New file.
1140 * configure.tgt : Add support for or32.
1141 * configure: Regenerate
1142 * Makefile.am: Add support for or32.
1143 * Makefile.in: Regenerate.
1144 * NEWS: Mention support for or32.
1145 * po/ld.pot: Regenerate.
1146
f744d540 11472002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 1148 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
1149
1150 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1151 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1152 reloc creation (ld --embedded-relocs).
1153
4867be41
DJ
11542002-01-27 Daniel Jacobowitz <drow@mvista.com>
1155
1156 * configure: Regenerated.
1157
cd8e197b
HPN
11582002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1159
1160 * Makefile.am (install): Depend on install-info.
1161 * Makefile.in: Regenerate.
1162
9cb61eab
AM
11632002-01-26 Christian Rose <menthos@menthos.com>
1164
1165 * ldmain.c (main): Use full sentences to ease translation.
1166
1caa7b23
NC
11672002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1168
1169 * po/fr.po: Updated version.
1170
1ddbd152
NC
11712002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1172
1173 * po/es.po: Updated version.
1174
1e84433f
AJ
11752002-01-25 Andreas Jaeger <aj@suse.de>
1176
1177 * ldlex.l (yy_input): Correct error check.
1178
6d39955e
AM
11792002-01-25 Alan Modra <amodra@bigpond.net.au>
1180
1181 * ldmisc.c (demangle): Put back dots when string not demangled.
1182
a9ed1e1b
RH
11832002-01-22 Richard Henderson <rth@redhat.com>
1184
1185 * emulparams/elf64alpha.sh (NOP): Use unop.
1186
968ec2b9
AJ
11872002-01-21 Andreas Jaeger <aj@suse.de>
1188
1189 * ldlex.l: Use fread instead of read.
1190
9596feea
JT
11912002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1192
1193 * configure.tgt (ia64-*-netbsd*): New target.
1194
493a6d47
L
11952002-01-21 H.J. Lu <hjl@gnu.org>
1196
1197 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1198 0.
1199 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1200
2a538ba5
AJ
12012002-01-18 Andreas Jaeger <aj@suse.de>
1202
1203 * ldver.c (ldversion): Update year.
1204
328577ad
NC
12052002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1206
1207 * po/ld.pot: Regenerate.
1208
1f808cd5
AM
12092002-01-16 Alan Modra <amodra@bigpond.net.au>
1210
1211 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1212 * Makefile.in: Regenerate.
1213 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1214 * emultempl/ppc64elf.em: New file.
1215
335c5610
DD
12162002-01-15 DJ Delorie <dj@redhat.com>
1217
1218 * scripttempl/pe.sc: Add support for constructor priorities.
1219
c40bbade
DC
12202002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1221
1222 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1223 * emulparams/avr23xx.sh: Likewise.
1224 * emulparams/avr4433.sh: Likewise.
1225 * emulparams/avr44x4.sh: Likewise.
1226 * emulparams/avr85xx.sh: Likewise.
1227 * emulparams/avrmega103.sh: Likewise.
1228 * emulparams/avrmega161.sh: Likewise.
1229 * emulparams/avrmega603.sh: Likewise.
1230 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1231
34efb449
AO
12322002-01-08 Alexandre Oliva <aoliva@redhat.com>
1233
1234 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1235 archive is excluded.
1236
8d05742f
JT
12372002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1238
1239 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 1240 (eshelf_nbsd.c): New rule.
8d05742f
JT
1241 (eshlelf_nbsd.c): New rule.
1242 * Makefile.in: Regenerate.
1243 * configure.tgt (sh*le-*-netbsdelf*): New target.
1244 (sh*-*-netbsdelf*): New target.
1245 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1246 * ld/emulparams/shelf_nbsd.sh: New emulation.
1247 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1248
be2d1673
NC
12492002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1250
1251 * po/es.po: New file: Spanish translation.
1252 * configure.in (ALL_LINGUAS): Add es.
1253 * configure: Regenerate.
1254
dbab7a7b
NC
12552002-01-06 John Marshall <jmarshall@acm.org>
1256
1257 * ld.texinfo: Note that --emit-relocs is currently only
1258 implemented for ELF.
1259
3dfe7a8c
AM
12602002-01-05 Alan Modra <amodra@bigpond.net.au>
1261
1262 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1263 of bfd_section_list_remove and bfd_section_list_insert macros.
1264 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1265 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1266
8a8b2d4b
AJ
12672002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1268
1269 * configure.tgt (x86_64-*-netbsd*): New target.
1270
9a4c7f16
TR
12712001-12-21 Tom Rix <trix@redhat.com>
1272
8a8b2d4b 1273 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
1274 For -binitfini support.
1275 * emultempl/aix.em (gld*_before_parse): Fix comment.
1276 * emultempl/aix.em (gld*_parse_args): Fix comment.
1277
3695c299
AM
12782001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1279
cf86e6df
AM
1280 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1281 mips*el-*-netbsd*.
1282 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1283
3695c299
AM
1284 * configure.tgt (arm-*-netbsdelf*): Add target.
1285 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1286 * emulparams/armelf_nbsd.sh: Added.
1287 * Makefile.am: Add rules for earmelf_nbsd.
1288 * Makefile.in: Regenerate.
1289
97cb79ae
AJ
12902001-12-19 Andreas Jaeger <aj@suse.de>,
1291 Susanne Oberhauser <froh@suse.de>
1292
1293 * configure.host: Add rules for x86_64-*linux-gnu. Change
1294 s390x-linux entry to use gcc to report configuration, replace gcc
1295 with $CC in s390-linux
1296
9d201f2f
AJ
12972001-12-19 Andreas Jaeger <aj@suse.de>
1298
1299 * ld.texinfo (VERSION): Fix markup.
1300
0b69cd08
MG
13012001-12-18 matthew green <mrg@eterna.com.au>
1302
1303 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1304 (m68kelfnbsd.c): New rule.
1305 * Makefile.in: Regenerate.
1306 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1307 (m68*-*-netbsd*4k*): .. this.
1308 (m68*-*-netbsdelf*): New target.
1309 (m68*-*-netbsd*): Also include ELF support.
1310 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1311 * emulparams/m68kelfnbsd.sh: New emulation.
1312
6b9b879a
JJ
13132001-12-18 Jakub Jelinek <jakub@redhat.com>
1314
1315 * ldgram.y (vers_node): Support anonymous version tags.
1316 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1317 tag is not defined together with non-anonymous versions.
1318 * ld.texinfo: Document it.
1319
9fc877ed
NC
13202001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1321
1322 * po/tr.po: New file: Turkish translation.
1323 * configure.in (ALL_LINGUAS): Add tr.
1324 * configure: Regenerate.
1325
fc18a3f3
RH
13262001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1327
1328 * Makefile.am: Add rules for eelf64alpha_nbsd.
1329 * Makefile.in: Regenerate.
1330 * configure.tgt (alpha*-*-netbsd*): Set
1331 targ_emul to elf64alpha_nbsd.
1332 * emulparams/elf64alpha_nbsd.sh: Added.
1333
76f63e91
AM
13342001-12-17 Alan Modra <amodra@bigpond.net.au>
1335
1336 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1337 section_tail when fiddling with section list.
1338 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1339 broken into separate strings to make translation easier.
1340 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1341 fiddling with section list.
1342 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1343
d03b89bd
HPN
13442001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1345
1346 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1347
320fec9a
AM
13482001-12-15 Alan Modra <amodra@bigpond.net.au>
1349
1350 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1351
65765700
JJ
13522001-12-13 Jakub Jelinek <jakub@redhat.com>
1353
1354 * emultempl/elf32.em (finish): Supply output_bfd
1355 to bfd_elf*_discard_info.
1356 (OPTION_EH_FRAME_HDR): Define.
1357 (longopts): Add --eh-frame-hdr.
1358 (parse_args): Handle it.
1359 (list_options): Add --eh-frame-hdr to help.
1360 * emultempl/hppaelf.em (finish): Supply output_bfd
1361 to bfd_elf*_discard_info.
1362 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1363
89894c62
AM
13642001-12-13 Alan Modra <amodra@bigpond.net.au>
1365
1366 * lexsup.c (parse_args): Don't pass shortopts to second call to
1367 getopt functions. Restore optind rather than decrementing before
1368 second call. Remove errind as it now duplicates last_optind.
1369
583f1926
CF
13702001-12-11 Christopher Faylor <cgf@redhat.com>
1371
1372 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1373
93fbbb04
GK
13742001-12-07 Geoffrey Keating <geoffk@redhat.com>
1375 Richard Henderson <rth@redhat.com>
1376
1377 * Makefile.am: Add support for xstormy16.
1378 * configure.tgt: Add support for xstormy16.
1379 * Makefile.in: Regenerate.
1380 * emulparams/elf32xstormy16.sh: New file.
1381 * scripttempl/xstormy16.sc: New file.
1382
583f1926
CF
13832001-10-01 Christopher Faylor <cgf@cygnus.com>
1384
fc18a3f3
RH
1385 * Makefile.in (LIB_PATH): Make configurable.
1386 (GENSCRIPTS): Set LIB_PATH in environment.
1387 * configure.in: Substitute LIB_PATH.
1388 * configure: Regenerate.
1389 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1390 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 1391
ff291a48
NC
13922001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1393
1394 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1395 describing the -N option so that it is easier to translate into
1396 foreign languages.
1397
e3c8793a
NC
13982001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1399
1400 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1401 statements describing a single option with a single, newline
1402 escaped fprintf. This allows better translation into other
1403 languages.
9d201f2f 1404
fc18a3f3
RH
1405 * ldmain.c (add_archive_element): Combine multiple strings
1406 into a single string to permit better translation into other
1407 languages.
e3c8793a 1408
f2eab0af
TR
14092001-12-05 Tom Rix <trix@redhat.com>
1410
1411 * Makefile.am: Remove eaixppc64.
9d201f2f 1412 * Makefile.in: Regenerate.
f2eab0af 1413
249172c3
TR
14142001-12-04 Tom Rix <trix@redhat.com>
1415
9d201f2f 1416 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
1417 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1418 warning.
1419 (gld*_read_file): Fix typo.
1420 (change_symbol_mode): Add prototype.
1421 (is_syscall): Same.
9d201f2f 1422
249172c3
TR
1423 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1424 * emulparams/aixrs6.sh : Same.
1425 * emulparams/ppcmacos.sh : Same.
1426 * emulparams/aixppc64.sh : Delete file.
1427 * emultempl/aix.em : Formatting changes.
1428
5b5cd1b0
HPN
14292001-12-04 Hans-Peter Nilsson <hp@axis.com>
1430
1431 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1432 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1433 __Sbss.
1434 (OTHER_END_SYMBOLS): Fix formatting.
1435 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1436 (OTHER_END_SYMBOLS): Fix formatting.
1437
7cecdbff
AM
14382001-12-04 Alan Modra <amodra@bigpond.net.au>
1439
1440 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1441
742aeb63 14422001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 1443
742aeb63 1444 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 1445 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
1446 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1447 (ldemul_default_target): Same.
1448 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
1449 * emultempl/gld960c.em (gld960_choose_target): Same.
1450 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
1451 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1452 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1453 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 1454 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
1455 -b32 and -b64.
1456
48459341
L
14572001-11-27 H.J. Lu <hjl@gnu.org>
1458
1459 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1460 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1461 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1462 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1463 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1464 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1465 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1466 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1467
7cecdbff 1468 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
1469 is not empty.
1470 (SDATA): Likewise.
1471 (REL_SDATA): Likewise.
1472 (REL_SBSS): Likewise.
1473 (REL_SDATA2): Likewise.
1474 (REL_SBSS2): Likewise.
1475 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1476 (SDATA2): Likewise.
1477
ecfdd20c
SC
14782001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1479
1480 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1481 destructor in rom.
7cecdbff 1482 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 1483
da54c6eb
L
14842001-11-22 H.J. Lu <hjl@gnu.org>
1485
1486 * Makefile.in: Regenerated with automake based on automake
1487 1.4-8 in RedHat 7.1.
1488
465bc359
AM
14892001-11-22 Alan Modra <amodra@bigpond.net.au>
1490
1491 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1492 (config.status): Delete rule.
1493 Add extra dependencies to cover sourced emulparams files.
1494 * Makefile.in: Regenerate.
1495
1496 * scripttempl/elf.sc: Order <section>, <section>.* and
1497 corresponding linkonce sections as seen in input files.
1498 Formatting fixes. Zero vma of all sections if not relocating.
1499 (STACK): Define and insert if STACK_ADDR defined.
1500 (OTHER_RELOCATING_SECTIONS): Delete.
1501 (OTHER_END_SYMBOLS): Define.
1502 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1503 (OTHER_READWRITE_SECTIONS): Likewise.
1504 (OTHER_GOT_SECTIONS): Likewise.
1505 (OTHER_SDATA_SECTIONS): Likewise.
1506 (OTHER_BSS_SECTIONS): Likewise.
1507 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1508 (OTHER_READWRITE_SECTIONS): Likewise.
1509 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1510 (OTHER_READWRITE_SECTIONS): Likewise
1511
1512 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1513 (STACK_ADDR): Define.
1514 * emulparams/armelf_oabi.sh: As for armelf.sh.
1515 * emulparams/elf32mcore.sh: As for armelf.sh.
1516 * emulparams/h8300elf.sh: As for armelf.sh.
1517 * emulparams/mn10200.sh: As for armelf.sh.
1518 * emulparams/shelf.sh: As for armelf.sh.
1519
1520 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1521 (OTHER_END_SYMBOLS): Define.
1522 * emulparams/m32relf.sh: As for elf32fr30.sh.
1523 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1524 * emulparams/h8300self.sh: As for elf32fr30.sh.
1525
1526 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1527 defines with RELOCATING test.
1528 (OTHER_SDATA_SECTIONS): Likewise.
1529 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1530 (OTHER_END_SYMBOLS): ..this.
1531 * emulparams/crislinux.sh: As for criself.sh.
1532
1533 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1534 if not relocating.
1535 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1536 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1537 normal and linkonce sections as seen in input files.
1538 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1539 (TEXT_DYNAMIC): Likewise.
1540 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1541 (OTHER_SDATA_SECTIONS): Likewise.
1542 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1543 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1544 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1545 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1546 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1547 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1548 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1549 sections as seen in input files.
1550 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1551 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1552 if not relocating.
1553 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1554 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1555 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1556 (OTHER_SECTIONS): Instead, use this..
1557 (OTHER_END_SYMBOLS): ..and this.
1558
1559 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1560 * emulparams/elf32bsmip.sh: Likewise.
1561 * emulparams/elf32btsmip.sh: Likewise.
1562 * emulparams/elf32ebmip.sh: Likewise.
1563 * emulparams/elf32lmip.sh: Likewise.
1564 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1565 * emulparams/elf32lsmip.sh: Likewise.
1566 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1567 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1568 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1569 * emulparams/elf64btsmip.sh: Likewise.
1570 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1571 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1572 * emulparams/elf32ppclinux.sh: Likewise.
1573 * emulparams/elf32ppcsim.sh: Likewise.
1574 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1575 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1576 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1577 * emulparams/h8300self.sh: Likewise.
1578 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1579 * emulparams/sh.sh: Comment.
1580 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1581 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1582 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1583
abc6ab0a
AM
15842001-11-21 David Heine <dlheine@tensilica.com>
1585 Alan Modra <amodra@bigpond.net.au>
1586
1587 * ldlang.c (map_input_to_output_sections): Replace "break"
1588 accidentally removed with 2001-08-03 change.
1589 (lang_gc_sections_1): Likewise.
1590
2181f54f
AM
15912001-11-21 Alan Modra <amodra@bigpond.net.au>
1592
1593 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1594
ca0b5847
AM
15952001-11-20 Angela Marie Thomas <angela@redhat.com>
1596
1597 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
1598 of false when calling lang_size_sections.
1599 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 1600
c56feb2b
AM
16012001-11-15 Alan Modra <amodra@bigpond.net.au>
1602
1603 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1604 function when LDEMUL_FINISH isn't set to the same name. Don't
1605 call ${LDEMUL_FINISH}.
1606 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1607 * emultempl/armelf.em (arm_elf_finish): Call
1608 gld${EMULATION_NAME}_finish.
1609 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1610 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1611 hppaelf_layout_sections_again if necessary.
1612 (need_laying_out): New var.
1613 (hppaelf_layaout_sections_again): Rename to
1614 hppaelf_layout_sections_again. Clear need_laying_out.
1615 (PARSE_AND_LIST_OPTIONS): Format text.
1616
a48ca7f2
L
16172001-11-14 H.J. Lu <hjl@gnu.org>
1618
1619 * emultempl/armelf.em (arm_elf_finish): Renamed from
1620 gld${EMULATION_NAME}_finish.
1621 (LDEMUL_FINISH): Set to arm_elf_finish.
1622
73d074b4
DJ
16232001-11-14 Daniel Jacobowitz <drow@mvista.com>
1624
1625 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1626 (struct ld_emulation_xfer_struct): Use it.
1627
3b16e843 16282001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 1629
465bc359 1630 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
1631 additional symbols referenced by newer crt0.o files from HP.
1632
f11b7027
NC
16332001-11-12 Anthony Green <green@redhat.com>
1634
1635 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1636
3bf2994f
AM
16372001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1638
1639 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1640 * Makefile.in: Regenerate.
1641
ff5dcc92
SC
16422001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1643
1644 * ld.texinfo: Use @command for commands, @option for options.
1645 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1646 the page man title.
1647 * Makefile.in: Rebuild.
1648
9fb9af6e
CD
16492001-11-04 Chris Demetriou <cgd@broadcom.com>
1650
1651 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1652 Add support for targets.
2181f54f 1653
3c62831e
NC
16542001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1655
1656 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1657 * configure: Regernate.
1658 * po/fr.po: New file.
1659 * po/sv.po: New file.
1660
3a9091c4
NC
16612001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1662
1663 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1664 as little endian default and to support big endian.
2181f54f 1665
361b220e
CD
16662001-11-01 Chris Demetriou <cgd@broadcom.com>
1667
1668 * ld.texinfo (Options): Document new option, -nostdlib.
1669 * lexsup.c (OPTION_NOSTDLIB): New definition.
1670 (ld_options): Add entry for "nostdlib".
1671 (parse_args): Handle OPTIONS_NOSTDLIB.
1672 * ldfile.c (ldfile_add_library_path): Don't add directories
1673 to the search path if they weren't specified on the command line
1674 and -nostdlib was specified.
1675 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1676
210a7bd1
NC
16772001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1678
1679 * lexsup.c (parse_args): Prevent infinite parsing loop when
1680 "-rpath.a" is specified on the command line.
1681 Replace calls to fprintf with calls to einfo.
1682
114283d8
NC
16832001-10-31 John Marshall <jmarshall@acm.org>
1684
1685 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1686 appear only once across all the linker scripts involved in a link
1687 invocation no longer applies. Make the documentation reflect
1688 that.
1689
7649aa50
NC
16902001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1691
1692 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1693 targets.
1694 (sh-*-linux*): Added targ_extra_libpath.
1695
6e814ff8
AM
16962001-10-31 David Heine <dlheine@tensilica.com>
1697
1698 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1699 for padding statements.
1700
3c3bdf30
NC
17012001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1702
1703 * configure.tgt (mmix-*-*): New target.
1704 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1705 Add dependencies to match.
1706 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1707 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1708 scripttempl/mmo.sc: New files.
1709 * gen-doc.texi: @set MMIX.
1710 * ld.texinfo: Ditto.
6e814ff8 1711 [MMIX] Add MMIX node.
3c3bdf30
NC
1712 * Makefile.in: Regenerate.
1713
ca0c1d3e
KH
17142001-10-29 Kazu Hirata <kazu@hxi.com>
1715
1716 * ldlang.c: Fix a comment typo.
1717
1a3d33ce
AM
17182001-10-23 Alan Modra <amodra@bigpond.net.au>
1719
1720 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1721 entries, and match *-*-linux*.
1722
b47c4208
AM
17232001-10-20 Alan Modra <amodra@bigpond.net.au>
1724
1725 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1726 with ldlex_script, ldlex_popstate.
1727 (ifile_p1): Likewise.
1728 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1729 correct slot.
1730 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1731 to 1. Don't BEGIN(SCRIPT).
1732 (lex_redirect): Similarly.
1733 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1734
fd521b47
NC
17352001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1736
1737 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1738 __EH_FRAME_END__ and accept eh frames into data section.
1739 Add ctor and dtor sections.
1740
59d28a94
DD
17412001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1742
1743 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1744 (auto-export): Fix indentation.
1745
663dd378
DD
17462001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1747
1748 * pe-dll.c (autofilter_objectlist): Add startup objects
1749 for profiling.
1750 (auto-export): Constify char * p.
6e814ff8 1751 Extract file basename and use strcmp rather than ststr
663dd378
DD
1752 for object lookup.
1753
31d677f9
CD
17542001-10-18 Chris Demetriou <cgd@broadcom.com>
1755
1756 * ldmain.c (get_emulation): Improve comment about the handling
1757 of -mipsN options.
1758
aa200fe8
AM
17592001-10-17 Alan Modra <amodra@bigpond.net.au>
1760
1761 * po/POTFILES.in: Regenerate.
1762
146e7110
AM
17632001-10-16 Vassili Karpov <malc@pulsesoft.com>
1764
1765 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1766 -z nocopyreloc and -z nocombreloc usage strings.
1767
b4330e85
NC
17682001-10-12 Vassili Karpov <malc@pulsesoft.com>
1769
146e7110 1770 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
1771 in usage.
1772
5af8a2fb
NC
17732001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1774
1775 * scripttempl/armaout.sc: Place .bss section after end of aligned
1776 data section to match behaviour of aout code in constructrion of
1777 header.
1778
5b784096
DD
17792001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1780
1781 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1782 startup files for mingw32 dlls to list.
1783
61585df2
CD
17842001-10-10 Chris Demetriou <cgd@broadcom.com>
1785
1786 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1787
45cf6f3e
AH
17882001-10-08 Aldy Hernandez <aldyh@redhat.com>
1789
1790 * configure.tgt (targ): Add arm9e-*-elf.
1791
e24d7c12
L
17922001-10-05 H.J. Lu <hjl@gnu.org>
1793
1794 * genscripts.sh: Fix a typo in the last change.
1795
ec38dd05
JJ
17962001-10-05 Jakub Jelinek <jakub@redhat.com>
1797
1798 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1799 -z nocombreloc in usage.
1800
cedd6b0d
JB
18012001-10-03 Jim Blandy <jimb@redhat.com>
1802
1803 * genscripts.sh: Include a comment at the top of each generated
1804 script, explaining its purpose.
1805
8bd621d8
AM
18062001-10-03 Vassili Karpov <malc@pulsesoft.com>
1807
1808 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1809 * NEWS: Mention -z nocopyreloc.
1810 * ld.texinfo (Options): Describe nocopyreloc.
1811
fcd8210c
AM
18122001-10-03 Alan Modra <amodra@bigpond.net.au>
1813
1814 * configure: Regenerate.
1815
d32820f2
AM
18162001-10-02 Alan Modra <amodra@bigpond.net.au>
1817
1818 * ldver.h (ld_program_version): Remove declaration.
1819 * lexsup.c (parse_args): Move printing of copyright message..
1820 * ldver.c (ldversion): .. to here.
1821 Use BFD_VERSION_STRING in place of BFD_VERSION.
1822 (ld_program_version): Remove.
1823 * Makefile.am (Makefile): Depend on bfd/configure.in.
1824 Run "make dep-am".
1825 * Makefile.in: Regenerate.
1826
af46bcdc
HPN
18272001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1828
1829 * Makefile.am: Update dependencies with "make dep-am".
1830 * Makefile.in: Regenerate.
1831
4818e05f 18322001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 1833
4818e05f
AM
1834 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1835 * lexsup.c: Add --no-define-common commandline option.
1836 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1837 * ldlex.l: Likewise.
1838 * ld.h: Add command_line.inhibit_common_definition.
1839 * ldmain.c (main): Initialize.
1840 * ld.texinfo: Document.
862517b6 1841
a59f3d35
AM
18422001-09-29 Alan Modra <amodra@bigpond.net.au>
1843
1844 * ldlang.c (section_already_linked): Remove assignment to kept_section.
1845
d5e0ebeb
AM
18462001-09-26 Alan Modra <amodra@bigpond.net.au>
1847
1848 * ldmisc.c (USE_STDARG): Remove.
1849 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1850 (einfo): Likewise.
1851 (minfo): Likewise.
1852 (lfinfo): Likewise.
1853
1854 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1855 declarations. Update copyright.
1856
2f8d8971
NC
18572001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1858
85c77458
NC
1859 * pe-dll.c: Remove obsoleted declaration of
1860 pe_get_data_import_dll_name.
1861 (pe_create_import_fixup): Fix thinko.
1862
2f8d8971
NC
1863 * ld.texinfo(enable-auto-import): Clarify the explanation.
1864
18652001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1866
1867 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1868 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1869 DLL_SUPPORT controlled code.
1870
72358f65 18712001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 1872
72358f65
NC
1873 * emultempl/pe.em(pe_data_import_dll): Make static.
1874 (pe_get_data_import_dll_name): New accessor function.
146e7110 1875 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
1876 pe_get_data_import_dll_name() from pe.em, instead of
1877 directly accessing pe_data_import_dll variable from pe.em.
1878
3882b010
L
18792001-09-18 Bruno Haible <haible@clisp.cons.org>
1880
1881 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1882 (def_file_add_directive): Use ISSPACE instead of isspace.
1883 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1884 isdigit/isxdigit/isalpha/isalnum.
1885 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1886 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1887 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1888 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1889 isalnum.
1890 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1891 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1892 isupper/tolower.
1893 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1894 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1895 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1896 (ctor_prio): Use ISDIGIT instead of isdigit.
1897 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1898 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1899 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1900 isupper/tolower.
1901 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1902 (stricpy): Use TOLOWER instead of isupper/tolower.
1903 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1904 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1905 (lex_warn_invalid): Use ISPRINT instead of isprint.
1906 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1907 (main): For gettext, also set the LC_CTYPE locate facet.
1908 (add_keepsyms_file): Use ISSPACE instead of isspace.
1909 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1910 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1911 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1912 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1913 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1914 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1915 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1916 (quoteput): Use ISSPACE instead of isspace.
1917 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1918 instead of isalnum.
1919
db09f25b
AM
19202001-09-18 Alan Modra <amodra@bigpond.net.au>
1921
1922 * deffilep.y (def_stash_module): Constify "name" param.
1923
1924 * pe-dll.c: Replace CONST with const throughout.
1925 (quick_symbol): Constify "n1", "n2", "n3" params.
1926 (make_singleton_name_thunk): Constify "import" param. Make
1927 "buffer_len" a size_t.
1928 (make_import_fixup_entry): Constify "name", "fixup_name",
1929 "dll_symname" params.
1930 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1931 (pe_get32): Likewise.
1932 (pe_implied_import_dll): Likewise.
1933
1934 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1935 (sort_by_section_name): Likewise.
1936
1937 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1938 (make_import_fixup): Cast printf arg, rel->address to long rather
1939 than int.
1940 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1941
74699268
AM
19422001-09-15 Alan Modra <amodra@bigpond.net.au>
1943
1944 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1945 defines BufferSize. Increase buffer size by one.
1946
775cabad
NC
19472001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1948
1949 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1950
056a1d49
NC
19512001-09-14 Kevin Lo <kevlo@openbsd.org>
1952
1953 * configure.tgt: Add arm-openbsd target.
1954
a7d792bb
L
19552001-09-12 H.J. Lu <hjl@gnu.org>
1956
1957 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1958 eelf64lppc.o to ...
1959 (ALL_64_EMULATIONS): Here.
1960 * Makefile.in: Regenerated.
1961
0d888aac
CW
19622001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1963
1964 * emultempl/pe.em(make_import_fixup): change signature to
1965 take asection as well as arelec; we need this for proper
146e7110 1966 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
1967 there is no attempt to add a constant addend to the reloc;
1968 otherwise, report error condition.
1969 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1970 since final argument is a pointer to make_import_fixup().
1971 Change call to cb() to match make_import_fixup() signature.
1972 (make_import_fixup_mark): make buffer_len unsigned.
1973 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1974
19752001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1976
1977 * ld.texinfo: add verbose documentation for auto-import
146e7110 1978 direct-addressing workaround, to compliment the terse
0d888aac
CW
1979 error message.
1980
cedacdc0
CM
19812001-09-12 Andrew MacLeod <amacleod@redhat.com>
1982
146e7110 1983 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 1984
3b16e843 19852001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
1986
1987 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1988 * emulparams/h8300self.sh: Similarly.
1989
559e4713
NC
19902001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1991
1992 * ld.texinfo (Options, --stack): Correct default value for stack
1993 reserve.
1994
1fdf0249
TR
19952001-09-05 Tom Rix <trix@redhat.com>
1996
1997 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 1998
9b5799b8
AJ
19992001-09-03 Andreas Jaeger <aj@suse.de>
2000
2001 * emultempl/beos.em: Declare prototypes for comparions functions,
2002 adjust definitions.
2003
48f6162b
AJ
20042001-09-02 Andreas Jaeger <aj@suse.de>
2005
2006 * emultempl/aix.em: Add missing prototype.
2007 * emultempl/lnk960.em: Likewise.
2008 * emultempl/vanilla.em: Likewise.
2009 * emultempl/armcoff.em: Likewise.
2010 * emultempl/armelf_oabi.em: Likewise.
2011 * emultempl/beos.em: Likewise.
2012 * emultempl/gld960c.em: Likewise.
2013 * emultempl/gld960.em: Likewise.
2014
2015 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2016 for prototype declaration.
2017
39e5585e
EC
20182001-08-31 Eric Christopher <echristo@redhat.com>
2019 Jason Eckhardt <jle@redhat.com>
2020
2021 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2022
3fc90ddb
AJ
20232001-08-31 Andreas Jaeger <aj@suse.de>
2024
2025 * emultempl/pe.em: Add missing prototypes.
2026 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2027 pe_find_data_imports.
2028 (pr_sym): Add unused attribute.
2029
d43ded80
PB
20302001-08-29 Joel Sherrill <joel@OARcorp.com>
2031
39e5585e 2032 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
2033 default from coff to elf.
2034
3946dd2f
JL
20352001-08-29 Jeff Law <law@redhat.com>
2036
2037 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2038 ARCH specification.
2039 * emulparams/h8300self.sh: Similarly.
2040
3b16e843 20412001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
2042
2043 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2044 eh8300self.o .
2045 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2046 * configure.tgt (h8300-*-elf*): New case.
2047 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2048 * emulparams/h8300self.sh: New file.
2049 * Makefile.in: Regenerated.
2050
70d0c6e9
NC
20512001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2052
2053 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2054 with macro name.
2055
5c67d4bb
AM
20562001-08-27 Linus Nordberg <linus@swox.com>
2057 Alan Modra <amodra@bigpond.net.au>
2058
2059 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2060 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2061 Run "make dep-am"
2062 * Makefile.in: Regenerate.
2063 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2064 entries to correct alphabetical position.
2065 * emulparams/elf64ppc.sh: New.
2066 * emulparams/elf64lppc.sh: New.
2067
08131015
NC
20682001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2069
2070 * ldmain.c (main): Declare BSIZE as static.
2071
db6751f2
JJ
20722001-08-23 Jakub Jelinek <jakub@redhat.com>
2073
2074 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2075 into .rel.dyn resp. .rela.dyn if combreloc.
2076 (get_script): If .x linker script is equal to .xn, only put it
2077 once into the binary.
2078 Add .xc and .xsc scripts.
2079 (parse_args): Handle -z combreloc and -z nocombreloc.
2080 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2081 For .xc and .xsc scripts put all .rel* or .rela* input sections
2082 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2083 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2084 is elf.
2085 Strip trailing whitespace from script.
2086 Generate .xc and .xsc scripts if requested.
2087 * ldmain.c (main): Initialize link_info.combreloc and
2088 link_info.spare_dynamic_tags.
2089 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2090 (ld_options): Add --spare-dynamic-tags option.
2091 (parse_args): Likewise.
2092 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2093 * ldint.texinfo: Document .xc and .xsc linker scripts.
2094 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2095
63d069c0
L
20962001-08-22 H.J. Lu <hjl@gnu.org>
2097
2098 * emulparams/elf32fr30.sh: Add a newline.
2099
948f9114
AJ
21002001-08-21 Andreas Jaeger <aj@suse.de>
2101
2102 * deffilep.y: Add missing prototypes.
2103 * pe-dll.c: Likewise.
2104
ae7fb08f
AM
21052001-08-20 Alan Modra <amodra@bigpond.net.au>
2106
2af02257
AM
2107 * ldlang.c (insert_pad): Fix typos in last patch.
2108
2109 * ldlang.c: When traversing lang_statement_union_type lists,
2110 consistently use "header.next" rather than "next".
2111 * mpw-eppcmac.c: Likewise.
2112 * emultempl/beos.em: Likewise.
2113 * emultempl/hppaelf.em: Likewise.
2114 * emultempl/pe.em: Likewise.
2115 * ldlang.h (union lang_statement_union): Remove "next" field.
2116
c0c330a7
AM
2117 * ldlang.c (insert_pad): Use offsetof macro.
2118 (lang_size_sections): Always neuter padding statements.
2119 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2120
ae7fb08f
AM
2121 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2122 passed to lang_size_sections.
2123 (pe_exe_fill_sections): Likewise.
2124 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2125 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2126
fab80407
AM
21272001-08-18 Alan Modra <amodra@bigpond.net.au>
2128
2129 * emultempl/aix.em: Formatting fixes.
2130
b3327aad
AM
21312001-08-18 Alan Modra <amodra@bigpond.net.au>
2132
2133 * ldlang.c (insert_pad): Make use of an existing pad statement if
2134 available. Move code calculating alignment, adjusting section
2135 alignment power, and adjusting dot to ..
2136 (size_input_section): .. here. Remove unused relax param.
2137 (lang_size_sections): Change boolean `relax' param to boolean *.
2138 Adjust call to size_input_section. Make use of insert_pad to
2139 place pad after the assignment statement. If relaxing, zap
2140 padding statements.
2141 (reset_memory_regions): Reset output_bfd section sizes too.
2142 (relax_again): Move to..
2143 (lang_process): ..here. Adjust call to lang_size_sections, and
2144 remove duplicated code.
2145 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2146
563e308f
AM
21472001-08-17 Alan Modra <amodra@bigpond.net.au>
2148
2149 * ld.texinfo: Document that fill values now use the four least
2150 significant bytes.
2151 * emulparams/elf32fr30.sh (NOP): Update.
2152 * emulparams/elf32mcore.sh: Likewise.
2153 * emulparams/elf64_s390.sh: Likewise.
2154 * emulparams/elf_i386.sh: Likewise.
2155 * emulparams/elf_i386_be.sh: Likewise.
2156 * emulparams/elf_i386_chaos.sh: Likewise.
2157 * emulparams/elf_i386_ldso.sh: Likewise.
2158 * emulparams/elf_s390.sh: Likewise.
2159 * emulparams/elf_x86_64.sh: Likewise.
2160 * emulparams/i386moss.sh: Likewise.
2161 * emulparams/i386nw.sh: Likewise.
2162 * emulparams/m68kelf.sh: Likewise.
2163 * scripttempl/elf.sc: Update NOP comment.
2164 * scripttempl/elfi370.sc: Likewise.
2165 * scripttempl/elfm68hc11.sc: Likewise.
2166 * scripttempl/elfm68hc12.sc: Likewise.
2167 * scripttempl/nw.sc: Likewise.
2168
b90e1c6f
TR
21692001-08-15 Tom Rix <trix@redhat.com>
2170
2171 * ldgram.y (saved_script_handle): Initialize to NULL.
2172 * ldmain.c (main): Change check on saved_script_handle.
948f9114 2173
39dcfe18
AM
21742001-08-14 Alan Modra <amodra@bigpond.net.au>
2175
cde43e70
AM
2176 * emultempl/elf32.em: Formatting fixes.
2177 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2178 looking at sec->owner.
2179 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2180 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2181 unused code, and reorganize orphan section placement code.
2182
39dcfe18
AM
2183 * ldlang.c (wild_doit): Rename to lang_add_section.
2184 * ldlang.h: Here too.
2185 * mpw-elfmips.c: And here.
2186 * emultempl/beos.em: And here.
2187 * emultempl/elf32.em: And here.
2188 * emultempl/hppaelf.em: And here.
2189 * emultempl/pe.em: And here.
2190
908d20b3
RH
21912001-08-13 Richard Henderson <rth@redhat.com>
2192
2193 * emultempl/needrelax.em: New file.
2194 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2195 * Makefile.am (eelf64_ia64.c): Depend on it.
2196 * Makefile.in: Rebuild.
2197
0f33d40b
AM
21982001-08-13 Alan Modra <amodra@bigpond.net.au>
2199
22af9fd3
AM
2200 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2201 output_section is set non-NULL.
2202
0f33d40b
AM
2203 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2204 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2205 needlessly create an output_section_statement. Treat a correctly
2206 named output_section_statement with NULL bfd_section as compatible.
2207
55ab6103
HPN
22082001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2209
2210 * emultempl/generic.em: Support EXTRA_EM_FILE.
2211 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2212 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2213 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2214 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2215 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2216 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2217 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2218 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2219 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2220 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2221
24098abb
RH
22222001-08-12 Richard Henderson <rth@redhat.com>
2223
2224 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2225 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2226 scripttempl/v850.sc: Keep .jcr data.
2227
b9a8de1e 22282001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
2229 Andrew Haley <aph@cambridge.redhat.com>
2230 Nick Clifton <nickc@redhat.com>
b9a8de1e 2231
146e7110 2232 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
2233 Change type to file handle.
2234 * ld.h (had_script): Rename and retype.
2235 * ldfile.c (ldfile_open_command_file): Save the file handle
2236 used in saved_script_handle.
2237 * lexsup.c (parse_args): Do not allow -c option to alter
2238 saved_script_handle.
2239 * ldmain.c (main): Print out the linker script used if
2240 --verbose is given. Check saved_script_handle to obtain the
2241 external linker script used, or if NULL, dump the builtin
2242 script.
2243 * ld.texinfo: Document that --verbose now dumps the linker
2244 script used, regardless of whether it was an internal or an
2245 external script.
2246
0218d1e4
AJ
22472001-08-10 Andreas Jaeger <aj@suse.de>
2248
2249 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2250 to build warnings.
2251 * configure: Regenerate.
2252
5253f23b
AM
22532001-08-09 Alan Modra <amodra@bigpond.net.au>
2254
73810896
AM
2255 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2256
5253f23b
AM
2257 * scripttempl/elf.sc: Move non-text .dynamic section before
2258 .plt/.got/.sdata* group.
2259 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2260 (OTHER_SDATA_SECTIONS): Add.
2261 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2262 OTHER_GOT_SECTIONS.
2263 * emulparams/crislinux.sh: Likewise.
2264 * emulparams/elf32b4300.sh: Likewise.
2265 * emulparams/elf32bmip.sh: Likewise.
2266 * emulparams/elf32bmipn32.sh: Likewise.
2267 * emulparams/elf32bsmip.sh: Likewise.
2268 * emulparams/elf32btsmip.sh: Likewise.
2269 * emulparams/elf32ebmip.sh: Likewise.
2270 * emulparams/elf32elmip.sh: Likewise.
2271 * emulparams/elf32l4300.sh: Likewise.
2272 * emulparams/elf32lmip.sh: Likewise.
2273 * emulparams/elf32lsmip.sh: Likewise.
2274 * emulparams/elf32ltsmip.sh: Likewise.
2275 * emulparams/elf64bmip.sh: Likewise.
2276 * emulparams/elf64btsmip.sh: Likewise.
2277 * emulparams/elf64ltsmip.sh: Likewise.
2278
179c732c
AM
22792001-08-08 Alan Modra <amodra@bigpond.net.au>
2280
2281 * genscripts.sh: Source the emulparams script before each output
2282 script is generated so that variables like `RELOCATING' may affect
2283 variables defined in the emulparams script.
2284
3fd36710
AM
22852001-08-04 Alan Modra <amodra@bigpond.net.au>
2286
20713691
AM
2287 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2288 order.
2289
3fd36710
AM
2290 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2291 ie. iterate over wild_statement.section_list.
2292 (gld${EMULATION_NAME}_place_orphan): Likewise.
2293
de0b1853
SC
22942001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2295
2296 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2297 .fini[0-4] sections used by _exit
2298 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2299 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2300 * scripttempl/elfm68hc11.sc: Likewise.
2301
ff7e6f88
L
23022001-08-03 H.J. Lu <hjl@gnu.org>
2303
2304 * emultempl/beos.em (init): Add the missing initialization.
2305
b6bf44ba
AM
23062001-08-03 Alan Modra <amodra@bigpond.net.au>
2307
2308 * ld.texinfo (Input Section Basics): Clarify ordering of output
2309 sections.
2310 * ldlang.c (callback_t): Add wildcard_list param.
2311 (walk_wild_section): Remove "section" param. Rewrite for
2312 lang_wild_statement_type change. Remove unique_section_p test.
2313 (walk_wild_file): Remove "section" param.
2314 (walk_wild): Remove "section" and "file" params.
2315 (lang_gc_wild): Likewise.
2316 (wild): Likewise. Modify for lang_wild_statement_type change.
2317 (wild_sort): Likewise. Add "sec" param.
2318 (gc_section_callback): Likewise.
2319 (output_section_callback): Likewise. Do unique_section_p test.
2320 (map_input_to_output_sections): Modify call to wild.
2321 (lang_gc_sections_1): Likewise.
2322 (print_wild_statement): Modify for lang_wild_statement_type
2323 change.
2324 (lang_add_wild): Replace filename, filenames_sorted param with
2325 filespec. Replace section_name, sections_sorted,
2326 exclude_filename_list with section_list.
2327 * ldlang.h (lang_add_wild): Here too.
2328 (lang_wild_statement_type): Replace section_name, sections_sorted,
2329 and exclude_filename_list with section_list.
2330 * ldgram.y (current_file): Delete.
2331 (%union): Add wildcard_list.
2332 (file_NAME_list): Set type to wildcard_list. Build a linked list
2333 rather than calling lang_add_wild for each entry.
2334 (input_section_spec_no_keep): Call lang_add_wild here instead.
2335 * ld.h (struct wildcard_list): Declare.
2336 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2337
b044cda1
CW
23382001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2339
2340 * ldmain.c (main): initialize link_info.pei386_auto_import
2341 * pe-dll.c: new tables for auto-export filtering
2342 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 2343 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
2344 "by hand".
2345
23462001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2347
b6bf44ba
AM
2348 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2349 static variable current_sec (static struct sec *). Add
b044cda1 2350 forward declaration for add_bfd_to_link.
b6bf44ba
AM
2351 (process_def_file): Don't export undefined symbols. Do not
2352 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
2353 with new API.
2354 (pe_walk_relocs_of_symbol): New function.
2355 (generate_reloc): add optional extra debugging
b6bf44ba 2356 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 2357 line in output
b6bf44ba 2358 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
2359 (DATA auto-import support).
2360 (make_singleton_name_thunk): New function.
2361 (make_import_fixup_mark): New function.
2362 (make_import_fixup_entry): New function.
2363 (pe_create_import_fixup): New function.
b6bf44ba 2364 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 2365 char *.
b6bf44ba
AM
2366 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2367 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
2368 pe_create_import_fixup.
2369 * emultempl/pe.em: add new options --enable-auto-import,
2370 --disable-auto-import, and --enable-extra-pe-debug.
2371 (make_import_fixup): New function.
2372 (pe_find_data_imports): New function.
2373 (pr_sym): New function.
b6bf44ba 2374 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
2375 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2376 CODE.
2377
23782001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 2379
b044cda1
CW
2380 * ld.texinfo: add additional documentation for
2381 --export-all-symbols. Document --out-implib,
2382 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
2383 --dll-search-prefix, --enable-auto-import, and
2384 --disable-auto-import.
b044cda1
CW
2385 * ldint.texinfo: Add detailed documentation on auto-import
2386 implementation.
2387
156e34dd
NC
23882001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2389
2390 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2391 example.
2392
d6231427
AM
23932001-07-24 Alan Modra <amodra@bigpond.net.au>
2394
2395 * Makefile.am: Update dependencies with "make dep-am".
2396 * Makefile.in: Regenerate
2397
e14ec88b
AM
23982001-07-23 Alan Modra <amodra@bigpond.net.au>
2399
2400 * ldcref.c (check_section_sym_xref): New function.
2401 (check_nocrossrefs): Call it.
2402 (check_nocrossref): Interate over h->refs here instead of..
2403 (check_refs): ..here. Pass in the symbol name, section, and bfd
2404 rather than hash_entry pointers.
2405 (struct check_refs_info): Keep symbol name rather than hash entry.
2406 Remove "same".
2407 (check_reloc_refs): Tweak for above changes in check_refs_info.
2408 Only report references to section syms when symname is NULL to
2409 prevent duplicate messages for the same reloc.
2410
1b577b00
NC
24112001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2412
c7d701b0
NC
2413 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2414 available. Do not print NULL trees.
2415 (exp_print_token): Print unknown tokens with values > 126 as
2416 decimal values not ASCII characters.
2417
1545243b
NC
2418 * ldlang.c (lang_leave_overlay): If a region is specified assign
2419 it to all sections inside the overlay unless they have been
2420 assigned to the own, non-default, memory region.
2421
1b577b00
NC
2422 * README: Add header for consistency with other README files.
2423
5030876b
L
24242001-07-14 H.J. Lu <hjl@gnu.org>
2425
2426 * emultempl/elf32.em (output_prev_sec_find): Never return
2427 bfd_abs_section_ptr, bfd_com_section_ptr nor
2428 bfd_und_section_ptr.
2429
18c7a9a5
NC
24302001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2431
22af9fd3 2432 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
2433 elf32.em.
2434 * Makefile.in: Regenerate.
2435
9ffecff1
MG
24362001-07-14 matthew green <mrg@eterna.com.au>
2437
2438 * configure.tgt (i386-*-netbsdelf*): New target.
2439 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2440
95500e1c
JJ
24412001-07-13 Jakub Jelinek <jakub@redhat.com>
2442
2443 * emultempl/elf32.em (output_prev_sec_find): New.
2444 (place_orphan): Use it.
2445
e97cb84f
L
24462001-07-11 H.J. Lu <hjl@gnu.org>
2447
2448 * ldmain.c (main): Fix typos in the last change.
2449
7333607e
JJ
24502001-07-11 Jakub Jelinek <jakub@redhat.com>
2451
2452 * ldmain.c (main): Disallow -F and -f without -shared.
2453
d29d80f2
NC
24542001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2455
2456 * emultempl/pe.em (after_open): Check for the output_bfd not
2457 having any coff_data structure allocated to it.
2458
c2a1a436
DB
24592001-07-09 David O'Brien <obrien@FreeBSD.org>
2460
2461 * emultempl/elf32.em: Do not assuming that contents of the buffer
2462 returned from basename function will remain unchanged accross other
2463 function calls.
2464
63653551
L
24652001-07-03 H.J. Lu <hjl@gnu.org>
2466
2467 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2468 2001-07-03. It creates dynamic entries even for static binaries.
2469
d303a449
L
24702001-07-03 Jakub Jelinek <jakub@redhat.com>
2471
2472 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2473 (DYNAMIC): Use it to reserve few dynamic entries for
2474 post-linking tools.
2475
9f22353f
AM
24762001-06-27 Alan Modra <amodra@bigpond.net.au>
2477
2478 * emulparams/hppa64linux.sh: New file.
2479 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2480 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2481 (ehppa64linux.c): Add rule to make it.
2482 Run "make dep-am".
2483 * Makefile.in: Regenerate.
2484
62bf86b4
HPN
24852001-06-21 Hans-Peter Nilsson <hp@axis.com>
2486
2487 * ld.texinfo (Options, -r): Mention restrictions when using
2488 different object formats.
2489
429d935d
HPN
24902001-06-19 Hans-Peter Nilsson <hp@axis.com>
2491
2492 * ldlang.c (lang_check): Emit fatal error if relocatable link
2493 between different object flavours with relocations in input.
2494
cb840a31
L
24952001-06-19 H.J. Lu <hjl@gnu.org>
2496
2497 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2498 (--version-script): Mention the language support.
2499
9bf03acc
L
25002001-06-19 H.J. Lu <hjl@gnu.org>
2501
2502 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2503
c45021f2
NC
25042001-06-18 H.J. Lu <hjl@gnu.org>
2505
b6bf44ba
AM
2506 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2507 (diststuff): Add $(MANS).
2508 * Makefile.in: Regenerated.
c45021f2 2509
b6bf44ba 2510 * ld.1: Removed.
c45021f2 2511
6caa99ab
HPN
25122001-06-18 Hans-Peter Nilsson <hp@axis.com>
2513
605d9b3a
HPN
2514 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2515 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2516 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2517 * ld.h (args_type): Remove member export_dynamic. All users
2518 changed to use struct bfd_link_info member.
2519
6caa99ab
HPN
2520 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2521 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2522 * Makefile.in: Regenerate.
2523
6f9efd97
L
25242001-06-18 H.J. Lu <hjl@gnu.org>
2525
2526 * ldlang.c (init_os): Add the newline to the einfo call.
2527 (lang_check): Likewise.
2528 (lang_do_version_exports_section): Likewise.
2529
5af9fd8b
L
25302001-06-15 H.J. Lu <hjl@gnu.org>
2531
2532 * lexsup.c (parse_args); Save optind to report unrecognized
2533 option.
2534
2a096f04
HPN
25352001-06-15 Hans-Peter Nilsson <hp@axis.com>
2536
7e66c3f5
HPN
2537 * ldlang.c (lang_check): Emit fatal error if relocatable link
2538 between different object flavours.
2539
2a096f04
HPN
2540 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2541 Set new link_info member export_dynamic.
2542 * ldmain.c (main): Initialize new link_info member export_dynamic.
2543
6770ec8c
NC
25442001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2545
2546 * ldlang.c (walk_wild): Only call walk_wild_file if
2547 lookup_name returns something.
b6bf44ba 2548 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 2549 (load_symbols): Change to a boolean function.
b6bf44ba 2550 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
2551 executable.
2552
8529105a
AM
25532001-06-08 Alan Modra <amodra@bigpond.net.au>
2554
2555 * ldlang.c (record_bfd_errors): Remove.
2556
2557 * emultempl/aix.em: Fix copyright dates.
2558
8f3aa7a0
AJ
25592001-06-07 Andreas Jaeger <aj@suse.de>
2560
2561 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2562 (TEXT_START_ADDR): Likewise.
2563
3277f888
AM
25642001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2565
2566 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2567
3763134d
DD
25682001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2569
2570 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2571
5929ebc0
L
25722001-05-31 H.J. Lu <hjl@gnu.org>
2573
2574 * ldlang.c (open_input_bfds): Don't change the bfd error
2575 handler whilst loading symbols.
2576
c04a062d
NC
25772001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2578
2579 * configure.tgt: Remove i370-mvs architecture, it is not currently
2580 supported.
2581
96fcab3e
L
25822001-05-25 H.J. Lu <hjl@gnu.org>
2583
2584 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2585 like emulparams/aixppc.sh.
2586
db8d4f23
L
25872001-05-25 H.J. Lu <hjl@gnu.org>
2588
2589 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2590 setting of output_filename after bfd_scan_arch.
2591 * emultempl/pe.em: Likewise.
2592
5f642101
L
25932001-05-25 H.J. Lu <hjl@gnu.org>
2594
2595 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2596 like emulparams/aixppc.sh.
2597
2598 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2599 instead of ${srcdir}/emultempl/stringify.sed.
2600
64e9ece0
TW
26012001-05-25 Timothy Wall <twall@oculustech.com>
2602
2603 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 2604 output.
64e9ece0 2605
c709b096
AM
26062001-05-25 Alan Modra <amodra@one.net.au>
2607
2608 * configure.host: Replace linuxoldld with linux*oldld.
2609 * configure.tgt: Likewise.
2610
6cbdcc6f
L
26112001-05-24 H.J. Lu <hjl@gnu.org>
2612
2613 * emultempl/stringify.sed: Removed again.
2614
86af25fe
L
26152001-05-24 H.J. Lu <hjl@gnu.org>
2616
2617 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2618 (gld${EMULATION_NAME}_before_parse): Initialize
2619 ldfile_output_architecture, ldfile_output_machine and
2620 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2621 * emultempl/beos.em: Likewise.
2622 * emultempl/elf32.em: Likewise.
2623 * emultempl/linux.em: Likewise.
2624 * emultempl/mipsecoff.em: Likewise.
2625 * emultempl/pe.em: Likewise.
2626 * emultempl/sunos.em: Likewise.
2627
3b1b01cf
TR
26282001-05-24 Tom Rix <trix@redhat.com>
2629
8f3aa7a0 2630 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
2631 udate import file format.
2632 (change_symbol_mode) New, same
2633 (is_syscall) New, same
2634 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2635 * emulparams/aixppc64.sh : same
2636 * emulparams/aixrs6.sh : same
2637 * emulparams/ppcmacos.sh : same
2638 * emultempl/aix.em : use strtoull to parse options
2639 * Makefile.am : add eaixppc64 emulation for xcoff64
2640 * Makefile.in : same
2641 * configure.tgt : same
2642
2643 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 2644 default data section offset to 0x20000000
3b1b01cf 2645 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 2646 loader and debug sections use the currect section offset.
3b1b01cf
TR
2647
2648 * emultempl/aix.em : Add xcoff64 support
2649 Add -binitfini support
8f3aa7a0 2650 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 2651 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 2652 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
2653 sections
2654
2655 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 2656
57e6abd2
AO
26572001-05-23 Alexandre Oliva <aoliva@redhat.com>
2658
2659 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2660 variable to avoid non-portable shell construct.
2661
d1cf510e
NC
26622001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2663
2664 * ldmain.c (get_emulation): Add -mips5 command line argument.
2665
506eee22
NC
26662001-05-22 Alexandre Oliva <aoliva@redhat.com>
2667
2668 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2669 (ELF_INTERPRETER_NAME): Define it.
2670 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2671 it.
2672 * configure.tgt (targ_emul, targ_extra_emuls)
2673 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2674 as primary, elf_i386 as extra.
2675 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2676 (eelf_i386_ldso.c): New rule.
2677 * Makefile.in: Rebuilt.
2678
26792001-05-22 Nick Clifton <nickc@redhat.com>
2680
2681 * lexsup.c (ld_options): Allow -I to be an alias for
2682 --dynamic-linker. This is for Solaris compatability.
2683 * ld.texinfo: Document that -I can be used.
2684 * ld.1: Regenerate.
2685
d1778b88
AM
26862001-05-16 Alan Modra <amodra@one.net.au>
2687
2688 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2689 whether an input section is the first one assigned to an output
2690 section.
2691 Assorted formatting fixes.
2692
02649152
DD
26932001-05-14 DJ Delorie <dj@delorie.com>
2694
2695 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2696 * Makefile.in: Ditto.
2697
579f31ac
JJ
26982001-05-11 Jakub Jelinek <jakub@redhat.com>
2699
2700 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2701 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2702 output sections.
2703 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2704
8550eb6e
JJ
27052001-05-11 Jakub Jelinek <jakub@redhat.com>
2706
2707 * ldlang.c (lang_process): Call bfd_merge_sections.
2708
8e5a525c
AM
27092001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2710
2711 * ldgram.y: Fix typo.
2712
1c9acd94
L
27132001-05-03 H.J. Lu <hjl@gnu.org>
2714
2715 * emultempl/elf32.em: Include "libiberty.h".
2716 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2717 basename of the bfd filename.
2718 (gld${EMULATION_NAME}_stat_needed): Likewise.
2719 (gld${EMULATION_NAME}_try_needed): Likewise.
2720 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2721
14fe918e
L
27222001-05-02 H.J. Lu <hjl@gnu.org>
2723
2724 * emultempl/pe.em: Include <ctype.h>.
2725
c7e40348
NC
27262001-05-02 Johan Rydberg <jrydberg@opencores.org>
2727
b6bf44ba 2728 * emulparams/elf32openrisc.sh: New file.
c7e40348 2729
b6bf44ba
AM
2730 * Makefile.am: Add OpenRISC target.
2731 * Makefile.in: Regenerated.
c7e40348 2732
b6bf44ba 2733 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
2734
27352001-05-02 Nick Clifton <nickc@redhat.com>
2736
2737 * emultempl/aix.em: Replace buystring with xstrdup.
2738 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 2739
d1b2b2dc
L
27402001-05-02 H.J. Lu <hjl@gnu.org>
2741
2742 * ldfile.c: Include "libiberty.h".
2743 * ldlex.l: Likewise.
2744
2745 * ldmisc.c (buystring): Removed.
2746 * ldmisc.h: Likewise.
2747
2748 * ldfile.c: Replace buystring with xstrdup.
2749 * ldlang.c: Likewise.
2750 * ldlex.l: Likewise.
2751 * ldmain.c: Likewise.
2752 * ldmisc.c: Likewise.
2753 * lexsup.c: Likewise.
2754 * mpw-eppcmac.c: Likewise.
2755
35714f2a
AJ
27562001-04-30 Andreas Jaeger <aj@suse.de>
2757
2758 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2759
884fb58e
NC
27602001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2761
b6bf44ba
AM
2762 * ldlang.c (load_symbols): Give emulation a chance
2763 to process unrecognized file before fatal error is
2764 reported, not after.
884fb58e 2765
87748b32
NC
27662001-04-27 Sean McNeil <sean@mcneil.com>
2767
2768 * configure.tgt: Add arm-vxworks target.
2769 * scripttempl/armcoff.sc: Support .text or .data as a section name
2770 prefix.
2771 Define _etext.
35714f2a 2772
7ce691ae
C
27732001-04-13 J.T. Conklin <jtc@redback.com>
2774
2775 * ld.texinfo: Document --fatal-warnings.
2776 * ld.1: Regenerate.
2777
2778 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 2779 warnings have been turned into errors.
7ce691ae
C
2780 * lexsup.c (OPTION_WARN_FATAL): Define.
2781 (ld_options): Entry for --fatal-warnings.
2782 (parse_args): Handle OPTION_WARN_FATAL.
2783 * ld.h (ld_config_type): Add fatal_warnings field.
2784
f5fa8ca2
JJ
27852001-04-13 Jakub Jelinek <jakub@redhat.com>
2786
2787 * ldmain.c (main): Default to discard_sec_merge.
2788 * lexsup.c (OPTION_DISCARD_NONE): Define.
2789 (ld_options): Add --discard-none.
2790 (parse_args): Handle OPTION_DISCARD_NONE.
2791 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2792 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2793 all its input sections match.
2794
fdec3cfc
L
27952001-04-05 Steven J. Hill <sjhill@cotw.com>
2796
2797 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2798 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2799 (eelf32ltsmip.c): New target.
2800 (eelf64btsmip.c): Likewise.
2801 (eelf64ltsmip.c): Likewise.
2802 * Makefile.in: Regenerated.
2803
2804 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2805 target.
2806 (mips*-*-linux-gnu*): Likewise.
2807
2808 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2809 MIPS taget.
35714f2a 2810 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
2811 target.
2812 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2813 endian target.
2814
589bad82
HPN
28152001-04-05 Hans-Peter Nilsson <hp@axis.com>
2816
2817 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2818 correct value of __Stext here.
2819 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2820 .startup section.
2821
2822 * emulparams/crislinux.sh: Remove FIXME.
2823
94202e16
AM
28242001-04-02 Alan Modra <alan@linuxcare.com.au>
2825
2826 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2827 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2828
1268a053
HPN
28292001-03-27 Hans-Peter Nilsson <hp@axis.com>
2830
2831 * configure.tgt (cris-*-*): Change default emulation to criself.
2832 (cris-*-*aout*): New rule.
2833
d85e9ff7
AM
28342001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2835
2836 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2837 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2838
0879a67a
AJ
28392001-03-26 Andreas Jaeger <aj@suse.de>
2840
2841 * ld.texinfo (Overview): Fix syntax in texi code.
2842
0285c67d
NC
28432001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2844
2845 * ld.texinfo: Put @c man indications to generate the ld man page.
2846 When generating man, define all the variables. Define SEEALSO
2847 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2848 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2849 (ld.1): Generate from ld.texinfo.
2850 * Makefile.in: Regenerate.
2851
c20ec07b
NC
28522001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2853
2854 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 2855 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 2856
cc5ce052
UD
28572001-03-17 Ulrich Drepper <drepper@redhat.com>
2858
2859 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2860 is an absolute path look only for this file and not along the path.
2861
a1ab1d2a
UD
28622001-03-17 Ulrich Drepper <drepper@redhat.com>
2863
2864 * emultempl/elf32.em (OPTION_GROUP): New macro.
2865 Add new option Bgroup to longopts.
2866 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2867 (gld*_list_options): Add -Bgroup and -z defs.
2868 * ld.1: Document -Bgroup and -z defs.
2869 * ld.texinfo: Likewise.
2870
788fca5a
MM
28712001-03-07 Michael Meissner <meissner@redhat.com>
2872
2873 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2874 with sections created by -fdata-sections.
2875 (.dynbss,.bss): Ditto.
2876
1c7566d1
AM
28772001-03-05 Alan Modra <alan@linuxcare.com.au>
2878
2879 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2880 after_allocation_default, not gld..._before_allocation.
2881
27b7e12d
AM
28822001-02-27 Alan Modra <alan@linuxcare.com.au>
2883
2884 * configure.in (BFD_VERSION): New.
2885 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2886 * configure: Regenerate.
2887 * Makefile.am: Run "make dep-am"
2888 * Makefile.in: Regenerate.
2889
2bc551c7
TW
28902001-02-26 Timothy Wall <twall@cygnus.com>
2891
2892 * emulparams/elf64_aix.sh: Add additional read-only sections;
2893 uncomment lines which are now required.
2894
1276aefa
NC
28952001-02-26 H.J. Lu <hjl@gnu.org>
2896
2897 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
2898 that problems can be caught whilst loading symbols.
2899 (record_bfd_errors): New function: Report BFD errors and mark
2900 the executable output as being invalid.
1276aefa 2901
41c49998
TW
29022001-02-22 Timothy Wall <twall@cygnus.com>
2903
2904 * configure.host: Add configuration for ia64-*-aix*.
2905 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2906 Add dependencies for eelf64_aix.c.
2907 * Makefile.in: Regenerate.
2908 * configure.tgt: Add ia64-*-aix* mapping.
2909 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 2910 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
2911 AIX-specific test.
2912
78f85fd7
L
29132001-02-20 H.J. Lu <hjl@gnu.org>
2914
2915 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2916 false if we found the file.
2917
1ac7e077 29182001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
2919
2920 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2921 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2922
e135f41b
NC
29232001-02-18 lars brinkhoff <lars@nocrew.org>
2924
2925 * Makefile.am: Add PDP-11 target.
2926 * configure.tgt: Likewise.
2927 * emulparams/pdp11.sh: New file.
2928
a842aceb
DB
29292001-02-17 David O'Brien <obrien@FreeBSD.org>
2930
2931 * configure.host: Add a generic FreeBSD configuration entry such that
2932 all [modern] FreeBSD systems on all platforms will look the same.
2933
24174db0
L
29342001-02-14 H.J. Lu <hjl@gnu.org>
2935
2936 * configure.tgt: Remove mention of earmelf_linux26.
2937
30c3c13a
RH
29382001-02-13 Richard Henderson <rth@redhat.com>
2939
2940 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2941
b46a87b1
L
29422001-02-13 H.J. Lu <hjl@gnu.org>
2943
2944 * ldexp.h (node_type): Add etree_provided.
2945 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2946 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 2947 for etree_provided.
b46a87b1
L
2948 (exp_print_tree): Handle etree_provided.
2949 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2950 etree_provided.
2951
f3988fd9
RH
29522001-02-09 David Mosberger <davidm@hpl.hp.com>
2953
2954 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2955 .IA_64.unwind.* pattern to unwind table section and
2956 .IA_64.unwind_info* pattern to unwind info section.
2957
a85d7ed0
NC
29582001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2959
2960 * Makefile.am: Add linux target for S/390.
2961 * Makefile.in: Likewise.
2962 * configure.host: Likewise.
2963 * configure.tgt: Likewise.
2964 * emulparams/elf64_s390.sh: New file.
2965 * emulparams/elf_s390.sh: New file.
2966
780248c4
JJ
29672001-02-09 Jakub Jelinek <jakub@redhat.com>
2968
2969 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2970 targ_extra_libpath.
2971 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2972
0e2534bd
PB
29732001-02-06 Philip Blundell <philb@gnu.org>
2974
2975 * Makefile.am: Remove mention of earmelf_linux26.
2976 * Makefile.in: Regenerate.
2977
46c1ea57
PB
29782001-02-04 Philip Blundell <philb@gnu.org>
2979
2980 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2981 * emulparams/armelf_linux26.sh: Delete.
2982 * configure.tgt: Remove mention of armelf_linux26 emulation.
2983
0088edd2
NC
29842001-02-01 Nick Clifton <nickc@redhat.com>
2985
2986 * ld.1: Replace occurances of -oformat with --oformat.
2987
02aa14fb
AM
29882001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2989
2990 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2991 load_base is specified.
2992
f813923c
HPN
29932001-01-24 Hans-Peter Nilsson <hp@axis.com>
2994
2995 * emultempl/elf32.em: Correct spelling in comments and listed
2996 options.
2997
c1eb1488
AM
29982001-01-23 Alan Modra <alan@linuxcare.com.au>
2999
3000 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3001 default for the first section of a group of overlay sections.
3002
d9fc3714
AM
30032001-01-22 Alan Modra <alan@linuxcare.com.au>
3004
3005 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3006 * Makefile.in: Regenerate.
3007 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3008 Check for null tool_dir.
3009
6be0ca94
JW
30102001-01-16 Jim Wilson <wilson@redhat.com>
3011
3012 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3013 and IA_64.unwind.info.
3014
b9247304
L
30152001-01-16 H.J. Lu <hjl@gnu.org>
3016
3017 * ldlang.c (lang_check): Merge the private data only if the
3018 input file has contents.
3019
577a0623
AM
30202001-01-14 Alan Modra <alan@linuxcare.com.au>
3021
d952f17a
AM
3022 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3023
ffd6e9de
AM
3024 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3025 enabling search for libmilli. On a relocatable link, make .text
3026 sections unique.
3027 (LDEMUL_AFTER_PARSE): Define.
3028 (hppaelf_finish): Correct spelling of relocatable in comments.
3029
577a0623
AM
3030 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3031 rummage through the script for sections on the unique list.
3032 Correct length of strncmp for ".note".
3033 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3034
3035 * ldlang.c (unique_section_list): New var.
3036 (unique_section_p): New function.
3037 (walk_wild_section): Don't match sections on unique_section_list.
3038 (lang_add_unique): New function.
ffd6e9de 3039 Correct spelling of relocatable in comments.
577a0623
AM
3040
3041 * ldlang.h (struct unique_sections): Declare.
3042 (unique_section_list): Declare.
3043 (unique_section_p): Declare.
3044 (lang_add_unique): Declare.
3045
3046 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3047 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3048
3049 * ld.texinfo (--unique): Update.
3050
b7ed8fad
NC
30512001-01-13 Nick Clifton <nickc@redhat.com>
3052
3053 * lexsup.c (parse_args): Remove spurious white space.
3054
d0398d6a
NC
30552001-01-12 Nick Clifton <nickc@redhat.com>
3056
3057 * lexsup.c (parse_args): Update copyright date.
3058
350fdb00
PB
30592001-01-12 Philip Blundell <pb@futuretv.com>
3060
3061 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3062
60c6797e
KH
30632001-01-10 Kazu Hirata <kazu@hxi.com>
3064
3065 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3066 * scripttempl/h8300h.sc: Fix formatting.
3067 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
3068 * scripttempl/h8500.sc: Likewise.
3069 * scripttempl/h8500b.sc: Likewise.
3070 * scripttempl/h8500c.sc: Likewise.
3071 * scripttempl/h8500m.sc: Likewise.
3072 * scripttempl/h8500s.sc: Likewise.
60c6797e 3073
482e8b32
DB
30742000-01-07 David O'Brien <obrien@BSDi.com>
3075
3076 * emultempl/elf32.em: Only perform Linux ld hints processing when
3077 targeting Linux.
3078
d7ed7ca6
PB
30792001-01-07 Philip Blundell <philb@gnu.org>
3080
3081 * ld.texinfo (Bug Reporting): Update email address for reports.
3082
0fc3347a
NC
30832000-12-31 Nick Clifton <nickc@redhat.com>
3084
3085 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3086 options by checking for a return value of '?' not -1.
3087
e4897a32
NC
30882000-12-28 Nick Clifton <nickc@redhat.com>
3089
3090 * lexsup.c (struct ld_option): Add new enum value:
3091 EXACTLY_TWO_DASHES.
3092 (ld_options[]): Change -omagic, -output and -oformat options
3093 to be EXACTLY_TWO_DASHES.
3094 (OUTPUT_COUNT): Use ARRAY_SIZE.
3095 (parse_args): Change parameter 'argc' to unsigned.
3096 Place EXACTLY_TWO_DASHES options into new really_longopts
3097 array.
3098 If getopt_long_only fails, try calling getopt_long using the
3099 really_longopts array.
3100 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3101 TWO_DASHES options.
3102
3103 * ldlex.h: Fix prototype of parse_args.
3104
3105 * ld.texinfo: Document that long options starting with 'o'
3106 must be preceeded by two dashes. Change example of a single
3107 dashed long option from -oformat to -trace-symbol.
3108
1122a5fc
NC
31092000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3110
3111 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3112 (longopts[]): New --no-default-excludes option.
3113 (gld_${EMULATION_NAME}_list_options): Document.
3114 (gld_${EMULATION_NAME}_parse_args): Handle.
3115
037849a9
NC
31162000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3117
3118 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3119 whitespace, it breaks the K&R C preprocessor.
3120
7ec229ce
DD
31212000-12-11 DJ Delorie <dj@redhat.com>
3122
3123 * ld.texinfo: Add notes about --whole-archive and gcc.
3124
b79e8c78
NC
31252000-11-18 Fred Fish <fnf@be.com>
3126
3127 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3128 (ld_options): Entry for --allow-shlib-undefined.
3129 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3130 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3131 to false.
3132 * ld.texinfo: Document new command line switch.
d952f17a 3133
9a8e2505
GK
31342000-12-12 Geoffrey Keating <geoffk@redhat.com>
3135
3136 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3137 .fixup is actually read/write.
3138 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3139 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3140 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3141
3b16e843 31422000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
3143
3144 * NEWS: Add note about x86_64 architecture.
3145
93b63cd3
DD
31462000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3147
3148 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3149 Set DWARF2 sections to a VMA of zero.
3150
68b2fc7a 31512000-12-01 Joel Sherrill <joel@OARcorp.com>
24f6971a 3152
d952f17a 3153 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
3154 New targets.
3155 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3156 (sparc*-*-rtems*): Switched from a.out to ELF.
3157
2be3aa03
NC
31582000-11-30 Jan Hubicka <jh@suse.cz>
3159
3160 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3161 (eelf_x86_64.c): New.
3162 * Makefile.in: Regenerate.
3163 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3164 * emulparams/elf_x86_64.sh: New.
3165
8c899858
HPN
31662000-11-30 Hans-Peter Nilsson <hp@axis.com>
3167
3168 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3169 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3170
3171 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3172 merging non-a.out sections into CONSTRUCTING.
3173
e47b9e39
NC
31742000-11-28 Nick Clifton <nickc@redhat.com>
3175
3176 * ld.1 (COPYING): Mention that the GNU Free Documentation
3177 License is present in the sources, but not the output, and
3178 also available from the GNU website.
3179 (GNU Free Documentation License): Comment out this section.
3180
ad95f82a
DB
31812000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3182
3183 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3184 does not use them.
3185
fd89e65f
DB
31862000-11-25 David O'Brien <obrien@FreeBSD.org>
3187
3188 * ld.1: Remove old date so it does not give the impression the manpage
3189 is way out of date.
3190
077b8428
NC
31912000-11-24 Nick Clifton <nickc@redhat.com>
3192
3193 * configure.tgt (xscale-coff): Add target.
3194 (xscale-elf): Add target.
3195
49425d28
NC
31962000-11-24 Fred Fish <fnf@be.com>
3197
d952f17a
AM
3198 * ldmain.c (main): Remove redundant init of config.make_executable
3199 to true.
49425d28 3200
d3480244
RH
32012000-11-15 Richard Henderson <rth@redhat.com>
3202
3203 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3204
1ce7de8b
KH
32052000-11-14 Kazu Hirata <kazu@hxi.com>
3206
3207 * scripttempl/h8300.sc: Fix formatting.
3208 * scripttempl/h8300h.sc: Likewise.
3209 * scripttempl/h8300s.sc: Likewise.
3210
3b16e843 32112000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
3212
3213 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3214
2e418547
PB
32152000-11-09 Philip Blundell <pb@futuretv.com>
3216
3217 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3218 around orphan sections whose names can be represented in C.
3219
c940e6fc
JW
32202000-11-07 Jim Wilson <wilson@redhat.com>
3221
3222 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3223 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3224
704c465c
NC
32252000-11-06 Nick Clifton <nickc@redhat.com>
3226
3227 * ld.texinfo: Add GNU Free Documentation License.
3228 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 3229 * ld.1: Add GNU Free Documentation License.
704c465c 3230
dca7760f
AM
32312000-11-05 Alan Modra <alan@linuxcare.com.au>
3232
3233 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3234 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3235
3236 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3237 Move 2000-11-02 Makefile.in changes to this file.
3238 * Makefile.in: Regenerate.
3239
40a633d5
NC
32402000-11-03 Nick Clifton <nickc@redhat.com>
3241
3242 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3243 constructors and destructors.
3244 * scripttempl/h8300h.sc: Ditto.
3245 * scripttempl/h8300s.sc: Ditto.
3246 * scripttempl/h8500.sc: Ditto.
3247 * scripttempl/h8500b.sc: Ditto.
3248 * scripttempl/h8500c.sc: Ditto.
3249 * scripttempl/h8500m.sc: Ditto.
3250 * scripttempl/h8500s.sc: Ditto.
3251 * scripttempl/v850.sc: Ditto.
3252 * scripttempl/w65.sc: Ditto.
3253 * scripttempl/z8000.sc: Ditto.
3254
59ff2774
NC
32552000-11-02 Per Lundberg <plundis@chaosdev.org>
3256
3257 * Makefile.in (e_i386_chaos.c): New rule.
3258 (ALL_EMULATIONS): Added e_i386_chaos.o.
3259 * emulparams/elf_i386_chaos.sh: New file.
3260 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3261
645571e1
JJ
32622000-10-20 Jakub Jelinek <jakub@redhat.com>
3263
3264 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3265 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3266 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3267 library path suffix.
3268 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3269
c5975a45
HPN
32702000-10-18 Hans-Peter Nilsson <hp@axis.com>
3271
3272 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3273 for consecutive sections.
3274
ea20a7da
CC
32752000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3276
d952f17a
AM
3277 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3278 options.
3279 * ld.texinfo: Added notes about this new option.
ea20a7da 3280
6e45556a
NC
32812000-10-16 Nick Clifton <nickc@redhat.com>
3282
3283 * emultempl/pe.em (_after_open): Add tests of return values from
3284 bfd functions. Emit appropriate error messages if necessary.
3285
b9a69188
NC
32862000-10-13 Nick Clifton <nickc@redhat.com>
3287
3288 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
3289 local variables - they are not used, but leave in the call to
3290 bfd_canonicalize_symtab.
b9a69188
NC
3291 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3292 pe_dll_search_prefix.
3293
627427de 32942000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 3295
627427de
DD
3296 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3297 (longopts): New --dll-search-prefix option.
3298 (gld_${EMULATION_NAME}_list_options): Document.
3299 (gld_${EMULATION_NAME}_parse_args): Handle.
3300 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3301 dynamically, search for a dll named '<prefix><basename>.dll'
3302 in preference to 'lib<basename>.dll' if --dll-search-prefix
3303 is specified.
3304
24376d1b
AM
33052000-10-12 Alan Modra <alan@linuxcare.com.au>
3306
3307 * ldlang.c (section_already_linked): Set kept_section instead of
3308 sec->comdat->sec.
3309
e47d05ad
KH
33102000-10-10 Kazu Hirata <kazu@hxi.com>
3311
3312 * deffile.h: Fix formatting.
3313 * lexsup.c: Likewise.
3314 * mri.c: Likewise.
3315
23a87948
DD
33162000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3317
3318 * pe-dll.c (make_one): Do not generate code thunk for DATA
3319 exports.
3320 (process_def_file): deduce DATA flag for auto-export sumbols.
3321
86b1cc60
KH
33222000-10-09 Kazu Hirata <kazu@hxi.com>
3323
89cdebba
KH
3324 * ld.h: Fix formatting.
3325 * ldcref.c: Likewise.
3326 * ldctor.h: Likewise.
3327 * ldemul.c: Likewise.
3328 * ldemul.h: Likewise.
3329 * ldexp.c: Likewise.
3330 * ldexp.h: Likewise.
3331 * ldfile.c: Likewise.
3332 * ldfile.h: Likewise.
3333 * ldlang.c: Likewise.
3334 * ldlang.h: Likewise.
3335 * ldmain.c: Likewise.
7bfd51a3
KH
3336 * pe-dll.c: Likewise.
3337
3338 * pe-dll.c: Revert some formatting fixes.
86b1cc60 3339
d643799d
KH
33402000-10-08 Kazu Hirata <kazu@hxi.com>
3341
3342 * pe-dll.c: Fix formatting.
3343
08da4cac
KH
33442000-10-05 Kazu Hirata <kazu@hxi.com>
3345
3346 * ldlang.c: Fix formatting.
3347
c2a94a7a
DD
33482000-10-03 DJ Delorie <dj@redhat.com>
3349
3350 * pe-dll.c (fill_edata): initialize entire block
3351 (make_one): fill in correct section.
3352
8c95a62e
KH
33532000-10-03 Kazu Hirata <kazu@hxi.com>
3354
3355 * ldexp.c: Fix formatting.
3356
486e80e2
DD
33572000-10-02 DJ Delorie <dj@redhat.com>
3358
3359 * emultempl/pe.em (gld_*_after_open): detect case where there two
3360 import libraries for same dll; rename one to ensure proper link
3361 order.
3362
3363 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3364 typo
3365 (generate_edata): fix typo
3366
24dd9f75
HPN
33672000-09-29 Hans-Peter Nilsson <hp@axis.com>
3368
3369 * scripttempl/crisaout.sc (ENTRY): Now __start.
3370 (.text): Add default setting for __start.
3371 Remove CONSTRUCTORS handling.
3372 (/DISCARD/): Add .gnu.warning.*.
3373 * emulparams/crislinux.sh (ENTRY): Now __start.
3374 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3375 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3376 (ENTRY): Now __start.
3377 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3378 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3379
4de2d33d
KH
33802000-09-29 Kazu Hirata <kazu@hxi.com>
3381
5cc18311
KH
3382 * deffile.h: Fix formatting.
3383 * ld.h: Likewise.
3384 * ldcref.c: Likewise.
4de2d33d 3385 * ldctor.c: Likewise.
5cc18311 3386 * ldctor.h: Likewise.
4de2d33d 3387 * ldemul.c: Likewise.
5cc18311 3388 * ldemul.h: Likewise.
4de2d33d 3389 * ldexp.c: Likewise.
5cc18311 3390 * ldexp.h: Likewise.
4de2d33d 3391 * ldfile.c: Likewise.
5cc18311 3392 * ldfile.h: Likewise.
4de2d33d 3393 * ldlang.c: Likewise.
5cc18311
KH
3394 * ldlang.h: Likewise.
3395 * lexsup.c: Likewise.
3396 * mri.c: Likewise.
3397 * pe-dll.c: Likewise.
4de2d33d 3398
45b1f63c
DD
33992000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3400
3401 * pe-dll.c (process_def_file): Uninitialized data wasn't
3402 exported with --export-all-symbols switch.
d952f17a 3403
45b1f63c
DD
34042000-09-28 DJ Delorie <dj@redhat.com>
3405
3406 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3407 noname work properly.
3408
47d89dba
AM
34092000-09-28 Alan Modra <alan@linuxcare.com.au>
3410
3411 * ld.texinfo (HPPA ELF32): New section.
3412
3413 * emultempl/hppaelf.em (group_size): New.
3414 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3415 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3416 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3417 options to prevent abbreviations matching.
3418 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3419 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3420
36bdbeec
NC
34212000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3422
3423 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3424 on the m68*-*-elf target. Make it support COFF input objects.
3425
6d5e62f8
KH
34262000-09-21 Kazu Hirata <kazu@hxi.com>
3427
3428 * ldmain.c: Fix formatting.
3429 * ldmisc.c: Likewise.
3430 * ldver.c: Likewise.
3431 * ldwrite.c: Likewise.
3432
e2eb67d9
AM
34332000-09-21 Alan Modra <alan@linuxcare.com.au>
3434
3435 * ldwrite.c (clone_section): Silence gcc warnings.
3436
b3ea3584
AM
34372000-09-20 Alan Modra <alan@linuxcare.com.au>
3438
3439 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3440 out of memory failure.
3441
3442 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3443 (clone_section): Handle out of memory failures. Rename var to
3444 avoid c++ reserved word.
3445
25f72752
AM
34462000-09-18 Alan Modra <alan@linuxcare.com.au>
3447
3448 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3449 stub_name param to stub_sec_name.
3450 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3451
0752970e
NC
34522000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3453
3454 * emultempl/m68kelf.em: New file.
3455 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3456 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3457 * Makefile.in: Regenerate.
3458
92b7e9d8
AM
34592000-09-15 Alan Modra <alan@linuxcare.com.au>
3460
3461 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3462 only as needed.
3463
9b14b192
NC
34642000-09-13 Nick Clifton <nickc@redhat.com>
3465
3466 * ldmain.c (multiple_definition): Disable relaxation if
3467 multiple symbol definitions are encountered - otherwise the
3468 linker could abort with an assertion failure.
3469
891fa266
NC
34702000-09-10 Nick Clifton <nickc@redhat.com>
3471
3472 * mri.c: Fix formatting.
3473
5d64ca4e
L
34742000-09-07 H.J. Lu <hjl@gnu.org>
3475
3476 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3477 * configure: Rebuild.
3478
dd94604f
L
34792000-09-07 H.J. Lu <hjl@gnu.org>
3480
3481 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3482 * Makefile.in: Rebuild.
3483
71bfc0ae
AM
34842000-09-07 Alan Modra <alan@linuxcare.com.au>
3485
3486 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3487 broken list handling. Create __start_SECNAME and __stop_SECNAME
3488 when no place-holder. Add some comments. Test both SEC_CODE and
3489 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 3490 Handle case where no output section statement created.
71bfc0ae 3491
4a428502
AO
34922000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3493
3494 * configure.tgt (sh-*-linux*): Added.
3495 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3496 * Makefile.in: Rebuilt.
3497 * emulparams/shelf_linux.sh: New file.
3498 * emulparams/shlelf_linux.sh: New file.
3499
f9989030
AM
35002000-09-06 Alan Modra <alan@linuxcare.com.au>
3501
3502 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3503 try shuffling sections when the orphan happens to be the place
3504 holder. Keep count of unique section names generated so we speed
3505 the search for a new name.
3506
58cccadb
AO
35072000-09-06 Alexandre Oliva <aoliva@redhat.com>
3508
3509 * configure: Rebuilt with new libtool.m4.
3510
5b343f5a
NC
35112000-09-05 Nick Clifton <nickc@redhat.com>
3512
3513 * Makefile.in: Regenerate.
3514 * aclocal.m4: Regenerate.
3515 * configure: Regenerate.
3516 * config.in: Regenerate.
3517 * po/ld.pot: Regenerate.
3518
3519 * ldint.texinfo: Remove CVS revision marker - it foils local
3520 comparisons.
3521
3522 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 3523
a854a4a7
AM
35242000-09-05 Alan Modra <alan@linuxcare.com.au>
3525
3231d22e
AM
3526 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3527 to stub section flags.
3528 (hppa_for_each_input_file_wrapper): New.
3529 (hppa_lang_for_each_input_file): New.
3530 (lang_for_each_input_file): Define to call above.
3531 (multi_subspace): New.
3532 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3533 (PARSE_AND_LIST_PROLOGUE): Define.
3534 (PARSE_AND_LIST_LONGOPTS): Define.
3535 (PARSE_AND_LIST_OPTIONS): Define.
3536 (PARSE_AND_LIST_ARGS_CASES): Define.
3537 (hppaelf_finish): Call elf32_hppa_set_gp.
3538 (hppaelf_set_output_arch): Remove.
3539 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3540
3541 * emulparams/hppalinux.sh (ELFSIZE): Define.
3542 (MACHINE): Define.
3543 (OTHER_READONLY_SECTIONS): Define.
3544 (DATA_PLT): Define.
3545 (GENERATE_SHLIB_SCRIPT): Define.
3546
5f992e62
AM
3547 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3548 to const throughout. Change `void *' to `PTR' throughout.
3549 (lang_memory_default): Function is local to file, add `static'.
3550
3551 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3552 (ehppalinux.c): Likewise.
3553 (earmelf.c): Likewise.
3554 (earmelf_linux.c): Likewise.
3555 (earmelf_linux26.c): Likewise.
3556 * Makefile.in: Regenerate.
3557
a854a4a7
AM
3558 * ld.h (ld_config_type): Add unique_orphan_sections.
3559 * lexsup.c (OPTION_UNIQUE): Define.
3560 (ld_options): Add "--unique".
3561 (parse_args): Handle it.
3562 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3563 search for an existing output section if unique_orphan_sections is
3564 set. Make use of bfd_get_unique_section_name rather than
3565 duplicating code here.
3566 * ld.texinfo: Describe --unique.
3567
3568 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3569 optional arg to split-by-file.
3570 (parse_args): Handle them.
3571 * ld.texinfo: Update description of these options.
3572 * ldwrite.c (clone_section): Pass in the section name. Replace
3573 local code with bfd_get_unique_section_name.
3574 (split_sections): Tidy code and comments. Use a list traversal
3575 more appropriate to the list construction. Handle cooked section
3576 sizes. Split when split_by_reloc reached rather than exceeded.
3577 Track section size and split when split_by_file reached. Fix
3578 link_order_tail (even though it's not used).
3579 (ldwrite): Modify condition for calling split_sections to suit
3580 changed split_by_reloc and split_by_file.
3581 * ldmain.c (main): Init config.split_by_reloc and
3582 config.split_by_file to -1.
3583 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3584 Change split_by_file to bfd_size_type.
3585
18e03609
NC
35862000-09-02 Nick Clifton <nickc@redhat.com>
3587
3588 * configure.in: Increase version number to 2.10.91.
3589 * NEWS: Mention new ability to support removal of duplicate DWARF2
3590 debug information.
3591 * configure: Regenerate.
3592 * aclocal.m4: Regenerate.
3593 * config.in: Regenerate.
3594
3a9d486c
NC
35952000-09-02 Daniel Berlin <dberlin@redhat.com>
3596
3597 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3598 sections.
a2b64bed 3599 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
3600 * scripttempl/elfd10v.sc: Ditto.
3601 * scripttempl/elfd30v.sc: Ditto.
3602 * scripttempl/elfi370.sc: Ditto.
3603 * scripttempl/elfm68hc11.sc: Ditto.
3604 * scripttempl/elfm68hc12.sc: Ditto.
3605 * scripttempl/elfi386beos.sc: Ditto.
3606 * scripttempl/v850.sc: Ditto.
50bbae35 3607
ac48eca1
AO
36082000-08-31 Alexandre Oliva <aoliva@redhat.com>
3609
3610 * acinclude.m4: Include libtool and gettext macros from the
3611 top level.
3612 * aclocal.m4, configure: Rebuilt.
3613
c13b1b77
NC
36142000-08-25 Nick Clifton <nickc@redhat.com>
3615
3616 * ldlang.c (open_output): When choosing the target for a
3617 particular endianness, do nothing if the target is not
3618 supported.
3619
dcb0bd0e
L
36202000-08-25 H.J. Lu <hjl@gnu.org>
3621
3622 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3623 check -rpath nor LD_RUN_PATH for cross link.
3624 * ld.texinfo: Document the change.
3625
5bcac8a4
HPN
36262000-08-24 Hans-Peter Nilsson <hp@axis.com>
3627
3628 * NEWS: Mention support for CRIS.
3629
6dd8c765
L
36302000-08-23 H.J. Lu <hjl@gnu.org>
3631
3632 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3633 the current runpath list from bfd_elf_get_runpath_list ()
3634 before search.
3635
ec4eb78a
L
36362000-08-22 H.J. Lu <hjl@gnu.org>
3637
3638 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3639 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3640 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3641 trace_file_tries is non-zero.
3642 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3643 if trace_file_tries is non-zero.
3644
3645 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 3646 * NEWS: Mention it.
ec4eb78a 3647
22b36938
JE
36482000-08-14 Jason Eckhardt <jle@cygnus.com>
3649
3650 * NEWS: Mention i860 support.
3651
d73e9da0
AS
36522000-08-14 Andreas Schwab <schwab@suse.de>
3653
3654 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 3655 syntax.
d73e9da0 3656
9ac4db9c
GK
36572000-08-10 Geoff Keating <geoffk@cygnus.com>
3658
3659 * scripttempl/elf.sc: Add a comment giving the correspondence
3660 between sections, per-datum sections, and linkonce sections. Make
3661 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3662 .sbss2.
3663
165589e4
JE
36642000-08-10 Jason Eckhardt <jle@cygnus.com>
3665
3666 * emulparams/elf32_i860.sh: New file.
3667 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3668 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3669 (eelf32_i860.c): New rule.
3670 * Makefile.in: Regenerate.
3671
345a835d
NC
36722000-08-10 Nick Clifton <nickc@cygnus.com>
3673
3674 * emulparams/mipspe.sh (ENTRY): Add definition.
3675
e374f1d9
NC
36762000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3677
3678 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3679 in error message.
3680
236d5abf
NC
36812000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3682
3683 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3684 the final size of .bss section.
3685 * scripttempl/elfm68hc12.sc: Likewise.
3686
4b209b22
AM
36872000-08-04 Alan Modra <alan@linuxcare.com.au>
3688
3689 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3690 gld${EMULATION_NAME}_parse_args for consistency. Combine
3691 lastoptind and prevoptind vars, and keep track of last optind.
3692 (gld_${EMULATION_NAME}_list_options): Rename to
3693 gld${EMULATION_NAME}_list_options.
3694
28423a68
AM
36952000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3696
3697 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3698 (i586-sco-sysv5uw7.1.0).
3699
b2009ff7
L
37002000-07-27 H.J. Lu <hjl@gnu.org>
3701
3702 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3703 (PARSE_AND_LIST_PROLOGUE): New.
3704 (PARSE_AND_LIST_LONGOPTS): Likewise.
3705 (PARSE_AND_LIST_OPTIONS): Likewise.
3706 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3707 (PARSE_AND_LIST_EPILOGUE): Likewise.
3708
04925e1e
AM
37092000-07-28 Alan Modra <alan@linuxcare.com.au>
3710
41392f03
AM
3711 * emultempl/armelf.em: Elide functions common to elf32.em,
3712 ie. most of the file.
3713 (arm_elf_after_open): New. Do arm specific things then call
3714 gld${EMULATION_NAME}_after_open.
3715 (arm_elf_before_allocation): New. Call
3716 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3717 (PARSE_AND_LIST_PROLOGUE): Define.
3718 (PARSE_AND_LIST_SHORTOPTS): Define.
3719 (PARSE_AND_LIST_LONGOPTS): Define.
3720 (PARSE_AND_LIST_OPTIONS): Define.
3721 (PARSE_AND_LIST_ARGS_CASES): Define.
3722 (LDEMUL_AFTER_OPEN): Define.
3723 (LDEMUL_BEFORE_ALLOCATION): Define.
3724 (LDEMUL_BEFORE_PARSE): Define.
3725 (LDEMUL_FINISH): Define.
3726
3727 * emultempl/hppaelf.em: Similarly zap most of this file.
3728 (hppaelf_add_stub_section): Prototype.
3729 (hppaelf_layaout_sections_again): Prototype.
3730 (hook_in_stub): Prototype.
3731 (LDEMUL_SET_OUTPUT_ARCH): Define.
3732 (LDEMUL_FINISH): Define.
3733 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3734
3735 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3736 (EXTRA_EM_FILE): New.
3737 * emulparams/armelf_linux.sh: Likewise.
3738 * emulparams/armelf_linux26.sh: Likewise.
3739 * emulparams/hppalinux.sh: Likewise.
3740 * emulparams/hppaelf.sh: Likewise.
3741 (NOP): Define.
3742
3743 * emultempl/elf32.em: Fix formatting.
3744 (EXTRA_EM_FILE): Source it.
3745 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3746 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3747 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3748 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3749 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3750 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3751 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3752 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3753 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3754 allow functions in this file to be overridden.
3755 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3756
3757 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3758
04925e1e
AM
3759 * emultempl/elf32.em: Reorganize file.
3760
88cdf297
NC
37612000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3762
3763 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3764 specific option to fit 64-bit executable in the lower
3765 31-bit address range. This is done by changing start
3766 address of .interp (the very first section of executable)
3767 and then setting EF_ALPHA_32BIT elf header flag.
3768
20bccb34
NC
37692000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3770
3771 * emultempl/m68kcoff.em: New file.
3772 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3773 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3774 generic.em.
3775 * Makefile.in: Regenerate.
3776
699845ef
L
37772000-07-20 H.J. Lu <hjl@gnu.org>
3778
3779 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3780 and "disable-new-dtags" to stop getopt from treating -d/-e as
3781 abbreviations for these options.
3782
6c1439be
L
37832000-07-20 H.J. Lu <hjl@gnu.org>
3784
3785 * ld.texinfo: Add documentation for --disable-new-dtags and
3786 --enable-new-dtags.
3787
3788 * ldmain.c (main): Initialize link_info.new_dtags to false.
3789
3790 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3791 --disable-new-dtags and --enable-new-dtags.
3792 (gld_${EMULATION_NAME}_list_options): Likewise.
3793
28c309a2
NC
37942000-07-05 Kenneth Block <krblock@computer.org>
3795
a2b64bed
NC
3796 * lexsup.c: Add optional style to demangle switch
3797 * ld.texinfo: Document optional style to demangle switch.
50bbae35 3798
9d06555c
HPN
37992000-07-20 Hans-Peter Nilsson <hp@axis.com>
3800
3801 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3802 ecrislinux.o.
3803 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3804 Regenerate dependencies.
3805 * Makefile.in: Rebuild.
3806 * configure.tgt (cris-*-*): New target.
3807 * emulparams/crisaout.sh, emulparams/criself.sh,
3808 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3809 * po/POTFILES.in, po/ld.pot: Regenerate.
3810
19e3be22
L
38112000-07-20 H.J. Lu <hjl@gnu.org>
3812
3813 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3814 Print out ignored -z options.
3815
e0ee487b
L
38162000-07-19 H.J. Lu <hjl@gnu.org>
3817
19e3be22
L
3818 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3819 (PARSE_AND_LIST_PROLOGUE): New.
3820 (PARSE_AND_LIST_LONGOPTS): Likewise.
3821 (PARSE_AND_LIST_OPTIONS): Likewise.
3822 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3823
3824 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3825
3826 * lexsup.c (ld_options): Comment out 'z'.
3827 (parse_args): Likewise.
3828
3829 * emultempl/elf32.em: Include "elf/common.h".
3830 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3831 options.
3832 (gld_${EMULATION_NAME}_list_options): Likewise.
3833
3834 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 3835
49e56c49
L
38362000-07-19 H.J. Lu <hjl@gnu.org>
3837
3838 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3839 bfd_elf_set_dt_needed_soname ().
3840
9d68bc82
DD
38412000-07-18 DJ Delorie <dj@cygnus.com>
3842
3843 * pe-dll.c (pe_dll_id_target): check object target name also
3844
53db15ed
HPN
38452000-07-18 Hans-Peter Nilsson <hp@axis.com>
3846
3847 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3848 ${INIT_END} if relocating.
3849 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3850
0ad8cf4c
DD
38512000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3852
a2b64bed 3853 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
3854 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3855 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3856 errors introduced by the old dynamic lib search order.
3857
874c8c99
DD
38582000-07-17 DJ Delorie <dj@cygnus.com>
3859
3860 * pe-dll.c (process_def_file): auto-export data items also
3861 (pe_process_import_defs): also see if _imp_ form needed
3862
5b4cf3f4
DD
38632000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3864
3865 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3866 for dll import libraries
3867
062739d1
NC
38682000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3869
3870 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 3871 gcc 2.95.2 and later.
062739d1 3872
1c64c4ed
NC
38732000-07-11 Kazu Hirata <kazu@hxi.com>
3874
50bbae35
AM
3875 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3876 message.
1c64c4ed 3877
b71e2778
AM
38782000-07-10 Alan Modra <alan@linuxcare.com.au>
3879
3880 * ldemul.h (struct lang_input_statement_struct): Remove forward
3881 declaration.
3882 (struct search_dirs): Likewise.
3883 * ldfile.h (struct lang_input_statement_struct): Likewise.
3884 Protect file from multiple inclusion.
3885 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3886 declaration from macro to file scope.
3887
3888 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3889 * ldgram.y: Likewise here.
3890 * ldlang.c: And here.
3891 * ldmain.c: And here.
3892 * mpw-elfmips.c: And here.
3893 * mpw-eppcmac.c: And here.
3894 * emultempl/aix.em: And here.
3895 * emultempl/armcoff.em: And here.
3896 * emultempl/armelf.em: And here.
3897 * emultempl/armelf_oabi.em: And here.
3898 * emultempl/beos.em: And here.
3899 * emultempl/elf32.em: And here.
3900 * emultempl/hppaelf.em: And here.
3901 * emultempl/linux.em: And here.
3902 * emultempl/lnk960.em: And here.
3903 * emultempl/pe.em: And here.
3904 * emultempl/sunos.em: And here.
3905 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3906 * mpw-idtmips.c: Ditto.
3907 * emultempl/generic.em: Ditto.
3908 * emultempl/gld960.em: Ditto.
3909 * emultempl/gld960c.em: Ditto.
3910 * emultempl/mipsecoff.em: Ditto.
3911 * emultempl/ticoff.em: Ditto.
3912 * emultempl/vanilla.em: Ditto.
3913
3914 * pe-dll.c: Include ldfile.h
3915 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3916
3917 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3918 arguments to bfd_elf32_size_dynamic_sections call.
3919 (gldelf32ebmip_place_orphan): Add missing arguments to
3920 lang_leave_output_section_statement call.
3921
2ef53d66
L
39222000-07-10 H.J. Lu <hjl@gnu.org>
3923
3924 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3925 DLL_SUPPORT.
3926 (strhash): Likewise.
3927 (compute_dll_image_base): Likewise.
3928 (pe_undef_found_sym): Likewise.
3929 (pe_undef_cdecl_match): Likewise.
3930 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3931 argument "arch" with ATTRIBUTE_UNUSED.
3932
9a8cbb09
AM
39332000-07-10 Alan Modra <alan@linuxcare.com.au>
3934
3935 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3936
3937 From Ryan Bradetich <rbradetich@uswest.net>
3938 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 3939
4900fc06
AM
39402000-07-09 Alan Modra <alan@linuxcare.com.au>
3941
3942 Changes to create multiple linker stubs, positioned immediately
3943 before the section where they are required.
3944 * emultempl/hppaelf.em: Include elf32-hppa.h.
3945 (stub_sec, file_chain): Delete.
3946 (hppaelf_create_output_section_statements): Don't make a stub
3947 section here.
3948 (hook_stub_info): New struct.
3949 (hook_in_stub): New function.
3950 (hppaelf_add_stub_section): New function.
3951 (hppaelf_finish): Do nothing for relocateable links. Modify the
3952 call to elf32_hppa_size_stubs. Move code for updating section
3953 layout from here...
3954 (hppaelf_layaout_sections_again): ..to here, a new function.
3955
3956 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3957 broken list handling. Pass in a pointer to the list.
3958 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3959 for above changes.
3960 (hppaelf_before_parse): Prototype.
3961 (hppaelf_set_output_arch): Prototype.
3962 (hppaelf_create_output_section_statements): Prototype.
3963 (hppaelf_delete_padding_statements): Prototype.
3964 (hppaelf_finish): Prototype.
3965
3966 Merge from elf32.em
3967 * emultempl/hppaelf.em: Include ctype.h.
3968 (struct orphan_save): New.
3969 (gld${EMULATION_NAME}_place_orphan): New.
3970 (output_rel_find): New.
3971 (hppaelf_get_script): Update from elf32.em.
3972 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3973 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 3974 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
3975
3976 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3977 ehppalinux.o, sort it. Regenerate dependencies.
3978 (ehppalinux.c): Depend on hppaelf.em
3979 * Makefile.in: Regenerate.
3980
3981 * configure.tgt: targ_emul=hppalinux for hppa*linux
3982
3983 * emulparams/hppalinux.sh: New.
3984 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3985
227aeb07
AM
39862000-07-08 Alan Modra <alan@linuxcare.com.au>
3987
3988 * lexsup.c (parse_args): Copy section name.
3989
28609fd4 39902000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 3991
2ef53d66 3992 * emultempl/pe.em: institute the following search order for
602e90d3
DD
3993 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3994 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3995 static lib (libfoo.a) if none of the above are found.
3996
5f577f7d
DD
39972000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3998
50bbae35 3999 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 4000 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 4001 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
4002 (gld_${EMULATION_NAME}_parse): Handle.
4003 (strhash): New static function.
50bbae35 4004 (compute_dll_image_base): New static function.
5f577f7d
DD
4005 (gld_${EMULATION_NAME}_set_symbols): Use.
4006
9a8cbb09 40072000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
4008
4009 * MAINTAINERS: new
4010
3548145d 40112000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
4012
4013 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4014 * emulparams/elf32btsmip.sh: New file.
4015 * Makefile.am: Add traditional mips target.
4016 * Makefile.in: Rebuild.
4017
67798033
L
40182000-07-01 H.J. Lu <hjl@gnu.org>
4019
4020 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4021 automake to use YLWRAP.
4022 * Makefile.in: Rebuild.
4023
0bdaf48b
AM
40242000-07-01 Alan Modra <alan@linuxcare.com.au>
4025
4026 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4027 (CLEANFILES): Add DEPA.
4028 * Makefile.in: Regenerate.
4029
c9e769c2
TW
40302000-06-30 Timothy Wall <twall@ppc>
4031
4032 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4033 the page in the upper octet of the address.
4034
65aa24b6
NC
40352000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4036
4037 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4038
4667035e
AM
40392000-06-24 Alan Modra <alan@linuxcare.com.au>
4040
4041 * NEWS: arm-elf does --gc-sections too.
4042
1581f8c9
AM
40432000-06-22 Alan Modra <alan@linuxcare.com.au>
4044
4045 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4046 find one.
4047 * Makefile.in: Regenerate.
4048
01580992
L
40492000-06-21 H.J. Lu <hjl@gnu.org>
4050
4051 * Makefile.am: Rebuild dependency.
4052 * Makefile.in: Rebuild.
4053
bbeb2e03
L
40542000-06-20 H.J. Lu <hjl@gnu.org>
4055
4056 * Makefile.am: Rebuild dependency.
4057 * Makefile.in: Rebuild.
4058
74459f0e
TW
40592000-06-20 Timothy Wall <twall@cygnus.com>
4060
4061 * scripttempl/tic54xcoff.sc: New.
4062 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4063 * gen-doc.texi: Add flag for TI COFF.
4064 * ld.texinfo: Add documentation for TI COFF handling switches.
4065 * emultempl/ticoff.em: New. TI COFF handling.
4066 * configure.tgt: Add tic54x target.
4067 * Makefile.am: Add tic54x target.
4068 * Makefile.in: Ditto.
4069
2ab47eed
AM
40702000-06-20 Alan Modra <alan@linuxcare.com.au>
4071
4072 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4073 checking for backslashes.
4074
919e4093
AM
40752000-06-19 Alan Modra <alan@linuxcare.com.au>
4076
4077 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4078
987fd5b4
AM
40792000-06-18 Alan Modra <alan@linuxcare.com.au>
4080
4081 * NEWS: Update list of targets supporting --gc-sections.
4082
4083 * scripttempl/elf.sc: KEEP .eh_frame contents.
4084 * scripttempl/elfd30v.sc: Same here.
4085
60bcf0fa
NC
40862000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4087
4088 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4089 and m68hc11 (elf).
4090 * Makefile.in: Rebuild.
4091 * configure.tgt: Recognize m68hc12 and m68hc11.
4092 * scripttempl/elfm68hc12.sc: New file.
4093 * emulparams/m68hc12elfb: New emulation.
4094 * emulparams/m68hc12elf: New emulation.
4095 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4096 (includes a memory.x script to define the ROM and RAM banks).
4097 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4098 New configuration files for support of Motorola 68hc11
4099
c7c54483
AM
41002000-06-15 Alan Modra <alan@linuxcare.com.au>
4101
4102 * ldmain.c (main): Only change SEC_READONLY for final link.
4103
bcef29e6
L
41042000-06-13 H.J. Lu <hjl@gnu.org>
4105
4106 * configure: Regenerate.
4107
946efd95
DB
41082000-06-08 David O'Brien <obrien@FreeBSD.org>
4109
4110 * configure.in (VERSION): Update to show this is the CVS mainline.
4111
57a6fd07
DB
41122000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4113
4114 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4115 input objects to be ECOFF.
4116 (check_sections): einfo takes %B, not %P, to print a BFD name.
4117
e06cae36
L
41182000-06-05 Michael Matz <matz@ifh.de>
4119
4120 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 4121 version scripts.
e06cae36 4122
d952f17a 4123 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 4124
2f0b56c0
DC
41252000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4126
4127 * emulparams/avr1200.sh (STACK): Define as 0.
4128 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4129 * emulparams/avr4433.sh (STACK): Likewise.
4130 * emulparams/avr44x4.sh (STACK): Likewise.
4131 * emulparams/avr85xx.sh (STACK): Likewise.
4132 * emulparams/avrmega103.sh (STACK): Likewise.
4133 * emulparams/avrmega161.sh (STACK): Likewise.
4134 * emulparams/avrmega603.sh (STACK): Likewise.
4135 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4136 (__stack): Define from ${STACK} for main().
4137
2114f57b
AM
41382000-05-26 Alan Modra <alan@linuxcare.com.au>
4139
4140 * Makefile.am: Update dependencies with "make dep-am"
4141 * Makefile.in: Regenerate.
4142
5af11cab
AM
41432000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4144
4145 * ldmain.c: Include filenames.h.
4146 (set_scripts_dir): Support backslashes in program name.
4147
1f0df59a
NC
41482000-05-22 Igor Shevlyakov <igor@windriver.com>
4149
4150 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
4151 read-only, don't forget to reset SEC_READONLY because it
4152 could be already set.
1f0df59a 4153
176355da
NC
41542000-05-22 Thomas de Lellis <tdel@windriver.com>
4155
50bbae35
AM
4156 * ld.1: Add documentation for new command line option:
4157 --section-start <sectionname>=<sectionorg>
4158 This is a generic version of -Ttext etc. which accepts
4159 any section name as a parameter instead of just text/data/
4160 bss.
4161 * ld.texinfo: More docs.
4162 * NEWS: More docs.
4163 * lexsup.c: (parse_args): Recognize new command line option.
176355da 4164 (ld_options): Add new option.
50bbae35 4165
8c5ff972
L
41662000-05-18 H.J. Lu <hjl@gnu.org>
4167
4168 * lexsup.c (parse_args): `i' == `r', not `q'.
4169
3b16e843 41702000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
4171
4172 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4173
a712da20
NC
41742000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4175 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 4176
a712da20
NC
4177 Add support for '-q' == '--emit-relocs' switch.
4178 * ldmain.c (main): Default to false.
4179 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4180 * NEWS: Describe the emitrelocations switch.
4181 * ld.texinfo: Describe the emitrelocations switch.
4182
690a460e
NC
41832000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4184
a2b64bed 4185 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
4186 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4187 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4188 link options.
50bbae35 4189
c2f1343c
AM
41902000-05-15 David O'Brien <obrien@FreeBSD.org>
4191
4192 * lexsup.c (parse_args): Update the year in the copyright notice.
4193
897083bd
AM
41942000-05-13 Alan Modra <alan@linuxcare.com.au>
4195
4196 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4197 Replace defines with those from intl/libgettext.h to quieten gcc
4198 warnings.
4199
cd4c806a
L
42002000-05-10 H.J. Lu <hjl@gnu.org>
4201
4202 * ldlang.c (open_input_bfds): Don't load the same file within
4203 a group again if the whole archive has been loaded already.
4204
93697284
AM
42052000-05-03 Alan Modra <alan@linuxcare.com.au>
4206
4207 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4208 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4209 strtoul.
4210
3b16e843 42112000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 4212
99a4150f 4213 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 4214
ebd6fc29
JW
4215 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4216 host "ia64-*-linux-gnu*".
4217
a1934524
AM
42182000-04-29 Andreas Jaeger <aj@suse.de>
4219
4220 * ld.h: Correctly check GCC version.
4221
3b16e843 42222000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
4223
4224 * Makefile.am: Add PA64 support. Add missing dependencies for
4225 PA32 elf support.
4226 * Makefile.in: Rebuilt.
4227 * configure.tgt: Add PA64 support (currently disabled).
4228
aea4bd9d
AM
42292000-04-25 Alan Modra <alan@linuxcare.com.au>
4230
4231 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4232 (output_rel_find): New function.
4233 (hold_section, hold_use): Delete.
4234 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4235 hold_interp): Make local to place_orphan.
4236 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4237 rather than place_section to find possible previous use of orphan.
4238 Similarly find the place-holder output sections. Use returned
4239 value from lang_enter_output_section_statement rather than calling
4240 lang_output_section_statement_lookup.
4241 * emultempl/armelf.em: Same here.
4242 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4243
4244 * ldlang.c (lang_enter_output_section_statement): Return output
4245 section statement.
4246 * ldlang.h (lang_enter_output_section_statement): Change
4247 declaration too.
4248
4249 * ldlang.h (lang_output_section_statement): Export it.
4250 * ldlang.c (lang_output_section_statement): Ditto.
4251
2b5fc1f5
NC
42522000-04-24 Nick Clifton <nickc@cygnus.com>
4253
4254 * ld.texinfo (Output Section Data): Add note that section data
4255 commands cannot appear outside of section directives.
4256
d8475ff6
JL
42572000-04-2 Matthew Green <mrg@cygnus.com>
4258
4259 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4260
3b16e843
NC
42612000-04-21 Richard Henderson <rth@cygnus.com>
4262 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
4263
4264 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4265 (eelf64_ia64.c): New rule.
4266 * Makefile.in: Rebuild.
4267 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4268 * emulparams/elf64_ia64.sh: New file.
50bbae35 4269
c9637625
RH
42702000-04-21 Richard Henderson <rth@cygnus.com>
4271
4272 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4273
28ea9521
AM
42742000-04-19 Alan Modra <alan@linuxcare.com.au>
4275
4276 * dep-in.sed: Match space at start of file name, not at end.
4277
20d04697
L
42782000-04-18 H.J. Lu <hjl@gnu.org>
4279
4280 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4281 lang_leave_output_section_statement () after calling
4282 lang_enter_output_section_statement ().
4283 * emultempl/armelf.em: Likewise.
4284
5ba47421
AM
42852000-04-18 Alan Modra <alan@linuxcare.com.au>
4286
4287 * emultempl/elf32.em (struct orphan_save): Add section field.
4288 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4289 better order, and place first orphan section as we did before the
4290 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4291 Don't call make_bfd_section here, let wild_doit do the job for us.
4292 Don't build a statement list when we'll only throw it away.
4293 * emultempl/armelf.em: Ditto.
4294 * emultempl/pe.em: Similarly.
4295
bdbe5705
GK
42962000-04-14 Geoff Keating <geoffk@cygnus.com>
4297
4298 * scripttempl/elfppc.sc: Remove.
4299 * emulparams/elf32ppc.sh: Use elf.sc.
4300 * emulparams/elf32lppc.sh: Use elf.sc.
4301 * emulparams/elf32ppclinux.sh: Use elf.sc.
4302 * emulparams/elf32ppcsim.sh: New file.
4303 * emulparams/elf32lppcsim.sh: New file.
4304 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4305 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4306 * Makefile.in: Regenerate.
4307 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4308
01cc8ff8
AM
43092000-04-14 Alan Modra <alan@linuxcare.com.au>
4310
5ba47421 4311 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 4312 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
4313 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4314 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
4315 Also set all relocateable section start addresses.
4316
6c86c541
GK
43172000-04-13 Geoff Keating <geoffk@cygnus.com>
4318
4319 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4320 Add new BSS_PLT variable for when .plt need not be contained in
4321 the file. Move _etext so that it is also after .fini, and provide
4322 both etext and _etext with a leading underscore. Mark the start
4323 and end of .sbss.
4324
6a345e87
AM
43252000-04-12 Alan Modra <alan@linuxcare.com.au>
4326
4327 * emultempl/elf32.em (struct orphan_save): New.
4328 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4329 hold_interp): Make them struct orphan_save.
4330 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4331 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4332 the end of the relevant section list. Also add associated section
4333 statements to the end of any previous orphan statements.
4334 * emultempl/armelf.em: Similarly.
4335 * emultempl/pe.em: Similarly.
4336
8be86746
AM
43372000-04-11 Alan Modra <alan@linuxcare.com.au>
4338
4339 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4340
3b16e843 43412000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 4342
a2d91340 4343 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 4344 --enable-build-warnings option.
a2d91340
AC
4345 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4346 * Makefile.in, configure: Re-generate.
4347
41b49281
AM
43482000-04-04 Alan Modra <alan@linuxcare.com.au>
4349
8ad3436c
AM
4350 * po/ld.pot: Regenerate.
4351
4352 * lexsup.c (help): Restore translated part of bug string.
4353
41b49281
AM
4354 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4355 (DEP): Quote when passing vars to sub-make. Add warning message
4356 to end.
4357 (DEP1): Rewrite for "gcc -MM".
4358 (CLEANFILES): Add DEP2.
4359 Update dependencies.
4360 * Makefile.in: Regenerate.
4361
c20f4f8c
AM
43622000-04-03 Alan Modra <alan@linuxcare.com.au>
4363
4364 * ld.h: #include "bin-bugs.h"
4365 * lexsup.c (help): Use REPORT_BUGS_TO.
4366
adde6300
AM
43672000-03-27 Denis Chertykov <denisc@overta.ru>
4368
4369 * configure.tgt (avr-*-*): New target support.
4370 * Makefile.am: Likewise.
4371 * scripttempl/elf32avr.sc: New script file.
4372 * emulparams/avr1200.sh: New file.
4373 * emulparams/avr23xx.sh: New file.
4374 * emulparams/avr4433.sh New file.
4375 * emulparams/avr44x4.sh New file.
4376 * emulparams/avr85xx.sh New file.
4377 * emulparams/avrmega103.sh New file.
4378 * emulparams/avrmega161.sh New file.
4379 * emulparams/avrmega603.sh New file.
4380 * Makefile.in: Regenerate.
4381
9282ff41
L
43822000-03-09 Andreas Jaeger <aj@suse.de>
4383
4384 * Makefile.am (check-DEJAGNU): Also unset LANG.
4385 * Makefile.in: Rebuild.
4386
a9998805
ILT
43872000-03-06 Ian Lance Taylor <ian@zembu.com>
4388
4389 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4390 archive.
4391
f9bc20e7
NC
43922000-03-02 H.J. Lu <hjl@gnu.org>
4393
4394 * emulparams/elf32mcore.sh: Include "getopt.h".
4395
4e277b38
ILT
43962000-03-01 Ian Lance Taylor <ian@zembu.com>
4397
4398 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4399
f0c87f88
NC
44002000-03-01 H.J. Lu <hjl@gnu.org>
4401
4402 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4403 * emulparams/shpe.sh: Likewise.
4404
44052000-03-01 Nick Clifton <nickc@cygnus.com>
4406
4407 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4408 to unused parameters.
4409
4410 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4411 functions only used by DLL code.
4412 (_place_orphan): Initialise 'dollar'.
4413
b6f29aaa
L
44142000-03-01 H.J. Lu <hjl@gnu.org>
4415
4416 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4417 indicate if the undefined symbol is a fatal error or not.
4418 Don't delete the output file if "fatal" is false.
4419
af28fce3
L
44202000-02-29 H.J. Lu <hjl@gnu.org>
4421
50bbae35 4422 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
4423 Set LC_COLLATE and LC_ALL to null and export them. It is for
4424 sort which expects the C locale.
4425 Add $(LIBS) to all $(HOSTING_LIBS).
4426 * Makefile.in: Rebuild.
4427
40d109bf
AM
44282000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4429
4430 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4431 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4432 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4433 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4434 find_potential_libraries.
4435
db5be682
JB
44362000-02-28 Jim Blandy <jimb@redhat.com>
4437
4438 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 4439 list entries; the lexer considers commas to be valid part of a
db5be682
JB
4440 filename, so in something like `foo, bar' the comma is considered
4441 part of the first filename, `foo,'.
4442 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4443
3558ff4c
ILT
44442000-02-27 Loren J. Rittle <ljrittle@acm.org>
4445
4446 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4447 host "i[3456]86-*-freebsdelf*".
4448
4eee2681
ILT
44492000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4450
4451 * scripttempl/i386go32.sc: Move misplaced semicolons.
4452
8d75d12d
ILT
44532000-02-25 Ian Lance Taylor <ian@zembu.com>
4454
4455 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4456 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4457 (eelf64hppa.c, ehppaelf.c): Remove targets.
4458 * Makefile.in: Rebuild.
4459
a1836d49
AO
44602000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4461
ad51fb57
AO
4462 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4463 GNU/Linux/sparc, but keep the default as 32.
4464
a1836d49
AO
4465 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4466 it default if sparcv9 or sparc64.
4467
344a211f
NC
44682000-02-24 Nick Clifton <nickc@cygnus.com>
4469
4470 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4471 * Makefile.in: Regenerate.
4472 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4473
4474 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4475 find_potential_libraries.
4476 * ldemul.c (ldemul_find_potential_libraries): New function.
4477
4478 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 4479 exported.
344a211f
NC
4480 (ldfile_open_file): Call ldemul_find_potential_libraries.
4481 * ldfile.h: Add prototype for ldfile_open_file_search.
4482
4483 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4484
4485 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4486 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4487
4488 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4489 (gld_X_find_potential_libraries): New function. Search for
4490 libraries called "*.lib".
4491
a2b64bed 4492 * scripttempl/pe.sc: Add .pdata section.
344a211f 4493
eaba1dd3
RH
44942000-02-23 Richard Henderson <rth@cygnus.com>
4495
4496 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4497 Add and use memory regions.
4498
5b93d8bb
AM
44992000-02-23 Linas Vepstas (linas@linas.org)
4500
4501 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4502
4503 * Makefile.am: Add support for Linux/IBM 370.
4504 * configure.tgt: Likewise.
4505
4506 * Makefile.in: Regenerate.
4507
f6af82bd
AM
45082000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4509
4510 * ldlang.c (print_input_section, print_data_statement,
4511 print_reloc_statement, print_padding_statement, insert_pad,
4512 size_input_section, lang_check_section_addresses,
4513 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 4514 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
4515 (lang_do_assignments): Also change `size' to unsigned.
4516
9e673ad1
RH
45172000-02-16 Richard Henderson <rth@cygnus.com>
4518
4519 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4520
562d3460
TW
45212000-02-16 Timothy Wall <twall@cygnus.com>
4522
4523 * mri.c (mri_draw_tree): Add default LMA region argument to call
4524 to lang_leave_output_section_statement.
4525 * ldlang.h: Update prototypes with LMA region arguments.
4526 * ldlang.c (lang_size_sections): Encapsulate region bounds
4527 checking in os_check_region call.
4528 (os_check_region): New function.
4529 (lang_output_section_statement_lookup): Initialize lma_region.
4530 (lang_leave_output_section_statement): Add LMA region argument.
4531 (lang_leave_overlay): Ditto.
4532 * ldgram.y: Handle LMA region syntax.
4533 * ld.texinfo (Output Section Description): Describe LMA region usage.
4534 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 4535 lma region in call to lang_leave_output_section_statement.
562d3460 4536 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 4537 lma region in call to lang_leave_output_section_statement.
562d3460 4538 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 4539 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
4540
4541
9e4ed18c
TW
45422000-02-04 Timothy Wall <twall@redhat.com>
4543
4544 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4545 octets when calculating section end addresses.
4546
32edc927
TW
45472000-02-04 Timothy Wall <twall@redhat.com>
4548
4549 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4550
4cbfc3ac
TW
45512000-02-03 Timothy Wall <twall@redhat.com>
4552
a2b64bed 4553 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 4554 octet count.
a2b64bed 4555 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
4556 print_reloc_statement, print_padding_statement): Print target
4557 address values and section sizes as bytes, not octets.
4558 (insert_pad) Calculate padding size in octets, and adjust "dot"
4559 by bytes.
4560 (size_input_section) Always adjust "dot" by bytes, not octets.
4561 (lang_check_section_addresses, lang_do_assignments) Adjust
4562 "dot" by bytes, not octets. Use the larger of the directive size
4563 or octets_per_byte for the number of octets actually allocated in
4564 the output section.
4565 (lang_set_startof) Make sure STARTOF returns a target address.
4566 (lang_one_common) Record size changes in octets.
4567 (lang_abs_symbol_at_end_of) Section end symbol's value is
4568 recorded in target bytes.
68b2fc7a 4569 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4cbfc3ac 4570 to be clear about behavior when an octet is smaller than one byte.
50bbae35 4571
305c7206
AM
45722000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4573
4574 * ldcref.c (output_cref): Don't pass message strings to printf
4575 as format arg.
4576 Update copyright.
4577
4578 * ldmisc.c (vfinfo): Same here.
4579 Update copyright.
4580
e1c47aa4
AM
45812000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4582
4583 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4584 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4585 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4586 Add missing NULL initialisers, and comments.
4587
4588 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4589
13392b77
NC
45902000-01-21 Nick Clifton <nickc@cygnus.com>
4591
4592 * ldlang.c (lang_size_sections): Fix typo in comment.
4593
cce4c4c5
NC
45942000-01-18 H.J. Lu <hjl@gnu.org>
4595
4596 * ldlang.c (lang_size_sections): Also update the current
4597 address of a region if the SEC_NEVER_LOAD bit is not set.
4598
0decc840
NC
45992000-01-10 Philip Blundell <pb@futuretv.com>
4600
4601 * configure.tgt (arm*-*-conix*): New target.
4602
4e53152f
NC
46032000-01-07 Nick Clifton <nickc@cygnus.com>
4604
4605 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
4606 line switches with -Wl, (or whatever is appropriate) if it is
4607 being invoked by a comnpiler driver program.
50bbae35 4608 Fix description of the behaviour of the -n command line switch.
4e53152f 4609
3b16e843 46102000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
4611
4612 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4613 (name_list): New.
4614 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4615 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4616 (exclude_name_list): New.
4617 ldlang.c (walk_wild_section): Support list of excluded files.
4618 (print_wild_statement): Likewise.
4619 (lang_add_wild): Likewise.
4620 * ldlang.h (lang_wild_statement_type): Likewise.
4621 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 4622
5aaace27
NC
46232000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4624
870df5dc
NC
4625 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4626 (process_def_file): Use.
4627 (pe_dll_compat_implib): New variable.
4628 (make_one): Use.
50bbae35 4629
870df5dc
NC
4630 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4631 pe_dll_compat_implib.
50bbae35
AM
4632
4633 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
4634 compat-implib options.
4635 (gld_${EMULATION_NAME}_list_options): List new options.
4636 (gld_${EMULATION_NAME}_parse_args): Handle.
4637
50bbae35 4638 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 4639 dll.
50bbae35
AM
4640
4641 * deffilep.y (opt_name): Allow "." in name.
5aaace27 4642
2f6d2f85 4643For older changes see ChangeLog-9899
252b5132
RH
4644\f
4645Local Variables:
4646mode: change-log
4647left-margin: 8
4648fill-column: 74
4649version-control: never
4650End:
This page took 0.38452 seconds and 4 git commands to generate.