Only search for an interworking bfd if there are input bfds.
[binutils.git] / ld / ChangeLog
bloba587652de5b5de7c3bc88013eac6734f9d84e6c9
1 2002-08-07  Nick Clifton  <nickc@redhat.com>
3         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
4         an interworking bfd if there are input bfds. (107501)
6 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
8         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
9         2002-05-10 change.
11 2002-08-01  Nick Clifton  <nickc@redhat.com>
13         * emulparams/armelf.sh: Revert previous delta.
14         * scripttempl/elf.sc: Revert previous delta.
16 2002-07-31  H.J. Lu <hjl@gnu.org>
18         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
19         --enable-64-bit-bfd.
21 2002-07-31  H.J. Lu <hjl@gnu.org>
23         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
24         64bit BFD is selected.
26 2002-07-31  H.J. Lu <hjl@gnu.org>
28         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
29         if 64bit BFD is selected.
31 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
33         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
34         link_info.common_skip_ar_aymbols.
35         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
37         * ldmain.c (main): Initialize new field
38         link_info.common_skip_ar_aymbols.
40 2002-07-31  Adam Nemet  <anemet@lnxw.com>
42         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
43         to .plt.thumb.
44         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
45         used.
47 2002-07-31  Nick Clifton  <nickc@redhat.com>
49         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
50         of the PDP-11 and 2.11BSD a.out support.
52 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
54         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
55         for n32 ABI support.
56         * Makefile.in: Regenerate.
57         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
58         n32 ABI emulations for these 64 bit targets.
59         * emulparams/elf32bmipn32.sh: Expand comment.
60         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
61         n32 ABI.
62         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
64 2002-07-30  Graeme Peterson  <gp@qnx.com>
66         * configure.tgt: Add support for arm-*-nto target.
67         * Makefile.am: Add earmnto.o file.
68         * Makefile.in: Regenerate.
69         * NEWS: Mention port of ARM support to QNX.
70         * emulparams/armnto.sh: New file.
72 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
74         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
75         for relocatable link.
76         (lang_size_sections_1): Don't make .tbss zero size for relocatable
77         link.
79 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
81         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
82         (STACK_ADDR): New.
84 2002-07-25  Nick Clifton  <nickc@redhat.com>
86         * po/sv.po: Updated Swedish translation.
87         * po/es.po: Updated Spanish translation.
88         * po/fr.po: Updated French translation.
90 2002-07-24  Nick Clifton  <nickc@redhat.com>
92         * po/sv.po: Updated Swedish translation.
93         * po/es.po: Updated Spanish translation.
95 2002-07-23  Nick Clifton  <nickc@redhat.com>
97         * po/fr.po: Updated French translation.
99 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
101         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
102         bomb on /DISCARD/ input section.
103         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
104         * emultempl/mmo.em (mmo_place_orphan): Likewise.
106 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
108         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
109         output section.
111 2002-07-16  Denis Chertykov  <denisc@overta.ru>
112             Nick Clifton  <nickc@redhat.com>
113             Frank Ch. Eigler  <fche@redhat.com>
114             John Healy  <jhealy@redhat.com>
116         * configure.tgt: Add support for ip2k-elf.
117         * Makefile.am: Add support for ip2k-elf.
118         * Makefile.in: Regenerate.
119         * emulparams/elf32ip2k.sh: New file.
120         * scripttempl/ip2k.sc: New file
121         * NEWS: Mention support for new port.
123 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
125         * NEWS: Add 'Changes in 2.13'.
127 2002-07-14  H.J. Lu <hjl@gnu.org>
129         * ld.texinfo: Document a .symver takes precedence over a
130         version script.
132 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
134         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
135         (COMMONPAGESIZE): Define.
137 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
139         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
141 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
143         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
144         powerpc-*-openbsd* and sparc64-*-openbsd*.
145         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
146         * Makefile.in: Regenerate.
147         * emulparams/hppaobsd.sh: New file.
149 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
151         * ldlang.c (print_wild_statement): Fix output formatting.
153 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
155         * ldlang.c: (strip_excluded_output_sections): New function.
156         (lang_process): Call it.
157         (lang_size_sections_1): Revert 2002-06-10 change.
159 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
161         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
162         Run "make dep-am".
163         * Makefile.in: Regenerate.
165 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
167         * ldfile.c (ldfile_try_open_bfd): Formatting.
169         * ldmisc.c (demangle): Move so that it doesn't intrude between
170         vfinfo comment and body.  Add comment.
172 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
174         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
176 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
178         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
179         * ldlang.c (entry_sym): Likewise.
180         (ldlang_undef_chain_list_type): Likewise.
181         (lang_finish): Adjust references to entry_symbol.
182         (lang_add_entry): Likewise.
183         (lang_gc_sections): Use link_info.gc_sym_list.
184         (lang_process): Set link_info.gc_sym_list.
185         * ldlex.l: Include bfdlink.h.
186         * ldmain.c (main): Init link_info.gc_sym_list.
187         * emultempl/aix.em: Adjust references to entry_symbol.
188         * emultempl/armcoff.em: Likewise.
189         * emultempl/armelf.em: Likewise.
190         * emultempl/pe.em: Likewise.
191         * emultempl/ppc64elf.em (ppc_after_open): New function.
192         (LDEMUL_AFTER_OPEN): Define.
193         * emulparams/elf64ppc.sh: KEEP .opd sections.
195 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
197         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
198         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
199         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
200         (EEPROM_START_ADDR): Define.
201         (EEPROM_MEMORY): Define.
202         * emulparams/m68hc12elf.sh: Likewise.
203         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
204         section to put soft registers in .page0.
205         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
207 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
209         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
210         section.  Add ${RELOCATING-0}.
212 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
214         * emulparams/shelf.sh (STACK_ADDR): Don't define.
215         (OTHER_SECTIONS): Define.
216         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
217         (OTHER_SECTIONS): Undef.
219 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
221         * ldmisc.c (demangle): Restore dots stripped from sym name.
223 2002-06-25  H.J. Lu <hjl@gnu.org>
225         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
226         * Makefile.in: Regenerated.
228 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
230         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
231         the size of attached object files, to allow make the object files
232         available via FTP or HTTP and to mention that the mail will be
233         sent to a mailing list.
235 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
237         * ld/configure.host (romp): Drop support.
239 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
241         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
242         section flags for SEC_DATA, rather than for SEC_CODE being unset.
244 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
246         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
247         format specifier used to print BFD name.
249 2002-06-18  Dave Brolley  <brolley@redhat.com>
251         From Catherine Moore, Michael Meissner, Jim Blandy:
252         * emulparams/elf32frv.sh: New file.
253         * configure.tgt: Support frv-*-*.
254         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
255         (eelf32frv.c): New target.
257 2002-06-17  Tom Rix  <trix@redhat.com>
259         * emultempl/elf32.em: gld*_get_script:  Check for
260         GENERATE_COMBRELOC_SCRIPT.
261         * scripttempl/elfd10v.sc : Fix STACK and INSN.
262         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
264 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
266         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
268 2002-06-12  H.J. Lu <hjl@gnu.org>
270         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
271         false if xvec doesn't match.
273 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
275         * ldlang.c (lang_size_sections_1): Skip removed output sections.
277 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
279         * ldexp.c: Replace CONST with const.
280         * ldfile.c: Likewise.
281         * ldfile.h: Likewise.
282         * ldlex.l: Likewise.
283         * mri.c: Likewise.
284         * pe-dll.h: Likewise.
286 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
288         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
290 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
292         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
293         to -1 == implicit enable.
294         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
295         initialize link_info.pei386_auto_import to -1 == implicit
296         enable.
297         (gld_${EMULATION_NAME}_parse_args): When processing
298         --enable-auto-import and --disable-auto-import options, use
299         '1' and '0' instead of 'true' and 'false'.
300         (pe_find_data_imports): Only issue message about auto-import
301         when the feature is implicitly enabled.  Downgrade message to
302         informational instead of warning.
304 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
306         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
308 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
310         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
311         HOSTING_CRT0 and HOSTING_LIBS.
313 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
315         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
317 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
319         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
320         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
322 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
324         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
325         SEC_EXCLUDE sections when doing a relocatable link.
327 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
329         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
330         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
331         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
332         (eshlelf64_nbsd.c): New rules.
333         * Makefile.in: Regenerate.
334         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
335         (sh64-*-netbsd*): New targets.
336         * emulparams/shelf32_nbsd.sh: New file.
337         * emulparams/shelf64_nbsd.sh: New file.
338         * emulparams/shlelf32_nbsd.sh: New file.
339         * emulparams/shlelf64_nbsd.sh: New file.
341 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
343         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
345 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
347         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
348         C++ constructors/destructors, loosely based on the m68hc11 port.
350 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
352         * Makefile.in: Regenerate.
353         * aclocal.m4: Regenerate.
354         * config.in: Regenerate.
355         * configure: Regenerate.
357 2002-05-31  Graeme Peterson  <gp@qnx.com>
359         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
360         (ei386nto.c): Add rule.
361         * Makefile.in: Regenerate.
362         * configure.tgt: Add i[3456]86-*-nto-qnx*.
363         * emulparams/i386nto.sh: New file.
365 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
367         * NEWS: Add entry for VAX ELF support.
369 2002-05-29  Matt Thomas  <matt@3am-software.com>
370             Jason Thorpe  <thorpej@wasabisystems.com>
372         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
373         (eelf32vax.c)
374         (evaxnbsd.c): New rules.
375         * Makefile.in: Regenerate.
376         * configure.tgt (vax-*-netbsdelf*)
377         (vax-*-netbsdaout*)
378         (vax-*-netbsd*): New targets.
379         * emulparams/elf32vax.sh: New file.
380         * emulparams/vaxnbsd.sh: New file.
382 2002-05-29  Adam Nemet  <anemet@lnxw.com>
384         * emultempl/armelf.em (arm_elf_after_open): Don't determine
385         bfd_for_interwork, instead add glue sections to each input bfd.
386         (bfd_for_interwork): New global.
387         (arm_elf_set_bfd_for_interworking): New function.
388         (arm_elf_before_allocation): Use it.
390 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
392         * Makefile.am: Add DLX make target.
393         * configure.tgt: Add DLX configuration.
394         * Makefile.in: Regenerate.
395         * emulparams/elf32_dlx.sh: New file
396         * scripttempl/dlx.sc: New file
398 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
400         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
401         * Makefile.in: Regenerate.
402         * emulparams/elf_chaos.sh: Use elf_chaos script.
403         * scripttempl/elf_chaos.sc: New file.
405 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
407         * ldlang.c (lang_size_sections_1): Move check for conflicting load
408         addresses and regions from here...
409         (lang_get_regions): ...to this new function.
410         (lang_leave_output_section_statement): Use lang_get_regions.
411         (lang_leave_overlay): Likewise.
412         * mri.c (mri_draw_tree): Pass null as last argument to
413         lang_leave_output_section_statement.
414         * emultempl/elf32.em (gld*_place_orphan): Likewise.
415         * emultempl/mmo.em (mmo_place_orphan): Likewise.
416         * emultempl/pe.em (gld*_place_orphan): Likewise.
418 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
420         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
422 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
424         * ldemul.c: Fix formatting.
425         * ldfile.c: Likewise.
426         * pe-dll.c: Likewise.
427         * pe-dll.h: Likewise.
429 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
431         * ldlang.c (lang_process): Formatting, grammar.
433         * ldlex.l: Use #include "" instead of <> for local header files.
435 2002-05-24  TAMURA Kent <kent@netbsd.org>
437         * configure.tgt: Add a target for i386-netbsdpe.
439 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
441         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
442         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
443         output section if necessary.  Handle .tbss.
444         (lang_size_sections): Clear _raw_size for .tbss section
445         (it allocates space in PT_TLS segment only).
446         * ldwrite.c (build_link_order): Build link order for .tbss too.
448 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
450         * configure.in: Correct spelling of AC_PREREQ.
452 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
454         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
455         default.
456         (autofilter_objlist): Add crtbegin.o, crtend.o.
458 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
460         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
461         (longopts): Add new option --exclude-libs.
462         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
463         (gld_${EMULATION_NAME}_parse_args): Use it.
464         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
465         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
466         from whole archives.
467         (pe_dll_add_excludes): Set excludes->type.
468         (auto_export): Add new variable libname and set to archive basename if
469         abfd.  Use it when filtering default and user-specified libarary
470         excludes.  Let string "ALL" mean all libs when filtering user-specified
471         libs.
472         * ld.texinfo: Document --exclude-libs.
474 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
476         * ldemul.c (ldemul_new_vers_pattern): New function.
477         * ldemul.h (ldemul_new_vers_pattern): Declare.
478         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
479         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
480         * emultempl/ppc64elf.em (dotsyms): New static var.
481         (gld${EMULATION_NAME}_new_vers_pattern): New function.
482         (LDEMUL_NEW_VERS_PATTERN): Define.
483         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
484         (PARSE_AND_LIST_LONGOPTS): Likewise.
485         (PARSE_AND_LIST_ARGS_CASES): Handle them.
486         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
487         initialiser.
488         * emultempl/armcoff.em: Likewise.
489         * emultempl/armelf_oabi.em: Likewise.
490         * emultempl/beos.em: Likewise.
491         * emultempl/elf32.em: Likewise.
492         * emultempl/generic.em: Likewise.
493         * emultempl/gld960.em: Likewise.
494         * emultempl/gld960c.em: Likewise.
495         * emultempl/linux.em: Likewise.
496         * emultempl/lnk960.em: Likewise.
497         * emultempl/m68kcoff.em: Likewise.
498         * emultempl/mipsecoff.em: Likewise.
499         * emultempl/pe.em: Likewise.
500         * emultempl/sunos.em: Likewise.
501         * emultempl/ticoff.em: Likewise.
502         * emultempl/vanilla.em: Likewise.
504 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
506         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
507         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
508         (LIB_SEARCH_DIRS): No need to use "tr".
509         (COMPILE_IN): Only set for native targets.
510         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
511         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
512         * configure.tgt (powerpc*): Set tdir_*.
513         (powerpcle*): Correct targ_extra_emuls.
514         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
515         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
517 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
519         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
520         calling lang_add_entry.
522 2002-05-21  H.J. Lu  (hjl@gnu.org)
524         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
525         "-z muldefs".
526         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
528         * ld.texinfo: Updated for --allow-multiple-definition and
529         "-z muldefs".
531         * ldmain.c (main): Initialize the allow_multiple_definition
532         field to false.
534         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
535         (ld_options): Add --allow-multiple-definition.
536         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
538 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
540         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
541         (earmelfb_nbsd.c): New rule.
542         * Makefile.in: Regenerate.
543         * configure.tgt (armeb-*-netbsdelf*): New target.
544         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
545         (arm-*-netbsd*): Likewise.
546         * emulparams/armelfb_nbsd.sh: New file.
548 2002-05-18  Tom Rix  <trix@redhat.com>
550         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
551         support.
553 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
555         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
556         * Makefile.in: Regenerate.
557         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
559 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
561         * emulparams/avr1.sh: New file.
562         * emulparams/avr2.sh: New file.
563         * emulparams/avr3.sh: New file.
564         * emulparams/avr4.sh: New file.
565         * emulparams/avr5.sh: New file.
566         * scripttempl/avr.sc: New file.
568 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
570         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
571         (lang_place_orphans): Abort if just_syms_flag.
573 2002-05-10  Tom Rix  <trix@redhat.com>
575         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
576         architecture and machine information in the output bfd.
577         (gld*_before_parse): Remove old arch and machine code.
578         (choose_target): Rename to gld*_choose_target.
579         (rtld): Change type to int.
580         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
581         objects in XCOFF archives.
582         * ldfile.h: Update copyright date.
584 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
586         * ldmain.c (main): Enable -z combreloc by default.
588 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
590         * Makefile.am: Honour DESTDIR.
591         * Makefile.in: Regenerate.
593 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
595         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
596         (lang_enter_overlay): Remove the last two parameters.
597         (lang_leave_overlay): Take them here instead.
598         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
599         (section): Pass LMA and crossref flag to lang_leave_overlay rather
600         than lang_enter_overlay.
601         * ldlang.c (lang_memory_region_lookup): Return null for null names.
602         (lang_output_section_statement_lookup): Initialize update_dot_tree.
603         (lang_size_sections_1): Evaluate it.
604         (lang_leave_output_section_statement): Rework LMA lookup.
605         (overlay_lma, overlay_nocrossrefs): Remove.
606         (lang_enter_overlay): Remove LMA and crossref arguments.
607         (lang_enter_overlay_section): Don't set the LMA here.
608         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
609         assignment to the last section's update_dot_tree.  Unconditionally
610         use the load and run-time regions specified in the OVERLAY statement.
611         Likewise the first section's LMA.  Only set the other sections' LMAs
612         when no load region is given.
614 2002-05-06  Nick Clifton <nickc@redhat.com>
616         * po/sv.po: New translation.
618 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
620         * emultempl/hppaelf.em (build_section_lists): New function.
621         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
622         and build_section_lists.
624 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
626         * ld.h: Fix formatting.
627         * ldexp.c: Likewise.
628         * ldfile.c: Likewise.
629         * ldlang.c: Likewise.
630         * ldmain.c: Likewise.
631         * lexsup.c: Likewise.
632         * pe-dll.c: Likewise.
634 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
636         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
637         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
638         (build_section_lists): Do output_section tests here.
640 2002-04-30  Tom Rix  <trix@redhat.com>
642         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
644 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
646         Long branch stubs, multiple stub sections.
647         * emultempl/ppc64elf.em: Include ldctor.h.
648         (stub_file): New var.
649         (group_size): New var.
650         (ppc_create_output_section_statements): New function.
651         (struct hook_stub_info): New.
652         (hook_in_stub): New function.
653         (ppc_add_stub_section): New function.
654         (ppc_layout_sections_again): New function.
655         (build_section_lists): New function.
656         (gld${EMULATION_NAME}_finish): Rewrite.
657         (real_func): New var.
658         (ppc_for_each_input_file_wrapper): New function.
659         (ppc_lang_for_each_input_file): New function.
660         (lang_for_each_input_file): Define.
661         (PARSE_AND_LIST_PROLOGUE): Define.
662         (PARSE_AND_LIST_LONGOPTS): Define.
663         (PARSE_AND_LIST_OPTIONS): Define.
664         (PARSE_AND_LIST_ARGS_CASES): Define.
665         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
667 2002-04-30  Tom Rix  <trix@redhat.com>
669         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
670         -blibpath, -bnolibpath support.
672 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
674         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
675         (eelf32ppcwindiss.c): New target.
676         * Makefile.in: Regenerated.
677         * configure.tgt: Add support for powerpc-*-windiss.
678         * emulparams/elf32ppcwindiss.sh: New file.
680 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
682         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
683         * ldexp.c (exp_print_token): Add "infix_p" argument.
684         (exp_print_tree): Update accordingly.
686 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
688         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
689         * Makefile.in: Regenerate.
690         * mpw-elfmips.c: Delete.
691         * mpw-eppcmac.c: Delete.
692         * mpw-esh.c: Delete.
693         * mpw-idtmips.c: Delete.
695 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
697         * emulparams/shelf32.sh (MACHINE): Now sh5.
699 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
701         * ldgram.y: Fix syntax warning.
703 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
705         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
706         to prevent "-n" from being taken as an abbreviation for
707         "--no-pipeline-knowledge".
709 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
711         * ldlang.c (lang_size_sections_1): Don't complain about
712         SEC_NEVER_LOAD sections having no memory region specified.
714         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
716 2002-04-07  matthew green  <mrg@redhat.com>
718         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
720 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
722         * dep-in.sed: Cope with absolute paths.
723         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
724         Run "make dep-am".
725         * Makefile.in: Regenerate.
727 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
729         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
731 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
733         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
734         is smaller than maximum, round dot up to common page boundary.
736 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
738         * configure.host: Set up for generic hosts first, then tweak as
739         necessary in more specific targets.
740         (HOSTING_LIBS): Include libgcc_eh.a if found.
742 2002-03-23  Andreas Jaeger  <aj@suse.de>
744         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
746 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
748         * Makefile.am: Run "make dep-am".
749         * Makefile.in: Regenerate.
751 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
753         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
755 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
757         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
758         add the symbol to the linker hash table immediately.
759         (lang_place_undefineds): Split symbol creation out..
760         (insert_undefined): ..to here.
762 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
764         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
765         the contents of the buffer returned from basename function will are
766         getting overwritten while still being used.
768 2002-03-18  Jan Hubicka  <jh@suse.cz>
769             Andreas Jaeger  <aj@suse.de>
770             Andreas Schwab  <schwab@suse.de>
772         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
773         * elf_x86_64.sh (ARCH): Set to i386:x86-64
774         set libraries to default to lib64 paths.
776 2002-03-18  Tom Rix  <trix@redhat.com>
778         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
779         * configure.tgt : Same.
780         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
781         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
782         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
783         emulation parameters for better -b32, -b64 support.
784         * emulparms/aixrs6.sh : Same.
785         * emulparms/ppcmacos.sh : Same.
786         * emultempl/aix.em (choose_target) : Use new emulation parameters
787         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
788         * Makefile.in : Regenerate.
790 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
792         * po/fr.po: Updated version.
794 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
796         * ldmain.c (main): Move .text readonly flag fudges from here..
797         * ldlang.c (lang_process): ..to here.
799 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
801         * ldlang.c (lang_check): Remove the word size check added in last
802         change.  Treat emitrelocations case as for relocatable links.
804 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
806         * po/fr.po: Updated version.
808 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
810         * ldlang.c (lang_check): Do relocatable link checks first, so that
811         warn_mismatch can't override.  Check compatible and word size too.
813 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
815         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
817 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
819         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
820         DATA_SEGMENT_ALIGN.
822 2002-03-04  H.J. Lu <hjl@gnu.org>
824         * scripttempl/elf.sc: Put .preinit_array, .init_array and
825         .fini_array in the data segment.
827 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
829         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
831 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
833         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
834         .init_array, and .fini_array.
836 2002-02-20  Andreas Schwab  <schwab@suse.de>
838         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
839         .IA64_unwind* in a relocatable link.
841 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
843         * NEWS: Mark 2.12 branch.
845 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
847         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
848         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
850 2002-02-18  Tom Rix  <trix@redhat.com>
852         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
853         (gld*_before_allocation): Same.
854         (gld*_create_output_section_statements): Generate
855         __rtinit if run time linking.  Add librtl.a to the link.
856         (gld*_read_file): Clean.
858 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
860         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
862 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
864         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
865         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
866         and eelf64alpha_fbsd.
867         * Makefile.in: Regenerate.
868         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
869         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
870         use a FreeBSD-specific emulation rather than the psABI one.
871         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
872         for all FreeBSD ELF systems.
873         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
874         emulation.
875         * emulparams/elf32ppc_fbsd.sh: Likewise.
876         * emulparams/elf64_ia64_fbsd.sh: Likewise.
877         * emulparams/elf64_sparc_fbsd.sh: Likewise.
878         * emulparams/elf64alpha_fbsd.sh: Likewise.
879         * emulparams/elf_i386_fbsd.sh: Likewise.
880         * emulparams/elf_x86_64_fbsd.sh: Likewise.
882 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
884         * po/tr.po: Updated version.
886 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
888         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
889         (FILL): Likewise.
891 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
893         * emultempl/mmo.em (mmo_after_open): Don't call
894         _bfd_mmix_check_all_relocs when producing ELF output.
896 2002-02-15  Richard Henderson  <rth@redhat.com>
898         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
899         definition.  Emit a unop+nop pair.
901 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
903         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
904         for presence of .MMIX.reg_contents.linker_allocated before early
905         exit.
907         * NEWS: Mention support for MMIX.
909 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
911         Support arbitrary length fill patterns.
912         * ld.texinfo (Output Section Fill): Describe fill expressions.
913         (FILL): Refer to the above.
914         * ldexp.h (etree_value_type): Add "str" field.
915         (union etree_union): Add "str" to "value" struct.
916         (exp_bigintop): Declare.
917         (exp_get_fill): Declare.
918         * ldexp.c: Include "safe-ctype.h".
919         (exp_intop): Set value.str to NULL.
920         (exp_bigintop): New function.
921         (new_rel): Pass in "str", and set new.str from it.
922         (new_rel_from_section): Set new.str to NULL.
923         (fold_name): Adjust calls to new_rel.
924         (exp_fold_tree): Likewise.
925         (exp_get_fill): New function.
926         * ldgram.y (struct big_int bigint, fill_type *fill): New.
927         (INT): Returns a "bigint".  Adjust all code handling INTs.
928         (fill_opt): Returns a "fill".
929         (fill_exp): Split out of fill_opt, use for FILL.
930         * ldlang.h (struct _fill_type): New.
931         (fill_type): Move typedef to ldexp.h.
932         (lang_output_section_statement_type): "fill" is now a pointer.
933         (lang_fill_statement_type): Likewise.
934         (lang_padding_statement_type): Likewise.
935         (lang_add_fill): Now takes a "fill_type *" param.
936         (lang_leave_output_section_statement): Likewise.
937         (lang_do_assignments): Likewise.
938         (lang_size_sections): Likewise.
939         (lang_leave_overlay_section): Likewise.
940         (lang_leave_overlay): Likewise.
941         * ldlang.c: Include ldgram.h after ldexp.h.
942         (lang_output_section_statement_lookup): Adjust for fill_type change.
943         (print_fill_statement): Likewise.
944         (print_padding_statement): Likewise.
945         (insert_pad): Now takes a "fill_type *" arg.
946         (size_input_section): Likewise.
947         (lang_size_sections_1): Likewise.
948         (lang_size_sections): Likewise.
949         (lang_do_assignments): Likewise.
950         (lang_add_fill): Likewise.
951         (lang_leave_output_section_statement): Likewise.
952         (lang_leave_overlay_section): Likewise.
953         (lang_leave_overlay): Likewise.
954         Adjust all callers of the above function.
955         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
956         starting with "0X" as well as "0x".  Return bigint.str for hex
957         numbers starting with "0x" or "0X", zero bigint.str otherwise.
958         Always use base 16 for numbers starting with "$".
959         * ldmain.c: Include ldgram.h after ldexp.h.
960         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
961         of bfd_fill_link_order.
962         * pe-dll.c: Adjust lang_do_assignments calls.
963         * emultempl/elf32.em: Likewise.
964         * emultempl/hppaelf.em: Likewise.
965         * emultempl/ppc64elf.em: Likewise.
966         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
967         lang_add_assignment call.
968         * emultempl/pe.em: Likewise.
970 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
972         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
973         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
974         the pattern in question is not a regexp.
975         * ldlang.c:  Likewise.
976         * ldlang.h:  Likewise.
977         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
979 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
981         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
982         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
983         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
984         * ldexp.c (exp_data_seg): New variable.
985         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
986         (fold_binary): Handle DATA_SEGMENT_ALIGN.
987         (exp_fold_tree): Handle DATA_SEGMENT_END.
988         Pass allocation_done when recursing instead of hardcoding
989         lang_allocating_phase_enum.
990         * ldexp.h (exp_data_seg): New.
991         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
992         (lang_size_sections): New.
993         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
994         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
995         if COMMONPAGESIZE is defined.
996         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
997         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
998         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
999         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1000         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1001         libraries only.
1003 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
1005         * Makefile.in: Regenerate.
1007 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1009         * lexsup.c: Remove strtoul declaration.
1011 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1013         * ldmain.c: Add prototype for main ().
1014         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1015         * emultempl/lnk960.em (lnk960_choose_target): Function should
1016         take two arguments.
1018 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
1020         * ldlang.c (entry_section): New initialised variable.
1021         (lang_finish): Use it.
1022         * ldlang.h (entry_section): Declare.
1023         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1024         entry_section to ".opd".
1026 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
1028         * ld.texinfo (Options): Add back in -nostdlib documentation,
1029         which had been inadvertently removed.
1031 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
1033         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1034         register section vma to a sane value after emitting error.  Make
1035         fatal conditions cause program exit when emitting message.
1037 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
1039         * configure.tgt: Add or32-*-rtems target.
1041 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1043         Contribute sh64-elf.
1044         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1045         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1046         in OTHER_RELOCATABLE_SECTIONS.
1047         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1048         * emulparams/shelf32.sh (STACK_ADDR): Define.
1049         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1050         (OTHER_SECTIONS): this.  Removed stack settings.
1051         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1052         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1053         2001-03-12  DJ Delorie  <dj@redhat.com>
1054         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1055         relaxing if any shmedia or mixed sections are found.
1056         2001-03-07  DJ Delorie  <dj@redhat.com>
1057         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1058         einfo.  Gracefully decline to output to non-elf formats.
1059         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
1060         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1061         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1062         * emulparams/shelf32.sh: Ditto.
1063         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
1064         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1065         comment.
1066         2001-01-10  Ben Elliston  <bje@redhat.com>
1067         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1068         non-portable shell constructs. From Hans-Peter Nilsson.
1069         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
1070         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1071         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1072         dependencies to the shell script include chain.
1073         * Makefile.in: Regenerate.
1074         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
1075         * emultempl/sh64elf.em: Update and tweak comments.
1076         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1077         make a .cranges section SEC_IN_MEMORY.
1078         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1079         * emultempl/sh64elf.em
1080         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1081         .cranges section found to be necessary; continue and set stored
1082         section contents flags for sections with non-mixed contents.
1083         Use a struct sh64_section_data container and sh64_elf_section_data
1084         to store contents-type flags.
1085         Remove unused update of "isec".
1086         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1087         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
1088         access contents-type flags.  Assert that the associated container
1089         is initialized.  Use that container, not elf_gp_size, to hold size
1090         of linker-generated cranges contents.
1091         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1092         * emultempl/sh64elf.em
1093         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1094         there's already a .cranges section.  When section flag difference
1095         is found, don't NULL-check cranges a second time.  Tweak comments.
1096         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1097         merging, not max size, as size of ld-generated .cranges contents.
1098         Don't set ELF section flags in output section.  When checking for
1099         needed .cranges descriptors, don't use a variable; compare
1100         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
1101         comments.
1102         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1103         * emultempl/sh64elf.em: New file.
1104         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1105         * Makefile.in: Regenerate.
1106         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1107         (OTHER_RELOCATING_SECTIONS): Ditto.
1108         (EXTRA_EM_FILE): New, set to sh64elf if not set.
1109         * emulparams/shlelf32.sh: Stub out all settings except
1110         OUTPUT_FORMAT.  Source shelf32.sh.
1111         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1112         OTHER_RELOCATING_SECTIONS.
1113         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1114         * emulparams/shlelf64.sh: Stub out all settings except
1115         OUTPUT_FORMAT.  Source shelf64.sh.
1116         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
1117         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1118         .cranges section.
1119         (DATA_START_SYMBOLS): Define, provide ___data.
1120         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1121         for consecutive .data section.
1122         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1123         section after .data section.
1124         * emulparams/shlelf64.sh: Ditto.
1125         * emulparams/shelf32.sh: Ditto.
1126         (ALIGNMENT): Define to 8.
1127         * emulparams/shelf32.sh: Ditto.
1128         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
1129         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1130         built-in linker scripts.
1131         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1132         * emulparams/shlelf64.sh: New.
1133         * emulparams/shelf64.sh: New.
1134         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1135         targ_extra_emuls.
1136         * Makefile.am: Add support for shlelf64 and shelf64.
1137         * Makefile.in: Regenerate.
1138         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
1139         * configure.tgt (sh64-*-elf*): Add shelf as default.
1140         Add shlelf to targ_extra_emuls.
1141         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
1142         * emulparams/shelf32.sh: New file.
1143         * emulparams/shlelf32.sh: New file.
1144         * Makefile.am: Add support for shlelf32 and shelf32.
1145         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1146         * Makefile.in: Regenerate.
1148 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
1150         * ldlang.c (lang_reset_memory_regions): Rename from
1151         reset_memory_regions.  Change all callers.  Make public.
1152         * ldlang.h (lang_reset_memory_regions): Prototype.
1153         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1154         lang_reset_memory_regions before lang_size_sections.
1155         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1156         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1158 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
1160         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1161         arithmetic when checking for too many global registers.
1163 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
1165         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1166         (ehppanbsd.c): New rule.
1167         * Makefile.in: Regenerate.
1168         * configure.tgt (hppa*-*-netbsd*): New target.
1169         * emulparams/hppalinux.sh: Add comment to check other files
1170         that source this file it is modified, and list which
1171         files that do.
1172         * emulparams/hppanbsd.sh: New file.
1174 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
1176         * scripttempl/xstormy16.sc: Don't allocate extra space for the
1177         stack.
1179 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
1181         Support on-demand global register allocation from
1182         R_MMIX_BASE_PLUS_OFFSET relocs.
1183         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1184         mmix_set_reg_section_vma.  Call
1185         _bfd_mmix_finalize_linker_allocated_gregs.
1186         (mmix_before_allocation): New function.
1187         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1188         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1189         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1190         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1191         before .MMIX.reg_contents.
1192         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1193         (mmo_after_open): New function.
1194         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1195         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
1196         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1198 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
1200         * emulparams/or32.sh: New file.
1201         * emulparams/or32elf.sh: New file.
1202         * scripttempl/or32.sc: New file.
1203         * configure.tgt : Add support for or32.
1204         * configure: Regenerate
1205         * Makefile.am: Add support for or32.
1206         * Makefile.in: Regenerate.
1207         * NEWS: Mention support for or32.
1208         * po/ld.pot: Regenerate.
1210 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
1211             Mitch Lichtenberg  <mpl@broadcom.com>
1213         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1214         * emultempl/mipself.em: New file to handle MIPS ELF embedded
1215         reloc creation (ld --embedded-relocs).
1217 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
1219         * configure: Regenerated.
1221 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
1223         * Makefile.am (install): Depend on install-info.
1224         * Makefile.in: Regenerate.
1226 2002-01-26  Christian Rose  <menthos@menthos.com>
1228         * ldmain.c (main): Use full sentences to ease translation.
1230 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
1232         * po/fr.po: Updated version.
1234 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
1236         * po/es.po: Updated version.
1238 2002-01-25  Andreas Jaeger  <aj@suse.de>
1240         * ldlex.l (yy_input): Correct error check.
1242 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
1244         * ldmisc.c (demangle): Put back dots when string not demangled.
1246 2002-01-22  Richard Henderson  <rth@redhat.com>
1248         * emulparams/elf64alpha.sh (NOP): Use unop.
1250 2002-01-21  Andreas Jaeger  <aj@suse.de>
1252         * ldlex.l: Use fread instead of read.
1254 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
1256         * configure.tgt (ia64-*-netbsd*): New target.
1258 2002-01-21  H.J. Lu <hjl@gnu.org>
1260         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1261         0.
1262         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1264 2002-01-18  Andreas Jaeger  <aj@suse.de>
1266         * ldver.c (ldversion): Update year.
1268 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
1270         * po/ld.pot: Regenerate.
1272 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
1274         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1275         * Makefile.in: Regenerate.
1276         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1277         * emultempl/ppc64elf.em: New file.
1279 2002-01-15  DJ Delorie  <dj@redhat.com>
1281         * scripttempl/pe.sc: Add support for constructor priorities.
1283 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1285         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1286         * emulparams/avr23xx.sh: Likewise.
1287         * emulparams/avr4433.sh: Likewise.
1288         * emulparams/avr44x4.sh: Likewise.
1289         * emulparams/avr85xx.sh: Likewise.
1290         * emulparams/avrmega103.sh: Likewise.
1291         * emulparams/avrmega161.sh: Likewise.
1292         * emulparams/avrmega603.sh: Likewise.
1293         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1295 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
1297         * ldlang.c (walk_wild_section): Exclude object file if enclosing
1298         archive is excluded.
1300 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
1302         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1303         (eshelf_nbsd.c): New rule.
1304         (eshlelf_nbsd.c): New rule.
1305         * Makefile.in: Regenerate.
1306         * configure.tgt (sh*le-*-netbsdelf*): New target.
1307         (sh*-*-netbsdelf*): New target.
1308         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1309         * ld/emulparams/shelf_nbsd.sh: New emulation.
1310         * ld/emulparams/shlelf_nbsd.sh: New emulation.
1312 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
1314         * po/es.po: New file: Spanish translation.
1315         * configure.in (ALL_LINGUAS): Add es.
1316         * configure: Regenerate.
1318 2002-01-06  John Marshall  <jmarshall@acm.org>
1320         * ld.texinfo: Note that --emit-relocs is currently only
1321         implemented for ELF.
1323 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
1325         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1326         of bfd_section_list_remove and bfd_section_list_insert macros.
1327         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1328         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1330 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1332         * configure.tgt (x86_64-*-netbsd*): New target.
1334 2001-12-21  Tom Rix  <trix@redhat.com>
1336         (gld*_create_output_section_statements): New function.
1337         For -binitfini support.
1338         * emultempl/aix.em (gld*_before_parse): Fix comment.
1339         * emultempl/aix.em (gld*_parse_args): Fix comment.
1341 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
1343         * configure.tgt (mips*-dec-netbsd*): Delete alias for
1344         mips*el-*-netbsd*.
1345         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1347         * configure.tgt (arm-*-netbsdelf*): Add target.
1348         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1349         * emulparams/armelf_nbsd.sh: Added.
1350         * Makefile.am: Add rules for earmelf_nbsd.
1351         * Makefile.in: Regenerate.
1353 2001-12-19  Andreas Jaeger  <aj@suse.de>,
1354             Susanne Oberhauser <froh@suse.de>
1356         * configure.host: Add rules for x86_64-*linux-gnu.  Change
1357         s390x-linux entry to use gcc to report configuration, replace gcc
1358         with $CC in s390-linux
1360 2001-12-19  Andreas Jaeger  <aj@suse.de>
1362         * ld.texinfo (VERSION): Fix markup.
1364 2001-12-18  matthew green  <mrg@eterna.com.au>
1366         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1367         (m68kelfnbsd.c): New rule.
1368         * Makefile.in: Regenerate.
1369         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1370         (m68*-*-netbsd*4k*): .. this.
1371         (m68*-*-netbsdelf*): New target.
1372         (m68*-*-netbsd*): Also include ELF support.
1373         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1374         * emulparams/m68kelfnbsd.sh: New emulation.
1376 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1378         * ldgram.y (vers_node): Support anonymous version tags.
1379         * ldlang.c (lang_register_vers_node): Ensure anonymous version
1380         tag is not defined together with non-anonymous versions.
1381         * ld.texinfo: Document it.
1383 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
1385         * po/tr.po: New file: Turkish translation.
1386         * configure.in (ALL_LINGUAS): Add tr.
1387         * configure: Regenerate.
1389 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
1391         * Makefile.am: Add rules for eelf64alpha_nbsd.
1392         * Makefile.in: Regenerate.
1393         * configure.tgt (alpha*-*-netbsd*): Set
1394         targ_emul to elf64alpha_nbsd.
1395         * emulparams/elf64alpha_nbsd.sh: Added.
1397 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
1399         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1400         section_tail when fiddling with section list.
1401         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1402         broken into separate strings to make translation easier.
1403         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1404         fiddling with section list.
1405         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1407 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
1409         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1411 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
1413         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1415 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
1417         * emultempl/elf32.em (finish): Supply output_bfd
1418         to bfd_elf*_discard_info.
1419         (OPTION_EH_FRAME_HDR): Define.
1420         (longopts): Add --eh-frame-hdr.
1421         (parse_args): Handle it.
1422         (list_options): Add --eh-frame-hdr to help.
1423         * emultempl/hppaelf.em (finish): Supply output_bfd
1424         to bfd_elf*_discard_info.
1425         * scripttempl/elf.sc (.eh_frame_hdr): Add.
1427 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
1429         * lexsup.c (parse_args): Don't pass shortopts to second call to
1430         getopt functions.  Restore optind rather than decrementing before
1431         second call.  Remove errind as it now duplicates last_optind.
1433 2001-12-11  Christopher Faylor  <cgf@redhat.com>
1435         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1437 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
1438             Richard Henderson  <rth@redhat.com>
1440         * Makefile.am: Add support for xstormy16.
1441         * configure.tgt: Add support for xstormy16.
1442         * Makefile.in: Regenerate.
1443         * emulparams/elf32xstormy16.sh: New file.
1444         * scripttempl/xstormy16.sc: New file.
1446 2001-10-01  Christopher Faylor <cgf@cygnus.com>
1448         * Makefile.in (LIB_PATH): Make configurable.
1449         (GENSCRIPTS): Set LIB_PATH in environment.
1450         * configure.in: Substitute LIB_PATH.
1451         * configure: Regenerate.
1452         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1453         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1455 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
1457         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1458         describing the -N option so that it is easier to translate into
1459         foreign languages.
1461 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
1463         * emultempl/pe.em (..._list_options): Replace multiple fprintf
1464         statements describing a single option with a single, newline
1465         escaped fprintf.  This allows better translation into other
1466         languages.
1468         * ldmain.c (add_archive_element): Combine multiple strings
1469         into a single string to permit better translation into other
1470         languages.
1472 2001-12-05  Tom Rix  <trix@redhat.com>
1474         * Makefile.am: Remove eaixppc64.
1475         * Makefile.in: Regenerate.
1477 2001-12-04  Tom Rix  <trix@redhat.com>
1479         * emultempl/aix.em (choose_target): Change default target to
1480         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
1481         warning.
1482         (gld*_read_file):  Fix typo.
1483         (change_symbol_mode): Add prototype.
1484         (is_syscall): Same.
1486         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1487         * emulparams/aixrs6.sh : Same.
1488         * emulparams/ppcmacos.sh : Same.
1489         * emulparams/aixppc64.sh : Delete file.
1490         * emultempl/aix.em : Formatting changes.
1492 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
1494         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1495         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1496         __Sbss.
1497         (OTHER_END_SYMBOLS): Fix formatting.
1498         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1499         (OTHER_END_SYMBOLS): Fix formatting.
1501 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
1503         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1505 2001-12-02  Tom Rix  <trix@redhat.com>
1507         * configure.tgt : Remove eaixppc64 emulations.
1508         * Makefile.in : Remove eaixppc64.c
1509         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1510         (ldemul_default_target): Same.
1511         * emultempl/gld960.em (gld960_choose_target):  Same.
1512         * emultempl/gld960c.em (gld960_choose_target):  Same.
1513         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1514         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1515         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1516         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1517         * emultempl/aix.em (choose_target): New function.  Handle emulation of
1518         -b32 and -b64.
1520 2001-11-27  H.J. Lu <hjl@gnu.org>
1522         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1523         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1524         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1525         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1526         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1527         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1528         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1529         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1531         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1532         is not empty.
1533         (SDATA): Likewise.
1534         (REL_SDATA): Likewise.
1535         (REL_SBSS): Likewise.
1536         (REL_SDATA2): Likewise.
1537         (REL_SBSS2): Likewise.
1538         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1539         (SDATA2): Likewise.
1541 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1543         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1544         destructor in rom.
1545         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1547 2001-11-22  H.J. Lu  <hjl@gnu.org>
1549         * Makefile.in: Regenerated with automake based on automake
1550         1.4-8 in RedHat 7.1.
1552 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
1554         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1555         (config.status): Delete rule.
1556         Add extra dependencies to cover sourced emulparams files.
1557         * Makefile.in: Regenerate.
1559         * scripttempl/elf.sc: Order <section>, <section>.* and
1560         corresponding linkonce sections as seen in input files.
1561         Formatting fixes.  Zero vma of all sections if not relocating.
1562         (STACK): Define and insert if STACK_ADDR defined.
1563         (OTHER_RELOCATING_SECTIONS): Delete.
1564         (OTHER_END_SYMBOLS): Define.
1565         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1566         (OTHER_READWRITE_SECTIONS): Likewise.
1567         (OTHER_GOT_SECTIONS): Likewise.
1568         (OTHER_SDATA_SECTIONS): Likewise.
1569         (OTHER_BSS_SECTIONS): Likewise.
1570         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1571         (OTHER_READWRITE_SECTIONS): Likewise.
1572         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1573         (OTHER_READWRITE_SECTIONS): Likewise
1575         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1576         (STACK_ADDR): Define.
1577         * emulparams/armelf_oabi.sh: As for armelf.sh.
1578         * emulparams/elf32mcore.sh: As for armelf.sh.
1579         * emulparams/h8300elf.sh: As for armelf.sh.
1580         * emulparams/mn10200.sh: As for armelf.sh.
1581         * emulparams/shelf.sh: As for armelf.sh.
1583         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1584         (OTHER_END_SYMBOLS): Define.
1585         * emulparams/m32relf.sh: As for elf32fr30.sh.
1586         * emulparams/h8300helf.sh: As for elf32fr30.sh.
1587         * emulparams/h8300self.sh: As for elf32fr30.sh.
1589         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1590         defines with RELOCATING test.
1591         (OTHER_SDATA_SECTIONS): Likewise.
1592         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1593         (OTHER_END_SYMBOLS): ..this.
1594         * emulparams/crislinux.sh: As for criself.sh.
1596         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1597         if not relocating.
1598         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1599         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
1600         normal and linkonce sections as seen in input files.
1601         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1602         (TEXT_DYNAMIC): Likewise.
1603         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1604         (OTHER_SDATA_SECTIONS): Likewise.
1605         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1606         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1607         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1608         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1609         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1610         (OTHER_PLT_RELOC_SECTIONS): Likewise.
1611         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
1612         sections as seen in input files.
1613         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1614         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1615         if not relocating.
1616         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1617         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1618         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1619         (OTHER_SECTIONS): Instead, use this..
1620         (OTHER_END_SYMBOLS): ..and this.
1622         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1623         * emulparams/elf32bsmip.sh: Likewise.
1624         * emulparams/elf32btsmip.sh: Likewise.
1625         * emulparams/elf32ebmip.sh: Likewise.
1626         * emulparams/elf32lmip.sh: Likewise.
1627         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1628         * emulparams/elf32lsmip.sh: Likewise.
1629         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1630         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1631         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1632         * emulparams/elf64btsmip.sh: Likewise.
1633         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1634         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1635         * emulparams/elf32ppclinux.sh: Likewise.
1636         * emulparams/elf32ppcsim.sh: Likewise.
1637         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1638         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1639         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1640         * emulparams/h8300self.sh: Likewise.
1641         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1642         * emulparams/sh.sh: Comment.
1643         * emulparams/shl.sh: Source sh.sh, remove duplicates.
1644         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1645         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1647 2001-11-21  David Heine <dlheine@tensilica.com>
1648             Alan Modra  <amodra@bigpond.net.au>
1650         * ldlang.c (map_input_to_output_sections): Replace "break"
1651         accidentally removed with 2001-08-03 change.
1652         (lang_gc_sections_1): Likewise.
1654 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
1656         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1658 2001-11-20  Angela Marie Thomas <angela@redhat.com>
1660         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1661         of false when calling lang_size_sections.
1662         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1664 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
1666         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1667         function when LDEMUL_FINISH isn't set to the same name.  Don't
1668         call ${LDEMUL_FINISH}.
1669         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1670         * emultempl/armelf.em (arm_elf_finish): Call
1671         gld${EMULATION_NAME}_finish.
1672         * emultempl/hppaelf.em (hppaelf_finish): Rename to
1673         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
1674         hppaelf_layout_sections_again if necessary.
1675         (need_laying_out): New var.
1676         (hppaelf_layaout_sections_again): Rename to
1677         hppaelf_layout_sections_again.  Clear need_laying_out.
1678         (PARSE_AND_LIST_OPTIONS): Format text.
1680 2001-11-14  H.J. Lu  <hjl@gnu.org>
1682         * emultempl/armelf.em (arm_elf_finish): Renamed from
1683         gld${EMULATION_NAME}_finish.
1684         (LDEMUL_FINISH): Set to arm_elf_finish.
1686 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
1688         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1689         (struct ld_emulation_xfer_struct): Use it.
1691 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
1693         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1694         additional symbols referenced by newer crt0.o files from HP.
1696 2001-11-12  Anthony Green  <green@redhat.com>
1698         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1700 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
1702         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1703         * Makefile.in: Regenerate.
1705 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1707         * ld.texinfo: Use @command for commands, @option for options.
1708         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1709         the page man title.
1710         * Makefile.in: Rebuild.
1712 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
1714         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1715         Add support for targets.
1717 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
1719         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1720         * configure: Regernate.
1721         * po/fr.po: New file.
1722         * po/sv.po: New file.
1724 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
1726         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1727         as little endian default and to support big endian.
1729 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
1731         * ld.texinfo (Options): Document new option, -nostdlib.
1732         * lexsup.c (OPTION_NOSTDLIB): New definition.
1733         (ld_options): Add entry for "nostdlib".
1734         (parse_args): Handle OPTIONS_NOSTDLIB.
1735         * ldfile.c (ldfile_add_library_path): Don't add directories
1736         to the search path if they weren't specified on the command line
1737         and -nostdlib was specified.
1738         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1740 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
1742         * lexsup.c (parse_args): Prevent infinite parsing loop when
1743         "-rpath.a" is specified on the command line.
1744         Replace calls to fprintf with calls to einfo.
1746 2001-10-31  John Marshall  <jmarshall@acm.org>
1748         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1749         appear only once across all the linker scripts involved in a link
1750         invocation no longer applies.  Make the documentation reflect
1751         that.
1753 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
1755         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1756         targets.
1757         (sh-*-linux*): Added targ_extra_libpath.
1759 2001-10-31  David Heine  <dlheine@tensilica.com>
1761         * ldlang.c (lang_size_sections): Keep a valid output_offset field
1762         for padding statements.
1764 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
1766         * configure.tgt (mmix-*-*): New target.
1767         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1768         Add dependencies to match.
1769         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1770         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1771         scripttempl/mmo.sc: New files.
1772         * gen-doc.texi: @set MMIX.
1773         * ld.texinfo: Ditto.
1774         [MMIX] Add MMIX node.
1775         * Makefile.in: Regenerate.
1777 2001-10-29  Kazu Hirata  <kazu@hxi.com>
1779         * ldlang.c: Fix a comment typo.
1781 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
1783         * configure.host: Move alpha*-*-linux-gnu* entry to generic
1784         entries, and match *-*-linux*.
1786 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
1788         * ldgram.y (mri_script_command): Surround processing of INCLUDE
1789         with ldlex_script, ldlex_popstate.
1790         (ifile_p1): Likewise.
1791         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
1792         correct slot.
1793         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
1794         to 1.  Don't BEGIN(SCRIPT).
1795         (lex_redirect): Similarly.
1796         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1798 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
1800         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1801         __EH_FRAME_END__ and accept eh frames into data section.
1802         Add ctor and dtor sections.
1804 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1806         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1807         (auto-export): Fix indentation.
1809 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1811         * pe-dll.c (autofilter_objectlist):  Add startup objects
1812         for profiling.
1813         (auto-export): Constify char * p.
1814         Extract file basename and use strcmp rather than ststr
1815         for object lookup.
1817 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
1819         * ldmain.c (get_emulation): Improve comment about the handling
1820         of -mipsN options.
1822 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
1824         * po/POTFILES.in: Regenerate.
1826 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
1828         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1829         -z nocopyreloc and -z nocombreloc usage strings.
1831 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
1833         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1834         in usage.
1836 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
1838         * scripttempl/armaout.sc: Place .bss section after end of aligned
1839         data section to match behaviour of aout code in constructrion of
1840         header.
1842 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1844         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1845         startup files for mingw32 dlls to list.
1847 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
1849         * emultempl/elf32.em: Fix shell 'if' usage for portability.
1851 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
1853         * configure.tgt (targ): Add arm9e-*-elf.
1855 2001-10-05  H.J. Lu  <hjl@gnu.org>
1857         * genscripts.sh: Fix a typo in the last change.
1859 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
1861         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1862         -z nocombreloc in usage.
1864 2001-10-03  Jim Blandy  <jimb@redhat.com>
1866         * genscripts.sh: Include a comment at the top of each generated
1867         script, explaining its purpose.
1869 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
1871         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1872         * NEWS: Mention -z nocopyreloc.
1873         * ld.texinfo (Options): Describe nocopyreloc.
1875 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
1877         * configure: Regenerate.
1879 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
1881         * ldver.h (ld_program_version): Remove declaration.
1882         * lexsup.c (parse_args): Move printing of copyright message..
1883         * ldver.c (ldversion): .. to here.
1884         Use BFD_VERSION_STRING in place of BFD_VERSION.
1885         (ld_program_version): Remove.
1886         * Makefile.am (Makefile): Depend on bfd/configure.in.
1887         Run "make dep-am".
1888         * Makefile.in: Regenerate.
1890 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
1892         * Makefile.am: Update dependencies with "make dep-am".
1893         * Makefile.in: Regenerate.
1895 2001-09-29  John Reiser  <jreiser@BitWagon.com>
1897         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1898         * lexsup.c: Add --no-define-common commandline option.
1899         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1900         * ldlex.l: Likewise.
1901         * ld.h: Add command_line.inhibit_common_definition.
1902         * ldmain.c (main): Initialize.
1903         * ld.texinfo: Document.
1905 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
1907         * ldlang.c (section_already_linked): Remove assignment to kept_section.
1909 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
1911         * ldmisc.c (USE_STDARG): Remove.
1912         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1913         (einfo): Likewise.
1914         (minfo): Likewise.
1915         (lfinfo): Likewise.
1917         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1918         declarations.  Update copyright.
1920 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
1922         * pe-dll.c: Remove obsoleted declaration of
1923         pe_get_data_import_dll_name.
1924         (pe_create_import_fixup): Fix thinko.
1926         * ld.texinfo(enable-auto-import): Clarify the explanation.
1928 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
1930         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1931         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1932         DLL_SUPPORT controlled code.
1934 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
1936         * emultempl/pe.em(pe_data_import_dll): Make static.
1937         (pe_get_data_import_dll_name): New accessor function.
1938         * pe-dll.c(pe_create_import_fixup): call
1939         pe_get_data_import_dll_name() from pe.em, instead of
1940         directly accessing pe_data_import_dll variable from pe.em.
1942 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
1944         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1945         (def_file_add_directive): Use ISSPACE instead of isspace.
1946         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1947         isdigit/isxdigit/isalpha/isalnum.
1948         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1949         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1950         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1951         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1952         isalnum.
1953         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1954         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1955         isupper/tolower.
1956         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1957         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1958         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1959         (ctor_prio): Use ISDIGIT instead of isdigit.
1960         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1961         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1962         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1963         isupper/tolower.
1964         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1965         (stricpy): Use TOLOWER instead of isupper/tolower.
1966         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1967         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1968         (lex_warn_invalid): Use ISPRINT instead of isprint.
1969         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1970         (main): For gettext, also set the LC_CTYPE locate facet.
1971         (add_keepsyms_file): Use ISSPACE instead of isspace.
1972         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1973         (is_num, parse_args): Use ISDIGIT instead of isdigit.
1974         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1975         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1976         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1977         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1978         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1979         (quoteput): Use ISSPACE instead of isspace.
1980         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1981         instead of isalnum.
1983 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
1985         * deffilep.y (def_stash_module): Constify "name" param.
1987         * pe-dll.c: Replace CONST with const throughout.
1988         (quick_symbol): Constify "n1", "n2", "n3" params.
1989         (make_singleton_name_thunk): Constify "import" param.  Make
1990         "buffer_len" a size_t.
1991         (make_import_fixup_entry): Constify "name", "fixup_name",
1992         "dll_symname" params.
1993         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
1994         (pe_get32): Likewise.
1995         (pe_implied_import_dll): Likewise.
1997         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1998         (sort_by_section_name): Likewise.
2000         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2001         (make_import_fixup): Cast printf arg, rel->address to long rather
2002         than int.
2003         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2005 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
2007         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2008         defines BufferSize.  Increase buffer size by one.
2010 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
2012         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2014 2001-09-14  Kevin Lo <kevlo@openbsd.org>
2016         * configure.tgt: Add arm-openbsd target.
2018 2001-09-12  H.J. Lu  <hjl@gnu.org>
2020         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2021         eelf64lppc.o to ...
2022         (ALL_64_EMULATIONS): Here.
2023         * Makefile.in: Regenerated.
2025 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2027         * emultempl/pe.em(make_import_fixup): change signature to
2028         take asection as well as arelec; we need this for proper
2029         error reporting.  Only call pe_create_import_fixup() if
2030         there is no attempt to add a constant addend to the reloc;
2031         otherwise, report error condition.
2032         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2033         since final argument is a pointer to make_import_fixup().
2034         Change call to cb() to match make_import_fixup() signature.
2035         (make_import_fixup_mark): make buffer_len unsigned.
2036         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2038 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
2040         * ld.texinfo: add verbose documentation for auto-import
2041         direct-addressing workaround, to compliment the terse
2042         error message.
2044 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
2046         * scripttempl/v850.sc: Add gcc_except_table sections.
2048 2001-09-11  Jeffrey A Law  (law@cygnus.com)
2050         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2051         * emulparams/h8300self.sh: Similarly.
2053 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2055         * ld.texinfo (Options, --stack): Correct default value for stack
2056         reserve.
2058 2001-09-05  Tom Rix <trix@redhat.com>
2060         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2062 2001-09-03  Andreas Jaeger  <aj@suse.de>
2064         * emultempl/beos.em: Declare prototypes for comparions functions,
2065         adjust definitions.
2067 2001-09-02  Andreas Jaeger  <aj@suse.de>
2069         * emultempl/aix.em: Add missing prototype.
2070         * emultempl/lnk960.em: Likewise.
2071         * emultempl/vanilla.em: Likewise.
2072         * emultempl/armcoff.em: Likewise.
2073         * emultempl/armelf_oabi.em: Likewise.
2074         * emultempl/beos.em: Likewise.
2075         * emultempl/gld960c.em: Likewise.
2076         * emultempl/gld960.em: Likewise.
2078         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2079         for prototype declaration.
2081 2001-08-31  Eric Christopher  <echristo@redhat.com>
2082             Jason Eckhardt  <jle@redhat.com>
2084         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2086 2001-08-31  Andreas Jaeger  <aj@suse.de>
2088         * emultempl/pe.em: Add missing prototypes.
2089         (gld_${EMULATION_NAME}_after_open): Remove extra args to
2090         pe_find_data_imports.
2091         (pr_sym): Add unused attribute.
2093 2001-08-29  Joel Sherrill <joel@OARcorp.com>
2095         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2096         default from coff to elf.
2098 2001-08-29  Jeff Law <law@redhat.com>
2100         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
2101         ARCH specification.
2102         * emulparams/h8300self.sh: Similarly.
2104 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
2106         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2107         eh8300self.o .
2108         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2109         * configure.tgt (h8300-*-elf*): New case.
2110         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2111         * emulparams/h8300self.sh: New file.
2112         * Makefile.in: Regenerated.
2114 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
2116         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2117         with macro name.
2119 2001-08-27  Linus Nordberg  <linus@swox.com>
2120             Alan Modra  <amodra@bigpond.net.au>
2122         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2123         (eelf64ppc.c, eelf64lppc.c): Add make targets.
2124         Run "make dep-am"
2125         * Makefile.in: Regenerate.
2126         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
2127         entries to correct alphabetical position.
2128         * emulparams/elf64ppc.sh: New.
2129         * emulparams/elf64lppc.sh: New.
2131 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
2133         * ldmain.c (main): Declare BSIZE as static.
2135 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2137         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2138         into .rel.dyn resp. .rela.dyn if combreloc.
2139         (get_script): If .x linker script is equal to .xn, only put it
2140         once into the binary.
2141         Add .xc and .xsc scripts.
2142         (parse_args): Handle -z combreloc and -z nocombreloc.
2143         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2144         For .xc and .xsc scripts put all .rel* or .rela* input sections
2145         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2146         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2147         is elf.
2148         Strip trailing whitespace from script.
2149         Generate .xc and .xsc scripts if requested.
2150         * ldmain.c (main): Initialize link_info.combreloc and
2151         link_info.spare_dynamic_tags.
2152         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2153         (ld_options): Add --spare-dynamic-tags option.
2154         (parse_args): Likewise.
2155         * ld.texinfo: Document -z combreloc and -z nocombreloc.
2156         * ldint.texinfo: Document .xc and .xsc linker scripts.
2157         * NEWS: Add notes about -z combreloc and SHF_MERGE.
2159 2001-08-22  H.J. Lu  <hjl@gnu.org>
2161         * emulparams/elf32fr30.sh: Add a newline.
2163 2001-08-21  Andreas Jaeger  <aj@suse.de>
2165         * deffilep.y: Add missing prototypes.
2166         * pe-dll.c: Likewise.
2168 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
2170         * ldlang.c (insert_pad): Fix typos in last patch.
2172         * ldlang.c: When traversing lang_statement_union_type lists,
2173         consistently use "header.next" rather than "next".
2174         * mpw-eppcmac.c: Likewise.
2175         * emultempl/beos.em: Likewise.
2176         * emultempl/hppaelf.em: Likewise.
2177         * emultempl/pe.em: Likewise.
2178         * ldlang.h (union lang_statement_union): Remove "next" field.
2180         * ldlang.c (insert_pad): Use offsetof macro.
2181         (lang_size_sections): Always neuter padding statements.
2182         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2184         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2185         passed to lang_size_sections.
2186         (pe_exe_fill_sections): Likewise.
2187         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2188         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2190 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2192         * emultempl/aix.em: Formatting fixes.
2194 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2196         * ldlang.c (insert_pad): Make use of an existing pad statement if
2197         available.  Move code calculating alignment, adjusting section
2198         alignment power, and adjusting dot to ..
2199         (size_input_section): .. here.  Remove unused relax param.
2200         (lang_size_sections): Change boolean `relax' param to boolean *.
2201         Adjust call to size_input_section.  Make use of insert_pad to
2202         place pad after the assignment statement.  If relaxing, zap
2203         padding statements.
2204         (reset_memory_regions): Reset output_bfd section sizes too.
2205         (relax_again): Move to..
2206         (lang_process): ..here.  Adjust call to lang_size_sections, and
2207         remove duplicated code.
2208         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2210 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
2212         * ld.texinfo: Document that fill values now use the four least
2213         significant bytes.
2214         * emulparams/elf32fr30.sh (NOP): Update.
2215         * emulparams/elf32mcore.sh: Likewise.
2216         * emulparams/elf64_s390.sh: Likewise.
2217         * emulparams/elf_i386.sh: Likewise.
2218         * emulparams/elf_i386_be.sh: Likewise.
2219         * emulparams/elf_i386_chaos.sh: Likewise.
2220         * emulparams/elf_i386_ldso.sh: Likewise.
2221         * emulparams/elf_s390.sh: Likewise.
2222         * emulparams/elf_x86_64.sh: Likewise.
2223         * emulparams/i386moss.sh: Likewise.
2224         * emulparams/i386nw.sh: Likewise.
2225         * emulparams/m68kelf.sh: Likewise.
2226         * scripttempl/elf.sc: Update NOP comment.
2227         * scripttempl/elfi370.sc: Likewise.
2228         * scripttempl/elfm68hc11.sc: Likewise.
2229         * scripttempl/elfm68hc12.sc: Likewise.
2230         * scripttempl/nw.sc: Likewise.
2232 2001-08-15  Tom Rix <trix@redhat.com>
2234         * ldgram.y (saved_script_handle): Initialize to NULL.
2235         * ldmain.c (main): Change check on saved_script_handle.
2237 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
2239         * emultempl/elf32.em: Formatting fixes.
2240         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
2241         looking at sec->owner.
2242         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2243         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
2244         unused code, and reorganize orphan section placement code.
2246         * ldlang.c (wild_doit): Rename to lang_add_section.
2247         * ldlang.h: Here too.
2248         * mpw-elfmips.c: And here.
2249         * emultempl/beos.em: And here.
2250         * emultempl/elf32.em: And here.
2251         * emultempl/hppaelf.em: And here.
2252         * emultempl/pe.em: And here.
2254 2001-08-13  Richard Henderson  <rth@redhat.com>
2256         * emultempl/needrelax.em: New file.
2257         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2258         * Makefile.am (eelf64_ia64.c): Depend on it.
2259         * Makefile.in: Rebuild.
2261 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
2263         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2264         output_section is set non-NULL.
2266         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2267         `true' for SEC_EXCLUDE sections so that the generic code doesn't
2268         needlessly create an output_section_statement.  Treat a correctly
2269         named output_section_statement with NULL bfd_section as compatible.
2271 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
2273         * emultempl/generic.em: Support EXTRA_EM_FILE.
2274         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2275         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2276         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2277         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2278         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2279         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2280         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2281         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2282         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2283         LDEMUL_FIND_POTENTIAL_LIBRARIES.
2285 2001-08-12  Richard Henderson  <rth@redhat.com>
2287         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2288         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2289         scripttempl/v850.sc: Keep .jcr data.
2291 2001-08-12  H.J. Lu  <hjl@gnu.org>
2292             Andrew Haley  <aph@cambridge.redhat.com>
2293             Nick Clifton  <nickc@redhat.com>
2295         * ldgram.y (had_script): Change name to saved_script_handle.
2296         Change type to file handle.
2297         * ld.h (had_script): Rename and retype.
2298         * ldfile.c (ldfile_open_command_file): Save the file handle
2299         used in saved_script_handle.
2300         * lexsup.c (parse_args): Do not allow -c option to alter
2301         saved_script_handle.
2302         * ldmain.c (main): Print out the linker script used if
2303         --verbose is given.  Check saved_script_handle to obtain the
2304         external linker script used, or if NULL, dump the builtin
2305         script.
2306         * ld.texinfo: Document that --verbose now dumps the linker
2307         script used, regardless of whether it was an internal or an
2308         external script.
2310 2001-08-10  Andreas Jaeger  <aj@suse.de>
2312         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2313         to build warnings.
2314         * configure: Regenerate.
2316 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
2318         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2320         * scripttempl/elf.sc: Move non-text .dynamic section before
2321         .plt/.got/.sdata* group.
2322         (OTHER_GOT_SECTIONS): Move to immediately after .got.
2323         (OTHER_SDATA_SECTIONS): Add.
2324         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2325         OTHER_GOT_SECTIONS.
2326         * emulparams/crislinux.sh: Likewise.
2327         * emulparams/elf32b4300.sh: Likewise.
2328         * emulparams/elf32bmip.sh: Likewise.
2329         * emulparams/elf32bmipn32.sh: Likewise.
2330         * emulparams/elf32bsmip.sh: Likewise.
2331         * emulparams/elf32btsmip.sh: Likewise.
2332         * emulparams/elf32ebmip.sh: Likewise.
2333         * emulparams/elf32elmip.sh: Likewise.
2334         * emulparams/elf32l4300.sh: Likewise.
2335         * emulparams/elf32lmip.sh: Likewise.
2336         * emulparams/elf32lsmip.sh: Likewise.
2337         * emulparams/elf32ltsmip.sh: Likewise.
2338         * emulparams/elf64bmip.sh: Likewise.
2339         * emulparams/elf64btsmip.sh: Likewise.
2340         * emulparams/elf64ltsmip.sh: Likewise.
2342 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
2344         * genscripts.sh: Source the emulparams script before each output
2345         script is generated so that variables like `RELOCATING' may affect
2346         variables defined in the emulparams script.
2348 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
2350         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2351         order.
2353         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2354         ie. iterate over wild_statement.section_list.
2355         (gld${EMULATION_NAME}_place_orphan): Likewise.
2357 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2359         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2360         .fini[0-4] sections used by _exit
2361         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2362         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2363         * scripttempl/elfm68hc11.sc: Likewise.
2365 2001-08-03  H.J. Lu  <hjl@gnu.org>
2367         * emultempl/beos.em (init): Add the missing initialization.
2369 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
2371         * ld.texinfo (Input Section Basics): Clarify ordering of output
2372         sections.
2373         * ldlang.c (callback_t): Add wildcard_list param.
2374         (walk_wild_section): Remove "section" param.  Rewrite for
2375         lang_wild_statement_type change.  Remove unique_section_p test.
2376         (walk_wild_file): Remove "section" param.
2377         (walk_wild): Remove "section" and "file" params.
2378         (lang_gc_wild): Likewise.
2379         (wild): Likewise.  Modify for lang_wild_statement_type change.
2380         (wild_sort): Likewise.  Add "sec" param.
2381         (gc_section_callback): Likewise.
2382         (output_section_callback): Likewise.  Do unique_section_p test.
2383         (map_input_to_output_sections): Modify call to wild.
2384         (lang_gc_sections_1): Likewise.
2385         (print_wild_statement): Modify for lang_wild_statement_type
2386         change.
2387         (lang_add_wild): Replace filename, filenames_sorted param with
2388         filespec.  Replace section_name, sections_sorted,
2389         exclude_filename_list with section_list.
2390         * ldlang.h (lang_add_wild): Here too.
2391         (lang_wild_statement_type): Replace section_name, sections_sorted,
2392         and exclude_filename_list with section_list.
2393         * ldgram.y (current_file): Delete.
2394         (%union): Add wildcard_list.
2395         (file_NAME_list): Set type to wildcard_list.  Build a linked list
2396         rather than calling lang_add_wild for each entry.
2397         (input_section_spec_no_keep): Call lang_add_wild here instead.
2398         * ld.h (struct wildcard_list): Declare.
2399         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2401 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2403         * ldmain.c (main): initialize link_info.pei386_auto_import
2404         * pe-dll.c: new tables for auto-export filtering
2405         (auto_export): change API, pass abfd for contextual filtering.
2406         Loop thru tables of excluded symbols instead of comparing
2407         "by hand".
2409 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
2411         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2412         static variable current_sec (static struct sec *). Add
2413         forward declaration for add_bfd_to_link.
2414         (process_def_file): Don't export undefined symbols. Do not
2415         export symbols starting with  "_imp__".  Call auto_export()
2416         with new API.
2417         (pe_walk_relocs_of_symbol): New function.
2418         (generate_reloc): add optional extra debugging
2419         (pe_dll_generate_def_file): eliminate extraneous initial blank
2420         line in output
2421         (make_one): enlarge symtab to make room for __nm__ symbols
2422         (DATA auto-import support).
2423         (make_singleton_name_thunk): New function.
2424         (make_import_fixup_mark): New function.
2425         (make_import_fixup_entry): New function.
2426         (pe_create_import_fixup): New function.
2427         (add_bfd_to_link): Specify that 'name' argument is a CONST
2428         char *.
2429         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2430         declare new functions pe_walk_relocs_of_symbol and
2431         pe_create_import_fixup.
2432         * emultempl/pe.em: add new options --enable-auto-import,
2433         --disable-auto-import, and --enable-extra-pe-debug.
2434         (make_import_fixup): New function.
2435         (pe_find_data_imports): New function.
2436         (pr_sym): New function.
2437         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2438         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
2439         CODE.
2441 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2443         * ld.texinfo: add additional documentation for
2444         --export-all-symbols.  Document --out-implib,
2445         --enable-auto-image-base, --disable-auto-image-base,
2446         --dll-search-prefix, --enable-auto-import, and
2447         --disable-auto-import.
2448         * ldint.texinfo: Add detailed documentation on auto-import
2449         implementation.
2451 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
2453         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2454         example.
2456 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
2458         * Makefile.am: Update dependencies with "make dep-am".
2459         * Makefile.in: Regenerate
2461 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
2463         * ldcref.c (check_section_sym_xref): New function.
2464         (check_nocrossrefs): Call it.
2465         (check_nocrossref): Interate over h->refs here instead of..
2466         (check_refs): ..here.  Pass in the symbol name, section, and bfd
2467         rather than hash_entry pointers.
2468         (struct check_refs_info): Keep symbol name rather than hash entry.
2469         Remove "same".
2470         (check_reloc_refs): Tweak for above changes in check_refs_info.
2471         Only report references to section syms when symname is NULL to
2472         prevent duplicate messages for the same reloc.
2474 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2476         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2477         available.  Do not print NULL trees.
2478         (exp_print_token): Print unknown tokens with values > 126 as
2479         decimal values not ASCII characters.
2481         * ldlang.c (lang_leave_overlay): If a region is specified assign
2482         it to all sections inside the overlay unless they have been
2483         assigned to the own, non-default, memory region.
2485         * README: Add header for consistency with other README files.
2487 2001-07-14  H.J. Lu  <hjl@gnu.org>
2489         * emultempl/elf32.em (output_prev_sec_find): Never return
2490         bfd_abs_section_ptr, bfd_com_section_ptr nor
2491         bfd_und_section_ptr.
2493 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
2495         * Makefile.am (em32relf.c): Change dependency from generic.em to
2496         elf32.em.
2497         * Makefile.in: Regenerate.
2499 2001-07-14  matthew green  <mrg@eterna.com.au>
2501         * configure.tgt (i386-*-netbsdelf*): New target.
2502         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2504 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
2506         * emultempl/elf32.em (output_prev_sec_find): New.
2507         (place_orphan): Use it.
2509 2001-07-11  H.J. Lu  <hjl@gnu.org>
2511         * ldmain.c (main): Fix typos in the last change.
2513 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
2515         * ldmain.c (main): Disallow -F and -f without -shared.
2517 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
2519         * emultempl/pe.em (after_open): Check for the output_bfd not
2520         having any coff_data structure allocated to it.
2522 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
2524         * emultempl/elf32.em: Do not assuming that contents of the buffer
2525         returned from basename function will remain unchanged accross other
2526         function calls.
2528 2001-07-03  H.J. Lu  <hjl@gnu.org>
2530         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2531         2001-07-03. It creates dynamic entries even for static binaries.
2533 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
2535         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2536         (DYNAMIC): Use it to reserve few dynamic entries for
2537         post-linking tools.
2539 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
2541         * emulparams/hppa64linux.sh: New file.
2542         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2543         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2544         (ehppa64linux.c): Add rule to make it.
2545         Run "make dep-am".
2546         * Makefile.in: Regenerate.
2548 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
2550         * ld.texinfo (Options, -r): Mention restrictions when using
2551         different object formats.
2553 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
2555         * ldlang.c (lang_check): Emit fatal error if relocatable link
2556         between different object flavours with relocations in input.
2558 2001-06-19  H.J. Lu  <hjl@gnu.org>
2560         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2561         (--version-script): Mention the language support.
2563 2001-06-19  H.J. Lu <hjl@gnu.org>
2565         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2567 2001-06-18  H.J. Lu <hjl@gnu.org>
2569         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2570         (diststuff): Add $(MANS).
2571         * Makefile.in: Regenerated.
2573         * ld.1: Removed.
2575 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
2577         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2578         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2579         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2580         * ld.h (args_type): Remove member export_dynamic.  All users
2581         changed to use struct bfd_link_info member.
2583         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2584         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2585         * Makefile.in: Regenerate.
2587 2001-06-18  H.J. Lu  <hjl@gnu.org>
2589         * ldlang.c (init_os): Add the newline to the einfo call.
2590         (lang_check): Likewise.
2591         (lang_do_version_exports_section): Likewise.
2593 2001-06-15  H.J. Lu  <hjl@gnu.org>
2595         * lexsup.c (parse_args); Save optind to report unrecognized
2596         option.
2598 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
2600         * ldlang.c (lang_check): Emit fatal error if relocatable link
2601         between different object flavours.
2603         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2604         Set new link_info member export_dynamic.
2605         * ldmain.c (main): Initialize new link_info member export_dynamic.
2607 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
2609         * ldlang.c (walk_wild): Only call walk_wild_file if
2610         lookup_name returns something.
2611         (lookup_name): If load_symbols fails, return NULL.
2612         (load_symbols): Change to a boolean function.
2613         (open_input_bfds): If load_symbols fails then do not make the
2614         executable.
2616 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
2618         * ldlang.c (record_bfd_errors): Remove.
2620         * emultempl/aix.em: Fix copyright dates.
2622 2001-06-07  Andreas Jaeger  <aj@suse.de>
2624         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2625         (TEXT_START_ADDR): Likewise.
2627 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
2629         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2631 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2633         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2635 2001-05-31  H.J. Lu  <hjl@gnu.org>
2637         * ldlang.c (open_input_bfds): Don't change the bfd error
2638         handler whilst loading symbols.
2640 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
2642         * configure.tgt: Remove i370-mvs architecture, it is not currently
2643         supported.
2645 2001-05-25  H.J. Lu  <hjl@gnu.org>
2647         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2648         like emulparams/aixppc.sh.
2650 2001-05-25  H.J. Lu  <hjl@gnu.org>
2652         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2653         setting of output_filename after bfd_scan_arch.
2654         * emultempl/pe.em: Likewise.
2656 2001-05-25  H.J. Lu  <hjl@gnu.org>
2658         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2659         like emulparams/aixppc.sh.
2661         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2662         instead of ${srcdir}/emultempl/stringify.sed.
2664 2001-05-25  Timothy Wall  <twall@oculustech.com>
2666         * emulparams/elf64_aix.sh: Change settings to match IBM linker
2667         output.
2669 2001-05-25  Alan Modra  <amodra@one.net.au>
2671         * configure.host: Replace linuxoldld with linux*oldld.
2672         * configure.tgt: Likewise.
2674 2001-05-24  H.J. Lu  <hjl@gnu.org>
2676         * emultempl/stringify.sed: Removed again.
2678 2001-05-24  H.J. Lu  <hjl@gnu.org>
2680         * emultempl/aix.em (OUTPUT_ARCH): Defined.
2681         (gld${EMULATION_NAME}_before_parse): Initialize
2682         ldfile_output_architecture, ldfile_output_machine and
2683         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2684         * emultempl/beos.em: Likewise.
2685         * emultempl/elf32.em: Likewise.
2686         * emultempl/linux.em: Likewise.
2687         * emultempl/mipsecoff.em: Likewise.
2688         * emultempl/pe.em: Likewise.
2689         * emultempl/sunos.em: Likewise.
2691 2001-05-24 Tom Rix <trix@redhat.com>
2693         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2694         udate import file format.
2695         (change_symbol_mode) New, same
2696         (is_syscall) New, same
2697         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2698         * emulparams/aixppc64.sh : same
2699         * emulparams/aixrs6.sh : same
2700         * emulparams/ppcmacos.sh : same
2701         * emultempl/aix.em : use strtoull to parse options
2702         * Makefile.am : add eaixppc64 emulation for xcoff64
2703         * Makefile.in : same
2704         * configure.tgt : same
2706         * scripttempl/aix.sc : default text section offset to 0x10000000
2707         default data section offset to 0x20000000
2708         add .sv3264 and .sv64 pseudo sections
2709         loader and debug sections use the currect section offset.
2711         * emultempl/aix.em : Add xcoff64 support
2712         Add -binitfini support
2713         (gld${EMULATION_NAME}_before_parse) -binitfini
2714         (gld${EMULATION_NAME}_parse_args) same
2715         (gld${EMULATION_NAME}_before_allocation) format change for special
2716         sections
2718         * emulparams/aixppc64.sh : New file for xcoff64 support
2720 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
2722         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2723         variable to avoid non-portable shell construct.
2725 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2727         * ldmain.c (get_emulation): Add -mips5 command line argument.
2729 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
2731         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2732         (ELF_INTERPRETER_NAME): Define it.
2733         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2734         it.
2735         * configure.tgt (targ_emul, targ_extra_emuls)
2736         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2737         as primary, elf_i386 as extra.
2738         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2739         (eelf_i386_ldso.c): New rule.
2740         * Makefile.in: Rebuilt.
2742 2001-05-22  Nick Clifton  <nickc@redhat.com>
2744         * lexsup.c (ld_options):  Allow -I to be an alias for
2745         --dynamic-linker.  This is for Solaris compatability.
2746         * ld.texinfo: Document that -I can be used.
2747         * ld.1: Regenerate.
2749 2001-05-16  Alan Modra  <amodra@one.net.au>
2751         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2752         whether an input section is the first one assigned to an output
2753         section.
2754         Assorted formatting fixes.
2756 2001-05-14  DJ Delorie  <dj@delorie.com>
2758         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2759         * Makefile.in: Ditto.
2761 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2763         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2764         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2765         output sections.
2766         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2768 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2770         * ldlang.c (lang_process): Call bfd_merge_sections.
2772 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2774         * ldgram.y: Fix typo.
2776 2001-05-03  H.J. Lu  <hjl@gnu.org>
2778         * emultempl/elf32.em: Include "libiberty.h".
2779         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2780         basename of the bfd filename.
2781         (gld${EMULATION_NAME}_stat_needed): Likewise.
2782         (gld${EMULATION_NAME}_try_needed): Likewise.
2783         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2785 2001-05-02  H.J. Lu  <hjl@gnu.org>
2787         * emultempl/pe.em: Include <ctype.h>.
2789 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
2791         * emulparams/elf32openrisc.sh: New file.
2793         * Makefile.am: Add OpenRISC target.
2794         * Makefile.in: Regenerated.
2796         * configure.tgt: Add openrisc-*-* mapping.
2798 2001-05-02  Nick Clifton  <nickc@redhat.com>
2800         * emultempl/aix.em: Replace buystring with xstrdup.
2801         * emultempl/beos.em: Replace buystring with xstrdup.
2803 2001-05-02  H.J. Lu  <hjl@gnu.org>
2805         * ldfile.c: Include "libiberty.h".
2806         * ldlex.l: Likewise.
2808         * ldmisc.c (buystring): Removed.
2809         * ldmisc.h: Likewise.
2811         * ldfile.c: Replace buystring with xstrdup.
2812         * ldlang.c: Likewise.
2813         * ldlex.l: Likewise.
2814         * ldmain.c: Likewise.
2815         * ldmisc.c: Likewise.
2816         * lexsup.c: Likewise.
2817         * mpw-eppcmac.c: Likewise.
2819 2001-04-30  Andreas Jaeger  <aj@suse.de>
2821         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2823 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2825         * ldlang.c (load_symbols): Give emulation a chance
2826         to process unrecognized file before fatal error is
2827         reported, not after.
2829 2001-04-27  Sean McNeil <sean@mcneil.com>
2831         * configure.tgt: Add arm-vxworks target.
2832         * scripttempl/armcoff.sc: Support .text or .data as a section name
2833         prefix.
2834         Define _etext.
2836 2001-04-13  J.T. Conklin  <jtc@redback.com>
2838         * ld.texinfo: Document --fatal-warnings.
2839         * ld.1: Regenerate.
2841         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2842         warnings have been turned into errors.
2843         * lexsup.c (OPTION_WARN_FATAL): Define.
2844         (ld_options): Entry for --fatal-warnings.
2845         (parse_args): Handle OPTION_WARN_FATAL.
2846         * ld.h (ld_config_type): Add fatal_warnings field.
2848 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
2850         * ldmain.c (main): Default to discard_sec_merge.
2851         * lexsup.c (OPTION_DISCARD_NONE): Define.
2852         (ld_options): Add --discard-none.
2853         (parse_args): Handle OPTION_DISCARD_NONE.
2854         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2855         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2856         all its input sections match.
2858 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
2860         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2861         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2862         (eelf32ltsmip.c): New target.
2863         (eelf64btsmip.c): Likewise.
2864         (eelf64ltsmip.c): Likewise.
2865         * Makefile.in: Regenerated.
2867         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2868         target.
2869         (mips*-*-linux-gnu*): Likewise.
2871         * emulparams/elf32ltsmip.sh: New. Traditional little endian
2872         MIPS taget.
2873         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2874         target.
2875         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2876         endian target.
2878 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
2880         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2881         correct value of __Stext here.
2882         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2883         .startup section.
2885         * emulparams/crislinux.sh: Remove FIXME.
2887 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
2889         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2890         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2892 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
2894         * configure.tgt (cris-*-*): Change default emulation to criself.
2895         (cris-*-*aout*): New rule.
2897 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
2899         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2900         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2902 2001-03-26  Andreas Jaeger  <aj@suse.de>
2904         * ld.texinfo (Overview): Fix syntax in texi code.
2906 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2908         * ld.texinfo: Put @c man indications to generate the ld man page.
2909         When generating man, define all the variables.  Define SEEALSO
2910         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
2911         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2912         (ld.1): Generate from ld.texinfo.
2913         * Makefile.in: Regenerate.
2915 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
2917         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2918         and '-fdata-sections'. Set the VMA of STABS sections to zero.
2920 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
2922         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2923         is an absolute path look only for this file and not along the path.
2925 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
2927         * emultempl/elf32.em (OPTION_GROUP): New macro.
2928         Add new option Bgroup to longopts.
2929         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2930         (gld*_list_options): Add -Bgroup and -z defs.
2931         * ld.1: Document -Bgroup and -z defs.
2932         * ld.texinfo: Likewise.
2934 2001-03-07  Michael Meissner  <meissner@redhat.com>
2936         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2937         with sections created by -fdata-sections.
2938         (.dynbss,.bss): Ditto.
2940 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
2942         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2943         after_allocation_default, not gld..._before_allocation.
2945 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
2947         * configure.in (BFD_VERSION): New.
2948         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2949         * configure: Regenerate.
2950         * Makefile.am: Run "make dep-am"
2951         * Makefile.in: Regenerate.
2953 2001-02-26  Timothy Wall  <twall@cygnus.com>
2955         * emulparams/elf64_aix.sh: Add additional read-only sections;
2956         uncomment lines which are now required.
2958 2001-02-26  H.J. Lu  <hjl@gnu.org>
2960         * ldlang.c (open_input_bfds): Set the bfd error handler so
2961         that problems can be caught whilst loading symbols.
2962         (record_bfd_errors): New function: Report BFD errors and mark
2963         the executable output as being invalid.
2965 2001-02-22  Timothy Wall  <twall@cygnus.com>
2967         * configure.host: Add configuration for ia64-*-aix*.
2968         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2969         Add dependencies for eelf64_aix.c.
2970         * Makefile.in: Regenerate.
2971         * configure.tgt: Add ia64-*-aix* mapping.
2972         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2973         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2974         AIX-specific test.
2976 2001-02-20  H.J. Lu  <hjl@gnu.org>
2978         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2979         false if we found the file.
2981 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
2983         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2984         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2986 2001-02-18  lars brinkhoff  <lars@nocrew.org>
2988         * Makefile.am: Add PDP-11 target.
2989         * configure.tgt: Likewise.
2990         * emulparams/pdp11.sh: New file.
2992 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
2994         * configure.host: Add a generic FreeBSD configuration entry such that
2995         all [modern] FreeBSD systems on all platforms will look the same.
2997 2001-02-14  H.J. Lu  <hjl@gnu.org>
2999         * configure.tgt: Remove mention of earmelf_linux26.
3001 2001-02-13  Richard Henderson  <rth@redhat.com>
3003         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3005 2001-02-13  H.J. Lu  <hjl@gnu.org>
3007         * ldexp.h (node_type): Add etree_provided.
3008         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3009         type to etree_provided if defined by PROVIDE. Allow updating
3010         for etree_provided.
3011         (exp_print_tree): Handle etree_provided.
3012         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3013         etree_provided.
3015 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
3017         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3018         .IA_64.unwind.* pattern to unwind table section and
3019         .IA_64.unwind_info* pattern to unwind info section.
3021 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3023         * Makefile.am: Add linux target for S/390.
3024         * Makefile.in: Likewise.
3025         * configure.host: Likewise.
3026         * configure.tgt: Likewise.
3027         * emulparams/elf64_s390.sh: New file.
3028         * emulparams/elf_s390.sh: New file.
3030 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
3032         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3033         targ_extra_libpath.
3034         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3036 2001-02-06  Philip Blundell  <philb@gnu.org>
3038         * Makefile.am: Remove mention of earmelf_linux26.
3039         * Makefile.in: Regenerate.
3041 2001-02-04  Philip Blundell  <philb@gnu.org>
3043         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3044         * emulparams/armelf_linux26.sh: Delete.
3045         * configure.tgt: Remove mention of armelf_linux26 emulation.
3047 2001-02-01  Nick Clifton  <nickc@redhat.com>
3049         * ld.1: Replace occurances of -oformat with --oformat.
3051 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
3053         * ldlang.c (lang_leave_overlay): Don't set lma_region when
3054         load_base is specified.
3056 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
3058         * emultempl/elf32.em: Correct spelling in comments and listed
3059         options.
3061 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
3063         * ldlang.c (lang_leave_overlay): Only set lma_region from the
3064         default for the first section of a group of overlay sections.
3066 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
3068         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3069         * Makefile.in: Regenerate.
3070         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3071         Check for null tool_dir.
3073 2001-01-16  Jim Wilson  <wilson@redhat.com>
3075         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3076         and IA_64.unwind.info.
3078 2001-01-16  H.J. Lu  <hjl@gnu.org>
3080         * ldlang.c (lang_check): Merge the private data only if the
3081         input file has contents.
3083 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
3085         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3087         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3088         enabling search for libmilli.  On a relocatable link, make .text
3089         sections unique.
3090         (LDEMUL_AFTER_PARSE): Define.
3091         (hppaelf_finish): Correct spelling of relocatable in comments.
3093         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3094         rummage through the script for sections on the unique list.
3095         Correct length of strncmp for ".note".
3096         (gld${EMULATION_NAME}_check_needed): Rearrange function.
3098         * ldlang.c (unique_section_list): New var.
3099         (unique_section_p): New function.
3100         (walk_wild_section): Don't match sections on unique_section_list.
3101         (lang_add_unique): New function.
3102         Correct spelling of relocatable in comments.
3104         * ldlang.h (struct unique_sections): Declare.
3105         (unique_section_list): Declare.
3106         (unique_section_p): Declare.
3107         (lang_add_unique): Declare.
3109         * lexsup.c (ld_options): Allow --unique to take an optional arg.
3110         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3112         * ld.texinfo (--unique): Update.
3114 2001-01-13  Nick Clifton  <nickc@redhat.com>
3116         * lexsup.c (parse_args): Remove spurious white space.
3118 2001-01-12  Nick Clifton  <nickc@redhat.com>
3120         * lexsup.c (parse_args): Update copyright date.
3122 2001-01-12  Philip Blundell  <pb@futuretv.com>
3124         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3126 2001-01-10  Kazu Hirata  <kazu@hxi.com>
3128         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
3129         * scripttempl/h8300h.sc: Fix formatting.
3130         * scripttempl/h8300s.sc: Likewise.
3131         * scripttempl/h8500.sc: Likewise.
3132         * scripttempl/h8500b.sc: Likewise.
3133         * scripttempl/h8500c.sc: Likewise.
3134         * scripttempl/h8500m.sc: Likewise.
3135         * scripttempl/h8500s.sc: Likewise.
3137 2000-01-07  David O'Brien  <obrien@BSDi.com>
3139         * emultempl/elf32.em: Only perform Linux ld hints processing when
3140         targeting Linux.
3142 2001-01-07  Philip Blundell  <philb@gnu.org>
3144         * ld.texinfo (Bug Reporting): Update email address for reports.
3146 2000-12-31  Nick Clifton  <nickc@redhat.com>
3148         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3149         options by checking for a return value of '?' not -1.
3151 2000-12-28  Nick Clifton  <nickc@redhat.com>
3153         * lexsup.c (struct ld_option): Add new enum value:
3154         EXACTLY_TWO_DASHES.
3155         (ld_options[]): Change -omagic, -output and -oformat options
3156         to be EXACTLY_TWO_DASHES.
3157         (OUTPUT_COUNT): Use ARRAY_SIZE.
3158         (parse_args): Change parameter 'argc' to unsigned.
3159         Place EXACTLY_TWO_DASHES options into new really_longopts
3160         array.
3161         If getopt_long_only fails, try calling getopt_long using the
3162         really_longopts array.
3163         (help): Print a double dash for both EXACTLY_TWO_DASHES and
3164         TWO_DASHES options.
3166         * ldlex.h: Fix prototype of parse_args.
3168         * ld.texinfo: Document that long options starting with 'o'
3169         must be preceeded by two dashes.  Change example of a single
3170         dashed long option from -oformat to -trace-symbol.
3172 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3174         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3175         (longopts[]): New --no-default-excludes option.
3176         (gld_${EMULATION_NAME}_list_options): Document.
3177         (gld_${EMULATION_NAME}_parse_args): Handle.
3179 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3181         * ldlang.c (new_stat): Revert the last beautification with "innocent"
3182         whitespace, it breaks the K&R C preprocessor.
3184 2000-12-11  DJ Delorie  <dj@redhat.com>
3186         * ld.texinfo: Add notes about --whole-archive and gcc.
3188 2000-11-18  Fred Fish  <fnf@be.com>
3190         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3191         (ld_options): Entry for --allow-shlib-undefined.
3192         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3193         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3194         to false.
3195         * ld.texinfo: Document new command line switch.
3197 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
3199         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3200         .fixup is actually read/write.
3201         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3202         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3203         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3205 2000-12-11  Jan Hubicka  <jh@suse.cz>
3207         * NEWS: Add note about x86_64 architecture.
3209 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
3211         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3212         Set DWARF2 sections to a VMA of zero.
3214 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
3216         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3217         New targets.
3218         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3219         (sparc*-*-rtems*): Switched from a.out to ELF.
3221 2000-11-30  Jan Hubicka  <jh@suse.cz>
3223         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3224         (eelf_x86_64.c): New.
3225         * Makefile.in: Regenerate.
3226         * configure.tgt: Add support for x86_64-*-linux-gnu*.
3227         * emulparams/elf_x86_64.sh: New.
3229 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
3231         * emulparams/crislinux.sh (ENTRY): Change back to _start.
3232         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3234         * scripttempl/crisaout.sc: Change all RELOCATING not related to
3235         merging non-a.out sections into CONSTRUCTING.
3237 2000-11-28  Nick Clifton  <nickc@redhat.com>
3239         * ld.1 (COPYING): Mention that the GNU Free Documentation
3240         License is present in the sources, but not the output, and
3241         also available from the GNU website.
3242         (GNU Free Documentation License): Comment out this section.
3244 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
3246         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3247         does not use them.
3249 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
3251         * ld.1: Remove old date so it does not give the impression the manpage
3252         is way out of date.
3254 2000-11-24  Nick Clifton  <nickc@redhat.com>
3256         * configure.tgt (xscale-coff): Add target.
3257         (xscale-elf): Add target.
3259 2000-11-24  Fred Fish  <fnf@be.com>
3261         * ldmain.c (main): Remove redundant init of config.make_executable
3262         to true.
3264 2000-11-15  Richard Henderson  <rth@redhat.com>
3266         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3268 2000-11-14  Kazu Hirata  <kazu@hxi.com>
3270         * scripttempl/h8300.sc: Fix formatting.
3271         * scripttempl/h8300h.sc: Likewise.
3272         * scripttempl/h8300s.sc: Likewise.
3274 2000-11-14  Denis Chertykov  <denisc@overta.ru>
3276         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3278 2000-11-09  Philip Blundell  <pb@futuretv.com>
3280         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3281         around orphan sections whose names can be represented in C.
3283 2000-11-07  Jim Wilson  <wilson@redhat.com>
3285         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3286         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
3288 2000-11-06  Nick Clifton  <nickc@redhat.com>
3290         * ld.texinfo: Add GNU Free Documentation License.
3291         * ldint.texinfo: Add GNU Free Documentation License.
3292         * ld.1: Add GNU Free Documentation License.
3294 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
3296         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3297         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3299         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3300         Move 2000-11-02 Makefile.in changes to this file.
3301         * Makefile.in: Regenerate.
3303 2000-11-03  Nick Clifton  <nickc@redhat.com>
3305         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3306         constructors and destructors.
3307         * scripttempl/h8300h.sc: Ditto.
3308         * scripttempl/h8300s.sc: Ditto.
3309         * scripttempl/h8500.sc: Ditto.
3310         * scripttempl/h8500b.sc: Ditto.
3311         * scripttempl/h8500c.sc: Ditto.
3312         * scripttempl/h8500m.sc: Ditto.
3313         * scripttempl/h8500s.sc: Ditto.
3314         * scripttempl/v850.sc: Ditto.
3315         * scripttempl/w65.sc: Ditto.
3316         * scripttempl/z8000.sc: Ditto.
3318 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
3320         * Makefile.in (e_i386_chaos.c): New rule.
3321         (ALL_EMULATIONS): Added e_i386_chaos.o.
3322         * emulparams/elf_i386_chaos.sh: New file.
3323         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3325 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
3327         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3328         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3329         Fix sed invocation, so that it coped with '/' in Solaris 64bit
3330         library path suffix.
3331         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3333 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
3335         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3336         for consecutive sections.
3338 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
3340         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3341         options.
3342         * ld.texinfo: Added notes about this new option.
3344 2000-10-16  Nick Clifton  <nickc@redhat.com>
3346         * emultempl/pe.em (_after_open): Add tests of return values from
3347         bfd functions.  Emit appropriate error messages if necessary.
3349 2000-10-13  Nick Clifton  <nickc@redhat.com>
3351         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3352         local variables - they are not used, but leave in the call to
3353         bfd_canonicalize_symtab.
3354         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3355         pe_dll_search_prefix.
3357 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
3359         * emultempl/pe.em (pe_dll_search_prefix): New variable,
3360         (longopts): New --dll-search-prefix option.
3361         (gld_${EMULATION_NAME}_list_options): Document.
3362         (gld_${EMULATION_NAME}_parse_args): Handle.
3363         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3364         dynamically, search for a dll named '<prefix><basename>.dll'
3365         in preference to 'lib<basename>.dll' if --dll-search-prefix
3366         is specified.
3368 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3370         * ldlang.c (section_already_linked): Set kept_section instead of
3371         sec->comdat->sec.
3373 2000-10-10  Kazu Hirata  <kazu@hxi.com>
3375         * deffile.h: Fix formatting.
3376         * lexsup.c: Likewise.
3377         * mri.c: Likewise.
3379 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3381         * pe-dll.c (make_one): Do not generate code thunk for DATA
3382         exports.
3383         (process_def_file): deduce DATA flag for auto-export sumbols.
3385 2000-10-09  Kazu Hirata  <kazu@hxi.com>
3387         * ld.h: Fix formatting.
3388         * ldcref.c: Likewise.
3389         * ldctor.h: Likewise.
3390         * ldemul.c: Likewise.
3391         * ldemul.h: Likewise.
3392         * ldexp.c: Likewise.
3393         * ldexp.h: Likewise.
3394         * ldfile.c: Likewise.
3395         * ldfile.h: Likewise.
3396         * ldlang.c: Likewise.
3397         * ldlang.h: Likewise.
3398         * ldmain.c: Likewise.
3399         * pe-dll.c: Likewise.
3401         * pe-dll.c: Revert some formatting fixes.
3403 2000-10-08  Kazu Hirata  <kazu@hxi.com>
3405         * pe-dll.c: Fix formatting.
3407 2000-10-05  Kazu Hirata  <kazu@hxi.com>
3409         * ldlang.c: Fix formatting.
3411 2000-10-03  DJ Delorie  <dj@redhat.com>
3413         * pe-dll.c (fill_edata): initialize entire block
3414         (make_one): fill in correct section.
3416 2000-10-03  Kazu Hirata  <kazu@hxi.com>
3418         * ldexp.c: Fix formatting.
3420 2000-10-02  DJ Delorie  <dj@redhat.com>
3422         * emultempl/pe.em (gld_*_after_open): detect case where there two
3423         import libraries for same dll; rename one to ensure proper link
3424         order.
3426         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3427         typo
3428         (generate_edata): fix typo
3430 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
3432         * scripttempl/crisaout.sc (ENTRY): Now __start.
3433         (.text): Add default setting for __start.
3434         Remove CONSTRUCTORS handling.
3435         (/DISCARD/): Add .gnu.warning.*.
3436         * emulparams/crislinux.sh (ENTRY): Now __start.
3437         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3438         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3439         (ENTRY): Now __start.
3440         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3441         (EXECUTABLE_SYMBOLS): Add default setting for __start.
3443 2000-09-29  Kazu Hirata  <kazu@hxi.com>
3445         * deffile.h: Fix formatting.
3446         * ld.h: Likewise.
3447         * ldcref.c: Likewise.
3448         * ldctor.c: Likewise.
3449         * ldctor.h: Likewise.
3450         * ldemul.c: Likewise.
3451         * ldemul.h: Likewise.
3452         * ldexp.c: Likewise.
3453         * ldexp.h: Likewise.
3454         * ldfile.c: Likewise.
3455         * ldfile.h: Likewise.
3456         * ldlang.c: Likewise.
3457         * ldlang.h: Likewise.
3458         * lexsup.c: Likewise.
3459         * mri.c: Likewise.
3460         * pe-dll.c: Likewise.
3462 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3464         * pe-dll.c (process_def_file): Uninitialized data wasn't
3465         exported with --export-all-symbols switch.
3467 2000-09-28  DJ Delorie  <dj@redhat.com>
3469         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3470         noname work properly.
3472 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
3474         * ld.texinfo (HPPA ELF32): New section.
3476         * emultempl/hppaelf.em (group_size): New.
3477         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3478         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3479         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
3480         options to prevent abbreviations matching.
3481         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
3482         (PARSE_AND_LIST_ARGS_CASES): Handle it.
3484 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3486         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3487         on the m68*-*-elf target.  Make it support COFF input objects.
3489 2000-09-21  Kazu Hirata  <kazu@hxi.com>
3491         * ldmain.c: Fix formatting.
3492         * ldmisc.c: Likewise.
3493         * ldver.c: Likewise.
3494         * ldwrite.c: Likewise.
3496 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3498         * ldwrite.c (clone_section): Silence gcc warnings.
3500 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3502         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3503         out of memory failure.
3505         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3506         (clone_section): Handle out of memory failures.  Rename var to
3507         avoid c++ reserved word.
3509 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3511         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3512         stub_name param to stub_sec_name.
3513         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3515 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3517         * emultempl/m68kelf.em: New file.
3518         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3519         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3520         * Makefile.in: Regenerate.
3522 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3524         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3525         only as needed.
3527 2000-09-13  Nick Clifton  <nickc@redhat.com>
3529         * ldmain.c (multiple_definition): Disable relaxation if
3530         multiple symbol definitions are encountered - otherwise the
3531         linker could abort with an assertion failure.
3533 2000-09-10  Nick Clifton  <nickc@redhat.com>
3535         * mri.c: Fix formatting.
3537 2000-09-07  H.J. Lu  <hjl@gnu.org>
3539         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3540         * configure: Rebuild.
3542 2000-09-07  H.J. Lu  <hjl@gnu.org>
3544         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3545         * Makefile.in: Rebuild.
3547 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
3549         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3550         broken list handling.  Create __start_SECNAME and __stop_SECNAME
3551         when no place-holder.  Add some comments.  Test both SEC_CODE and
3552         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3553         Handle case where no output section statement created.
3555 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
3557         * configure.tgt (sh-*-linux*): Added.
3558         * Makefile.am: Added eshelf_linux and eshlelf_linux.
3559         * Makefile.in: Rebuilt.
3560         * emulparams/shelf_linux.sh: New file.
3561         * emulparams/shlelf_linux.sh: New file.
3563 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
3565         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3566         try shuffling sections when the orphan happens to be the place
3567         holder.  Keep count of unique section names generated so we speed
3568         the search for a new name.
3570 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
3572         * configure: Rebuilt with new libtool.m4.
3574 2000-09-05  Nick Clifton  <nickc@redhat.com>
3576         * Makefile.in: Regenerate.
3577         * aclocal.m4: Regenerate.
3578         * configure: Regenerate.
3579         * config.in: Regenerate.
3580         * po/ld.pot: Regenerate.
3582         * ldint.texinfo: Remove CVS revision marker - it foils local
3583         comparisons.
3585         * emultempl/ticoff.em: Remove extraneous comma.
3587 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
3589         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3590         to stub section flags.
3591         (hppa_for_each_input_file_wrapper): New.
3592         (hppa_lang_for_each_input_file): New.
3593         (lang_for_each_input_file): Define to call above.
3594         (multi_subspace): New.
3595         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3596         (PARSE_AND_LIST_PROLOGUE): Define.
3597         (PARSE_AND_LIST_LONGOPTS): Define.
3598         (PARSE_AND_LIST_OPTIONS): Define.
3599         (PARSE_AND_LIST_ARGS_CASES): Define.
3600         (hppaelf_finish): Call elf32_hppa_set_gp.
3601         (hppaelf_set_output_arch): Remove.
3602         (LDEMUL_SET_OUTPUT_ARCH): Remove.
3604         * emulparams/hppalinux.sh (ELFSIZE): Define.
3605         (MACHINE): Define.
3606         (OTHER_READONLY_SECTIONS): Define.
3607         (DATA_PLT): Define.
3608         (GENERATE_SHLIB_SCRIPT): Define.
3610         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
3611         to const throughout.  Change `void *' to `PTR' throughout.
3612         (lang_memory_default): Function is local to file, add `static'.
3614         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3615         (ehppalinux.c): Likewise.
3616         (earmelf.c): Likewise.
3617         (earmelf_linux.c): Likewise.
3618         (earmelf_linux26.c): Likewise.
3619         * Makefile.in: Regenerate.
3621         * ld.h (ld_config_type): Add unique_orphan_sections.
3622         * lexsup.c (OPTION_UNIQUE): Define.
3623         (ld_options): Add "--unique".
3624         (parse_args): Handle it.
3625         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3626         search for an existing output section if unique_orphan_sections is
3627         set.  Make use of bfd_get_unique_section_name rather than
3628         duplicating code here.
3629         * ld.texinfo: Describe --unique.
3631         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3632         optional arg to split-by-file.
3633         (parse_args): Handle them.
3634         * ld.texinfo: Update description of these options.
3635         * ldwrite.c (clone_section): Pass in the section name.  Replace
3636         local code with bfd_get_unique_section_name.
3637         (split_sections): Tidy code and comments.  Use a list traversal
3638         more appropriate to the list construction.  Handle cooked section
3639         sizes.  Split when split_by_reloc reached rather than exceeded.
3640         Track section size and split when split_by_file reached.  Fix
3641         link_order_tail (even though it's not used).
3642         (ldwrite): Modify condition for calling split_sections to suit
3643         changed split_by_reloc and split_by_file.
3644         * ldmain.c (main): Init config.split_by_reloc and
3645         config.split_by_file to -1.
3646         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3647         Change split_by_file to bfd_size_type.
3649 2000-09-02  Nick Clifton  <nickc@redhat.com>
3651         * configure.in: Increase version number to 2.10.91.
3652         * NEWS: Mention new ability to support removal of duplicate DWARF2
3653         debug information.
3654         * configure: Regenerate.
3655         * aclocal.m4: Regenerate.
3656         * config.in: Regenerate.
3658 2000-09-02  Daniel Berlin <dberlin@redhat.com>
3660         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3661         sections.
3662         * scripttempl/elf32avr.sc: Ditto.
3663         * scripttempl/elfd10v.sc: Ditto.
3664         * scripttempl/elfd30v.sc: Ditto.
3665         * scripttempl/elfi370.sc: Ditto.
3666         * scripttempl/elfm68hc11.sc: Ditto.
3667         * scripttempl/elfm68hc12.sc: Ditto.
3668         * scripttempl/elfi386beos.sc: Ditto.
3669         * scripttempl/v850.sc: Ditto.
3671 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
3673         * acinclude.m4: Include libtool and gettext macros from the
3674         top level.
3675         * aclocal.m4, configure: Rebuilt.
3677 2000-08-25  Nick Clifton  <nickc@redhat.com>
3679         * ldlang.c (open_output): When choosing the target for a
3680         particular endianness, do nothing if the target is not
3681         supported.
3683 2000-08-25  H.J. Lu  <hjl@gnu.org>
3685         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3686         check -rpath nor LD_RUN_PATH for cross link.
3687         * ld.texinfo: Document the change.
3689 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
3691         * NEWS: Mention support for CRIS.
3693 2000-08-23  H.J. Lu  <hjl@gnu.org>
3695         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3696         the current runpath list from bfd_elf_get_runpath_list ()
3697         before search.
3699 2000-08-22  H.J. Lu  <hjl@gnu.org>
3701         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3702         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3703         LD_LIBRARY_PATH for native linker. Display the needed DSO if
3704         trace_file_tries is non-zero.
3705         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3706         if trace_file_tries is non-zero.
3708         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3709         * NEWS: Mention it.
3711 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
3713         * NEWS: Mention i860 support.
3715 2000-08-14  Andreas Schwab  <schwab@suse.de>
3717         * scripttempl/elf.sc: Fix last change to use correct comment
3718         syntax.
3720 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
3722         * scripttempl/elf.sc: Add a comment giving the correspondence
3723         between sections, per-datum sections, and linkonce sections.  Make
3724         the comment true even for .bss, .sdata, .sdata2, .sbss, and
3725         .sbss2.
3727 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
3729         * emulparams/elf32_i860.sh: New file.
3730         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3731         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3732         (eelf32_i860.c): New rule.
3733         * Makefile.in: Regenerate.
3735 2000-08-10  Nick Clifton  <nickc@cygnus.com>
3737         * emulparams/mipspe.sh (ENTRY): Add definition.
3739 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
3741         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3742         in error message.
3744 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3746         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3747         the final size of .bss section.
3748         * scripttempl/elfm68hc12.sc: Likewise.
3750 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
3752         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3753         gld${EMULATION_NAME}_parse_args for consistency.  Combine
3754         lastoptind and prevoptind vars, and keep track of last optind.
3755         (gld_${EMULATION_NAME}_list_options): Rename to
3756         gld${EMULATION_NAME}_list_options.
3758 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
3760         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3761         (i586-sco-sysv5uw7.1.0).
3763 2000-07-27  H.J. Lu  <hjl@gnu.org>
3765         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3766         (PARSE_AND_LIST_PROLOGUE): New.
3767         (PARSE_AND_LIST_LONGOPTS): Likewise.
3768         (PARSE_AND_LIST_OPTIONS): Likewise.
3769         (PARSE_AND_LIST_ARGS_CASES): Likewise.
3770         (PARSE_AND_LIST_EPILOGUE): Likewise.
3772 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
3774         * emultempl/armelf.em: Elide functions common to elf32.em,
3775         ie. most of the file.
3776         (arm_elf_after_open): New.  Do arm specific things then call
3777         gld${EMULATION_NAME}_after_open.
3778         (arm_elf_before_allocation): New.  Call
3779         gld${EMULATION_NAME}_before_allocation then do arm specifics.
3780         (PARSE_AND_LIST_PROLOGUE): Define.
3781         (PARSE_AND_LIST_SHORTOPTS): Define.
3782         (PARSE_AND_LIST_LONGOPTS): Define.
3783         (PARSE_AND_LIST_OPTIONS): Define.
3784         (PARSE_AND_LIST_ARGS_CASES): Define.
3785         (LDEMUL_AFTER_OPEN): Define.
3786         (LDEMUL_BEFORE_ALLOCATION): Define.
3787         (LDEMUL_BEFORE_PARSE): Define.
3788         (LDEMUL_FINISH): Define.
3790         * emultempl/hppaelf.em: Similarly zap most of this file.
3791         (hppaelf_add_stub_section): Prototype.
3792         (hppaelf_layaout_sections_again): Prototype.
3793         (hook_in_stub): Prototype.
3794         (LDEMUL_SET_OUTPUT_ARCH): Define.
3795         (LDEMUL_FINISH): Define.
3796         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3798         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3799         (EXTRA_EM_FILE): New.
3800         * emulparams/armelf_linux.sh: Likewise.
3801         * emulparams/armelf_linux26.sh: Likewise.
3802         * emulparams/hppalinux.sh: Likewise.
3803         * emulparams/hppaelf.sh: Likewise.
3804         (NOP): Define.
3806         * emultempl/elf32.em: Fix formatting.
3807         (EXTRA_EM_FILE): Source it.
3808         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3809         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3810         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3811         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3812         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3813         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3814         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3815         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3816         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
3817         allow functions in this file to be overridden.
3818         (PARSE_AND_LIST_SHORTOPTS): Handle it.
3820         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3822         * emultempl/elf32.em: Reorganize file.
3824 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
3826         * emulparams/elf64alpha.sh: Implement "-taso" emulation
3827         specific option to fit 64-bit executable in the lower
3828         31-bit address range.  This is done by changing start
3829         address of .interp (the very first section of executable)
3830         and then setting EF_ALPHA_32BIT elf header flag.
3832 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3834         * emultempl/m68kcoff.em: New file.
3835         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3836         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3837         generic.em.
3838         * Makefile.in: Regenerate.
3840 2000-07-20  H.J. Lu  <hjl@gnu.org>
3842         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3843         and "disable-new-dtags" to stop getopt from treating -d/-e as
3844         abbreviations for these options.
3846 2000-07-20  H.J. Lu  <hjl@gnu.org>
3848         * ld.texinfo: Add documentation for --disable-new-dtags and
3849         --enable-new-dtags.
3851         * ldmain.c (main): Initialize link_info.new_dtags to false.
3853         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3854         --disable-new-dtags and --enable-new-dtags.
3855         (gld_${EMULATION_NAME}_list_options): Likewise.
3857 2000-07-05  Kenneth Block  <krblock@computer.org>
3859         * lexsup.c: Add optional style to demangle switch
3860         * ld.texinfo: Document optional style to demangle switch.
3862 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
3864         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3865         ecrislinux.o.
3866         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3867         Regenerate dependencies.
3868         * Makefile.in: Rebuild.
3869         * configure.tgt (cris-*-*): New target.
3870         * emulparams/crisaout.sh, emulparams/criself.sh,
3871         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3872         * po/POTFILES.in, po/ld.pot: Regenerate.
3874 2000-07-20  H.J. Lu  <hjl@gnu.org>
3876         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3877         Print out ignored -z options.
3879 2000-07-19  H.J. Lu  <hjl@gnu.org>
3881         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3882         (PARSE_AND_LIST_PROLOGUE): New.
3883         (PARSE_AND_LIST_LONGOPTS): Likewise.
3884         (PARSE_AND_LIST_OPTIONS): Likewise.
3885         (PARSE_AND_LIST_ARGS_CASES): Likewise.
3887         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3889         * lexsup.c (ld_options): Comment out 'z'.
3890         (parse_args): Likewise.
3892         * emultempl/elf32.em: Include "elf/common.h".
3893         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3894         options.
3895         (gld_${EMULATION_NAME}_list_options): Likewise.
3897         * ld.texinfo: Add documentation for the recognized -z options.
3899 2000-07-19  H.J. Lu  <hjl@gnu.org>
3901         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3902         bfd_elf_set_dt_needed_soname ().
3904 2000-07-18  DJ Delorie  <dj@cygnus.com>
3906         * pe-dll.c (pe_dll_id_target): check object target name also
3908 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
3910         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3911         ${INIT_END} if relocating.
3912         (.fini): Likewise ${FINI_START} and ${FINI_END}.
3914 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
3916         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3917         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3918         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3919         errors introduced by the old dynamic lib search order.
3921 2000-07-17  DJ Delorie  <dj@cygnus.com>
3923         * pe-dll.c (process_def_file): auto-export data items also
3924         (pe_process_import_defs): also see if _imp_ form needed
3926 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
3928         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3929         for dll import libraries
3931 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
3933         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3934         gcc 2.95.2 and later.
3936 2000-07-11  Kazu Hirata  <kazu@hxi.com>
3938         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3939         message.
3941 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
3943         * ldemul.h (struct lang_input_statement_struct): Remove forward
3944         declaration.
3945         (struct search_dirs): Likewise.
3946         * ldfile.h (struct lang_input_statement_struct): Likewise.
3947         Protect file from multiple inclusion.
3948         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3949         declaration from macro to file scope.
3951         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3952         * ldgram.y: Likewise here.
3953         * ldlang.c: And here.
3954         * ldmain.c: And here.
3955         * mpw-elfmips.c: And here.
3956         * mpw-eppcmac.c: And here.
3957         * emultempl/aix.em: And here.
3958         * emultempl/armcoff.em: And here.
3959         * emultempl/armelf.em: And here.
3960         * emultempl/armelf_oabi.em: And here.
3961         * emultempl/beos.em: And here.
3962         * emultempl/elf32.em: And here.
3963         * emultempl/hppaelf.em: And here.
3964         * emultempl/linux.em: And here.
3965         * emultempl/lnk960.em: And here.
3966         * emultempl/pe.em: And here.
3967         * emultempl/sunos.em: And here.
3968         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3969         * mpw-idtmips.c: Ditto.
3970         * emultempl/generic.em: Ditto.
3971         * emultempl/gld960.em: Ditto.
3972         * emultempl/gld960c.em: Ditto.
3973         * emultempl/mipsecoff.em: Ditto.
3974         * emultempl/ticoff.em: Ditto.
3975         * emultempl/vanilla.em: Ditto.
3977         * pe-dll.c: Include ldfile.h
3978         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3980         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3981         arguments to bfd_elf32_size_dynamic_sections call.
3982         (gldelf32ebmip_place_orphan): Add missing arguments to
3983         lang_leave_output_section_statement call.
3985 2000-07-10  H.J. Lu  <hjl@gnu.org>
3987         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3988         DLL_SUPPORT.
3989         (strhash): Likewise.
3990         (compute_dll_image_base): Likewise.
3991         (pe_undef_found_sym): Likewise.
3992         (pe_undef_cdecl_match): Likewise.
3993         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3994         argument "arch" with ATTRIBUTE_UNUSED.
3996 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
3998         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4000         From  Ryan Bradetich  <rbradetich@uswest.net>
4001         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4003 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
4005         Changes to create multiple linker stubs, positioned immediately
4006         before the section where they are required.
4007         * emultempl/hppaelf.em: Include elf32-hppa.h.
4008         (stub_sec, file_chain): Delete.
4009         (hppaelf_create_output_section_statements): Don't make a stub
4010         section here.
4011         (hook_stub_info): New struct.
4012         (hook_in_stub): New function.
4013         (hppaelf_add_stub_section): New function.
4014         (hppaelf_finish): Do nothing for relocateable links.  Modify the
4015         call to elf32_hppa_size_stubs.  Move code for updating section
4016         layout from here...
4017         (hppaelf_layaout_sections_again): ..to here, a new function.
4019         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4020         broken list handling.  Pass in a pointer to the list.
4021         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4022         for above changes.
4023         (hppaelf_before_parse): Prototype.
4024         (hppaelf_set_output_arch): Prototype.
4025         (hppaelf_create_output_section_statements): Prototype.
4026         (hppaelf_delete_padding_statements): Prototype.
4027         (hppaelf_finish): Prototype.
4029         Merge from elf32.em
4030         * emultempl/hppaelf.em: Include ctype.h.
4031         (struct orphan_save): New.
4032         (gld${EMULATION_NAME}_place_orphan): New.
4033         (output_rel_find): New.
4034         (hppaelf_get_script): Update from elf32.em.
4035         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4036         Change emulation_name field to "${EMULATION_NAME}".  Add
4037         gld${EMULATION_NAME}_place_orphan.
4039         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
4040         ehppalinux.o, sort it.  Regenerate dependencies.
4041         (ehppalinux.c): Depend on hppaelf.em
4042         * Makefile.in: Regenerate.
4044         * configure.tgt: targ_emul=hppalinux for hppa*linux
4046         * emulparams/hppalinux.sh: New.
4047         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4049 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
4051         * lexsup.c (parse_args): Copy section name.
4053 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
4055         * emultempl/pe.em: institute the following search order for
4056         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4057         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
4058         static lib (libfoo.a) if none of the above are found.
4060 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
4062         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4063         (longopts): New --{enable,disable}-auto-image-base options.
4064         (gld_${EMULATION_NAME}_list_options): Document.
4065         (gld_${EMULATION_NAME}_parse): Handle.
4066         (strhash): New static function.
4067         (compute_dll_image_base): New static function.
4068         (gld_${EMULATION_NAME}_set_symbols): Use.
4070 2000-07-05  DJ Delorie  <dj@redhat.com>
4072         * MAINTAINERS: new
4074 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
4076         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4077         * emulparams/elf32btsmip.sh: New file.
4078         * Makefile.am: Add traditional mips target.
4079         * Makefile.in: Rebuild.
4081 2000-07-01  H.J. Lu  <hjl@gnu.org>
4083         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4084         automake to use YLWRAP.
4085         * Makefile.in: Rebuild.
4087 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
4089         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
4090         (CLEANFILES): Add DEPA.
4091         * Makefile.in: Regenerate.
4093 2000-06-30  Timothy Wall  <twall@ppc>
4095         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4096         the page in the upper octet of the address.
4098 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
4100         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4102 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
4104         * NEWS: arm-elf does --gc-sections too.
4106 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
4108         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4109         find one.
4110         * Makefile.in: Regenerate.
4112 2000-06-21  H.J. Lu  <hjl@gnu.org>
4114         * Makefile.am: Rebuild dependency.
4115         * Makefile.in: Rebuild.
4117 2000-06-20  H.J. Lu  <hjl@gnu.org>
4119         * Makefile.am: Rebuild dependency.
4120         * Makefile.in: Rebuild.
4122 2000-06-20  Timothy Wall  <twall@cygnus.com>
4124         * scripttempl/tic54xcoff.sc: New.
4125         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4126         * gen-doc.texi: Add flag for TI COFF.
4127         * ld.texinfo: Add documentation for TI COFF handling switches.
4128         * emultempl/ticoff.em: New. TI COFF handling.
4129         * configure.tgt: Add tic54x target.
4130         * Makefile.am: Add tic54x target.
4131         * Makefile.in: Ditto.
4133 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
4135         * ldmain.c (set_scripts_dir): Correct pointer comparison when
4136         checking for backslashes.
4138 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
4140         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4142 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
4144         * NEWS: Update list of targets supporting --gc-sections.
4146         * scripttempl/elf.sc: KEEP .eh_frame contents.
4147         * scripttempl/elfd30v.sc: Same here.
4149 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4151         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4152         and m68hc11 (elf).
4153         * Makefile.in: Rebuild.
4154         * configure.tgt: Recognize m68hc12 and m68hc11.
4155         * scripttempl/elfm68hc12.sc: New file.
4156         * emulparams/m68hc12elfb: New emulation.
4157         * emulparams/m68hc12elf: New emulation.
4158         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
4159         (includes a memory.x script to define the ROM and RAM banks).
4160         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4161         New configuration files for support of Motorola 68hc11
4163 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
4165         * ldmain.c (main): Only change SEC_READONLY for final link.
4167 2000-06-13  H.J. Lu  <hjl@gnu.org>
4169         * configure: Regenerate.
4171 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4173         * configure.in (VERSION): Update to show this is the CVS mainline.
4175 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4177         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4178         input objects to be ECOFF.
4179         (check_sections): einfo takes %B, not %P, to print a BFD name.
4181 2000-06-05  Michael Matz <matz@ifh.de>
4183         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4184         version scripts.
4186         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4188 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
4190         * emulparams/avr1200.sh (STACK): Define as 0.
4191         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4192         * emulparams/avr4433.sh (STACK): Likewise.
4193         * emulparams/avr44x4.sh (STACK): Likewise.
4194         * emulparams/avr85xx.sh (STACK): Likewise.
4195         * emulparams/avrmega103.sh (STACK): Likewise.
4196         * emulparams/avrmega161.sh (STACK): Likewise.
4197         * emulparams/avrmega603.sh (STACK): Likewise.
4198         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4199         (__stack): Define from ${STACK} for main().
4201 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4203         * Makefile.am: Update dependencies with "make dep-am"
4204         * Makefile.in: Regenerate.
4206 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
4208         * ldmain.c: Include filenames.h.
4209         (set_scripts_dir): Support backslashes in program name.
4211 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
4213         * ldmain.c (main): When deciding if ".text" section should be
4214         read-only, don't forget to reset SEC_READONLY because it
4215         could be already set.
4217 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
4219         * ld.1: Add documentation for new command line option:
4220                 --section-start <sectionname>=<sectionorg>
4221         This is a generic version of -Ttext etc. which accepts
4222         any section name as a parameter instead of just text/data/
4223         bss.
4224         * ld.texinfo: More docs.
4225         * NEWS: More docs.
4226         * lexsup.c: (parse_args): Recognize new command line option.
4227         (ld_options): Add new option.
4229 2000-05-18  H.J. Lu  <hjl@gnu.org>
4231         * lexsup.c (parse_args): `i' == `r', not `q'.
4233 2000-05-18  Jeffrey A Law  (law@cygnus.com)
4235         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4237 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
4238               Rick Gorton          <gorton@scrugs.lkg.dec.com>
4240         Add support for '-q' == '--emit-relocs' switch.
4241         * ldmain.c (main): Default to false.
4242         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4243         * NEWS: Describe the emitrelocations switch.
4244         * ld.texinfo: Describe the emitrelocations switch.
4246 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
4248         * emultempl/pe.em (_open_dynamic_archive): New function: Search
4249         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4250         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4251         link options.
4253 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
4255         * lexsup.c (parse_args): Update the year in the copyright notice.
4257 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
4259         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4260         Replace defines with those from intl/libgettext.h to quieten gcc
4261         warnings.
4263 2000-05-10  H.J. Lu  <hjl@gnu.org>
4265         * ldlang.c (open_input_bfds): Don't load the same file within
4266         a group again if the whole archive has been loaded already.
4268 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
4270         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4271         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4272         strtoul.
4274 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4276         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4278         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4279         host "ia64-*-linux-gnu*".
4281 2000-04-29  Andreas Jaeger  <aj@suse.de>
4283         * ld.h: Correctly check GCC version.
4285 2000-04-25  Jeffrey A Law  (law@cygnus.com)
4287         * Makefile.am: Add PA64 support.  Add missing dependencies for
4288         PA32 elf support.
4289         * Makefile.in: Rebuilt.
4290         * configure.tgt: Add PA64 support (currently disabled).
4292 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
4294         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4295         (output_rel_find): New function.
4296         (hold_section, hold_use): Delete.
4297         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4298         hold_interp): Make local to place_orphan.
4299         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4300         rather than place_section to find possible previous use of orphan.
4301         Similarly find the place-holder output sections.  Use returned
4302         value from lang_enter_output_section_statement rather than calling
4303         lang_output_section_statement_lookup.
4304         * emultempl/armelf.em: Same here.
4305         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4307         * ldlang.c (lang_enter_output_section_statement): Return output
4308         section statement.
4309         * ldlang.h (lang_enter_output_section_statement): Change
4310         declaration too.
4312         * ldlang.h (lang_output_section_statement): Export it.
4313         * ldlang.c (lang_output_section_statement): Ditto.
4315 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4317         * ld.texinfo (Output Section Data): Add note that section data
4318         commands cannot appear outside of section directives.
4320 2000-04-2  Matthew Green  <mrg@cygnus.com>
4322         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4324 2000-04-21  Richard Henderson  <rth@cygnus.com>
4325             David Mosberger  <davidm@hpl.hp.com>
4327         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4328         (eelf64_ia64.c): New rule.
4329         * Makefile.in: Rebuild.
4330         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4331         * emulparams/elf64_ia64.sh: New file.
4333 2000-04-21  Richard Henderson  <rth@cygnus.com>
4335         * scripttempl/elfd30v.sc: Place .gcc_except_table.
4337 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
4339         * dep-in.sed: Match space at start of file name, not at end.
4341 2000-04-18  H.J. Lu  <hjl@gnu.org>
4343         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4344         lang_leave_output_section_statement () after calling
4345         lang_enter_output_section_statement ().
4346         * emultempl/armelf.em: Likewise.
4348 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
4350         * emultempl/elf32.em (struct orphan_save): Add section field.
4351         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4352         better order, and place first orphan section as we did before the
4353         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
4354         Don't call make_bfd_section here, let wild_doit do the job for us.
4355         Don't build a statement list when we'll only throw it away.
4356         * emultempl/armelf.em: Ditto.
4357         * emultempl/pe.em: Similarly.
4359 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4361         * scripttempl/elfppc.sc: Remove.
4362         * emulparams/elf32ppc.sh: Use elf.sc.
4363         * emulparams/elf32lppc.sh: Use elf.sc.
4364         * emulparams/elf32ppclinux.sh: Use elf.sc.
4365         * emulparams/elf32ppcsim.sh: New file.
4366         * emulparams/elf32lppcsim.sh: New file.
4367         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
4368         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4369         * Makefile.in: Regenerate.
4370         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4372 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
4374         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4375         ~SEC_ALLOC sections too.  Init start address of debug sections.
4376         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4377         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4378         Also set all relocateable section start addresses.
4380 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
4382         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4383         Add new BSS_PLT variable for when .plt need not be contained in
4384         the file.  Move _etext so that it is also after .fini, and provide
4385         both etext and _etext with a leading underscore.  Mark the start
4386         and end of .sbss.
4388 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
4390         * emultempl/elf32.em (struct orphan_save): New.
4391         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4392         hold_interp): Make them struct orphan_save.
4393         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4394         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4395         the end of the relevant section list.  Also add associated section
4396         statements to the end of any previous orphan statements.
4397         * emultempl/armelf.em: Similarly.
4398         * emultempl/pe.em: Similarly.
4400 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
4402         * ld.texinfo (Simple Example): Remove extraneous paragraph.
4404 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
4406         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4407         --enable-build-warnings option.
4408         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4409         * Makefile.in, configure: Re-generate.
4411 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
4413         * po/ld.pot: Regenerate.
4415         * lexsup.c (help): Restore translated part of bug string.
4417         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4418         (DEP): Quote when passing vars to sub-make.  Add warning message
4419         to end.
4420         (DEP1): Rewrite for "gcc -MM".
4421         (CLEANFILES): Add DEP2.
4422         Update dependencies.
4423         * Makefile.in: Regenerate.
4425 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
4427         * ld.h: #include "bin-bugs.h"
4428         * lexsup.c (help): Use REPORT_BUGS_TO.
4430 2000-03-27  Denis Chertykov  <denisc@overta.ru>
4432         * configure.tgt (avr-*-*): New target support.
4433         * Makefile.am: Likewise.
4434         * scripttempl/elf32avr.sc: New script file.
4435         * emulparams/avr1200.sh: New file.
4436         * emulparams/avr23xx.sh: New file.
4437         * emulparams/avr4433.sh New file.
4438         * emulparams/avr44x4.sh New file.
4439         * emulparams/avr85xx.sh New file.
4440         * emulparams/avrmega103.sh New file.
4441         * emulparams/avrmega161.sh New file.
4442         * emulparams/avrmega603.sh New file.
4443         * Makefile.in: Regenerate.
4445 2000-03-09  Andreas Jaeger  <aj@suse.de>
4447         * Makefile.am (check-DEJAGNU): Also unset LANG.
4448         * Makefile.in: Rebuild.
4450 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
4452         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4453         archive.
4455 2000-03-02  H.J. Lu  <hjl@gnu.org>
4457         * emulparams/elf32mcore.sh: Include "getopt.h".
4459 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
4461         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4463 2000-03-01  H.J. Lu  <hjl@gnu.org>
4465         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4466         * emulparams/shpe.sh: Likewise.
4468 2000-03-01  Nick Clifton  <nickc@cygnus.com>
4470         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4471         to unused parameters.
4473         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4474         functions only used by DLL code.
4475         (_place_orphan): Initialise 'dollar'.
4477 2000-03-01  H.J. Lu  <hjl@gnu.org>
4479         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4480         indicate if the undefined symbol is a fatal error or not.
4481         Don't delete the output file if "fatal" is false.
4483 2000-02-29  H.J. Lu  <hjl@gnu.org>
4485         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4486         Set LC_COLLATE and LC_ALL to null and export them. It is for
4487         sort which expects the C locale.
4488         Add $(LIBS) to all $(HOSTING_LIBS).
4489         * Makefile.in: Rebuild.
4491 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
4493         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4494         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4495         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4496         (ld_emulation_xfer_struct): Add missing NULL initialiser for
4497         find_potential_libraries.
4499 2000-02-28  Jim Blandy  <jimb@redhat.com>
4501         * ldgram.y (exclude_name_list): Don't require a comma to separate
4502         list entries; the lexer considers commas to be valid part of a
4503         filename, so in something like `foo, bar' the comma is considered
4504         part of the first filename, `foo,'.
4505         * ld.texinfo: Update section on EXCLUDE_FILE lists.
4507 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
4509         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4510         host "i[3456]86-*-freebsdelf*".
4512 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
4514         * scripttempl/i386go32.sc: Move misplaced semicolons.
4516 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
4518         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4519         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4520         (eelf64hppa.c, ehppaelf.c): Remove targets.
4521         * Makefile.in: Rebuild.
4523 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4525         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4526         GNU/Linux/sparc, but keep the default as 32.
4528         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
4529         it default if sparcv9 or sparc64.
4531 2000-02-24  Nick Clifton  <nickc@cygnus.com>
4533         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4534         * Makefile.in: Regenerate.
4535         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4537         * ldemul.h (ld_emulation_xfer_struct): Add new field:
4538         find_potential_libraries.
4539         * ldemul.c (ldemul_find_potential_libraries): New function.
4541         * ldfile.c (ldfile_open_file_search): Allow function to be
4542         exported.
4543         (ldfile_open_file): Call ldemul_find_potential_libraries.
4544         * ldfile.h: Add prototype for ldfile_open_file_search.
4546         * pe-dll.c: Add support for ARM, MIPS and SH targets.
4548         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
4549         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
4551         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4552         (gld_X_find_potential_libraries): New function.  Search for
4553         libraries called "*.lib".
4555         * scripttempl/pe.sc: Add .pdata section.
4557 2000-02-23  Richard Henderson  <rth@cygnus.com>
4559         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4560         Add and use memory regions.
4562 2000-02-23  Linas Vepstas (linas@linas.org)
4564         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4566         * Makefile.am: Add support for Linux/IBM 370.
4567         * configure.tgt: Likewise.
4569         * Makefile.in: Regenerate.
4571 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
4573         * ldlang.c (print_input_section, print_data_statement,
4574         print_reloc_statement, print_padding_statement, insert_pad,
4575         size_input_section, lang_check_section_addresses,
4576         lang_size_sections, lang_do_assignments, lang_set_startof,
4577         lang_one_common): Change `opb' to unsigned.
4578         (lang_do_assignments): Also change `size' to unsigned.
4580 2000-02-16  Richard Henderson  <rth@cygnus.com>
4582         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4584 2000-02-16  Timothy Wall  <twall@cygnus.com>
4586         * mri.c (mri_draw_tree): Add default LMA region argument to call
4587         to lang_leave_output_section_statement.
4588         * ldlang.h: Update prototypes with LMA region arguments.
4589         * ldlang.c (lang_size_sections): Encapsulate region bounds
4590         checking in os_check_region call.
4591         (os_check_region): New function.
4592         (lang_output_section_statement_lookup): Initialize lma_region.
4593         (lang_leave_output_section_statement): Add LMA region argument.
4594         (lang_leave_overlay): Ditto.
4595         * ldgram.y: Handle LMA region syntax.
4596         * ld.texinfo (Output Section Description): Describe LMA region usage.
4597         * emultempl/armelf.em (gld$place_orphan): Add default value for
4598         lma region in call to lang_leave_output_section_statement.
4599         * emultempl/elf32.em (gld$place_orphan): Add default value for
4600         lma region in call to lang_leave_output_section_statement.
4601         * emultempl/pe.em (gld$place_orphan): Add default value for
4602         lma region in call to lang_leave_output_section_statement.
4605 2000-02-04  Timothy Wall  <twall@redhat.com>
4607         * ldlang.c (lang_check_section_addresses): Use bytes instead of
4608         octets when calculating section end addresses.
4610 2000-02-04  Timothy Wall  <twall@redhat.com>
4612         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4614 2000-02-03  Timothy Wall <twall@redhat.com>
4616         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4617         octet count.
4618         * ldlang.c (print_input_section, print_data_statement,
4619         print_reloc_statement, print_padding_statement): Print target
4620         address values and section sizes as bytes, not octets.
4621         (insert_pad) Calculate padding size in octets, and adjust "dot"
4622         by bytes.
4623         (size_input_section) Always adjust "dot" by bytes, not octets.
4624         (lang_check_section_addresses, lang_do_assignments) Adjust
4625         "dot" by bytes, not octets.  Use the larger of the directive size
4626         or octets_per_byte for the number of octets actually allocated in
4627         the output section.
4628         (lang_set_startof) Make sure STARTOF returns a target address.
4629         (lang_one_common) Record size changes in octets.
4630         (lang_abs_symbol_at_end_of) Section end symbol's value is
4631         recorded in target bytes.
4632         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4633         to be clear about behavior when an octet is smaller than one byte.
4635 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
4637         * ldcref.c (output_cref): Don't pass message strings to printf
4638         as format arg.
4639         Update copyright.
4641         * ldmisc.c (vfinfo): Same here.
4642         Update copyright.
4644 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
4646         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4647         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4648         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4649         Add missing NULL initialisers, and comments.
4651         * testsuite/ld-srec/sr3.cc (__rethrow): New.
4653 2000-01-21  Nick Clifton  <nickc@cygnus.com>
4655         * ldlang.c (lang_size_sections): Fix typo in comment.
4657 2000-01-18  H.J. Lu  <hjl@gnu.org>
4659         * ldlang.c (lang_size_sections): Also update the current
4660         address of a region if the SEC_NEVER_LOAD bit is not set.
4662 2000-01-10  Philip Blundell  <pb@futuretv.com>
4664         * configure.tgt (arm*-*-conix*): New target.
4666 2000-01-07  Nick Clifton  <nickc@cygnus.com>
4668         * ld.texinfo (Options): Remind users to preceed linker command
4669         line switches with -Wl, (or whatever is appropriate) if it is
4670         being invoked by a comnpiler driver program.
4671         Fix description of the behaviour of the -n command line switch.
4673 2000-01-05  Catherine Moore  <clm@cygnus.com>
4675         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
4676         (name_list): New.
4677         * ld.texinfo (EXCLUDE_FILE): Update documentation.
4678         * ldgram.y (wildcard_spec): Support a list of excluded_files.
4679         (exclude_name_list): New.
4680         ldlang.c (walk_wild_section): Support list of excluded files.
4681         (print_wild_statement): Likewise.
4682         (lang_add_wild): Likewise.
4683         * ldlang.h (lang_wild_statement_type): Likewise.
4684         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4686 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
4688         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4689         (process_def_file): Use.
4690         (pe_dll_compat_implib): New variable.
4691         (make_one): Use.
4693         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4694         pe_dll_compat_implib.
4696         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4697         compat-implib options.
4698         (gld_${EMULATION_NAME}_list_options): List new options.
4699         (gld_${EMULATION_NAME}_parse_args): Handle.
4701         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4702         dll.
4704         * deffilep.y (opt_name): Allow "." in name.
4706 For older changes see ChangeLog-9899
4708 Local Variables:
4709 mode: change-log
4710 left-margin: 8
4711 fill-column: 74
4712 version-control: never
4713 End: