1 2002-08-14 H.J. Lu <hjl@gnu.org>
3 * configure.tgt: Always enable 64bit emulations for 32bit
6 2002-08-13 Alan Modra <amodra@bigpond.net.au>
8 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
9 (MAXPAGESIZE): Set to 1.
11 * ld.h (ALIGN_N): Delete.
12 * ldexp.h (align_n): Declare.
13 * ldexp.c (align_n): New function.
14 (fold_binary): Use align_n instead of ALIGN_N.
15 (exp_fold_tree): Likewise.
16 * ldlang.c (lang_size_sections_1): Likewise.
17 (lang_one_common): Likewise.
18 * ld.texinfo (ALIGN): Remove power of 2 restriction.
20 2002-07-31 Graeme Peterson <gp@qnx.com>
22 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
23 * Makefile.am: Add eelf32{l}ppcnto.o files.
24 * Makefile.in: Regenerate.
25 * emulparams/elf32lppcnto.sh: New file.
26 * emulparams/elf32ppcnto.sh: New file.
28 2002-08-07 H.J. Lu <hjl@gnu.org>
30 * ld.texinfo: Document --no-undefined-version.
32 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
33 `script.' fields to 0.
35 * ldmain.c (main): Initialize the allow_undefined_version to
38 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
39 (ld_options): Add --no-undefined-version.
40 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
42 2002-08-07 Nick Clifton <nickc@redhat.com>
44 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
45 an interworking bfd if there are input bfds. (107501)
47 2002-08-06 Alan Modra <amodra@bigpond.net.au>
49 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
52 2002-08-01 Nick Clifton <nickc@redhat.com>
54 * emulparams/armelf.sh: Revert previous delta.
55 * scripttempl/elf.sc: Revert previous delta.
57 2002-07-31 H.J. Lu <hjl@gnu.org>
59 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
62 2002-07-31 H.J. Lu <hjl@gnu.org>
64 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
65 64bit BFD is selected.
67 2002-07-31 H.J. Lu <hjl@gnu.org>
69 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
70 if 64bit BFD is selected.
72 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
74 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
75 link_info.common_skip_ar_aymbols.
76 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
78 * ldmain.c (main): Initialize new field
79 link_info.common_skip_ar_aymbols.
81 2002-07-31 Adam Nemet <anemet@lnxw.com>
83 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
85 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
88 2002-07-31 Nick Clifton <nickc@redhat.com>
90 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
91 of the PDP-11 and 2.11BSD a.out support.
93 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
95 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
97 * Makefile.in: Regenerate.
98 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
99 n32 ABI emulations for these 64 bit targets.
100 * emulparams/elf32bmipn32.sh: Expand comment.
101 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
103 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
105 2002-07-30 Graeme Peterson <gp@qnx.com>
107 * configure.tgt: Add support for arm-*-nto target.
108 * Makefile.am: Add earmnto.o file.
109 * Makefile.in: Regenerate.
110 * NEWS: Mention port of ARM support to QNX.
111 * emulparams/armnto.sh: New file.
113 2002-07-30 Jakub Jelinek <jakub@redhat.com>
115 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
116 for relocatable link.
117 (lang_size_sections_1): Don't make .tbss zero size for relocatable
120 2002-07-26 Bernd Schmidt <bernds@redhat.com>
122 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
125 2002-07-25 Nick Clifton <nickc@redhat.com>
127 * po/sv.po: Updated Swedish translation.
128 * po/es.po: Updated Spanish translation.
129 * po/fr.po: Updated French translation.
131 2002-07-24 Nick Clifton <nickc@redhat.com>
133 * po/sv.po: Updated Swedish translation.
134 * po/es.po: Updated Spanish translation.
136 2002-07-23 Nick Clifton <nickc@redhat.com>
138 * po/fr.po: Updated French translation.
140 2002-07-20 Alan Modra <amodra@bigpond.net.au>
142 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
143 bomb on /DISCARD/ input section.
144 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
145 * emultempl/mmo.em (mmo_place_orphan): Likewise.
147 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
149 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
152 2002-07-16 Denis Chertykov <denisc@overta.ru>
153 Nick Clifton <nickc@redhat.com>
154 Frank Ch. Eigler <fche@redhat.com>
155 John Healy <jhealy@redhat.com>
157 * configure.tgt: Add support for ip2k-elf.
158 * Makefile.am: Add support for ip2k-elf.
159 * Makefile.in: Regenerate.
160 * emulparams/elf32ip2k.sh: New file.
161 * scripttempl/ip2k.sc: New file
162 * NEWS: Mention support for new port.
164 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
166 * NEWS: Add 'Changes in 2.13'.
168 2002-07-14 H.J. Lu <hjl@gnu.org>
170 * ld.texinfo: Document a .symver takes precedence over a
173 2002-07-12 Alan Modra <amodra@bigpond.net.au>
175 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
176 (COMMONPAGESIZE): Define.
178 2002-07-09 Alan Modra <amodra@bigpond.net.au>
180 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
182 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
184 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
185 powerpc-*-openbsd* and sparc64-*-openbsd*.
186 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
187 * Makefile.in: Regenerate.
188 * emulparams/hppaobsd.sh: New file.
190 2002-07-05 Alan Modra <amodra@bigpond.net.au>
192 * ldlang.c (print_wild_statement): Fix output formatting.
194 2002-07-04 Alan Modra <amodra@bigpond.net.au>
196 * ldlang.c: (strip_excluded_output_sections): New function.
197 (lang_process): Call it.
198 (lang_size_sections_1): Revert 2002-06-10 change.
200 2002-07-03 Alan Modra <amodra@bigpond.net.au>
202 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
204 * Makefile.in: Regenerate.
206 2002-07-02 Alan Modra <amodra@bigpond.net.au>
208 * ldfile.c (ldfile_try_open_bfd): Formatting.
210 * ldmisc.c (demangle): Move so that it doesn't intrude between
211 vfinfo comment and body. Add comment.
213 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
215 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
217 2002-07-01 Alan Modra <amodra@bigpond.net.au>
219 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
220 * ldlang.c (entry_sym): Likewise.
221 (ldlang_undef_chain_list_type): Likewise.
222 (lang_finish): Adjust references to entry_symbol.
223 (lang_add_entry): Likewise.
224 (lang_gc_sections): Use link_info.gc_sym_list.
225 (lang_process): Set link_info.gc_sym_list.
226 * ldlex.l: Include bfdlink.h.
227 * ldmain.c (main): Init link_info.gc_sym_list.
228 * emultempl/aix.em: Adjust references to entry_symbol.
229 * emultempl/armcoff.em: Likewise.
230 * emultempl/armelf.em: Likewise.
231 * emultempl/pe.em: Likewise.
232 * emultempl/ppc64elf.em (ppc_after_open): New function.
233 (LDEMUL_AFTER_OPEN): Define.
234 * emulparams/elf64ppc.sh: KEEP .opd sections.
236 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
238 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
239 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
240 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
241 (EEPROM_START_ADDR): Define.
242 (EEPROM_MEMORY): Define.
243 * emulparams/m68hc12elf.sh: Likewise.
244 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
245 section to put soft registers in .page0.
246 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
248 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
250 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
251 section. Add ${RELOCATING-0}.
253 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
255 * emulparams/shelf.sh (STACK_ADDR): Don't define.
256 (OTHER_SECTIONS): Define.
257 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
258 (OTHER_SECTIONS): Undef.
260 2002-06-26 Alan Modra <amodra@bigpond.net.au>
262 * ldmisc.c (demangle): Restore dots stripped from sym name.
264 2002-06-25 H.J. Lu <hjl@gnu.org>
266 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
267 * Makefile.in: Regenerated.
269 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
271 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
272 the size of attached object files, to allow make the object files
273 available via FTP or HTTP and to mention that the mail will be
274 sent to a mailing list.
276 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
278 * ld/configure.host (romp): Drop support.
280 2002-06-18 Chris Demetriou <cgd@broadcom.com>
282 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
283 section flags for SEC_DATA, rather than for SEC_CODE being unset.
285 2002-06-18 Chris Demetriou <cgd@broadcom.com>
287 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
288 format specifier used to print BFD name.
290 2002-06-18 Dave Brolley <brolley@redhat.com>
292 From Catherine Moore, Michael Meissner, Jim Blandy:
293 * emulparams/elf32frv.sh: New file.
294 * configure.tgt: Support frv-*-*.
295 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
296 (eelf32frv.c): New target.
298 2002-06-17 Tom Rix <trix@redhat.com>
300 * emultempl/elf32.em: gld*_get_script: Check for
301 GENERATE_COMBRELOC_SCRIPT.
302 * scripttempl/elfd10v.sc : Fix STACK and INSN.
303 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
305 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
307 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
309 2002-06-12 H.J. Lu <hjl@gnu.org>
311 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
312 false if xvec doesn't match.
314 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
316 * ldlang.c (lang_size_sections_1): Skip removed output sections.
318 2002-06-08 Alan Modra <amodra@bigpond.net.au>
320 * ldexp.c: Replace CONST with const.
321 * ldfile.c: Likewise.
322 * ldfile.h: Likewise.
325 * pe-dll.h: Likewise.
327 2002-06-07 Alan Modra <amodra@bigpond.net.au>
329 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
331 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
333 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
334 to -1 == implicit enable.
335 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
336 initialize link_info.pei386_auto_import to -1 == implicit
338 (gld_${EMULATION_NAME}_parse_args): When processing
339 --enable-auto-import and --disable-auto-import options, use
340 '1' and '0' instead of 'true' and 'false'.
341 (pe_find_data_imports): Only issue message about auto-import
342 when the feature is implicitly enabled. Downgrade message to
343 informational instead of warning.
345 2002-06-07 Alan Modra <amodra@bigpond.net.au>
347 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
349 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
351 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
352 HOSTING_CRT0 and HOSTING_LIBS.
354 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
356 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
358 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
360 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
361 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
363 2002-06-05 Alan Modra <amodra@bigpond.net.au>
365 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
366 SEC_EXCLUDE sections when doing a relocatable link.
368 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
370 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
371 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
372 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
373 (eshlelf64_nbsd.c): New rules.
374 * Makefile.in: Regenerate.
375 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
376 (sh64-*-netbsd*): New targets.
377 * emulparams/shelf32_nbsd.sh: New file.
378 * emulparams/shelf64_nbsd.sh: New file.
379 * emulparams/shlelf32_nbsd.sh: New file.
380 * emulparams/shlelf64_nbsd.sh: New file.
382 2002-06-04 Alan Modra <amodra@bigpond.net.au>
384 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
386 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
388 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
389 C++ constructors/destructors, loosely based on the m68hc11 port.
391 2002-05-31 Alan Modra <amodra@bigpond.net.au>
393 * Makefile.in: Regenerate.
394 * aclocal.m4: Regenerate.
395 * config.in: Regenerate.
396 * configure: Regenerate.
398 2002-05-31 Graeme Peterson <gp@qnx.com>
400 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
401 (ei386nto.c): Add rule.
402 * Makefile.in: Regenerate.
403 * configure.tgt: Add i[3456]86-*-nto-qnx*.
404 * emulparams/i386nto.sh: New file.
406 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
408 * NEWS: Add entry for VAX ELF support.
410 2002-05-29 Matt Thomas <matt@3am-software.com>
411 Jason Thorpe <thorpej@wasabisystems.com>
413 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
415 (evaxnbsd.c): New rules.
416 * Makefile.in: Regenerate.
417 * configure.tgt (vax-*-netbsdelf*)
419 (vax-*-netbsd*): New targets.
420 * emulparams/elf32vax.sh: New file.
421 * emulparams/vaxnbsd.sh: New file.
423 2002-05-29 Adam Nemet <anemet@lnxw.com>
425 * emultempl/armelf.em (arm_elf_after_open): Don't determine
426 bfd_for_interwork, instead add glue sections to each input bfd.
427 (bfd_for_interwork): New global.
428 (arm_elf_set_bfd_for_interworking): New function.
429 (arm_elf_before_allocation): Use it.
431 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
433 * Makefile.am: Add DLX make target.
434 * configure.tgt: Add DLX configuration.
435 * Makefile.in: Regenerate.
436 * emulparams/elf32_dlx.sh: New file
437 * scripttempl/dlx.sc: New file
439 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
441 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
442 * Makefile.in: Regenerate.
443 * emulparams/elf_chaos.sh: Use elf_chaos script.
444 * scripttempl/elf_chaos.sc: New file.
446 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
448 * ldlang.c (lang_size_sections_1): Move check for conflicting load
449 addresses and regions from here...
450 (lang_get_regions): ...to this new function.
451 (lang_leave_output_section_statement): Use lang_get_regions.
452 (lang_leave_overlay): Likewise.
453 * mri.c (mri_draw_tree): Pass null as last argument to
454 lang_leave_output_section_statement.
455 * emultempl/elf32.em (gld*_place_orphan): Likewise.
456 * emultempl/mmo.em (mmo_place_orphan): Likewise.
457 * emultempl/pe.em (gld*_place_orphan): Likewise.
459 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
461 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
463 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
465 * ldemul.c: Fix formatting.
466 * ldfile.c: Likewise.
467 * pe-dll.c: Likewise.
468 * pe-dll.h: Likewise.
470 2002-05-25 Alan Modra <amodra@bigpond.net.au>
472 * ldlang.c (lang_process): Formatting, grammar.
474 * ldlex.l: Use #include "" instead of <> for local header files.
476 2002-05-24 TAMURA Kent <kent@netbsd.org>
478 * configure.tgt: Add a target for i386-netbsdpe.
480 2002-05-23 Jakub Jelinek <jakub@redhat.com>
482 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
483 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
484 output section if necessary. Handle .tbss.
485 (lang_size_sections): Clear _raw_size for .tbss section
486 (it allocates space in PT_TLS segment only).
487 * ldwrite.c (build_link_order): Build link order for .tbss too.
489 2002-05-23 Alan Modra <amodra@bigpond.net.au>
491 * configure.in: Correct spelling of AC_PREREQ.
493 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
495 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
497 (autofilter_objlist): Add crtbegin.o, crtend.o.
499 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
501 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
502 (longopts): Add new option --exclude-libs.
503 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
504 (gld_${EMULATION_NAME}_parse_args): Use it.
505 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
506 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
508 (pe_dll_add_excludes): Set excludes->type.
509 (auto_export): Add new variable libname and set to archive basename if
510 abfd. Use it when filtering default and user-specified libarary
511 excludes. Let string "ALL" mean all libs when filtering user-specified
513 * ld.texinfo: Document --exclude-libs.
515 2002-05-22 Alan Modra <amodra@bigpond.net.au>
517 * ldemul.c (ldemul_new_vers_pattern): New function.
518 * ldemul.h (ldemul_new_vers_pattern): Declare.
519 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
520 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
521 * emultempl/ppc64elf.em (dotsyms): New static var.
522 (gld${EMULATION_NAME}_new_vers_pattern): New function.
523 (LDEMUL_NEW_VERS_PATTERN): Define.
524 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
525 (PARSE_AND_LIST_LONGOPTS): Likewise.
526 (PARSE_AND_LIST_ARGS_CASES): Handle them.
527 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
529 * emultempl/armcoff.em: Likewise.
530 * emultempl/armelf_oabi.em: Likewise.
531 * emultempl/beos.em: Likewise.
532 * emultempl/elf32.em: Likewise.
533 * emultempl/generic.em: Likewise.
534 * emultempl/gld960.em: Likewise.
535 * emultempl/gld960c.em: Likewise.
536 * emultempl/linux.em: Likewise.
537 * emultempl/lnk960.em: Likewise.
538 * emultempl/m68kcoff.em: Likewise.
539 * emultempl/mipsecoff.em: Likewise.
540 * emultempl/pe.em: Likewise.
541 * emultempl/sunos.em: Likewise.
542 * emultempl/ticoff.em: Likewise.
543 * emultempl/vanilla.em: Likewise.
545 2002-05-22 Alan Modra <amodra@bigpond.net.au>
547 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
548 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
549 (LIB_SEARCH_DIRS): No need to use "tr".
550 (COMPILE_IN): Only set for native targets.
551 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
552 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
553 * configure.tgt (powerpc*): Set tdir_*.
554 (powerpcle*): Correct targ_extra_emuls.
555 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
556 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
558 2002-05-22 Alan Modra <amodra@bigpond.net.au>
560 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
561 calling lang_add_entry.
563 2002-05-21 H.J. Lu (hjl@gnu.org)
565 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
567 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
569 * ld.texinfo: Updated for --allow-multiple-definition and
572 * ldmain.c (main): Initialize the allow_multiple_definition
575 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
576 (ld_options): Add --allow-multiple-definition.
577 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
579 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
581 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
582 (earmelfb_nbsd.c): New rule.
583 * Makefile.in: Regenerate.
584 * configure.tgt (armeb-*-netbsdelf*): New target.
585 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
586 (arm-*-netbsd*): Likewise.
587 * emulparams/armelfb_nbsd.sh: New file.
589 2002-05-18 Tom Rix <trix@redhat.com>
591 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
594 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
596 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
597 * Makefile.in: Regenerate.
598 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
600 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
602 * emulparams/avr1.sh: New file.
603 * emulparams/avr2.sh: New file.
604 * emulparams/avr3.sh: New file.
605 * emulparams/avr4.sh: New file.
606 * emulparams/avr5.sh: New file.
607 * scripttempl/avr.sc: New file.
609 2002-05-15 Alan Modra <amodra@bigpond.net.au>
611 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
612 (lang_place_orphans): Abort if just_syms_flag.
614 2002-05-10 Tom Rix <trix@redhat.com>
616 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
617 architecture and machine information in the output bfd.
618 (gld*_before_parse): Remove old arch and machine code.
619 (choose_target): Rename to gld*_choose_target.
620 (rtld): Change type to int.
621 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
622 objects in XCOFF archives.
623 * ldfile.h: Update copyright date.
625 2002-05-10 Jakub Jelinek <jakub@redhat.com>
627 * ldmain.c (main): Enable -z combreloc by default.
629 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
631 * Makefile.am: Honour DESTDIR.
632 * Makefile.in: Regenerate.
634 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
636 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
637 (lang_enter_overlay): Remove the last two parameters.
638 (lang_leave_overlay): Take them here instead.
639 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
640 (section): Pass LMA and crossref flag to lang_leave_overlay rather
641 than lang_enter_overlay.
642 * ldlang.c (lang_memory_region_lookup): Return null for null names.
643 (lang_output_section_statement_lookup): Initialize update_dot_tree.
644 (lang_size_sections_1): Evaluate it.
645 (lang_leave_output_section_statement): Rework LMA lookup.
646 (overlay_lma, overlay_nocrossrefs): Remove.
647 (lang_enter_overlay): Remove LMA and crossref arguments.
648 (lang_enter_overlay_section): Don't set the LMA here.
649 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
650 assignment to the last section's update_dot_tree. Unconditionally
651 use the load and run-time regions specified in the OVERLAY statement.
652 Likewise the first section's LMA. Only set the other sections' LMAs
653 when no load region is given.
655 2002-05-06 Nick Clifton <nickc@redhat.com>
657 * po/sv.po: New translation.
659 2002-05-04 Alan Modra <amodra@bigpond.net.au>
661 * emultempl/hppaelf.em (build_section_lists): New function.
662 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
663 and build_section_lists.
665 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
667 * ld.h: Fix formatting.
669 * ldfile.c: Likewise.
670 * ldlang.c: Likewise.
671 * ldmain.c: Likewise.
672 * lexsup.c: Likewise.
673 * pe-dll.c: Likewise.
675 2002-05-02 Alan Modra <amodra@bigpond.net.au>
677 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
678 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
679 (build_section_lists): Do output_section tests here.
681 2002-04-30 Tom Rix <trix@redhat.com>
683 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
685 2002-05-01 Alan Modra <amodra@bigpond.net.au>
687 Long branch stubs, multiple stub sections.
688 * emultempl/ppc64elf.em: Include ldctor.h.
689 (stub_file): New var.
690 (group_size): New var.
691 (ppc_create_output_section_statements): New function.
692 (struct hook_stub_info): New.
693 (hook_in_stub): New function.
694 (ppc_add_stub_section): New function.
695 (ppc_layout_sections_again): New function.
696 (build_section_lists): New function.
697 (gld${EMULATION_NAME}_finish): Rewrite.
698 (real_func): New var.
699 (ppc_for_each_input_file_wrapper): New function.
700 (ppc_lang_for_each_input_file): New function.
701 (lang_for_each_input_file): Define.
702 (PARSE_AND_LIST_PROLOGUE): Define.
703 (PARSE_AND_LIST_LONGOPTS): Define.
704 (PARSE_AND_LIST_OPTIONS): Define.
705 (PARSE_AND_LIST_ARGS_CASES): Define.
706 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
708 2002-04-30 Tom Rix <trix@redhat.com>
710 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
711 -blibpath, -bnolibpath support.
713 2002-04-30 Mark Mitchell <mark@codesourcery.com>
715 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
716 (eelf32ppcwindiss.c): New target.
717 * Makefile.in: Regenerated.
718 * configure.tgt: Add support for powerpc-*-windiss.
719 * emulparams/elf32ppcwindiss.sh: New file.
721 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
723 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
724 * ldexp.c (exp_print_token): Add "infix_p" argument.
725 (exp_print_tree): Update accordingly.
727 2002-04-28 Alan Modra <amodra@bigpond.net.au>
729 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
730 * Makefile.in: Regenerate.
731 * mpw-elfmips.c: Delete.
732 * mpw-eppcmac.c: Delete.
734 * mpw-idtmips.c: Delete.
736 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
738 * emulparams/shelf32.sh (MACHINE): Now sh5.
740 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
742 * ldgram.y: Fix syntax warning.
744 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
746 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
747 to prevent "-n" from being taken as an abbreviation for
748 "--no-pipeline-knowledge".
750 2002-04-08 Alan Modra <amodra@bigpond.net.au>
752 * ldlang.c (lang_size_sections_1): Don't complain about
753 SEC_NEVER_LOAD sections having no memory region specified.
755 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
757 2002-04-07 matthew green <mrg@redhat.com>
759 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
761 2002-04-04 Alan Modra <amodra@bigpond.net.au>
763 * dep-in.sed: Cope with absolute paths.
764 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
766 * Makefile.in: Regenerate.
768 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
770 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
772 2002-04-03 Jakub Jelinek <jakub@redhat.com>
774 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
775 is smaller than maximum, round dot up to common page boundary.
777 2002-03-28 Alan Modra <amodra@bigpond.net.au>
779 * configure.host: Set up for generic hosts first, then tweak as
780 necessary in more specific targets.
781 (HOSTING_LIBS): Include libgcc_eh.a if found.
783 2002-03-23 Andreas Jaeger <aj@suse.de>
785 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
787 2002-03-21 Alan Modra <amodra@bigpond.net.au>
789 * Makefile.am: Run "make dep-am".
790 * Makefile.in: Regenerate.
792 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
794 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
796 2002-03-20 Alan Modra <amodra@bigpond.net.au>
798 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
799 add the symbol to the linker hash table immediately.
800 (lang_place_undefineds): Split symbol creation out..
801 (insert_undefined): ..to here.
803 2002-03-18 David O'Brien <obrien@FreeBSD.org>
805 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
806 the contents of the buffer returned from basename function will are
807 getting overwritten while still being used.
809 2002-03-18 Jan Hubicka <jh@suse.cz>
810 Andreas Jaeger <aj@suse.de>
811 Andreas Schwab <schwab@suse.de>
813 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
814 * elf_x86_64.sh (ARCH): Set to i386:x86-64
815 set libraries to default to lib64 paths.
817 2002-03-18 Tom Rix <trix@redhat.com>
819 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
820 * configure.tgt : Same.
821 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
822 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
823 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
824 emulation parameters for better -b32, -b64 support.
825 * emulparms/aixrs6.sh : Same.
826 * emulparms/ppcmacos.sh : Same.
827 * emultempl/aix.em (choose_target) : Use new emulation parameters
828 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
829 * Makefile.in : Regenerate.
831 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
833 * po/fr.po: Updated version.
835 2002-03-18 Alan Modra <amodra@bigpond.net.au>
837 * ldmain.c (main): Move .text readonly flag fudges from here..
838 * ldlang.c (lang_process): ..to here.
840 2002-03-14 Alan Modra <amodra@bigpond.net.au>
842 * ldlang.c (lang_check): Remove the word size check added in last
843 change. Treat emitrelocations case as for relocatable links.
845 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
847 * po/fr.po: Updated version.
849 2002-03-13 Alan Modra <amodra@bigpond.net.au>
851 * ldlang.c (lang_check): Do relocatable link checks first, so that
852 warn_mismatch can't override. Check compatible and word size too.
854 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
856 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
858 2002-03-05 Jakub Jelinek <jakub@redhat.com>
860 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
863 2002-03-04 H.J. Lu <hjl@gnu.org>
865 * scripttempl/elf.sc: Put .preinit_array, .init_array and
866 .fini_array in the data segment.
868 2002-03-04 Alan Modra <amodra@bigpond.net.au>
870 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
872 2002-03-01 David Mosberger <davidm@hpl.hp.com>
874 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
875 .init_array, and .fini_array.
877 2002-02-20 Andreas Schwab <schwab@suse.de>
879 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
880 .IA64_unwind* in a relocatable link.
882 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
884 * NEWS: Mark 2.12 branch.
886 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
888 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
889 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
891 2002-02-18 Tom Rix <trix@redhat.com>
893 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
894 (gld*_before_allocation): Same.
895 (gld*_create_output_section_statements): Generate
896 __rtinit if run time linking. Add librtl.a to the link.
897 (gld*_read_file): Clean.
899 2002-02-18 Alan Modra <amodra@bigpond.net.au>
901 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
903 2002-02-18 David O'Brien <obrien@FreeBSD.org>
905 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
906 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
907 and eelf64alpha_fbsd.
908 * Makefile.in: Regenerate.
909 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
910 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
911 use a FreeBSD-specific emulation rather than the psABI one.
912 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
913 for all FreeBSD ELF systems.
914 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
916 * emulparams/elf32ppc_fbsd.sh: Likewise.
917 * emulparams/elf64_ia64_fbsd.sh: Likewise.
918 * emulparams/elf64_sparc_fbsd.sh: Likewise.
919 * emulparams/elf64alpha_fbsd.sh: Likewise.
920 * emulparams/elf_i386_fbsd.sh: Likewise.
921 * emulparams/elf_x86_64_fbsd.sh: Likewise.
923 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
925 * po/tr.po: Updated version.
927 2002-02-18 Alan Modra <amodra@bigpond.net.au>
929 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
932 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
934 * emultempl/mmo.em (mmo_after_open): Don't call
935 _bfd_mmix_check_all_relocs when producing ELF output.
937 2002-02-15 Richard Henderson <rth@redhat.com>
939 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
940 definition. Emit a unop+nop pair.
942 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
944 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
945 for presence of .MMIX.reg_contents.linker_allocated before early
948 * NEWS: Mention support for MMIX.
950 2002-02-15 Alan Modra <amodra@bigpond.net.au>
952 Support arbitrary length fill patterns.
953 * ld.texinfo (Output Section Fill): Describe fill expressions.
954 (FILL): Refer to the above.
955 * ldexp.h (etree_value_type): Add "str" field.
956 (union etree_union): Add "str" to "value" struct.
957 (exp_bigintop): Declare.
958 (exp_get_fill): Declare.
959 * ldexp.c: Include "safe-ctype.h".
960 (exp_intop): Set value.str to NULL.
961 (exp_bigintop): New function.
962 (new_rel): Pass in "str", and set new.str from it.
963 (new_rel_from_section): Set new.str to NULL.
964 (fold_name): Adjust calls to new_rel.
965 (exp_fold_tree): Likewise.
966 (exp_get_fill): New function.
967 * ldgram.y (struct big_int bigint, fill_type *fill): New.
968 (INT): Returns a "bigint". Adjust all code handling INTs.
969 (fill_opt): Returns a "fill".
970 (fill_exp): Split out of fill_opt, use for FILL.
971 * ldlang.h (struct _fill_type): New.
972 (fill_type): Move typedef to ldexp.h.
973 (lang_output_section_statement_type): "fill" is now a pointer.
974 (lang_fill_statement_type): Likewise.
975 (lang_padding_statement_type): Likewise.
976 (lang_add_fill): Now takes a "fill_type *" param.
977 (lang_leave_output_section_statement): Likewise.
978 (lang_do_assignments): Likewise.
979 (lang_size_sections): Likewise.
980 (lang_leave_overlay_section): Likewise.
981 (lang_leave_overlay): Likewise.
982 * ldlang.c: Include ldgram.h after ldexp.h.
983 (lang_output_section_statement_lookup): Adjust for fill_type change.
984 (print_fill_statement): Likewise.
985 (print_padding_statement): Likewise.
986 (insert_pad): Now takes a "fill_type *" arg.
987 (size_input_section): Likewise.
988 (lang_size_sections_1): Likewise.
989 (lang_size_sections): Likewise.
990 (lang_do_assignments): Likewise.
991 (lang_add_fill): Likewise.
992 (lang_leave_output_section_statement): Likewise.
993 (lang_leave_overlay_section): Likewise.
994 (lang_leave_overlay): Likewise.
995 Adjust all callers of the above function.
996 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
997 starting with "0X" as well as "0x". Return bigint.str for hex
998 numbers starting with "0x" or "0X", zero bigint.str otherwise.
999 Always use base 16 for numbers starting with "$".
1000 * ldmain.c: Include ldgram.h after ldexp.h.
1001 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1002 of bfd_fill_link_order.
1003 * pe-dll.c: Adjust lang_do_assignments calls.
1004 * emultempl/elf32.em: Likewise.
1005 * emultempl/hppaelf.em: Likewise.
1006 * emultempl/ppc64elf.em: Likewise.
1007 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1008 lang_add_assignment call.
1009 * emultempl/pe.em: Likewise.
1011 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1013 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1014 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1015 the pattern in question is not a regexp.
1016 * ldlang.c: Likewise.
1017 * ldlang.h: Likewise.
1018 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1020 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1022 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1023 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1024 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1025 * ldexp.c (exp_data_seg): New variable.
1026 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1027 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1028 (exp_fold_tree): Handle DATA_SEGMENT_END.
1029 Pass allocation_done when recursing instead of hardcoding
1030 lang_allocating_phase_enum.
1031 * ldexp.h (exp_data_seg): New.
1032 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1033 (lang_size_sections): New.
1034 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1035 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1036 if COMMONPAGESIZE is defined.
1037 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1038 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1039 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1040 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1041 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1044 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1046 * Makefile.in: Regenerate.
1048 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1050 * lexsup.c: Remove strtoul declaration.
1052 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1054 * ldmain.c: Add prototype for main ().
1055 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1056 * emultempl/lnk960.em (lnk960_choose_target): Function should
1059 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1061 * ldlang.c (entry_section): New initialised variable.
1062 (lang_finish): Use it.
1063 * ldlang.h (entry_section): Declare.
1064 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1065 entry_section to ".opd".
1067 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1069 * ld.texinfo (Options): Add back in -nostdlib documentation,
1070 which had been inadvertently removed.
1072 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1074 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1075 register section vma to a sane value after emitting error. Make
1076 fatal conditions cause program exit when emitting message.
1078 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1080 * configure.tgt: Add or32-*-rtems target.
1082 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1084 Contribute sh64-elf.
1085 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1086 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1087 in OTHER_RELOCATABLE_SECTIONS.
1088 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1089 * emulparams/shelf32.sh (STACK_ADDR): Define.
1090 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1091 (OTHER_SECTIONS): this. Removed stack settings.
1092 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1093 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1094 2001-03-12 DJ Delorie <dj@redhat.com>
1095 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1096 relaxing if any shmedia or mixed sections are found.
1097 2001-03-07 DJ Delorie <dj@redhat.com>
1098 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1099 einfo. Gracefully decline to output to non-elf formats.
1100 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1101 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1102 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1103 * emulparams/shelf32.sh: Ditto.
1104 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1105 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1107 2001-01-10 Ben Elliston <bje@redhat.com>
1108 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1109 non-portable shell constructs. From Hans-Peter Nilsson.
1110 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1111 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1112 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1113 dependencies to the shell script include chain.
1114 * Makefile.in: Regenerate.
1115 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1116 * emultempl/sh64elf.em: Update and tweak comments.
1117 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1118 make a .cranges section SEC_IN_MEMORY.
1119 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1120 * emultempl/sh64elf.em
1121 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1122 .cranges section found to be necessary; continue and set stored
1123 section contents flags for sections with non-mixed contents.
1124 Use a struct sh64_section_data container and sh64_elf_section_data
1125 to store contents-type flags.
1126 Remove unused update of "isec".
1127 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1128 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1129 access contents-type flags. Assert that the associated container
1130 is initialized. Use that container, not elf_gp_size, to hold size
1131 of linker-generated cranges contents.
1132 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1133 * emultempl/sh64elf.em
1134 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1135 there's already a .cranges section. When section flag difference
1136 is found, don't NULL-check cranges a second time. Tweak comments.
1137 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1138 merging, not max size, as size of ld-generated .cranges contents.
1139 Don't set ELF section flags in output section. When checking for
1140 needed .cranges descriptors, don't use a variable; compare
1141 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1143 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1144 * emultempl/sh64elf.em: New file.
1145 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1146 * Makefile.in: Regenerate.
1147 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1148 (OTHER_RELOCATING_SECTIONS): Ditto.
1149 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1150 * emulparams/shlelf32.sh: Stub out all settings except
1151 OUTPUT_FORMAT. Source shelf32.sh.
1152 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1153 OTHER_RELOCATING_SECTIONS.
1154 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1155 * emulparams/shlelf64.sh: Stub out all settings except
1156 OUTPUT_FORMAT. Source shelf64.sh.
1157 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1158 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1160 (DATA_START_SYMBOLS): Define, provide ___data.
1161 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1162 for consecutive .data section.
1163 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1164 section after .data section.
1165 * emulparams/shlelf64.sh: Ditto.
1166 * emulparams/shelf32.sh: Ditto.
1167 (ALIGNMENT): Define to 8.
1168 * emulparams/shelf32.sh: Ditto.
1169 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1170 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1171 built-in linker scripts.
1172 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1173 * emulparams/shlelf64.sh: New.
1174 * emulparams/shelf64.sh: New.
1175 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1177 * Makefile.am: Add support for shlelf64 and shelf64.
1178 * Makefile.in: Regenerate.
1179 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1180 * configure.tgt (sh64-*-elf*): Add shelf as default.
1181 Add shlelf to targ_extra_emuls.
1182 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1183 * emulparams/shelf32.sh: New file.
1184 * emulparams/shlelf32.sh: New file.
1185 * Makefile.am: Add support for shlelf32 and shelf32.
1186 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1187 * Makefile.in: Regenerate.
1189 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1191 * ldlang.c (lang_reset_memory_regions): Rename from
1192 reset_memory_regions. Change all callers. Make public.
1193 * ldlang.h (lang_reset_memory_regions): Prototype.
1194 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1195 lang_reset_memory_regions before lang_size_sections.
1196 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1197 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1199 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1201 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1202 arithmetic when checking for too many global registers.
1204 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1206 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1207 (ehppanbsd.c): New rule.
1208 * Makefile.in: Regenerate.
1209 * configure.tgt (hppa*-*-netbsd*): New target.
1210 * emulparams/hppalinux.sh: Add comment to check other files
1211 that source this file it is modified, and list which
1213 * emulparams/hppanbsd.sh: New file.
1215 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1217 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1220 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1222 Support on-demand global register allocation from
1223 R_MMIX_BASE_PLUS_OFFSET relocs.
1224 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1225 mmix_set_reg_section_vma. Call
1226 _bfd_mmix_finalize_linker_allocated_gregs.
1227 (mmix_before_allocation): New function.
1228 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1229 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1230 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1231 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1232 before .MMIX.reg_contents.
1233 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1234 (mmo_after_open): New function.
1235 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1236 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1237 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1239 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1241 * emulparams/or32.sh: New file.
1242 * emulparams/or32elf.sh: New file.
1243 * scripttempl/or32.sc: New file.
1244 * configure.tgt : Add support for or32.
1245 * configure: Regenerate
1246 * Makefile.am: Add support for or32.
1247 * Makefile.in: Regenerate.
1248 * NEWS: Mention support for or32.
1249 * po/ld.pot: Regenerate.
1251 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1252 Mitch Lichtenberg <mpl@broadcom.com>
1254 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1255 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1256 reloc creation (ld --embedded-relocs).
1258 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1260 * configure: Regenerated.
1262 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1264 * Makefile.am (install): Depend on install-info.
1265 * Makefile.in: Regenerate.
1267 2002-01-26 Christian Rose <menthos@menthos.com>
1269 * ldmain.c (main): Use full sentences to ease translation.
1271 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1273 * po/fr.po: Updated version.
1275 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1277 * po/es.po: Updated version.
1279 2002-01-25 Andreas Jaeger <aj@suse.de>
1281 * ldlex.l (yy_input): Correct error check.
1283 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1285 * ldmisc.c (demangle): Put back dots when string not demangled.
1287 2002-01-22 Richard Henderson <rth@redhat.com>
1289 * emulparams/elf64alpha.sh (NOP): Use unop.
1291 2002-01-21 Andreas Jaeger <aj@suse.de>
1293 * ldlex.l: Use fread instead of read.
1295 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1297 * configure.tgt (ia64-*-netbsd*): New target.
1299 2002-01-21 H.J. Lu <hjl@gnu.org>
1301 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1303 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1305 2002-01-18 Andreas Jaeger <aj@suse.de>
1307 * ldver.c (ldversion): Update year.
1309 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1311 * po/ld.pot: Regenerate.
1313 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1315 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1316 * Makefile.in: Regenerate.
1317 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1318 * emultempl/ppc64elf.em: New file.
1320 2002-01-15 DJ Delorie <dj@redhat.com>
1322 * scripttempl/pe.sc: Add support for constructor priorities.
1324 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1326 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1327 * emulparams/avr23xx.sh: Likewise.
1328 * emulparams/avr4433.sh: Likewise.
1329 * emulparams/avr44x4.sh: Likewise.
1330 * emulparams/avr85xx.sh: Likewise.
1331 * emulparams/avrmega103.sh: Likewise.
1332 * emulparams/avrmega161.sh: Likewise.
1333 * emulparams/avrmega603.sh: Likewise.
1334 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1336 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1338 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1339 archive is excluded.
1341 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1343 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1344 (eshelf_nbsd.c): New rule.
1345 (eshlelf_nbsd.c): New rule.
1346 * Makefile.in: Regenerate.
1347 * configure.tgt (sh*le-*-netbsdelf*): New target.
1348 (sh*-*-netbsdelf*): New target.
1349 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1350 * ld/emulparams/shelf_nbsd.sh: New emulation.
1351 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1353 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1355 * po/es.po: New file: Spanish translation.
1356 * configure.in (ALL_LINGUAS): Add es.
1357 * configure: Regenerate.
1359 2002-01-06 John Marshall <jmarshall@acm.org>
1361 * ld.texinfo: Note that --emit-relocs is currently only
1362 implemented for ELF.
1364 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1366 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1367 of bfd_section_list_remove and bfd_section_list_insert macros.
1368 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1369 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1371 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1373 * configure.tgt (x86_64-*-netbsd*): New target.
1375 2001-12-21 Tom Rix <trix@redhat.com>
1377 (gld*_create_output_section_statements): New function.
1378 For -binitfini support.
1379 * emultempl/aix.em (gld*_before_parse): Fix comment.
1380 * emultempl/aix.em (gld*_parse_args): Fix comment.
1382 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1384 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1386 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1388 * configure.tgt (arm-*-netbsdelf*): Add target.
1389 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1390 * emulparams/armelf_nbsd.sh: Added.
1391 * Makefile.am: Add rules for earmelf_nbsd.
1392 * Makefile.in: Regenerate.
1394 2001-12-19 Andreas Jaeger <aj@suse.de>,
1395 Susanne Oberhauser <froh@suse.de>
1397 * configure.host: Add rules for x86_64-*linux-gnu. Change
1398 s390x-linux entry to use gcc to report configuration, replace gcc
1399 with $CC in s390-linux
1401 2001-12-19 Andreas Jaeger <aj@suse.de>
1403 * ld.texinfo (VERSION): Fix markup.
1405 2001-12-18 matthew green <mrg@eterna.com.au>
1407 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1408 (m68kelfnbsd.c): New rule.
1409 * Makefile.in: Regenerate.
1410 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1411 (m68*-*-netbsd*4k*): .. this.
1412 (m68*-*-netbsdelf*): New target.
1413 (m68*-*-netbsd*): Also include ELF support.
1414 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1415 * emulparams/m68kelfnbsd.sh: New emulation.
1417 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1419 * ldgram.y (vers_node): Support anonymous version tags.
1420 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1421 tag is not defined together with non-anonymous versions.
1422 * ld.texinfo: Document it.
1424 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1426 * po/tr.po: New file: Turkish translation.
1427 * configure.in (ALL_LINGUAS): Add tr.
1428 * configure: Regenerate.
1430 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1432 * Makefile.am: Add rules for eelf64alpha_nbsd.
1433 * Makefile.in: Regenerate.
1434 * configure.tgt (alpha*-*-netbsd*): Set
1435 targ_emul to elf64alpha_nbsd.
1436 * emulparams/elf64alpha_nbsd.sh: Added.
1438 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1440 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1441 section_tail when fiddling with section list.
1442 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1443 broken into separate strings to make translation easier.
1444 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1445 fiddling with section list.
1446 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1448 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1450 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1452 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1454 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1456 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1458 * emultempl/elf32.em (finish): Supply output_bfd
1459 to bfd_elf*_discard_info.
1460 (OPTION_EH_FRAME_HDR): Define.
1461 (longopts): Add --eh-frame-hdr.
1462 (parse_args): Handle it.
1463 (list_options): Add --eh-frame-hdr to help.
1464 * emultempl/hppaelf.em (finish): Supply output_bfd
1465 to bfd_elf*_discard_info.
1466 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1468 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1470 * lexsup.c (parse_args): Don't pass shortopts to second call to
1471 getopt functions. Restore optind rather than decrementing before
1472 second call. Remove errind as it now duplicates last_optind.
1474 2001-12-11 Christopher Faylor <cgf@redhat.com>
1476 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1478 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1479 Richard Henderson <rth@redhat.com>
1481 * Makefile.am: Add support for xstormy16.
1482 * configure.tgt: Add support for xstormy16.
1483 * Makefile.in: Regenerate.
1484 * emulparams/elf32xstormy16.sh: New file.
1485 * scripttempl/xstormy16.sc: New file.
1487 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1489 * Makefile.in (LIB_PATH): Make configurable.
1490 (GENSCRIPTS): Set LIB_PATH in environment.
1491 * configure.in: Substitute LIB_PATH.
1492 * configure: Regenerate.
1493 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1494 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1496 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1498 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1499 describing the -N option so that it is easier to translate into
1502 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1504 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1505 statements describing a single option with a single, newline
1506 escaped fprintf. This allows better translation into other
1509 * ldmain.c (add_archive_element): Combine multiple strings
1510 into a single string to permit better translation into other
1513 2001-12-05 Tom Rix <trix@redhat.com>
1515 * Makefile.am: Remove eaixppc64.
1516 * Makefile.in: Regenerate.
1518 2001-12-04 Tom Rix <trix@redhat.com>
1520 * emultempl/aix.em (choose_target): Change default target to
1521 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1523 (gld*_read_file): Fix typo.
1524 (change_symbol_mode): Add prototype.
1527 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1528 * emulparams/aixrs6.sh : Same.
1529 * emulparams/ppcmacos.sh : Same.
1530 * emulparams/aixppc64.sh : Delete file.
1531 * emultempl/aix.em : Formatting changes.
1533 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1535 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1536 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1538 (OTHER_END_SYMBOLS): Fix formatting.
1539 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1540 (OTHER_END_SYMBOLS): Fix formatting.
1542 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1544 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1546 2001-12-02 Tom Rix <trix@redhat.com>
1548 * configure.tgt : Remove eaixppc64 emulations.
1549 * Makefile.in : Remove eaixppc64.c
1550 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1551 (ldemul_default_target): Same.
1552 * emultempl/gld960.em (gld960_choose_target): Same.
1553 * emultempl/gld960c.em (gld960_choose_target): Same.
1554 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1555 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1556 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1557 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1558 * emultempl/aix.em (choose_target): New function. Handle emulation of
1561 2001-11-27 H.J. Lu <hjl@gnu.org>
1563 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1564 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1565 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1566 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1567 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1568 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1569 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1570 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1572 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1575 (REL_SDATA): Likewise.
1576 (REL_SBSS): Likewise.
1577 (REL_SDATA2): Likewise.
1578 (REL_SBSS2): Likewise.
1579 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1582 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1584 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1586 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1588 2001-11-22 H.J. Lu <hjl@gnu.org>
1590 * Makefile.in: Regenerated with automake based on automake
1591 1.4-8 in RedHat 7.1.
1593 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1595 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1596 (config.status): Delete rule.
1597 Add extra dependencies to cover sourced emulparams files.
1598 * Makefile.in: Regenerate.
1600 * scripttempl/elf.sc: Order <section>, <section>.* and
1601 corresponding linkonce sections as seen in input files.
1602 Formatting fixes. Zero vma of all sections if not relocating.
1603 (STACK): Define and insert if STACK_ADDR defined.
1604 (OTHER_RELOCATING_SECTIONS): Delete.
1605 (OTHER_END_SYMBOLS): Define.
1606 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1607 (OTHER_READWRITE_SECTIONS): Likewise.
1608 (OTHER_GOT_SECTIONS): Likewise.
1609 (OTHER_SDATA_SECTIONS): Likewise.
1610 (OTHER_BSS_SECTIONS): Likewise.
1611 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1612 (OTHER_READWRITE_SECTIONS): Likewise.
1613 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1614 (OTHER_READWRITE_SECTIONS): Likewise
1616 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1617 (STACK_ADDR): Define.
1618 * emulparams/armelf_oabi.sh: As for armelf.sh.
1619 * emulparams/elf32mcore.sh: As for armelf.sh.
1620 * emulparams/h8300elf.sh: As for armelf.sh.
1621 * emulparams/mn10200.sh: As for armelf.sh.
1622 * emulparams/shelf.sh: As for armelf.sh.
1624 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1625 (OTHER_END_SYMBOLS): Define.
1626 * emulparams/m32relf.sh: As for elf32fr30.sh.
1627 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1628 * emulparams/h8300self.sh: As for elf32fr30.sh.
1630 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1631 defines with RELOCATING test.
1632 (OTHER_SDATA_SECTIONS): Likewise.
1633 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1634 (OTHER_END_SYMBOLS): ..this.
1635 * emulparams/crislinux.sh: As for criself.sh.
1637 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1639 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1640 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1641 normal and linkonce sections as seen in input files.
1642 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1643 (TEXT_DYNAMIC): Likewise.
1644 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1645 (OTHER_SDATA_SECTIONS): Likewise.
1646 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1647 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1648 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1649 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1650 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1651 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1652 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1653 sections as seen in input files.
1654 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1655 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1657 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1658 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1659 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1660 (OTHER_SECTIONS): Instead, use this..
1661 (OTHER_END_SYMBOLS): ..and this.
1663 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1664 * emulparams/elf32bsmip.sh: Likewise.
1665 * emulparams/elf32btsmip.sh: Likewise.
1666 * emulparams/elf32ebmip.sh: Likewise.
1667 * emulparams/elf32lmip.sh: Likewise.
1668 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1669 * emulparams/elf32lsmip.sh: Likewise.
1670 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1671 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1672 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1673 * emulparams/elf64btsmip.sh: Likewise.
1674 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1675 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1676 * emulparams/elf32ppclinux.sh: Likewise.
1677 * emulparams/elf32ppcsim.sh: Likewise.
1678 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1679 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1680 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1681 * emulparams/h8300self.sh: Likewise.
1682 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1683 * emulparams/sh.sh: Comment.
1684 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1685 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1686 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1688 2001-11-21 David Heine <dlheine@tensilica.com>
1689 Alan Modra <amodra@bigpond.net.au>
1691 * ldlang.c (map_input_to_output_sections): Replace "break"
1692 accidentally removed with 2001-08-03 change.
1693 (lang_gc_sections_1): Likewise.
1695 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1697 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1699 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1701 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1702 of false when calling lang_size_sections.
1703 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1705 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1707 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1708 function when LDEMUL_FINISH isn't set to the same name. Don't
1709 call ${LDEMUL_FINISH}.
1710 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1711 * emultempl/armelf.em (arm_elf_finish): Call
1712 gld${EMULATION_NAME}_finish.
1713 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1714 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1715 hppaelf_layout_sections_again if necessary.
1716 (need_laying_out): New var.
1717 (hppaelf_layaout_sections_again): Rename to
1718 hppaelf_layout_sections_again. Clear need_laying_out.
1719 (PARSE_AND_LIST_OPTIONS): Format text.
1721 2001-11-14 H.J. Lu <hjl@gnu.org>
1723 * emultempl/armelf.em (arm_elf_finish): Renamed from
1724 gld${EMULATION_NAME}_finish.
1725 (LDEMUL_FINISH): Set to arm_elf_finish.
1727 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1729 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1730 (struct ld_emulation_xfer_struct): Use it.
1732 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1734 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1735 additional symbols referenced by newer crt0.o files from HP.
1737 2001-11-12 Anthony Green <green@redhat.com>
1739 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1741 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1743 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1744 * Makefile.in: Regenerate.
1746 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1748 * ld.texinfo: Use @command for commands, @option for options.
1749 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1751 * Makefile.in: Rebuild.
1753 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1755 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1756 Add support for targets.
1758 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1760 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1761 * configure: Regernate.
1762 * po/fr.po: New file.
1763 * po/sv.po: New file.
1765 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1767 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1768 as little endian default and to support big endian.
1770 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1772 * ld.texinfo (Options): Document new option, -nostdlib.
1773 * lexsup.c (OPTION_NOSTDLIB): New definition.
1774 (ld_options): Add entry for "nostdlib".
1775 (parse_args): Handle OPTIONS_NOSTDLIB.
1776 * ldfile.c (ldfile_add_library_path): Don't add directories
1777 to the search path if they weren't specified on the command line
1778 and -nostdlib was specified.
1779 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1781 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1783 * lexsup.c (parse_args): Prevent infinite parsing loop when
1784 "-rpath.a" is specified on the command line.
1785 Replace calls to fprintf with calls to einfo.
1787 2001-10-31 John Marshall <jmarshall@acm.org>
1789 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1790 appear only once across all the linker scripts involved in a link
1791 invocation no longer applies. Make the documentation reflect
1794 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1796 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1798 (sh-*-linux*): Added targ_extra_libpath.
1800 2001-10-31 David Heine <dlheine@tensilica.com>
1802 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1803 for padding statements.
1805 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1807 * configure.tgt (mmix-*-*): New target.
1808 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1809 Add dependencies to match.
1810 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1811 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1812 scripttempl/mmo.sc: New files.
1813 * gen-doc.texi: @set MMIX.
1814 * ld.texinfo: Ditto.
1815 [MMIX] Add MMIX node.
1816 * Makefile.in: Regenerate.
1818 2001-10-29 Kazu Hirata <kazu@hxi.com>
1820 * ldlang.c: Fix a comment typo.
1822 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1824 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1825 entries, and match *-*-linux*.
1827 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1829 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1830 with ldlex_script, ldlex_popstate.
1831 (ifile_p1): Likewise.
1832 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1834 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1835 to 1. Don't BEGIN(SCRIPT).
1836 (lex_redirect): Similarly.
1837 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1839 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1841 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1842 __EH_FRAME_END__ and accept eh frames into data section.
1843 Add ctor and dtor sections.
1845 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1847 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1848 (auto-export): Fix indentation.
1850 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1852 * pe-dll.c (autofilter_objectlist): Add startup objects
1854 (auto-export): Constify char * p.
1855 Extract file basename and use strcmp rather than ststr
1858 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1860 * ldmain.c (get_emulation): Improve comment about the handling
1863 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1865 * po/POTFILES.in: Regenerate.
1867 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1869 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1870 -z nocopyreloc and -z nocombreloc usage strings.
1872 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1874 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1877 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1879 * scripttempl/armaout.sc: Place .bss section after end of aligned
1880 data section to match behaviour of aout code in constructrion of
1883 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1885 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1886 startup files for mingw32 dlls to list.
1888 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1890 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1892 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1894 * configure.tgt (targ): Add arm9e-*-elf.
1896 2001-10-05 H.J. Lu <hjl@gnu.org>
1898 * genscripts.sh: Fix a typo in the last change.
1900 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1902 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1903 -z nocombreloc in usage.
1905 2001-10-03 Jim Blandy <jimb@redhat.com>
1907 * genscripts.sh: Include a comment at the top of each generated
1908 script, explaining its purpose.
1910 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1912 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1913 * NEWS: Mention -z nocopyreloc.
1914 * ld.texinfo (Options): Describe nocopyreloc.
1916 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1918 * configure: Regenerate.
1920 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1922 * ldver.h (ld_program_version): Remove declaration.
1923 * lexsup.c (parse_args): Move printing of copyright message..
1924 * ldver.c (ldversion): .. to here.
1925 Use BFD_VERSION_STRING in place of BFD_VERSION.
1926 (ld_program_version): Remove.
1927 * Makefile.am (Makefile): Depend on bfd/configure.in.
1929 * Makefile.in: Regenerate.
1931 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1933 * Makefile.am: Update dependencies with "make dep-am".
1934 * Makefile.in: Regenerate.
1936 2001-09-29 John Reiser <jreiser@BitWagon.com>
1938 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1939 * lexsup.c: Add --no-define-common commandline option.
1940 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1941 * ldlex.l: Likewise.
1942 * ld.h: Add command_line.inhibit_common_definition.
1943 * ldmain.c (main): Initialize.
1944 * ld.texinfo: Document.
1946 2001-09-29 Alan Modra <amodra@bigpond.net.au>
1948 * ldlang.c (section_already_linked): Remove assignment to kept_section.
1950 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1952 * ldmisc.c (USE_STDARG): Remove.
1953 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1958 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1959 declarations. Update copyright.
1961 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1963 * pe-dll.c: Remove obsoleted declaration of
1964 pe_get_data_import_dll_name.
1965 (pe_create_import_fixup): Fix thinko.
1967 * ld.texinfo(enable-auto-import): Clarify the explanation.
1969 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1971 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1972 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1973 DLL_SUPPORT controlled code.
1975 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1977 * emultempl/pe.em(pe_data_import_dll): Make static.
1978 (pe_get_data_import_dll_name): New accessor function.
1979 * pe-dll.c(pe_create_import_fixup): call
1980 pe_get_data_import_dll_name() from pe.em, instead of
1981 directly accessing pe_data_import_dll variable from pe.em.
1983 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1985 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1986 (def_file_add_directive): Use ISSPACE instead of isspace.
1987 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1988 isdigit/isxdigit/isalpha/isalnum.
1989 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1990 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1991 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1992 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1994 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1995 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1997 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1998 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1999 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2000 (ctor_prio): Use ISDIGIT instead of isdigit.
2001 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2002 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2003 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2005 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2006 (stricpy): Use TOLOWER instead of isupper/tolower.
2007 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2008 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2009 (lex_warn_invalid): Use ISPRINT instead of isprint.
2010 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2011 (main): For gettext, also set the LC_CTYPE locate facet.
2012 (add_keepsyms_file): Use ISSPACE instead of isspace.
2013 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2014 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2015 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2016 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2017 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2018 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2019 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2020 (quoteput): Use ISSPACE instead of isspace.
2021 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2024 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2026 * deffilep.y (def_stash_module): Constify "name" param.
2028 * pe-dll.c: Replace CONST with const throughout.
2029 (quick_symbol): Constify "n1", "n2", "n3" params.
2030 (make_singleton_name_thunk): Constify "import" param. Make
2031 "buffer_len" a size_t.
2032 (make_import_fixup_entry): Constify "name", "fixup_name",
2033 "dll_symname" params.
2034 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2035 (pe_get32): Likewise.
2036 (pe_implied_import_dll): Likewise.
2038 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2039 (sort_by_section_name): Likewise.
2041 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2042 (make_import_fixup): Cast printf arg, rel->address to long rather
2044 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2046 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2048 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2049 defines BufferSize. Increase buffer size by one.
2051 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2053 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2055 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2057 * configure.tgt: Add arm-openbsd target.
2059 2001-09-12 H.J. Lu <hjl@gnu.org>
2061 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2063 (ALL_64_EMULATIONS): Here.
2064 * Makefile.in: Regenerated.
2066 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2068 * emultempl/pe.em(make_import_fixup): change signature to
2069 take asection as well as arelec; we need this for proper
2070 error reporting. Only call pe_create_import_fixup() if
2071 there is no attempt to add a constant addend to the reloc;
2072 otherwise, report error condition.
2073 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2074 since final argument is a pointer to make_import_fixup().
2075 Change call to cb() to match make_import_fixup() signature.
2076 (make_import_fixup_mark): make buffer_len unsigned.
2077 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2079 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2081 * ld.texinfo: add verbose documentation for auto-import
2082 direct-addressing workaround, to compliment the terse
2085 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2087 * scripttempl/v850.sc: Add gcc_except_table sections.
2089 2001-09-11 Jeffrey A Law (law@cygnus.com)
2091 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2092 * emulparams/h8300self.sh: Similarly.
2094 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2096 * ld.texinfo (Options, --stack): Correct default value for stack
2099 2001-09-05 Tom Rix <trix@redhat.com>
2101 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2103 2001-09-03 Andreas Jaeger <aj@suse.de>
2105 * emultempl/beos.em: Declare prototypes for comparions functions,
2108 2001-09-02 Andreas Jaeger <aj@suse.de>
2110 * emultempl/aix.em: Add missing prototype.
2111 * emultempl/lnk960.em: Likewise.
2112 * emultempl/vanilla.em: Likewise.
2113 * emultempl/armcoff.em: Likewise.
2114 * emultempl/armelf_oabi.em: Likewise.
2115 * emultempl/beos.em: Likewise.
2116 * emultempl/gld960c.em: Likewise.
2117 * emultempl/gld960.em: Likewise.
2119 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2120 for prototype declaration.
2122 2001-08-31 Eric Christopher <echristo@redhat.com>
2123 Jason Eckhardt <jle@redhat.com>
2125 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2127 2001-08-31 Andreas Jaeger <aj@suse.de>
2129 * emultempl/pe.em: Add missing prototypes.
2130 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2131 pe_find_data_imports.
2132 (pr_sym): Add unused attribute.
2134 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2136 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2137 default from coff to elf.
2139 2001-08-29 Jeff Law <law@redhat.com>
2141 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2143 * emulparams/h8300self.sh: Similarly.
2145 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2147 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2149 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2150 * configure.tgt (h8300-*-elf*): New case.
2151 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2152 * emulparams/h8300self.sh: New file.
2153 * Makefile.in: Regenerated.
2155 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2157 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2160 2001-08-27 Linus Nordberg <linus@swox.com>
2161 Alan Modra <amodra@bigpond.net.au>
2163 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2164 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2166 * Makefile.in: Regenerate.
2167 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2168 entries to correct alphabetical position.
2169 * emulparams/elf64ppc.sh: New.
2170 * emulparams/elf64lppc.sh: New.
2172 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2174 * ldmain.c (main): Declare BSIZE as static.
2176 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2178 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2179 into .rel.dyn resp. .rela.dyn if combreloc.
2180 (get_script): If .x linker script is equal to .xn, only put it
2181 once into the binary.
2182 Add .xc and .xsc scripts.
2183 (parse_args): Handle -z combreloc and -z nocombreloc.
2184 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2185 For .xc and .xsc scripts put all .rel* or .rela* input sections
2186 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2187 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2189 Strip trailing whitespace from script.
2190 Generate .xc and .xsc scripts if requested.
2191 * ldmain.c (main): Initialize link_info.combreloc and
2192 link_info.spare_dynamic_tags.
2193 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2194 (ld_options): Add --spare-dynamic-tags option.
2195 (parse_args): Likewise.
2196 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2197 * ldint.texinfo: Document .xc and .xsc linker scripts.
2198 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2200 2001-08-22 H.J. Lu <hjl@gnu.org>
2202 * emulparams/elf32fr30.sh: Add a newline.
2204 2001-08-21 Andreas Jaeger <aj@suse.de>
2206 * deffilep.y: Add missing prototypes.
2207 * pe-dll.c: Likewise.
2209 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2211 * ldlang.c (insert_pad): Fix typos in last patch.
2213 * ldlang.c: When traversing lang_statement_union_type lists,
2214 consistently use "header.next" rather than "next".
2215 * mpw-eppcmac.c: Likewise.
2216 * emultempl/beos.em: Likewise.
2217 * emultempl/hppaelf.em: Likewise.
2218 * emultempl/pe.em: Likewise.
2219 * ldlang.h (union lang_statement_union): Remove "next" field.
2221 * ldlang.c (insert_pad): Use offsetof macro.
2222 (lang_size_sections): Always neuter padding statements.
2223 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2225 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2226 passed to lang_size_sections.
2227 (pe_exe_fill_sections): Likewise.
2228 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2229 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2231 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2233 * emultempl/aix.em: Formatting fixes.
2235 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2237 * ldlang.c (insert_pad): Make use of an existing pad statement if
2238 available. Move code calculating alignment, adjusting section
2239 alignment power, and adjusting dot to ..
2240 (size_input_section): .. here. Remove unused relax param.
2241 (lang_size_sections): Change boolean `relax' param to boolean *.
2242 Adjust call to size_input_section. Make use of insert_pad to
2243 place pad after the assignment statement. If relaxing, zap
2245 (reset_memory_regions): Reset output_bfd section sizes too.
2246 (relax_again): Move to..
2247 (lang_process): ..here. Adjust call to lang_size_sections, and
2248 remove duplicated code.
2249 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2251 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2253 * ld.texinfo: Document that fill values now use the four least
2255 * emulparams/elf32fr30.sh (NOP): Update.
2256 * emulparams/elf32mcore.sh: Likewise.
2257 * emulparams/elf64_s390.sh: Likewise.
2258 * emulparams/elf_i386.sh: Likewise.
2259 * emulparams/elf_i386_be.sh: Likewise.
2260 * emulparams/elf_i386_chaos.sh: Likewise.
2261 * emulparams/elf_i386_ldso.sh: Likewise.
2262 * emulparams/elf_s390.sh: Likewise.
2263 * emulparams/elf_x86_64.sh: Likewise.
2264 * emulparams/i386moss.sh: Likewise.
2265 * emulparams/i386nw.sh: Likewise.
2266 * emulparams/m68kelf.sh: Likewise.
2267 * scripttempl/elf.sc: Update NOP comment.
2268 * scripttempl/elfi370.sc: Likewise.
2269 * scripttempl/elfm68hc11.sc: Likewise.
2270 * scripttempl/elfm68hc12.sc: Likewise.
2271 * scripttempl/nw.sc: Likewise.
2273 2001-08-15 Tom Rix <trix@redhat.com>
2275 * ldgram.y (saved_script_handle): Initialize to NULL.
2276 * ldmain.c (main): Change check on saved_script_handle.
2278 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2280 * emultempl/elf32.em: Formatting fixes.
2281 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2282 looking at sec->owner.
2283 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2284 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2285 unused code, and reorganize orphan section placement code.
2287 * ldlang.c (wild_doit): Rename to lang_add_section.
2288 * ldlang.h: Here too.
2289 * mpw-elfmips.c: And here.
2290 * emultempl/beos.em: And here.
2291 * emultempl/elf32.em: And here.
2292 * emultempl/hppaelf.em: And here.
2293 * emultempl/pe.em: And here.
2295 2001-08-13 Richard Henderson <rth@redhat.com>
2297 * emultempl/needrelax.em: New file.
2298 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2299 * Makefile.am (eelf64_ia64.c): Depend on it.
2300 * Makefile.in: Rebuild.
2302 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2304 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2305 output_section is set non-NULL.
2307 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2308 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2309 needlessly create an output_section_statement. Treat a correctly
2310 named output_section_statement with NULL bfd_section as compatible.
2312 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2314 * emultempl/generic.em: Support EXTRA_EM_FILE.
2315 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2316 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2317 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2318 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2319 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2320 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2321 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2322 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2323 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2324 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2326 2001-08-12 Richard Henderson <rth@redhat.com>
2328 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2329 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2330 scripttempl/v850.sc: Keep .jcr data.
2332 2001-08-12 H.J. Lu <hjl@gnu.org>
2333 Andrew Haley <aph@cambridge.redhat.com>
2334 Nick Clifton <nickc@redhat.com>
2336 * ldgram.y (had_script): Change name to saved_script_handle.
2337 Change type to file handle.
2338 * ld.h (had_script): Rename and retype.
2339 * ldfile.c (ldfile_open_command_file): Save the file handle
2340 used in saved_script_handle.
2341 * lexsup.c (parse_args): Do not allow -c option to alter
2342 saved_script_handle.
2343 * ldmain.c (main): Print out the linker script used if
2344 --verbose is given. Check saved_script_handle to obtain the
2345 external linker script used, or if NULL, dump the builtin
2347 * ld.texinfo: Document that --verbose now dumps the linker
2348 script used, regardless of whether it was an internal or an
2351 2001-08-10 Andreas Jaeger <aj@suse.de>
2353 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2355 * configure: Regenerate.
2357 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2359 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2361 * scripttempl/elf.sc: Move non-text .dynamic section before
2362 .plt/.got/.sdata* group.
2363 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2364 (OTHER_SDATA_SECTIONS): Add.
2365 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2367 * emulparams/crislinux.sh: Likewise.
2368 * emulparams/elf32b4300.sh: Likewise.
2369 * emulparams/elf32bmip.sh: Likewise.
2370 * emulparams/elf32bmipn32.sh: Likewise.
2371 * emulparams/elf32bsmip.sh: Likewise.
2372 * emulparams/elf32btsmip.sh: Likewise.
2373 * emulparams/elf32ebmip.sh: Likewise.
2374 * emulparams/elf32elmip.sh: Likewise.
2375 * emulparams/elf32l4300.sh: Likewise.
2376 * emulparams/elf32lmip.sh: Likewise.
2377 * emulparams/elf32lsmip.sh: Likewise.
2378 * emulparams/elf32ltsmip.sh: Likewise.
2379 * emulparams/elf64bmip.sh: Likewise.
2380 * emulparams/elf64btsmip.sh: Likewise.
2381 * emulparams/elf64ltsmip.sh: Likewise.
2383 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2385 * genscripts.sh: Source the emulparams script before each output
2386 script is generated so that variables like `RELOCATING' may affect
2387 variables defined in the emulparams script.
2389 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2391 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2394 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2395 ie. iterate over wild_statement.section_list.
2396 (gld${EMULATION_NAME}_place_orphan): Likewise.
2398 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2400 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2401 .fini[0-4] sections used by _exit
2402 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2403 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2404 * scripttempl/elfm68hc11.sc: Likewise.
2406 2001-08-03 H.J. Lu <hjl@gnu.org>
2408 * emultempl/beos.em (init): Add the missing initialization.
2410 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2412 * ld.texinfo (Input Section Basics): Clarify ordering of output
2414 * ldlang.c (callback_t): Add wildcard_list param.
2415 (walk_wild_section): Remove "section" param. Rewrite for
2416 lang_wild_statement_type change. Remove unique_section_p test.
2417 (walk_wild_file): Remove "section" param.
2418 (walk_wild): Remove "section" and "file" params.
2419 (lang_gc_wild): Likewise.
2420 (wild): Likewise. Modify for lang_wild_statement_type change.
2421 (wild_sort): Likewise. Add "sec" param.
2422 (gc_section_callback): Likewise.
2423 (output_section_callback): Likewise. Do unique_section_p test.
2424 (map_input_to_output_sections): Modify call to wild.
2425 (lang_gc_sections_1): Likewise.
2426 (print_wild_statement): Modify for lang_wild_statement_type
2428 (lang_add_wild): Replace filename, filenames_sorted param with
2429 filespec. Replace section_name, sections_sorted,
2430 exclude_filename_list with section_list.
2431 * ldlang.h (lang_add_wild): Here too.
2432 (lang_wild_statement_type): Replace section_name, sections_sorted,
2433 and exclude_filename_list with section_list.
2434 * ldgram.y (current_file): Delete.
2435 (%union): Add wildcard_list.
2436 (file_NAME_list): Set type to wildcard_list. Build a linked list
2437 rather than calling lang_add_wild for each entry.
2438 (input_section_spec_no_keep): Call lang_add_wild here instead.
2439 * ld.h (struct wildcard_list): Declare.
2440 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2442 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2444 * ldmain.c (main): initialize link_info.pei386_auto_import
2445 * pe-dll.c: new tables for auto-export filtering
2446 (auto_export): change API, pass abfd for contextual filtering.
2447 Loop thru tables of excluded symbols instead of comparing
2450 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2452 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2453 static variable current_sec (static struct sec *). Add
2454 forward declaration for add_bfd_to_link.
2455 (process_def_file): Don't export undefined symbols. Do not
2456 export symbols starting with "_imp__". Call auto_export()
2458 (pe_walk_relocs_of_symbol): New function.
2459 (generate_reloc): add optional extra debugging
2460 (pe_dll_generate_def_file): eliminate extraneous initial blank
2462 (make_one): enlarge symtab to make room for __nm__ symbols
2463 (DATA auto-import support).
2464 (make_singleton_name_thunk): New function.
2465 (make_import_fixup_mark): New function.
2466 (make_import_fixup_entry): New function.
2467 (pe_create_import_fixup): New function.
2468 (add_bfd_to_link): Specify that 'name' argument is a CONST
2470 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2471 declare new functions pe_walk_relocs_of_symbol and
2472 pe_create_import_fixup.
2473 * emultempl/pe.em: add new options --enable-auto-import,
2474 --disable-auto-import, and --enable-extra-pe-debug.
2475 (make_import_fixup): New function.
2476 (pe_find_data_imports): New function.
2477 (pr_sym): New function.
2478 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2479 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2482 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2484 * ld.texinfo: add additional documentation for
2485 --export-all-symbols. Document --out-implib,
2486 --enable-auto-image-base, --disable-auto-image-base,
2487 --dll-search-prefix, --enable-auto-import, and
2488 --disable-auto-import.
2489 * ldint.texinfo: Add detailed documentation on auto-import
2492 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2494 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2497 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2499 * Makefile.am: Update dependencies with "make dep-am".
2500 * Makefile.in: Regenerate
2502 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2504 * ldcref.c (check_section_sym_xref): New function.
2505 (check_nocrossrefs): Call it.
2506 (check_nocrossref): Interate over h->refs here instead of..
2507 (check_refs): ..here. Pass in the symbol name, section, and bfd
2508 rather than hash_entry pointers.
2509 (struct check_refs_info): Keep symbol name rather than hash entry.
2511 (check_reloc_refs): Tweak for above changes in check_refs_info.
2512 Only report references to section syms when symname is NULL to
2513 prevent duplicate messages for the same reloc.
2515 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2517 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2518 available. Do not print NULL trees.
2519 (exp_print_token): Print unknown tokens with values > 126 as
2520 decimal values not ASCII characters.
2522 * ldlang.c (lang_leave_overlay): If a region is specified assign
2523 it to all sections inside the overlay unless they have been
2524 assigned to the own, non-default, memory region.
2526 * README: Add header for consistency with other README files.
2528 2001-07-14 H.J. Lu <hjl@gnu.org>
2530 * emultempl/elf32.em (output_prev_sec_find): Never return
2531 bfd_abs_section_ptr, bfd_com_section_ptr nor
2532 bfd_und_section_ptr.
2534 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2536 * Makefile.am (em32relf.c): Change dependency from generic.em to
2538 * Makefile.in: Regenerate.
2540 2001-07-14 matthew green <mrg@eterna.com.au>
2542 * configure.tgt (i386-*-netbsdelf*): New target.
2543 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2545 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2547 * emultempl/elf32.em (output_prev_sec_find): New.
2548 (place_orphan): Use it.
2550 2001-07-11 H.J. Lu <hjl@gnu.org>
2552 * ldmain.c (main): Fix typos in the last change.
2554 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2556 * ldmain.c (main): Disallow -F and -f without -shared.
2558 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2560 * emultempl/pe.em (after_open): Check for the output_bfd not
2561 having any coff_data structure allocated to it.
2563 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2565 * emultempl/elf32.em: Do not assuming that contents of the buffer
2566 returned from basename function will remain unchanged accross other
2569 2001-07-03 H.J. Lu <hjl@gnu.org>
2571 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2572 2001-07-03. It creates dynamic entries even for static binaries.
2574 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2576 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2577 (DYNAMIC): Use it to reserve few dynamic entries for
2580 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2582 * emulparams/hppa64linux.sh: New file.
2583 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2584 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2585 (ehppa64linux.c): Add rule to make it.
2587 * Makefile.in: Regenerate.
2589 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2591 * ld.texinfo (Options, -r): Mention restrictions when using
2592 different object formats.
2594 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2596 * ldlang.c (lang_check): Emit fatal error if relocatable link
2597 between different object flavours with relocations in input.
2599 2001-06-19 H.J. Lu <hjl@gnu.org>
2601 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2602 (--version-script): Mention the language support.
2604 2001-06-19 H.J. Lu <hjl@gnu.org>
2606 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2608 2001-06-18 H.J. Lu <hjl@gnu.org>
2610 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2611 (diststuff): Add $(MANS).
2612 * Makefile.in: Regenerated.
2616 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2618 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2619 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2620 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2621 * ld.h (args_type): Remove member export_dynamic. All users
2622 changed to use struct bfd_link_info member.
2624 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2625 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2626 * Makefile.in: Regenerate.
2628 2001-06-18 H.J. Lu <hjl@gnu.org>
2630 * ldlang.c (init_os): Add the newline to the einfo call.
2631 (lang_check): Likewise.
2632 (lang_do_version_exports_section): Likewise.
2634 2001-06-15 H.J. Lu <hjl@gnu.org>
2636 * lexsup.c (parse_args); Save optind to report unrecognized
2639 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2641 * ldlang.c (lang_check): Emit fatal error if relocatable link
2642 between different object flavours.
2644 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2645 Set new link_info member export_dynamic.
2646 * ldmain.c (main): Initialize new link_info member export_dynamic.
2648 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2650 * ldlang.c (walk_wild): Only call walk_wild_file if
2651 lookup_name returns something.
2652 (lookup_name): If load_symbols fails, return NULL.
2653 (load_symbols): Change to a boolean function.
2654 (open_input_bfds): If load_symbols fails then do not make the
2657 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2659 * ldlang.c (record_bfd_errors): Remove.
2661 * emultempl/aix.em: Fix copyright dates.
2663 2001-06-07 Andreas Jaeger <aj@suse.de>
2665 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2666 (TEXT_START_ADDR): Likewise.
2668 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2670 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2672 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2674 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2676 2001-05-31 H.J. Lu <hjl@gnu.org>
2678 * ldlang.c (open_input_bfds): Don't change the bfd error
2679 handler whilst loading symbols.
2681 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2683 * configure.tgt: Remove i370-mvs architecture, it is not currently
2686 2001-05-25 H.J. Lu <hjl@gnu.org>
2688 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2689 like emulparams/aixppc.sh.
2691 2001-05-25 H.J. Lu <hjl@gnu.org>
2693 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2694 setting of output_filename after bfd_scan_arch.
2695 * emultempl/pe.em: Likewise.
2697 2001-05-25 H.J. Lu <hjl@gnu.org>
2699 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2700 like emulparams/aixppc.sh.
2702 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2703 instead of ${srcdir}/emultempl/stringify.sed.
2705 2001-05-25 Timothy Wall <twall@oculustech.com>
2707 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2710 2001-05-25 Alan Modra <amodra@one.net.au>
2712 * configure.host: Replace linuxoldld with linux*oldld.
2713 * configure.tgt: Likewise.
2715 2001-05-24 H.J. Lu <hjl@gnu.org>
2717 * emultempl/stringify.sed: Removed again.
2719 2001-05-24 H.J. Lu <hjl@gnu.org>
2721 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2722 (gld${EMULATION_NAME}_before_parse): Initialize
2723 ldfile_output_architecture, ldfile_output_machine and
2724 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2725 * emultempl/beos.em: Likewise.
2726 * emultempl/elf32.em: Likewise.
2727 * emultempl/linux.em: Likewise.
2728 * emultempl/mipsecoff.em: Likewise.
2729 * emultempl/pe.em: Likewise.
2730 * emultempl/sunos.em: Likewise.
2732 2001-05-24 Tom Rix <trix@redhat.com>
2734 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2735 udate import file format.
2736 (change_symbol_mode) New, same
2737 (is_syscall) New, same
2738 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2739 * emulparams/aixppc64.sh : same
2740 * emulparams/aixrs6.sh : same
2741 * emulparams/ppcmacos.sh : same
2742 * emultempl/aix.em : use strtoull to parse options
2743 * Makefile.am : add eaixppc64 emulation for xcoff64
2744 * Makefile.in : same
2745 * configure.tgt : same
2747 * scripttempl/aix.sc : default text section offset to 0x10000000
2748 default data section offset to 0x20000000
2749 add .sv3264 and .sv64 pseudo sections
2750 loader and debug sections use the currect section offset.
2752 * emultempl/aix.em : Add xcoff64 support
2753 Add -binitfini support
2754 (gld${EMULATION_NAME}_before_parse) -binitfini
2755 (gld${EMULATION_NAME}_parse_args) same
2756 (gld${EMULATION_NAME}_before_allocation) format change for special
2759 * emulparams/aixppc64.sh : New file for xcoff64 support
2761 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2763 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2764 variable to avoid non-portable shell construct.
2766 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2768 * ldmain.c (get_emulation): Add -mips5 command line argument.
2770 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2772 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2773 (ELF_INTERPRETER_NAME): Define it.
2774 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2776 * configure.tgt (targ_emul, targ_extra_emuls)
2777 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2778 as primary, elf_i386 as extra.
2779 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2780 (eelf_i386_ldso.c): New rule.
2781 * Makefile.in: Rebuilt.
2783 2001-05-22 Nick Clifton <nickc@redhat.com>
2785 * lexsup.c (ld_options): Allow -I to be an alias for
2786 --dynamic-linker. This is for Solaris compatability.
2787 * ld.texinfo: Document that -I can be used.
2790 2001-05-16 Alan Modra <amodra@one.net.au>
2792 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2793 whether an input section is the first one assigned to an output
2795 Assorted formatting fixes.
2797 2001-05-14 DJ Delorie <dj@delorie.com>
2799 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2800 * Makefile.in: Ditto.
2802 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2804 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2805 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2807 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2809 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2811 * ldlang.c (lang_process): Call bfd_merge_sections.
2813 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2815 * ldgram.y: Fix typo.
2817 2001-05-03 H.J. Lu <hjl@gnu.org>
2819 * emultempl/elf32.em: Include "libiberty.h".
2820 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2821 basename of the bfd filename.
2822 (gld${EMULATION_NAME}_stat_needed): Likewise.
2823 (gld${EMULATION_NAME}_try_needed): Likewise.
2824 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2826 2001-05-02 H.J. Lu <hjl@gnu.org>
2828 * emultempl/pe.em: Include <ctype.h>.
2830 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2832 * emulparams/elf32openrisc.sh: New file.
2834 * Makefile.am: Add OpenRISC target.
2835 * Makefile.in: Regenerated.
2837 * configure.tgt: Add openrisc-*-* mapping.
2839 2001-05-02 Nick Clifton <nickc@redhat.com>
2841 * emultempl/aix.em: Replace buystring with xstrdup.
2842 * emultempl/beos.em: Replace buystring with xstrdup.
2844 2001-05-02 H.J. Lu <hjl@gnu.org>
2846 * ldfile.c: Include "libiberty.h".
2847 * ldlex.l: Likewise.
2849 * ldmisc.c (buystring): Removed.
2850 * ldmisc.h: Likewise.
2852 * ldfile.c: Replace buystring with xstrdup.
2853 * ldlang.c: Likewise.
2854 * ldlex.l: Likewise.
2855 * ldmain.c: Likewise.
2856 * ldmisc.c: Likewise.
2857 * lexsup.c: Likewise.
2858 * mpw-eppcmac.c: Likewise.
2860 2001-04-30 Andreas Jaeger <aj@suse.de>
2862 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2864 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2866 * ldlang.c (load_symbols): Give emulation a chance
2867 to process unrecognized file before fatal error is
2868 reported, not after.
2870 2001-04-27 Sean McNeil <sean@mcneil.com>
2872 * configure.tgt: Add arm-vxworks target.
2873 * scripttempl/armcoff.sc: Support .text or .data as a section name
2877 2001-04-13 J.T. Conklin <jtc@redback.com>
2879 * ld.texinfo: Document --fatal-warnings.
2882 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2883 warnings have been turned into errors.
2884 * lexsup.c (OPTION_WARN_FATAL): Define.
2885 (ld_options): Entry for --fatal-warnings.
2886 (parse_args): Handle OPTION_WARN_FATAL.
2887 * ld.h (ld_config_type): Add fatal_warnings field.
2889 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2891 * ldmain.c (main): Default to discard_sec_merge.
2892 * lexsup.c (OPTION_DISCARD_NONE): Define.
2893 (ld_options): Add --discard-none.
2894 (parse_args): Handle OPTION_DISCARD_NONE.
2895 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2896 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2897 all its input sections match.
2899 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2901 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2902 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2903 (eelf32ltsmip.c): New target.
2904 (eelf64btsmip.c): Likewise.
2905 (eelf64ltsmip.c): Likewise.
2906 * Makefile.in: Regenerated.
2908 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2910 (mips*-*-linux-gnu*): Likewise.
2912 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2914 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2916 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2919 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2921 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2922 correct value of __Stext here.
2923 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2926 * emulparams/crislinux.sh: Remove FIXME.
2928 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2930 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2931 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2933 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2935 * configure.tgt (cris-*-*): Change default emulation to criself.
2936 (cris-*-*aout*): New rule.
2938 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2940 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2941 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2943 2001-03-26 Andreas Jaeger <aj@suse.de>
2945 * ld.texinfo (Overview): Fix syntax in texi code.
2947 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2949 * ld.texinfo: Put @c man indications to generate the ld man page.
2950 When generating man, define all the variables. Define SEEALSO
2951 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2952 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2953 (ld.1): Generate from ld.texinfo.
2954 * Makefile.in: Regenerate.
2956 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2958 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2959 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2961 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2963 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2964 is an absolute path look only for this file and not along the path.
2966 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2968 * emultempl/elf32.em (OPTION_GROUP): New macro.
2969 Add new option Bgroup to longopts.
2970 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2971 (gld*_list_options): Add -Bgroup and -z defs.
2972 * ld.1: Document -Bgroup and -z defs.
2973 * ld.texinfo: Likewise.
2975 2001-03-07 Michael Meissner <meissner@redhat.com>
2977 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2978 with sections created by -fdata-sections.
2979 (.dynbss,.bss): Ditto.
2981 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2983 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2984 after_allocation_default, not gld..._before_allocation.
2986 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2988 * configure.in (BFD_VERSION): New.
2989 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2990 * configure: Regenerate.
2991 * Makefile.am: Run "make dep-am"
2992 * Makefile.in: Regenerate.
2994 2001-02-26 Timothy Wall <twall@cygnus.com>
2996 * emulparams/elf64_aix.sh: Add additional read-only sections;
2997 uncomment lines which are now required.
2999 2001-02-26 H.J. Lu <hjl@gnu.org>
3001 * ldlang.c (open_input_bfds): Set the bfd error handler so
3002 that problems can be caught whilst loading symbols.
3003 (record_bfd_errors): New function: Report BFD errors and mark
3004 the executable output as being invalid.
3006 2001-02-22 Timothy Wall <twall@cygnus.com>
3008 * configure.host: Add configuration for ia64-*-aix*.
3009 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3010 Add dependencies for eelf64_aix.c.
3011 * Makefile.in: Regenerate.
3012 * configure.tgt: Add ia64-*-aix* mapping.
3013 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3014 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
3017 2001-02-20 H.J. Lu <hjl@gnu.org>
3019 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3020 false if we found the file.
3022 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3024 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3025 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3027 2001-02-18 lars brinkhoff <lars@nocrew.org>
3029 * Makefile.am: Add PDP-11 target.
3030 * configure.tgt: Likewise.
3031 * emulparams/pdp11.sh: New file.
3033 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3035 * configure.host: Add a generic FreeBSD configuration entry such that
3036 all [modern] FreeBSD systems on all platforms will look the same.
3038 2001-02-14 H.J. Lu <hjl@gnu.org>
3040 * configure.tgt: Remove mention of earmelf_linux26.
3042 2001-02-13 Richard Henderson <rth@redhat.com>
3044 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3046 2001-02-13 H.J. Lu <hjl@gnu.org>
3048 * ldexp.h (node_type): Add etree_provided.
3049 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3050 type to etree_provided if defined by PROVIDE. Allow updating
3052 (exp_print_tree): Handle etree_provided.
3053 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3056 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3058 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3059 .IA_64.unwind.* pattern to unwind table section and
3060 .IA_64.unwind_info* pattern to unwind info section.
3062 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3064 * Makefile.am: Add linux target for S/390.
3065 * Makefile.in: Likewise.
3066 * configure.host: Likewise.
3067 * configure.tgt: Likewise.
3068 * emulparams/elf64_s390.sh: New file.
3069 * emulparams/elf_s390.sh: New file.
3071 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3073 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3075 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3077 2001-02-06 Philip Blundell <philb@gnu.org>
3079 * Makefile.am: Remove mention of earmelf_linux26.
3080 * Makefile.in: Regenerate.
3082 2001-02-04 Philip Blundell <philb@gnu.org>
3084 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3085 * emulparams/armelf_linux26.sh: Delete.
3086 * configure.tgt: Remove mention of armelf_linux26 emulation.
3088 2001-02-01 Nick Clifton <nickc@redhat.com>
3090 * ld.1: Replace occurances of -oformat with --oformat.
3092 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3094 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3095 load_base is specified.
3097 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3099 * emultempl/elf32.em: Correct spelling in comments and listed
3102 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3104 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3105 default for the first section of a group of overlay sections.
3107 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3109 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3110 * Makefile.in: Regenerate.
3111 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3112 Check for null tool_dir.
3114 2001-01-16 Jim Wilson <wilson@redhat.com>
3116 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3117 and IA_64.unwind.info.
3119 2001-01-16 H.J. Lu <hjl@gnu.org>
3121 * ldlang.c (lang_check): Merge the private data only if the
3122 input file has contents.
3124 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3126 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3128 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3129 enabling search for libmilli. On a relocatable link, make .text
3131 (LDEMUL_AFTER_PARSE): Define.
3132 (hppaelf_finish): Correct spelling of relocatable in comments.
3134 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3135 rummage through the script for sections on the unique list.
3136 Correct length of strncmp for ".note".
3137 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3139 * ldlang.c (unique_section_list): New var.
3140 (unique_section_p): New function.
3141 (walk_wild_section): Don't match sections on unique_section_list.
3142 (lang_add_unique): New function.
3143 Correct spelling of relocatable in comments.
3145 * ldlang.h (struct unique_sections): Declare.
3146 (unique_section_list): Declare.
3147 (unique_section_p): Declare.
3148 (lang_add_unique): Declare.
3150 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3151 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3153 * ld.texinfo (--unique): Update.
3155 2001-01-13 Nick Clifton <nickc@redhat.com>
3157 * lexsup.c (parse_args): Remove spurious white space.
3159 2001-01-12 Nick Clifton <nickc@redhat.com>
3161 * lexsup.c (parse_args): Update copyright date.
3163 2001-01-12 Philip Blundell <pb@futuretv.com>
3165 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3167 2001-01-10 Kazu Hirata <kazu@hxi.com>
3169 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3170 * scripttempl/h8300h.sc: Fix formatting.
3171 * scripttempl/h8300s.sc: Likewise.
3172 * scripttempl/h8500.sc: Likewise.
3173 * scripttempl/h8500b.sc: Likewise.
3174 * scripttempl/h8500c.sc: Likewise.
3175 * scripttempl/h8500m.sc: Likewise.
3176 * scripttempl/h8500s.sc: Likewise.
3178 2000-01-07 David O'Brien <obrien@BSDi.com>
3180 * emultempl/elf32.em: Only perform Linux ld hints processing when
3183 2001-01-07 Philip Blundell <philb@gnu.org>
3185 * ld.texinfo (Bug Reporting): Update email address for reports.
3187 2000-12-31 Nick Clifton <nickc@redhat.com>
3189 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3190 options by checking for a return value of '?' not -1.
3192 2000-12-28 Nick Clifton <nickc@redhat.com>
3194 * lexsup.c (struct ld_option): Add new enum value:
3196 (ld_options[]): Change -omagic, -output and -oformat options
3197 to be EXACTLY_TWO_DASHES.
3198 (OUTPUT_COUNT): Use ARRAY_SIZE.
3199 (parse_args): Change parameter 'argc' to unsigned.
3200 Place EXACTLY_TWO_DASHES options into new really_longopts
3202 If getopt_long_only fails, try calling getopt_long using the
3203 really_longopts array.
3204 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3207 * ldlex.h: Fix prototype of parse_args.
3209 * ld.texinfo: Document that long options starting with 'o'
3210 must be preceeded by two dashes. Change example of a single
3211 dashed long option from -oformat to -trace-symbol.
3213 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3215 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3216 (longopts[]): New --no-default-excludes option.
3217 (gld_${EMULATION_NAME}_list_options): Document.
3218 (gld_${EMULATION_NAME}_parse_args): Handle.
3220 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3222 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3223 whitespace, it breaks the K&R C preprocessor.
3225 2000-12-11 DJ Delorie <dj@redhat.com>
3227 * ld.texinfo: Add notes about --whole-archive and gcc.
3229 2000-11-18 Fred Fish <fnf@be.com>
3231 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3232 (ld_options): Entry for --allow-shlib-undefined.
3233 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3234 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3236 * ld.texinfo: Document new command line switch.
3238 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3240 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3241 .fixup is actually read/write.
3242 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3243 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3244 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3246 2000-12-11 Jan Hubicka <jh@suse.cz>
3248 * NEWS: Add note about x86_64 architecture.
3250 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3252 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3253 Set DWARF2 sections to a VMA of zero.
3255 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3257 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3259 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3260 (sparc*-*-rtems*): Switched from a.out to ELF.
3262 2000-11-30 Jan Hubicka <jh@suse.cz>
3264 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3265 (eelf_x86_64.c): New.
3266 * Makefile.in: Regenerate.
3267 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3268 * emulparams/elf_x86_64.sh: New.
3270 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3272 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3273 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3275 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3276 merging non-a.out sections into CONSTRUCTING.
3278 2000-11-28 Nick Clifton <nickc@redhat.com>
3280 * ld.1 (COPYING): Mention that the GNU Free Documentation
3281 License is present in the sources, but not the output, and
3282 also available from the GNU website.
3283 (GNU Free Documentation License): Comment out this section.
3285 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3287 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3290 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3292 * ld.1: Remove old date so it does not give the impression the manpage
3295 2000-11-24 Nick Clifton <nickc@redhat.com>
3297 * configure.tgt (xscale-coff): Add target.
3298 (xscale-elf): Add target.
3300 2000-11-24 Fred Fish <fnf@be.com>
3302 * ldmain.c (main): Remove redundant init of config.make_executable
3305 2000-11-15 Richard Henderson <rth@redhat.com>
3307 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3309 2000-11-14 Kazu Hirata <kazu@hxi.com>
3311 * scripttempl/h8300.sc: Fix formatting.
3312 * scripttempl/h8300h.sc: Likewise.
3313 * scripttempl/h8300s.sc: Likewise.
3315 2000-11-14 Denis Chertykov <denisc@overta.ru>
3317 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3319 2000-11-09 Philip Blundell <pb@futuretv.com>
3321 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3322 around orphan sections whose names can be represented in C.
3324 2000-11-07 Jim Wilson <wilson@redhat.com>
3326 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3327 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3329 2000-11-06 Nick Clifton <nickc@redhat.com>
3331 * ld.texinfo: Add GNU Free Documentation License.
3332 * ldint.texinfo: Add GNU Free Documentation License.
3333 * ld.1: Add GNU Free Documentation License.
3335 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3337 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3338 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3340 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3341 Move 2000-11-02 Makefile.in changes to this file.
3342 * Makefile.in: Regenerate.
3344 2000-11-03 Nick Clifton <nickc@redhat.com>
3346 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3347 constructors and destructors.
3348 * scripttempl/h8300h.sc: Ditto.
3349 * scripttempl/h8300s.sc: Ditto.
3350 * scripttempl/h8500.sc: Ditto.
3351 * scripttempl/h8500b.sc: Ditto.
3352 * scripttempl/h8500c.sc: Ditto.
3353 * scripttempl/h8500m.sc: Ditto.
3354 * scripttempl/h8500s.sc: Ditto.
3355 * scripttempl/v850.sc: Ditto.
3356 * scripttempl/w65.sc: Ditto.
3357 * scripttempl/z8000.sc: Ditto.
3359 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3361 * Makefile.in (e_i386_chaos.c): New rule.
3362 (ALL_EMULATIONS): Added e_i386_chaos.o.
3363 * emulparams/elf_i386_chaos.sh: New file.
3364 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3366 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3368 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3369 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3370 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3371 library path suffix.
3372 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3374 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3376 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3377 for consecutive sections.
3379 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3381 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3383 * ld.texinfo: Added notes about this new option.
3385 2000-10-16 Nick Clifton <nickc@redhat.com>
3387 * emultempl/pe.em (_after_open): Add tests of return values from
3388 bfd functions. Emit appropriate error messages if necessary.
3390 2000-10-13 Nick Clifton <nickc@redhat.com>
3392 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3393 local variables - they are not used, but leave in the call to
3394 bfd_canonicalize_symtab.
3395 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3396 pe_dll_search_prefix.
3398 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3400 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3401 (longopts): New --dll-search-prefix option.
3402 (gld_${EMULATION_NAME}_list_options): Document.
3403 (gld_${EMULATION_NAME}_parse_args): Handle.
3404 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3405 dynamically, search for a dll named '<prefix><basename>.dll'
3406 in preference to 'lib<basename>.dll' if --dll-search-prefix
3409 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3411 * ldlang.c (section_already_linked): Set kept_section instead of
3414 2000-10-10 Kazu Hirata <kazu@hxi.com>
3416 * deffile.h: Fix formatting.
3417 * lexsup.c: Likewise.
3420 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3422 * pe-dll.c (make_one): Do not generate code thunk for DATA
3424 (process_def_file): deduce DATA flag for auto-export sumbols.
3426 2000-10-09 Kazu Hirata <kazu@hxi.com>
3428 * ld.h: Fix formatting.
3429 * ldcref.c: Likewise.
3430 * ldctor.h: Likewise.
3431 * ldemul.c: Likewise.
3432 * ldemul.h: Likewise.
3433 * ldexp.c: Likewise.
3434 * ldexp.h: Likewise.
3435 * ldfile.c: Likewise.
3436 * ldfile.h: Likewise.
3437 * ldlang.c: Likewise.
3438 * ldlang.h: Likewise.
3439 * ldmain.c: Likewise.
3440 * pe-dll.c: Likewise.
3442 * pe-dll.c: Revert some formatting fixes.
3444 2000-10-08 Kazu Hirata <kazu@hxi.com>
3446 * pe-dll.c: Fix formatting.
3448 2000-10-05 Kazu Hirata <kazu@hxi.com>
3450 * ldlang.c: Fix formatting.
3452 2000-10-03 DJ Delorie <dj@redhat.com>
3454 * pe-dll.c (fill_edata): initialize entire block
3455 (make_one): fill in correct section.
3457 2000-10-03 Kazu Hirata <kazu@hxi.com>
3459 * ldexp.c: Fix formatting.
3461 2000-10-02 DJ Delorie <dj@redhat.com>
3463 * emultempl/pe.em (gld_*_after_open): detect case where there two
3464 import libraries for same dll; rename one to ensure proper link
3467 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3469 (generate_edata): fix typo
3471 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3473 * scripttempl/crisaout.sc (ENTRY): Now __start.
3474 (.text): Add default setting for __start.
3475 Remove CONSTRUCTORS handling.
3476 (/DISCARD/): Add .gnu.warning.*.
3477 * emulparams/crislinux.sh (ENTRY): Now __start.
3478 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3479 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3480 (ENTRY): Now __start.
3481 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3482 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3484 2000-09-29 Kazu Hirata <kazu@hxi.com>
3486 * deffile.h: Fix formatting.
3488 * ldcref.c: Likewise.
3489 * ldctor.c: Likewise.
3490 * ldctor.h: Likewise.
3491 * ldemul.c: Likewise.
3492 * ldemul.h: Likewise.
3493 * ldexp.c: Likewise.
3494 * ldexp.h: Likewise.
3495 * ldfile.c: Likewise.
3496 * ldfile.h: Likewise.
3497 * ldlang.c: Likewise.
3498 * ldlang.h: Likewise.
3499 * lexsup.c: Likewise.
3501 * pe-dll.c: Likewise.
3503 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3505 * pe-dll.c (process_def_file): Uninitialized data wasn't
3506 exported with --export-all-symbols switch.
3508 2000-09-28 DJ Delorie <dj@redhat.com>
3510 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3511 noname work properly.
3513 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3515 * ld.texinfo (HPPA ELF32): New section.
3517 * emultempl/hppaelf.em (group_size): New.
3518 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3519 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3520 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3521 options to prevent abbreviations matching.
3522 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3523 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3525 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3527 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3528 on the m68*-*-elf target. Make it support COFF input objects.
3530 2000-09-21 Kazu Hirata <kazu@hxi.com>
3532 * ldmain.c: Fix formatting.
3533 * ldmisc.c: Likewise.
3534 * ldver.c: Likewise.
3535 * ldwrite.c: Likewise.
3537 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3539 * ldwrite.c (clone_section): Silence gcc warnings.
3541 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3543 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3544 out of memory failure.
3546 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3547 (clone_section): Handle out of memory failures. Rename var to
3548 avoid c++ reserved word.
3550 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3552 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3553 stub_name param to stub_sec_name.
3554 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3556 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3558 * emultempl/m68kelf.em: New file.
3559 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3560 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3561 * Makefile.in: Regenerate.
3563 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3565 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3568 2000-09-13 Nick Clifton <nickc@redhat.com>
3570 * ldmain.c (multiple_definition): Disable relaxation if
3571 multiple symbol definitions are encountered - otherwise the
3572 linker could abort with an assertion failure.
3574 2000-09-10 Nick Clifton <nickc@redhat.com>
3576 * mri.c: Fix formatting.
3578 2000-09-07 H.J. Lu <hjl@gnu.org>
3580 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3581 * configure: Rebuild.
3583 2000-09-07 H.J. Lu <hjl@gnu.org>
3585 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3586 * Makefile.in: Rebuild.
3588 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3590 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3591 broken list handling. Create __start_SECNAME and __stop_SECNAME
3592 when no place-holder. Add some comments. Test both SEC_CODE and
3593 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3594 Handle case where no output section statement created.
3596 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3598 * configure.tgt (sh-*-linux*): Added.
3599 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3600 * Makefile.in: Rebuilt.
3601 * emulparams/shelf_linux.sh: New file.
3602 * emulparams/shlelf_linux.sh: New file.
3604 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3606 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3607 try shuffling sections when the orphan happens to be the place
3608 holder. Keep count of unique section names generated so we speed
3609 the search for a new name.
3611 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3613 * configure: Rebuilt with new libtool.m4.
3615 2000-09-05 Nick Clifton <nickc@redhat.com>
3617 * Makefile.in: Regenerate.
3618 * aclocal.m4: Regenerate.
3619 * configure: Regenerate.
3620 * config.in: Regenerate.
3621 * po/ld.pot: Regenerate.
3623 * ldint.texinfo: Remove CVS revision marker - it foils local
3626 * emultempl/ticoff.em: Remove extraneous comma.
3628 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3630 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3631 to stub section flags.
3632 (hppa_for_each_input_file_wrapper): New.
3633 (hppa_lang_for_each_input_file): New.
3634 (lang_for_each_input_file): Define to call above.
3635 (multi_subspace): New.
3636 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3637 (PARSE_AND_LIST_PROLOGUE): Define.
3638 (PARSE_AND_LIST_LONGOPTS): Define.
3639 (PARSE_AND_LIST_OPTIONS): Define.
3640 (PARSE_AND_LIST_ARGS_CASES): Define.
3641 (hppaelf_finish): Call elf32_hppa_set_gp.
3642 (hppaelf_set_output_arch): Remove.
3643 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3645 * emulparams/hppalinux.sh (ELFSIZE): Define.
3647 (OTHER_READONLY_SECTIONS): Define.
3649 (GENERATE_SHLIB_SCRIPT): Define.
3651 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3652 to const throughout. Change `void *' to `PTR' throughout.
3653 (lang_memory_default): Function is local to file, add `static'.
3655 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3656 (ehppalinux.c): Likewise.
3657 (earmelf.c): Likewise.
3658 (earmelf_linux.c): Likewise.
3659 (earmelf_linux26.c): Likewise.
3660 * Makefile.in: Regenerate.
3662 * ld.h (ld_config_type): Add unique_orphan_sections.
3663 * lexsup.c (OPTION_UNIQUE): Define.
3664 (ld_options): Add "--unique".
3665 (parse_args): Handle it.
3666 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3667 search for an existing output section if unique_orphan_sections is
3668 set. Make use of bfd_get_unique_section_name rather than
3669 duplicating code here.
3670 * ld.texinfo: Describe --unique.
3672 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3673 optional arg to split-by-file.
3674 (parse_args): Handle them.
3675 * ld.texinfo: Update description of these options.
3676 * ldwrite.c (clone_section): Pass in the section name. Replace
3677 local code with bfd_get_unique_section_name.
3678 (split_sections): Tidy code and comments. Use a list traversal
3679 more appropriate to the list construction. Handle cooked section
3680 sizes. Split when split_by_reloc reached rather than exceeded.
3681 Track section size and split when split_by_file reached. Fix
3682 link_order_tail (even though it's not used).
3683 (ldwrite): Modify condition for calling split_sections to suit
3684 changed split_by_reloc and split_by_file.
3685 * ldmain.c (main): Init config.split_by_reloc and
3686 config.split_by_file to -1.
3687 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3688 Change split_by_file to bfd_size_type.
3690 2000-09-02 Nick Clifton <nickc@redhat.com>
3692 * configure.in: Increase version number to 2.10.91.
3693 * NEWS: Mention new ability to support removal of duplicate DWARF2
3695 * configure: Regenerate.
3696 * aclocal.m4: Regenerate.
3697 * config.in: Regenerate.
3699 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3701 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3703 * scripttempl/elf32avr.sc: Ditto.
3704 * scripttempl/elfd10v.sc: Ditto.
3705 * scripttempl/elfd30v.sc: Ditto.
3706 * scripttempl/elfi370.sc: Ditto.
3707 * scripttempl/elfm68hc11.sc: Ditto.
3708 * scripttempl/elfm68hc12.sc: Ditto.
3709 * scripttempl/elfi386beos.sc: Ditto.
3710 * scripttempl/v850.sc: Ditto.
3712 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3714 * acinclude.m4: Include libtool and gettext macros from the
3716 * aclocal.m4, configure: Rebuilt.
3718 2000-08-25 Nick Clifton <nickc@redhat.com>
3720 * ldlang.c (open_output): When choosing the target for a
3721 particular endianness, do nothing if the target is not
3724 2000-08-25 H.J. Lu <hjl@gnu.org>
3726 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3727 check -rpath nor LD_RUN_PATH for cross link.
3728 * ld.texinfo: Document the change.
3730 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3732 * NEWS: Mention support for CRIS.
3734 2000-08-23 H.J. Lu <hjl@gnu.org>
3736 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3737 the current runpath list from bfd_elf_get_runpath_list ()
3740 2000-08-22 H.J. Lu <hjl@gnu.org>
3742 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3743 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3744 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3745 trace_file_tries is non-zero.
3746 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3747 if trace_file_tries is non-zero.
3749 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3752 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3754 * NEWS: Mention i860 support.
3756 2000-08-14 Andreas Schwab <schwab@suse.de>
3758 * scripttempl/elf.sc: Fix last change to use correct comment
3761 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3763 * scripttempl/elf.sc: Add a comment giving the correspondence
3764 between sections, per-datum sections, and linkonce sections. Make
3765 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3768 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3770 * emulparams/elf32_i860.sh: New file.
3771 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3772 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3773 (eelf32_i860.c): New rule.
3774 * Makefile.in: Regenerate.
3776 2000-08-10 Nick Clifton <nickc@cygnus.com>
3778 * emulparams/mipspe.sh (ENTRY): Add definition.
3780 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3782 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3785 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3787 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3788 the final size of .bss section.
3789 * scripttempl/elfm68hc12.sc: Likewise.
3791 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3793 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3794 gld${EMULATION_NAME}_parse_args for consistency. Combine
3795 lastoptind and prevoptind vars, and keep track of last optind.
3796 (gld_${EMULATION_NAME}_list_options): Rename to
3797 gld${EMULATION_NAME}_list_options.
3799 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3801 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3802 (i586-sco-sysv5uw7.1.0).
3804 2000-07-27 H.J. Lu <hjl@gnu.org>
3806 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3807 (PARSE_AND_LIST_PROLOGUE): New.
3808 (PARSE_AND_LIST_LONGOPTS): Likewise.
3809 (PARSE_AND_LIST_OPTIONS): Likewise.
3810 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3811 (PARSE_AND_LIST_EPILOGUE): Likewise.
3813 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3815 * emultempl/armelf.em: Elide functions common to elf32.em,
3816 ie. most of the file.
3817 (arm_elf_after_open): New. Do arm specific things then call
3818 gld${EMULATION_NAME}_after_open.
3819 (arm_elf_before_allocation): New. Call
3820 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3821 (PARSE_AND_LIST_PROLOGUE): Define.
3822 (PARSE_AND_LIST_SHORTOPTS): Define.
3823 (PARSE_AND_LIST_LONGOPTS): Define.
3824 (PARSE_AND_LIST_OPTIONS): Define.
3825 (PARSE_AND_LIST_ARGS_CASES): Define.
3826 (LDEMUL_AFTER_OPEN): Define.
3827 (LDEMUL_BEFORE_ALLOCATION): Define.
3828 (LDEMUL_BEFORE_PARSE): Define.
3829 (LDEMUL_FINISH): Define.
3831 * emultempl/hppaelf.em: Similarly zap most of this file.
3832 (hppaelf_add_stub_section): Prototype.
3833 (hppaelf_layaout_sections_again): Prototype.
3834 (hook_in_stub): Prototype.
3835 (LDEMUL_SET_OUTPUT_ARCH): Define.
3836 (LDEMUL_FINISH): Define.
3837 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3839 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3840 (EXTRA_EM_FILE): New.
3841 * emulparams/armelf_linux.sh: Likewise.
3842 * emulparams/armelf_linux26.sh: Likewise.
3843 * emulparams/hppalinux.sh: Likewise.
3844 * emulparams/hppaelf.sh: Likewise.
3847 * emultempl/elf32.em: Fix formatting.
3848 (EXTRA_EM_FILE): Source it.
3849 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3850 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3851 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3852 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3853 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3854 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3855 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3856 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3857 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3858 allow functions in this file to be overridden.
3859 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3861 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3863 * emultempl/elf32.em: Reorganize file.
3865 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3867 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3868 specific option to fit 64-bit executable in the lower
3869 31-bit address range. This is done by changing start
3870 address of .interp (the very first section of executable)
3871 and then setting EF_ALPHA_32BIT elf header flag.
3873 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3875 * emultempl/m68kcoff.em: New file.
3876 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3877 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3879 * Makefile.in: Regenerate.
3881 2000-07-20 H.J. Lu <hjl@gnu.org>
3883 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3884 and "disable-new-dtags" to stop getopt from treating -d/-e as
3885 abbreviations for these options.
3887 2000-07-20 H.J. Lu <hjl@gnu.org>
3889 * ld.texinfo: Add documentation for --disable-new-dtags and
3892 * ldmain.c (main): Initialize link_info.new_dtags to false.
3894 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3895 --disable-new-dtags and --enable-new-dtags.
3896 (gld_${EMULATION_NAME}_list_options): Likewise.
3898 2000-07-05 Kenneth Block <krblock@computer.org>
3900 * lexsup.c: Add optional style to demangle switch
3901 * ld.texinfo: Document optional style to demangle switch.
3903 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3905 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3907 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3908 Regenerate dependencies.
3909 * Makefile.in: Rebuild.
3910 * configure.tgt (cris-*-*): New target.
3911 * emulparams/crisaout.sh, emulparams/criself.sh,
3912 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3913 * po/POTFILES.in, po/ld.pot: Regenerate.
3915 2000-07-20 H.J. Lu <hjl@gnu.org>
3917 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3918 Print out ignored -z options.
3920 2000-07-19 H.J. Lu <hjl@gnu.org>
3922 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3923 (PARSE_AND_LIST_PROLOGUE): New.
3924 (PARSE_AND_LIST_LONGOPTS): Likewise.
3925 (PARSE_AND_LIST_OPTIONS): Likewise.
3926 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3928 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3930 * lexsup.c (ld_options): Comment out 'z'.
3931 (parse_args): Likewise.
3933 * emultempl/elf32.em: Include "elf/common.h".
3934 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3936 (gld_${EMULATION_NAME}_list_options): Likewise.
3938 * ld.texinfo: Add documentation for the recognized -z options.
3940 2000-07-19 H.J. Lu <hjl@gnu.org>
3942 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3943 bfd_elf_set_dt_needed_soname ().
3945 2000-07-18 DJ Delorie <dj@cygnus.com>
3947 * pe-dll.c (pe_dll_id_target): check object target name also
3949 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3951 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3952 ${INIT_END} if relocating.
3953 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3955 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3957 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3958 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3959 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3960 errors introduced by the old dynamic lib search order.
3962 2000-07-17 DJ Delorie <dj@cygnus.com>
3964 * pe-dll.c (process_def_file): auto-export data items also
3965 (pe_process_import_defs): also see if _imp_ form needed
3967 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3969 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3970 for dll import libraries
3972 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3974 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3975 gcc 2.95.2 and later.
3977 2000-07-11 Kazu Hirata <kazu@hxi.com>
3979 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3982 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3984 * ldemul.h (struct lang_input_statement_struct): Remove forward
3986 (struct search_dirs): Likewise.
3987 * ldfile.h (struct lang_input_statement_struct): Likewise.
3988 Protect file from multiple inclusion.
3989 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3990 declaration from macro to file scope.
3992 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3993 * ldgram.y: Likewise here.
3994 * ldlang.c: And here.
3995 * ldmain.c: And here.
3996 * mpw-elfmips.c: And here.
3997 * mpw-eppcmac.c: And here.
3998 * emultempl/aix.em: And here.
3999 * emultempl/armcoff.em: And here.
4000 * emultempl/armelf.em: And here.
4001 * emultempl/armelf_oabi.em: And here.
4002 * emultempl/beos.em: And here.
4003 * emultempl/elf32.em: And here.
4004 * emultempl/hppaelf.em: And here.
4005 * emultempl/linux.em: And here.
4006 * emultempl/lnk960.em: And here.
4007 * emultempl/pe.em: And here.
4008 * emultempl/sunos.em: And here.
4009 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4010 * mpw-idtmips.c: Ditto.
4011 * emultempl/generic.em: Ditto.
4012 * emultempl/gld960.em: Ditto.
4013 * emultempl/gld960c.em: Ditto.
4014 * emultempl/mipsecoff.em: Ditto.
4015 * emultempl/ticoff.em: Ditto.
4016 * emultempl/vanilla.em: Ditto.
4018 * pe-dll.c: Include ldfile.h
4019 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4021 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4022 arguments to bfd_elf32_size_dynamic_sections call.
4023 (gldelf32ebmip_place_orphan): Add missing arguments to
4024 lang_leave_output_section_statement call.
4026 2000-07-10 H.J. Lu <hjl@gnu.org>
4028 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4030 (strhash): Likewise.
4031 (compute_dll_image_base): Likewise.
4032 (pe_undef_found_sym): Likewise.
4033 (pe_undef_cdecl_match): Likewise.
4034 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4035 argument "arch" with ATTRIBUTE_UNUSED.
4037 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4039 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4041 From Ryan Bradetich <rbradetich@uswest.net>
4042 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4044 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4046 Changes to create multiple linker stubs, positioned immediately
4047 before the section where they are required.
4048 * emultempl/hppaelf.em: Include elf32-hppa.h.
4049 (stub_sec, file_chain): Delete.
4050 (hppaelf_create_output_section_statements): Don't make a stub
4052 (hook_stub_info): New struct.
4053 (hook_in_stub): New function.
4054 (hppaelf_add_stub_section): New function.
4055 (hppaelf_finish): Do nothing for relocateable links. Modify the
4056 call to elf32_hppa_size_stubs. Move code for updating section
4058 (hppaelf_layaout_sections_again): ..to here, a new function.
4060 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4061 broken list handling. Pass in a pointer to the list.
4062 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4064 (hppaelf_before_parse): Prototype.
4065 (hppaelf_set_output_arch): Prototype.
4066 (hppaelf_create_output_section_statements): Prototype.
4067 (hppaelf_delete_padding_statements): Prototype.
4068 (hppaelf_finish): Prototype.
4071 * emultempl/hppaelf.em: Include ctype.h.
4072 (struct orphan_save): New.
4073 (gld${EMULATION_NAME}_place_orphan): New.
4074 (output_rel_find): New.
4075 (hppaelf_get_script): Update from elf32.em.
4076 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4077 Change emulation_name field to "${EMULATION_NAME}". Add
4078 gld${EMULATION_NAME}_place_orphan.
4080 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4081 ehppalinux.o, sort it. Regenerate dependencies.
4082 (ehppalinux.c): Depend on hppaelf.em
4083 * Makefile.in: Regenerate.
4085 * configure.tgt: targ_emul=hppalinux for hppa*linux
4087 * emulparams/hppalinux.sh: New.
4088 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4090 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4092 * lexsup.c (parse_args): Copy section name.
4094 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4096 * emultempl/pe.em: institute the following search order for
4097 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4098 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4099 static lib (libfoo.a) if none of the above are found.
4101 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4103 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4104 (longopts): New --{enable,disable}-auto-image-base options.
4105 (gld_${EMULATION_NAME}_list_options): Document.
4106 (gld_${EMULATION_NAME}_parse): Handle.
4107 (strhash): New static function.
4108 (compute_dll_image_base): New static function.
4109 (gld_${EMULATION_NAME}_set_symbols): Use.
4111 2000-07-05 DJ Delorie <dj@redhat.com>
4115 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4117 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4118 * emulparams/elf32btsmip.sh: New file.
4119 * Makefile.am: Add traditional mips target.
4120 * Makefile.in: Rebuild.
4122 2000-07-01 H.J. Lu <hjl@gnu.org>
4124 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4125 automake to use YLWRAP.
4126 * Makefile.in: Rebuild.
4128 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4130 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4131 (CLEANFILES): Add DEPA.
4132 * Makefile.in: Regenerate.
4134 2000-06-30 Timothy Wall <twall@ppc>
4136 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4137 the page in the upper octet of the address.
4139 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4141 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4143 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4145 * NEWS: arm-elf does --gc-sections too.
4147 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4149 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4151 * Makefile.in: Regenerate.
4153 2000-06-21 H.J. Lu <hjl@gnu.org>
4155 * Makefile.am: Rebuild dependency.
4156 * Makefile.in: Rebuild.
4158 2000-06-20 H.J. Lu <hjl@gnu.org>
4160 * Makefile.am: Rebuild dependency.
4161 * Makefile.in: Rebuild.
4163 2000-06-20 Timothy Wall <twall@cygnus.com>
4165 * scripttempl/tic54xcoff.sc: New.
4166 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4167 * gen-doc.texi: Add flag for TI COFF.
4168 * ld.texinfo: Add documentation for TI COFF handling switches.
4169 * emultempl/ticoff.em: New. TI COFF handling.
4170 * configure.tgt: Add tic54x target.
4171 * Makefile.am: Add tic54x target.
4172 * Makefile.in: Ditto.
4174 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4176 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4177 checking for backslashes.
4179 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4181 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4183 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4185 * NEWS: Update list of targets supporting --gc-sections.
4187 * scripttempl/elf.sc: KEEP .eh_frame contents.
4188 * scripttempl/elfd30v.sc: Same here.
4190 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4192 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4194 * Makefile.in: Rebuild.
4195 * configure.tgt: Recognize m68hc12 and m68hc11.
4196 * scripttempl/elfm68hc12.sc: New file.
4197 * emulparams/m68hc12elfb: New emulation.
4198 * emulparams/m68hc12elf: New emulation.
4199 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4200 (includes a memory.x script to define the ROM and RAM banks).
4201 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4202 New configuration files for support of Motorola 68hc11
4204 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4206 * ldmain.c (main): Only change SEC_READONLY for final link.
4208 2000-06-13 H.J. Lu <hjl@gnu.org>
4210 * configure: Regenerate.
4212 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4214 * configure.in (VERSION): Update to show this is the CVS mainline.
4216 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4218 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4219 input objects to be ECOFF.
4220 (check_sections): einfo takes %B, not %P, to print a BFD name.
4222 2000-06-05 Michael Matz <matz@ifh.de>
4224 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4227 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4229 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4231 * emulparams/avr1200.sh (STACK): Define as 0.
4232 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4233 * emulparams/avr4433.sh (STACK): Likewise.
4234 * emulparams/avr44x4.sh (STACK): Likewise.
4235 * emulparams/avr85xx.sh (STACK): Likewise.
4236 * emulparams/avrmega103.sh (STACK): Likewise.
4237 * emulparams/avrmega161.sh (STACK): Likewise.
4238 * emulparams/avrmega603.sh (STACK): Likewise.
4239 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4240 (__stack): Define from ${STACK} for main().
4242 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4244 * Makefile.am: Update dependencies with "make dep-am"
4245 * Makefile.in: Regenerate.
4247 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4249 * ldmain.c: Include filenames.h.
4250 (set_scripts_dir): Support backslashes in program name.
4252 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4254 * ldmain.c (main): When deciding if ".text" section should be
4255 read-only, don't forget to reset SEC_READONLY because it
4256 could be already set.
4258 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4260 * ld.1: Add documentation for new command line option:
4261 --section-start <sectionname>=<sectionorg>
4262 This is a generic version of -Ttext etc. which accepts
4263 any section name as a parameter instead of just text/data/
4265 * ld.texinfo: More docs.
4267 * lexsup.c: (parse_args): Recognize new command line option.
4268 (ld_options): Add new option.
4270 2000-05-18 H.J. Lu <hjl@gnu.org>
4272 * lexsup.c (parse_args): `i' == `r', not `q'.
4274 2000-05-18 Jeffrey A Law (law@cygnus.com)
4276 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4278 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4279 Rick Gorton <gorton@scrugs.lkg.dec.com>
4281 Add support for '-q' == '--emit-relocs' switch.
4282 * ldmain.c (main): Default to false.
4283 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4284 * NEWS: Describe the emitrelocations switch.
4285 * ld.texinfo: Describe the emitrelocations switch.
4287 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4289 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4290 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4291 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4294 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4296 * lexsup.c (parse_args): Update the year in the copyright notice.
4298 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4300 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4301 Replace defines with those from intl/libgettext.h to quieten gcc
4304 2000-05-10 H.J. Lu <hjl@gnu.org>
4306 * ldlang.c (open_input_bfds): Don't load the same file within
4307 a group again if the whole archive has been loaded already.
4309 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4311 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4312 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4315 2000-05-01 Jim Wilson <wilson@cygnus.com>
4317 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4319 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4320 host "ia64-*-linux-gnu*".
4322 2000-04-29 Andreas Jaeger <aj@suse.de>
4324 * ld.h: Correctly check GCC version.
4326 2000-04-25 Jeffrey A Law (law@cygnus.com)
4328 * Makefile.am: Add PA64 support. Add missing dependencies for
4330 * Makefile.in: Rebuilt.
4331 * configure.tgt: Add PA64 support (currently disabled).
4333 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4335 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4336 (output_rel_find): New function.
4337 (hold_section, hold_use): Delete.
4338 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4339 hold_interp): Make local to place_orphan.
4340 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4341 rather than place_section to find possible previous use of orphan.
4342 Similarly find the place-holder output sections. Use returned
4343 value from lang_enter_output_section_statement rather than calling
4344 lang_output_section_statement_lookup.
4345 * emultempl/armelf.em: Same here.
4346 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4348 * ldlang.c (lang_enter_output_section_statement): Return output
4350 * ldlang.h (lang_enter_output_section_statement): Change
4353 * ldlang.h (lang_output_section_statement): Export it.
4354 * ldlang.c (lang_output_section_statement): Ditto.
4356 2000-04-24 Nick Clifton <nickc@cygnus.com>
4358 * ld.texinfo (Output Section Data): Add note that section data
4359 commands cannot appear outside of section directives.
4361 2000-04-2 Matthew Green <mrg@cygnus.com>
4363 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4365 2000-04-21 Richard Henderson <rth@cygnus.com>
4366 David Mosberger <davidm@hpl.hp.com>
4368 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4369 (eelf64_ia64.c): New rule.
4370 * Makefile.in: Rebuild.
4371 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4372 * emulparams/elf64_ia64.sh: New file.
4374 2000-04-21 Richard Henderson <rth@cygnus.com>
4376 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4378 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4380 * dep-in.sed: Match space at start of file name, not at end.
4382 2000-04-18 H.J. Lu <hjl@gnu.org>
4384 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4385 lang_leave_output_section_statement () after calling
4386 lang_enter_output_section_statement ().
4387 * emultempl/armelf.em: Likewise.
4389 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4391 * emultempl/elf32.em (struct orphan_save): Add section field.
4392 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4393 better order, and place first orphan section as we did before the
4394 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4395 Don't call make_bfd_section here, let wild_doit do the job for us.
4396 Don't build a statement list when we'll only throw it away.
4397 * emultempl/armelf.em: Ditto.
4398 * emultempl/pe.em: Similarly.
4400 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4402 * scripttempl/elfppc.sc: Remove.
4403 * emulparams/elf32ppc.sh: Use elf.sc.
4404 * emulparams/elf32lppc.sh: Use elf.sc.
4405 * emulparams/elf32ppclinux.sh: Use elf.sc.
4406 * emulparams/elf32ppcsim.sh: New file.
4407 * emulparams/elf32lppcsim.sh: New file.
4408 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4409 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4410 * Makefile.in: Regenerate.
4411 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4413 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4415 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4416 ~SEC_ALLOC sections too. Init start address of debug sections.
4417 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4418 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4419 Also set all relocateable section start addresses.
4421 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4423 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4424 Add new BSS_PLT variable for when .plt need not be contained in
4425 the file. Move _etext so that it is also after .fini, and provide
4426 both etext and _etext with a leading underscore. Mark the start
4429 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4431 * emultempl/elf32.em (struct orphan_save): New.
4432 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4433 hold_interp): Make them struct orphan_save.
4434 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4435 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4436 the end of the relevant section list. Also add associated section
4437 statements to the end of any previous orphan statements.
4438 * emultempl/armelf.em: Similarly.
4439 * emultempl/pe.em: Similarly.
4441 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4443 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4445 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4447 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4448 --enable-build-warnings option.
4449 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4450 * Makefile.in, configure: Re-generate.
4452 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4454 * po/ld.pot: Regenerate.
4456 * lexsup.c (help): Restore translated part of bug string.
4458 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4459 (DEP): Quote when passing vars to sub-make. Add warning message
4461 (DEP1): Rewrite for "gcc -MM".
4462 (CLEANFILES): Add DEP2.
4463 Update dependencies.
4464 * Makefile.in: Regenerate.
4466 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4468 * ld.h: #include "bin-bugs.h"
4469 * lexsup.c (help): Use REPORT_BUGS_TO.
4471 2000-03-27 Denis Chertykov <denisc@overta.ru>
4473 * configure.tgt (avr-*-*): New target support.
4474 * Makefile.am: Likewise.
4475 * scripttempl/elf32avr.sc: New script file.
4476 * emulparams/avr1200.sh: New file.
4477 * emulparams/avr23xx.sh: New file.
4478 * emulparams/avr4433.sh New file.
4479 * emulparams/avr44x4.sh New file.
4480 * emulparams/avr85xx.sh New file.
4481 * emulparams/avrmega103.sh New file.
4482 * emulparams/avrmega161.sh New file.
4483 * emulparams/avrmega603.sh New file.
4484 * Makefile.in: Regenerate.
4486 2000-03-09 Andreas Jaeger <aj@suse.de>
4488 * Makefile.am (check-DEJAGNU): Also unset LANG.
4489 * Makefile.in: Rebuild.
4491 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4493 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4496 2000-03-02 H.J. Lu <hjl@gnu.org>
4498 * emulparams/elf32mcore.sh: Include "getopt.h".
4500 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4502 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4504 2000-03-01 H.J. Lu <hjl@gnu.org>
4506 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4507 * emulparams/shpe.sh: Likewise.
4509 2000-03-01 Nick Clifton <nickc@cygnus.com>
4511 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4512 to unused parameters.
4514 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4515 functions only used by DLL code.
4516 (_place_orphan): Initialise 'dollar'.
4518 2000-03-01 H.J. Lu <hjl@gnu.org>
4520 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4521 indicate if the undefined symbol is a fatal error or not.
4522 Don't delete the output file if "fatal" is false.
4524 2000-02-29 H.J. Lu <hjl@gnu.org>
4526 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4527 Set LC_COLLATE and LC_ALL to null and export them. It is for
4528 sort which expects the C locale.
4529 Add $(LIBS) to all $(HOSTING_LIBS).
4530 * Makefile.in: Rebuild.
4532 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4534 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4535 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4536 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4537 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4538 find_potential_libraries.
4540 2000-02-28 Jim Blandy <jimb@redhat.com>
4542 * ldgram.y (exclude_name_list): Don't require a comma to separate
4543 list entries; the lexer considers commas to be valid part of a
4544 filename, so in something like `foo, bar' the comma is considered
4545 part of the first filename, `foo,'.
4546 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4548 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4550 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4551 host "i[3456]86-*-freebsdelf*".
4553 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4555 * scripttempl/i386go32.sc: Move misplaced semicolons.
4557 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4559 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4560 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4561 (eelf64hppa.c, ehppaelf.c): Remove targets.
4562 * Makefile.in: Rebuild.
4564 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4566 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4567 GNU/Linux/sparc, but keep the default as 32.
4569 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4570 it default if sparcv9 or sparc64.
4572 2000-02-24 Nick Clifton <nickc@cygnus.com>
4574 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4575 * Makefile.in: Regenerate.
4576 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4578 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4579 find_potential_libraries.
4580 * ldemul.c (ldemul_find_potential_libraries): New function.
4582 * ldfile.c (ldfile_open_file_search): Allow function to be
4584 (ldfile_open_file): Call ldemul_find_potential_libraries.
4585 * ldfile.h: Add prototype for ldfile_open_file_search.
4587 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4589 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4590 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4592 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4593 (gld_X_find_potential_libraries): New function. Search for
4594 libraries called "*.lib".
4596 * scripttempl/pe.sc: Add .pdata section.
4598 2000-02-23 Richard Henderson <rth@cygnus.com>
4600 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4601 Add and use memory regions.
4603 2000-02-23 Linas Vepstas (linas@linas.org)
4605 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4607 * Makefile.am: Add support for Linux/IBM 370.
4608 * configure.tgt: Likewise.
4610 * Makefile.in: Regenerate.
4612 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4614 * ldlang.c (print_input_section, print_data_statement,
4615 print_reloc_statement, print_padding_statement, insert_pad,
4616 size_input_section, lang_check_section_addresses,
4617 lang_size_sections, lang_do_assignments, lang_set_startof,
4618 lang_one_common): Change `opb' to unsigned.
4619 (lang_do_assignments): Also change `size' to unsigned.
4621 2000-02-16 Richard Henderson <rth@cygnus.com>
4623 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4625 2000-02-16 Timothy Wall <twall@cygnus.com>
4627 * mri.c (mri_draw_tree): Add default LMA region argument to call
4628 to lang_leave_output_section_statement.
4629 * ldlang.h: Update prototypes with LMA region arguments.
4630 * ldlang.c (lang_size_sections): Encapsulate region bounds
4631 checking in os_check_region call.
4632 (os_check_region): New function.
4633 (lang_output_section_statement_lookup): Initialize lma_region.
4634 (lang_leave_output_section_statement): Add LMA region argument.
4635 (lang_leave_overlay): Ditto.
4636 * ldgram.y: Handle LMA region syntax.
4637 * ld.texinfo (Output Section Description): Describe LMA region usage.
4638 * emultempl/armelf.em (gld$place_orphan): Add default value for
4639 lma region in call to lang_leave_output_section_statement.
4640 * emultempl/elf32.em (gld$place_orphan): Add default value for
4641 lma region in call to lang_leave_output_section_statement.
4642 * emultempl/pe.em (gld$place_orphan): Add default value for
4643 lma region in call to lang_leave_output_section_statement.
4646 2000-02-04 Timothy Wall <twall@redhat.com>
4648 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4649 octets when calculating section end addresses.
4651 2000-02-04 Timothy Wall <twall@redhat.com>
4653 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4655 2000-02-03 Timothy Wall <twall@redhat.com>
4657 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4659 * ldlang.c (print_input_section, print_data_statement,
4660 print_reloc_statement, print_padding_statement): Print target
4661 address values and section sizes as bytes, not octets.
4662 (insert_pad) Calculate padding size in octets, and adjust "dot"
4664 (size_input_section) Always adjust "dot" by bytes, not octets.
4665 (lang_check_section_addresses, lang_do_assignments) Adjust
4666 "dot" by bytes, not octets. Use the larger of the directive size
4667 or octets_per_byte for the number of octets actually allocated in
4669 (lang_set_startof) Make sure STARTOF returns a target address.
4670 (lang_one_common) Record size changes in octets.
4671 (lang_abs_symbol_at_end_of) Section end symbol's value is
4672 recorded in target bytes.
4673 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4674 to be clear about behavior when an octet is smaller than one byte.
4676 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4678 * ldcref.c (output_cref): Don't pass message strings to printf
4682 * ldmisc.c (vfinfo): Same here.
4685 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4687 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4688 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4689 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4690 Add missing NULL initialisers, and comments.
4692 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4694 2000-01-21 Nick Clifton <nickc@cygnus.com>
4696 * ldlang.c (lang_size_sections): Fix typo in comment.
4698 2000-01-18 H.J. Lu <hjl@gnu.org>
4700 * ldlang.c (lang_size_sections): Also update the current
4701 address of a region if the SEC_NEVER_LOAD bit is not set.
4703 2000-01-10 Philip Blundell <pb@futuretv.com>
4705 * configure.tgt (arm*-*-conix*): New target.
4707 2000-01-07 Nick Clifton <nickc@cygnus.com>
4709 * ld.texinfo (Options): Remind users to preceed linker command
4710 line switches with -Wl, (or whatever is appropriate) if it is
4711 being invoked by a comnpiler driver program.
4712 Fix description of the behaviour of the -n command line switch.
4714 2000-01-05 Catherine Moore <clm@cygnus.com>
4716 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4718 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4719 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4720 (exclude_name_list): New.
4721 ldlang.c (walk_wild_section): Support list of excluded files.
4722 (print_wild_statement): Likewise.
4723 (lang_add_wild): Likewise.
4724 * ldlang.h (lang_wild_statement_type): Likewise.
4725 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4727 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4729 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4730 (process_def_file): Use.
4731 (pe_dll_compat_implib): New variable.
4734 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4735 pe_dll_compat_implib.
4737 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4738 compat-implib options.
4739 (gld_${EMULATION_NAME}_list_options): List new options.
4740 (gld_${EMULATION_NAME}_parse_args): Handle.
4742 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4745 * deffilep.y (opt_name): Allow "." in name.
4747 For older changes see ChangeLog-9899
4753 version-control: never