* Makefile.in: Regenerate.
[binutils.git] / ld / ChangeLog
blob64f5c04b4e6bc611e28dd4ddd2ff61f75ae65e37
1 2003-01-16  Alan Modra  <amodra@bigpond.net.au>
3         * Makefile.in: Regenerate.
5 2002-01-14  Charles Wilson  <cwilson@ece.gatech.edu>
7         * ld/ld.texinfo (node WIN32): Some clarifications
8         and formatting fixups.
10 2003-01-09  Chris Demetriou  <cgd@broadcom.com>
12         * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
13         order, and handle (ignore) -mips32r2.
15 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
17         * ldmain.c (main): Make sure ld_sysroot is initialized.
19 2003-01-06  Daniel Jacobowitz  <drow@mvista.com>
21         * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
23         * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
24         (GENSCRIPTS): Add @use_sysroot@.
25         * Makefile.in: Regenerated.
26         * configure.host: Move setting of NATIVE_LIB_DIRS to...
27         * configure.tgt: ... here.  Use ${target} instead of ${host}
28         for NATIVE_LIB_DIRS.
29         * configure.in: Add --with-sysroot.
30         * configure: Regenerated.
31         * genscripts.sh: Accept use_sysroot option.  Set new variables
32         NATIVE and USE_LIBPATH.  Prepend "=" to directory names if
33         $use_sysroot.  Don't search $tool_lib if $use_sysroot.
34         * ldfile.c (ldfile_add_library_path): Handle leading '='.
35         * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
36         (ld_sysroot): New variable.
37         (main): Initialize ld_sysroot.
38         * ldmain.h (ld_sysroot): New extern.
39         * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
40         searching $EMULATION_LIBPATH.
41         (gld${EMULATION_NAME}_add_sysroot): New function.
42         (gld${EMULATION_NAME}_check_ld_so_conf): Use it.  Honor ld_sysroot.
43         (gld${EMULATION_NAME}_after_open): Likewise.  Only search
44         environment variables if $NATIVE.
45         * ld.texinfo (Options): Mention "=" prefix in the description of -L.
46         * NEWS: Mention --with-sysroot.
48         * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
49         instead of setting LIB_PATH.
50         * emulparams/elf32ppc.sh: Likewise.
51         * emulparams/elf64_s390.sh: Likewise.
52         * emulparams/elf64_sparc.sh: Likewise.
53         * emulparams/elf64ppc.sh: Likewise.
54         * emulparams/elf_x86_64.sh: Likewise.
56         * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
57         * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
59 2003-01-03  Charles Wilson  <cwilson@ece.gatech.edu>
61         * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
63 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
65         * Makefile.am (ldmain.o): Pass BINDIR.
66         * Makefile.in: Regenerated.
67         * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
68         search path.
70 2003-01-02  Ben Elliston  <bje@redhat.com>
72         * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
73         (eelf32iq2000.c): New target.
74         * Makefile.in: Regenerate.
75         * configure.tgt: Handle iq2000-*-elf.
76         * emulparams/elf32iq10.sh: New file.
77         * emulparams/elf32iq2000.sh: New file.
78         * scripttempl/iq2000.sc: New file.
79         
80 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
82         * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc 
83         and _pei386_runtime_relocator to the exclude list.
85 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
87         * ldfile.c: Fix comment typos.
88         * ldlang.c: Likewise.
89         * mri.c: Likewise.
90         * pe-dll.c: Likewise.
92 2003-01-01  Daniel Jacobowitz  <drow@mvista.com>
94         Suggested by Manfred Hollstein <manfred.h@gmx.net>:
95         * Makefile.am (ld.1): Depend on configdoc.texi
96         and ldver.texi.
97         * Makefile.in: Regenerated.
99 2002-12-24  Dmitry Diky  <diwil@mail.ru>
101         * Makefile.am: Add msp430 target.
102         * configure.tgt: Likewise.
103         * Makefile.in: Regenerate.
104         * emulparams/msp430x???.sh: New files.  Linker script parameters
105         for various msp430 configurations.
106         * gen-doc.texi: Enable msp430 documenation.
107         * ld.texinfo: Document msp430 sections.
108         * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
109         * scripttempl/elf32msp430_3.sc: New file.  Linker script for msp430.
111 2002-12-30  Ralf Habacker  <Ralf.Habacker@freenet.de>
112             Charles Wilson  <cwilson@ece.gatech.edu>
114         * ld/config.in (HAVE_REALPATH): New entry.
115         (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
117 2002-12-30  Ralf Habacker  <ralf.habacker@freenet.de>
119         * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
120         symbols'.
122 2002-12-23  Alan Modra  <amodra@bigpond.net.au>
124         * ldmain.c (main): Init "strip_discarded".
125         * lexsup.c (OPTION_STRIP_DISCARDED): Define.
126         (OPTION_NO_STRIP_DISCARDED): Define.
127         (ld_options): Add "strip-discarded" and "no-strip-discarded".
128         (parse_args): Handle them.
130 2002-12-23  Nick Clifton  <nickc@redhat.com>
132         * ld.h (struct args_type): Add new field
133         'accept_unknown_input_architecture'.
134         * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
135         to false.
136         * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
137         bfd_arch_get_compatible.
138         * ldfile.c (ldfile_try_open_bfd): Likewise.
139         * lexsup.c (ld_options): Add new command line switch
140         --accept-unknown-input-architecture and its inverse.
141         (parse_args): Handle --accept-unknown-input-architecture.
142         * ld.texinfo: Document new linker option.
143         * NEWS: Mention new linker option.
145 2002-12-20  Alan Modra  <amodra@bigpond.net.au>
147         * ldmain.c (main): Re-order link_info initialization.  Init all
148         fields.
150 2002-12-19  Charles Wilson  <cwilson@ece.gatech.edu>
152         * ld.texinfo: Clarify and extend the documentation
153         in the Machine Dependent, WIN32 section.
155 2002-12-18  Ralf Habacker  <ralf.habacker@freenet.de>
157         * ld.texinfo: Add win32 machine depending section.
158         * gen-doc.texi: Enable win32 machine depending section.
160         * configure.host: Add win32 library search path.
162 2002-12-17  Ralf Habacker  <ralf.habacker@freenet.de>
164         * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
165         import when auto-import is disabled.
167 2002-12-17  Danny Smith  <dannysmith@users.sourceforge.net>
169         * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
170         account for trailing '\0'.
172 2002-12-17  Nick Clifton  <nickc@redhat.com>
174         * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
175         so that it is not confused with -c.
177 2002-12-13  Ralf Habacker  <Ralf.Habacker@freenet.de>
178             Charles Wilson  <cwilson@ece.gatech.edu>
180         * configure.in: Add check for realpath function.
181         * configure: Regenerate.
182         * config.in: Regenerate.
183         * aclocal.m4: Regenerate.
184         * deffile.h: Add .data field to def_file_import
185         structure.
186         * pe-dll.c (pe_proces_import_defs): Use .data field of
187         def_file_import structure to initialize flag_data field of
188         def_file_export structure.
189         (pe_implied_import_dll): New variables exp_funcbase and
190         [data|bss]_[start|end].  Use DLL's internal name to set dll_name,
191         not filename (which may be a symlink).  Scan the sections and
192         initialize [data|bss]_[start|end].  When scanning the export
193         table, skip _nm_ symbols, and mark any symbols whose rva indicates
194         that it is in the .bss or .data sections as data.
195         * sysdep.h: Include limits.h and sys/param.h, and define
196         LD_PATHMAX as appropriate.  Also define REALPATH as realpath if it
197         exists, NULL otherwise.
198         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
199         pe_process_import_defs before pe_find_data_imports, so that
200         auto-import will check the virtual implib as well as "real"
201         implibs.
202         (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
203         symlinks to their target; check that the target's extension is
204         .dll before calling pe_implied_import_dll(), not the filename
205         itself (which may be a symlink).
207 2002-12-10  Alan Modra  <amodra@bigpond.net.au>
209         * emultempl/elf32.em (struct orphan_save): Add os_tail field.
210         (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
211         list too.
213 2002-12-08  Alan Modra  <amodra@bigpond.net.au>
215         * ldlang.h: Formatting.
217 2002-12-07  Alan Modra  <amodra@bigpond.net.au>
219         * ldlang.c (init_os): Ensure sections mentioned in load_base
220         are initialized.
222 2002-12-05  Alan Modra  <amodra@bigpond.net.au>
224         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
225         load_base for orphans that follow a section with load_base set.
227 2002-12-01  H.J. Lu <hjl@gnu.org>
229         * ld.texinfo: Remove the extra `;' in sample version script.
231 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
233         * configure.host: Correct dynamic-linker for powerpc64 hosts.
235         * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
236         * Makefile.in: Regenerate.
238         * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
239         ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
240         ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
241         emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
242         emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
243         emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
244         emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
245         emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
246         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
247         emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
248         emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
249         boolean with bfd_boolean, true with TRUE, false with FALSE.  Simplify
250         comparisons of bfd_boolean vars with TRUE/FALSE.  Formatting.
252 2002-11-27  David O'Brien  <obrien@FreeBSD.org>
254         * configure.host: Fix generic FreeBSD configuration entry.
256 2002-11-27  H.J. Lu <hjl@gnu.org>
258         * ld.texinfo: Add the missing `;' to sample version scripts.
260 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
262         * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
264 2002-11-14  Egor Duda  <deo@logos-m.ru>
266         * ldmain.c (main): Make runtime relocs disabled by default. Remove
267         assignment which has no effect.
268         * pe-dll.h (pe_create_import_fixup): Change prototype.
269         * pe-dll.c (make_runtime_pseudo_reloc): New function.
270         (pe_create_runtime_relocator_reference): Ditto.
271         (pe_create_import_fixup): Handle relocations with non-zero addends.
272         * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
273         --disable-runtime-pseudo-reloc.
274         (make_import_fixup): Handle relocations with non-zero addends. Create
275         an external reference to _pei386_runtime_relocator symbol if at least
276         one pseudo reloc was created.
277         * ld.texinfo: Document --enable-runtime-pseudo-reloc and
278         --disable-runtime-pseudo-reloc options.
280 2002-11-12  Earl Chew <earl_chew@agilent.com>
282         * ldlang.c (lang_add_section): Discard debugging sections that have
283         been marked SEC_EXCLUDE.
285 2002-11-12  Nick Clifton  <nickc@redhat.com>
287         * configure.in (ALL_LINGUAS): Add da.
288         * configure: Regenerate.
289         * po/da.po: New Danish translation.
291 2002-11-12  Alan Modra  <amodra@bigpond.net.au>
293         * emultempl/ppc64elf.em (ppc_before_allocation): New function.
294         (LDEMUL_BEFORE_ALLOCATION): Define.
295         (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
296         linking.
297         * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
299 2002-11-11  Christopher Faylor  <cgf@redhat.com>
301         * configure.tgt (LIB_PATH): Default to searching w32api directory under
302         cygwin.
304 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
306         * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
307         of restricted auto-export libs.
309 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
311         * pe-dll.c (autofilter_liblist): Generalize library names to catch more
312         creative library naming instances like, e.g., libstdc++-2.a.
314 2002-11-06  Alexandre Oliva  <aoliva@redhat.com>
316         * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
317         * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
319 2002-11-07  Danny Smith  <dannysmith@users.sourceforge.net>
321         * deffilep.y (def_lex): Handle '@' as first character of an ID.
322         * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
323         (make_one): Don't prefix decorated fastcall symbols with '_'.
324         (pe_process_import_defs): Likewise.
325         * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
326         symbols to cdecl names or vise-versa.
328 2002-10-13  Eric Kohl  <ekohl@rz-online.de>
330         * pe-dll.c (process_def_file): Handle fastcall symbols when
331         generating undecorated aliases.  Don't prefix decorated fastcall
332         symbols with '_'.
333         (fill_exported_offsets): Don't prefix decorated fastcall symbols
334         with '_'.
336 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
338         * emultempl/aix.em: Use include <> for generated headers.
339         * emultempl/beos.em: Likewise.
340         * emultempl/elf32.em: Likewise.
341         * emultempl/pe.em: Likewise.
342         * ldctor.c: Likewise.
343         * ldexp.c: Likewise.
344         * ldfile.c: Likewise.
345         * ldlang.c: Likewise.
346         * ldlex.c: Likewise.
347         * ldlex.l: Likewise.
348         * ldmain.c: Likewise.
349         * ldmisc.c: Likewise.
350         * ldwrite.c: Likewise.
351         * lexsup.c: Likewise.
352         * mri.c: Likewise.
353         * pe-dll.c: Likewise.
355 2002-10-23  Jakub Jelinek  <jakub@redhat.com>
357         * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
358         sections into .rel{,a}.dyn.
360 2002-10-23  Nick Clifton  <nickc@redhat.com>
362         * lexsup.c (OPTION_NO_OMAGIC): Define.
363         (ld_options): Add "no-omagic" option.
364         (parse_args): Parse --no-omagic.
365         * ld.texinfo: Document --no-omagic.
366         * NEWS: Mention new option.
368 2002-10-21  Danny Smith  <dannysmith@users.sourceforeg.net>
370         * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
371         __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
373 2002-10-22  Alexandre Oliva  <aoliva@redhat.com>
375         * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
376         emulation name.  Set LIB_PATH only for native tools, and
377         search the ABI-specific versions of NATIVE_LIB_DIRS before the
378         .../lib variants, not instead of them.  Mostly copied from...
379         * emulparams/elf32ppc.sh: ... here.  Fixed typo.
380         * emulparams/elf64bmip-defs.sh: Backed out.
381         * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
382         * emulparams/elf64btsmip.sh: Likewise.
383         (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
384         TEXT_DYNAMIC): Removed.
386 2002-10-17  Alexandre Oliva  <aoliva@redhat.com>
388         * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
389         (GENERATE_SHLIB_SCRIPT): Set to yes.
390         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
391         * emulparams/elf32bmipn32.sh: here.
392         (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
393         * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
394         * emulparams/elf64bmip-defs.sh: New file.  Extend
395         elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
396         * emulparams/elf64bmip.sh: Bring in definitions from
397         elf64bmip-defs.sh.
398         (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
399         settings.
400         (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
401         * emulparams/elf64btsmip.sh: Bring in definitions from
402         elf64bmip-defs.sh.
403         (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
404         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
406 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
408         * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
409         (s390-*-linux*): Add elf64_s390 emulation if want64.
410         * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
411         genscript.sh changes.
412         * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
413         * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
415 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
417         * ldlang.c (load_symbols): Revert last change.
419 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
421         * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
422         just_syms_flag.
423         (lang_reasonable_defaults): Don't compare against false.
424         (size_input_section): Likewise.
425         (lang_size_sections_1): Likewise.
426         (lang_do_assignments): Likewise.
427         (lang_add_output): Likewise.
429         * Makefile.am: Run "make dep-am".
430         * Makefile.in: Regenerate.
431         * ldver.c: #include "bfdver.h".
433 2002-10-13  Stephane Carrez  <stcarrez@nerim.fr>
435         * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
436         .finiN section.
437         * scripttempl/elfm68hc12.sc: Likewise.
439 2002-10-11  Alan Modra  <amodra@bigpond.net.au>
441         * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
443         * ldgram.y (memory_spec): Provide empty action.
444         (section <NAME>): Likewise.
446 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
448         * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
449         they have OUTPUT_FORMAT not matching actual output format.
450         * ldlang.c (lang_get_output_target): New function.
451         (open_output): Use it.
452         * ldlang.h (lang_get_output_target): New prototype.
454 2002-10-10  Alan Modra  <amodra@bigpond.net.au>
456         * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
457         when orphan is .rel, .rela when orphan is .rela.
458         (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
459         first.  Remove outsecname var.
461 2002-10-09  Richard Shann <richard.shann@superh.com>
462             Stephen Clarke <stephen.clarke@superh.com>
464         * Makefile.am: Add eshelf32_linux.o and
465         eshlelf32_linux.o, new emulations for sh64 Linux.
466         * Makefile.in: Regenerate.
467         * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
468         * emulparams/shelf32_linux.sh: New file.
469         * emulparams/shlelf32_linux.sh: New file.
471 2002-10-08  H.J. Lu <hjl@gnu.org>
473         * ldlang.c (lang_file_exist): Removed.
474         (new_afile): Revert the last change.
475         * ldlang.h (lang_file_exist): Removed.
476         * lexsup.c (parse_args): Revert the last change.
478 2002-10-07  Ralf Habacker  <Ralf.Habacker@freenet.de>
480         * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
481         auto-import symbols.
482         (make_one): Create _nm_<symbol> for data only.
484 2002-10-05  Elias Athanasopoulos  <eathan@otenet.gr>
486         * ldlang.c (lang_file_exist): New function.
487         (new_afile): Abort if the filename to be added matches the linker
488         output filename.
489         * ldlang.h: Add prototype for lang_file_exist.
490         * lexsup.c (parse_args): Abort if the output filename matches
491         one of the input filenames.
493 2002-10-02  Alan Modra  <amodra@bigpond.net.au>
495         * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
497 2002-09-30  Alan Modra  <amodra@bigpond.net.au>
499         * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
500         * scripttempl/elfm68hc11.sc: Likewise.
501         * scripttempl/elfm68hc12.sc: Likewise.
503         * emultempl/elf32.em (output_rel_find): Always place orphan loadable
504         reloc sections just before .rel.plt/.rela.plt.
505         (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
506         Only put loadable reloc sections in hold_rel.
508 2002-09-29  H.J. Lu <hjl@gnu.org>
510         * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
512 2002-09-25  Daniel Jacobowitz  <drow@mvista.com>
514         From "Anita Kulkarni" <AnitaK@kpit.com>
515         * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
516         sections.
518 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
520         * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
521         TARGET_PAGE_SIZE.
522         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
523         SEGMENT_SIZE alignment.
524         * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
525         (SEGMENT_SIZE): Define.
527         * ldexp.c (fold_unary): New.  Split out from exp_fold_tree.
528         (fold_binary): Correct abs - non-abs case.
529         (fold_trinary): New.  Split out from exp_fold_tree.
531 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
533         * emulparams/elf64ppc.sh (DATA_ADDR): Define.
534         * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
535         for start of .data, instead align up to 256M boundary.
536         * scripttempl/aix.sc: Likewise.
538 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
540         * scripttempl/i386go32.sc: Handle bss unique sections.
542 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
544         * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
546 2002-09-17  Stan Cox  <scox@redhat.com>
548         * emulparams/elf32bmipn32-defs.sh: New file.
549         * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
550         * emulparams/elf32btsmipn32.sh: Likewise.
551         * emulparams/elf64bmip.sh: Likewise.
552         * emulparams/elf64btsmip.sh: Likewise.
554 2002-09-16  Bruno Haible  <bruno@clisp.org>
556         * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
557         elf32-i386-freebsd.
558         * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
559         elf64-alpha-freebsd.
561 2002-09-11  Nick Clifton  <nickc@redhat.com>
563         * NEWS: New TI port supports both C4x and C3x series of DSPs.
565         * po/tr.po: Updated Turkish translation.
567 2002-09-06  Jeffrey A Law  (law@redhat.com)
569         * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
571 2002-09-02  Nick Clifton  <nickc@redhat.com>
573         * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
574         __ep.
575         * emulparams/v850.sh (TEMPLATE_NAME): Define.
577 2002-08-30  Nick Clifton  <nickc@redhat.com>
579         * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
580         used.  Change INSN to start at 0x01000000 and extend for
581         256K (ignoring holes).  Start the STACK on a word aligned
582         boundary.
583         (.rodata): Start it at the READONLY_START_ADDR.
585 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
587         * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
589 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
591         * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
592         added makefile targets for this file.
593         * Makefile.in: Regenerate.
594         * configure.tgt: Added tic4x-coff and c4x-coff emulations.
595         * NEWS: Mention new port.
597 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
599         * emulparams/tic3xcoff.sh: New file.
600         * emulparams/tic4xcoff.sh: New file.
601         * scripttempl/tic3xcoff.sc: New file.
602         * scripttempl/tic4xcoff.sc: New file.
604 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
606         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
607         strtoul and strtoull with bfd_scan_vma.
608         (gld${EMULATION_NAME}_read_file): Likewise.
610 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
612         * configure.tgt: Remove h8[35]00-*-hms*.  Add h8500-*-rtems*.
614 2002-08-27  Egor Duda  <deo@logos-m.ru>
616         * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
617         Add symbols for application to access them.
619 2002-08-27  Nick Clifton  <nickc@redhat.com>
621         * emultempl/armelf.em:  Revert this patch, it is not needed.
623         2002-08-22  Adam Nemet  <anemet@lnxw.com>
625 2002-08-20 Dan Kegel <dank@kegel.com>
627         * configure.in: added --with-lib-path argument to ld's configure
628         to set LIB_PATH.
629         * ld/NEWS: Document new switch.
630         * ld/README: Mention new switch.
631         * configure: Regenerate.
632         * Makefile.in: Regenerate.
634         Based on this patch:
635         2001-04-25  Christopher Faylor <cgf@cygnus.com>
637         * Makefile.in (LIB_PATH): Make configurable.
638         (GENSCRIPTS): Set LIB_PATH in environment.
639         * configure.in: Substitute LIB_PATH.
641 2002-08-22  Adam Nemet  <anemet@lnxw.com>
643         * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
644         (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
645         depending on the type of the function.
646         (arm_elf_convert_thumb_symbol_to_address): New function.
648 2002-08-22  Graeme Peterson  <gp@qnx.com>
650         * Makefile.am: Add esh{l}elf_nto.o files.
651         * Makefile.in: Regenerate.
652         * configure.tgt: Add support for sh-**-nto* targets.
653         * emulparams/shelf_nto.sh: New file.
654         * emulparams/shlelf_nto.sh: New file.
656 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
658         * ldlang.c (offsetof): Define if not defined.
660 2002-08-14  H.J. Lu <hjl@gnu.org>
662         * configure.tgt: Always enable 64bit emulations for 32bit
663         Linux/mips.
665 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
667         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
668         (MAXPAGESIZE): Set to 1.
670         * ld.h (ALIGN_N): Delete.
671         * ldexp.h (align_n): Declare.
672         * ldexp.c (align_n): New function.
673         (fold_binary): Use align_n instead of ALIGN_N.
674         (exp_fold_tree): Likewise.
675         * ldlang.c (lang_size_sections_1): Likewise.
676         (lang_one_common): Likewise.
677         * ld.texinfo (ALIGN): Remove power of 2 restriction.
679 2002-07-31  Graeme Peterson  <gp@qnx.com>
681         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
682         * Makefile.am: Add eelf32{l}ppcnto.o files.
683         * Makefile.in: Regenerate.
684         * emulparams/elf32lppcnto.sh: New file.
685         * emulparams/elf32ppcnto.sh: New file.
687 2002-08-07  H.J. Lu <hjl@gnu.org>
689         * ld.texinfo: Document --no-undefined-version.
691         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
692         `script.' fields to 0.
694         * ldmain.c (main): Initialize the allow_undefined_version to
695         true.
697         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
698         (ld_options): Add --no-undefined-version.
699         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
701 2002-08-07  Nick Clifton  <nickc@redhat.com>
703         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
704         an interworking bfd if there are input bfds. (107501)
706 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
708         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
709         2002-05-10 change.
711 2002-08-01  Nick Clifton  <nickc@redhat.com>
713         * emulparams/armelf.sh: Revert previous delta.
714         * scripttempl/elf.sc: Revert previous delta.
716 2002-07-31  H.J. Lu <hjl@gnu.org>
718         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
719         --enable-64-bit-bfd.
721 2002-07-31  H.J. Lu <hjl@gnu.org>
723         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
724         64bit BFD is selected.
726 2002-07-31  H.J. Lu <hjl@gnu.org>
728         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
729         if 64bit BFD is selected.
731 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
733         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
734         link_info.common_skip_ar_aymbols.
735         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
737         * ldmain.c (main): Initialize new field
738         link_info.common_skip_ar_aymbols.
740 2002-07-31  Adam Nemet  <anemet@lnxw.com>
742         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
743         to .plt.thumb.
744         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
745         used.
747 2002-07-31  Nick Clifton  <nickc@redhat.com>
749         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
750         of the PDP-11 and 2.11BSD a.out support.
752 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
754         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
755         for n32 ABI support.
756         * Makefile.in: Regenerate.
757         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
758         n32 ABI emulations for these 64 bit targets.
759         * emulparams/elf32bmipn32.sh: Expand comment.
760         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
761         n32 ABI.
762         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
764 2002-07-30  Graeme Peterson  <gp@qnx.com>
766         * configure.tgt: Add support for arm-*-nto target.
767         * Makefile.am: Add earmnto.o file.
768         * Makefile.in: Regenerate.
769         * NEWS: Mention port of ARM support to QNX.
770         * emulparams/armnto.sh: New file.
772 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
774         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
775         for relocatable link.
776         (lang_size_sections_1): Don't make .tbss zero size for relocatable
777         link.
779 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
781         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
782         (STACK_ADDR): New.
784 2002-07-25  Nick Clifton  <nickc@redhat.com>
786         * po/sv.po: Updated Swedish translation.
787         * po/es.po: Updated Spanish translation.
788         * po/fr.po: Updated French translation.
790 2002-07-24  Nick Clifton  <nickc@redhat.com>
792         * po/sv.po: Updated Swedish translation.
793         * po/es.po: Updated Spanish translation.
795 2002-07-23  Nick Clifton  <nickc@redhat.com>
797         * po/fr.po: Updated French translation.
799 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
801         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
802         bomb on /DISCARD/ input section.
803         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
804         * emultempl/mmo.em (mmo_place_orphan): Likewise.
806 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
808         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
809         output section.
811 2002-07-16  Denis Chertykov  <denisc@overta.ru>
812             Nick Clifton  <nickc@redhat.com>
813             Frank Ch. Eigler  <fche@redhat.com>
814             John Healy  <jhealy@redhat.com>
816         * configure.tgt: Add support for ip2k-elf.
817         * Makefile.am: Add support for ip2k-elf.
818         * Makefile.in: Regenerate.
819         * emulparams/elf32ip2k.sh: New file.
820         * scripttempl/ip2k.sc: New file
821         * NEWS: Mention support for new port.
823 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
825         * NEWS: Add 'Changes in 2.13'.
827 2002-07-14  H.J. Lu <hjl@gnu.org>
829         * ld.texinfo: Document a .symver takes precedence over a
830         version script.
832 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
834         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
835         (COMMONPAGESIZE): Define.
837 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
839         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
841 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
843         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
844         powerpc-*-openbsd* and sparc64-*-openbsd*.
845         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
846         * Makefile.in: Regenerate.
847         * emulparams/hppaobsd.sh: New file.
849 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
851         * ldlang.c (print_wild_statement): Fix output formatting.
853 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
855         * ldlang.c: (strip_excluded_output_sections): New function.
856         (lang_process): Call it.
857         (lang_size_sections_1): Revert 2002-06-10 change.
859 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
861         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
862         Run "make dep-am".
863         * Makefile.in: Regenerate.
865 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
867         * ldfile.c (ldfile_try_open_bfd): Formatting.
869         * ldmisc.c (demangle): Move so that it doesn't intrude between
870         vfinfo comment and body.  Add comment.
872 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
874         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
876 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
878         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
879         * ldlang.c (entry_sym): Likewise.
880         (ldlang_undef_chain_list_type): Likewise.
881         (lang_finish): Adjust references to entry_symbol.
882         (lang_add_entry): Likewise.
883         (lang_gc_sections): Use link_info.gc_sym_list.
884         (lang_process): Set link_info.gc_sym_list.
885         * ldlex.l: Include bfdlink.h.
886         * ldmain.c (main): Init link_info.gc_sym_list.
887         * emultempl/aix.em: Adjust references to entry_symbol.
888         * emultempl/armcoff.em: Likewise.
889         * emultempl/armelf.em: Likewise.
890         * emultempl/pe.em: Likewise.
891         * emultempl/ppc64elf.em (ppc_after_open): New function.
892         (LDEMUL_AFTER_OPEN): Define.
893         * emulparams/elf64ppc.sh: KEEP .opd sections.
895 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
897         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
898         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
899         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
900         (EEPROM_START_ADDR): Define.
901         (EEPROM_MEMORY): Define.
902         * emulparams/m68hc12elf.sh: Likewise.
903         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
904         section to put soft registers in .page0.
905         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
907 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
909         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
910         section.  Add ${RELOCATING-0}.
912 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
914         * emulparams/shelf.sh (STACK_ADDR): Don't define.
915         (OTHER_SECTIONS): Define.
916         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
917         (OTHER_SECTIONS): Undef.
919 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
921         * ldmisc.c (demangle): Restore dots stripped from sym name.
923 2002-06-25  H.J. Lu <hjl@gnu.org>
925         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
926         * Makefile.in: Regenerated.
928 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
930         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
931         the size of attached object files, to allow make the object files
932         available via FTP or HTTP and to mention that the mail will be
933         sent to a mailing list.
935 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
937         * ld/configure.host (romp): Drop support.
939 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
941         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
942         section flags for SEC_DATA, rather than for SEC_CODE being unset.
944 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
946         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
947         format specifier used to print BFD name.
949 2002-06-18  Dave Brolley  <brolley@redhat.com>
951         From Catherine Moore, Michael Meissner, Jim Blandy:
952         * emulparams/elf32frv.sh: New file.
953         * configure.tgt: Support frv-*-*.
954         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
955         (eelf32frv.c): New target.
957 2002-06-17  Tom Rix  <trix@redhat.com>
959         * emultempl/elf32.em: gld*_get_script:  Check for
960         GENERATE_COMBRELOC_SCRIPT.
961         * scripttempl/elfd10v.sc : Fix STACK and INSN.
962         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
964 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
966         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
968 2002-06-12  H.J. Lu <hjl@gnu.org>
970         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
971         false if xvec doesn't match.
973 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
975         * ldlang.c (lang_size_sections_1): Skip removed output sections.
977 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
979         * ldexp.c: Replace CONST with const.
980         * ldfile.c: Likewise.
981         * ldfile.h: Likewise.
982         * ldlex.l: Likewise.
983         * mri.c: Likewise.
984         * pe-dll.h: Likewise.
986 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
988         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
990 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
992         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
993         to -1 == implicit enable.
994         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
995         initialize link_info.pei386_auto_import to -1 == implicit
996         enable.
997         (gld_${EMULATION_NAME}_parse_args): When processing
998         --enable-auto-import and --disable-auto-import options, use
999         '1' and '0' instead of 'true' and 'false'.
1000         (pe_find_data_imports): Only issue message about auto-import
1001         when the feature is implicitly enabled.  Downgrade message to
1002         informational instead of warning.
1004 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
1006         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1008 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1010         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1011         HOSTING_CRT0 and HOSTING_LIBS.
1013 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
1015         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1017 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
1019         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1020         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1022 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
1024         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1025         SEC_EXCLUDE sections when doing a relocatable link.
1027 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
1029         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1030         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1031         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1032         (eshlelf64_nbsd.c): New rules.
1033         * Makefile.in: Regenerate.
1034         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1035         (sh64-*-netbsd*): New targets.
1036         * emulparams/shelf32_nbsd.sh: New file.
1037         * emulparams/shelf64_nbsd.sh: New file.
1038         * emulparams/shlelf32_nbsd.sh: New file.
1039         * emulparams/shlelf64_nbsd.sh: New file.
1041 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
1043         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
1045 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1047         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1048         C++ constructors/destructors, loosely based on the m68hc11 port.
1050 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
1052         * Makefile.in: Regenerate.
1053         * aclocal.m4: Regenerate.
1054         * config.in: Regenerate.
1055         * configure: Regenerate.
1057 2002-05-31  Graeme Peterson  <gp@qnx.com>
1059         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1060         (ei386nto.c): Add rule.
1061         * Makefile.in: Regenerate.
1062         * configure.tgt: Add i[3456]86-*-nto-qnx*.
1063         * emulparams/i386nto.sh: New file.
1065 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
1067         * NEWS: Add entry for VAX ELF support.
1069 2002-05-29  Matt Thomas  <matt@3am-software.com>
1070             Jason Thorpe  <thorpej@wasabisystems.com>
1072         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1073         (eelf32vax.c)
1074         (evaxnbsd.c): New rules.
1075         * Makefile.in: Regenerate.
1076         * configure.tgt (vax-*-netbsdelf*)
1077         (vax-*-netbsdaout*)
1078         (vax-*-netbsd*): New targets.
1079         * emulparams/elf32vax.sh: New file.
1080         * emulparams/vaxnbsd.sh: New file.
1082 2002-05-29  Adam Nemet  <anemet@lnxw.com>
1084         * emultempl/armelf.em (arm_elf_after_open): Don't determine
1085         bfd_for_interwork, instead add glue sections to each input bfd.
1086         (bfd_for_interwork): New global.
1087         (arm_elf_set_bfd_for_interworking): New function.
1088         (arm_elf_before_allocation): Use it.
1090 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
1092         * Makefile.am: Add DLX make target.
1093         * configure.tgt: Add DLX configuration.
1094         * Makefile.in: Regenerate.
1095         * emulparams/elf32_dlx.sh: New file
1096         * scripttempl/dlx.sc: New file
1098 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
1100         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1101         * Makefile.in: Regenerate.
1102         * emulparams/elf_chaos.sh: Use elf_chaos script.
1103         * scripttempl/elf_chaos.sc: New file.
1105 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
1107         * ldlang.c (lang_size_sections_1): Move check for conflicting load
1108         addresses and regions from here...
1109         (lang_get_regions): ...to this new function.
1110         (lang_leave_output_section_statement): Use lang_get_regions.
1111         (lang_leave_overlay): Likewise.
1112         * mri.c (mri_draw_tree): Pass null as last argument to
1113         lang_leave_output_section_statement.
1114         * emultempl/elf32.em (gld*_place_orphan): Likewise.
1115         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1116         * emultempl/pe.em (gld*_place_orphan): Likewise.
1118 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1120         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1122 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1124         * ldemul.c: Fix formatting.
1125         * ldfile.c: Likewise.
1126         * pe-dll.c: Likewise.
1127         * pe-dll.h: Likewise.
1129 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
1131         * ldlang.c (lang_process): Formatting, grammar.
1133         * ldlex.l: Use #include "" instead of <> for local header files.
1135 2002-05-24  TAMURA Kent <kent@netbsd.org>
1137         * configure.tgt: Add a target for i386-netbsdpe.
1139 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1141         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1142         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1143         output section if necessary.  Handle .tbss.
1144         (lang_size_sections): Clear _raw_size for .tbss section
1145         (it allocates space in PT_TLS segment only).
1146         * ldwrite.c (build_link_order): Build link order for .tbss too.
1148 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1150         * configure.in: Correct spelling of AC_PREREQ.
1152 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
1154         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1155         default.
1156         (autofilter_objlist): Add crtbegin.o, crtend.o.
1158 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
1160         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1161         (longopts): Add new option --exclude-libs.
1162         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1163         (gld_${EMULATION_NAME}_parse_args): Use it.
1164         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1165         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1166         from whole archives.
1167         (pe_dll_add_excludes): Set excludes->type.
1168         (auto_export): Add new variable libname and set to archive basename if
1169         abfd.  Use it when filtering default and user-specified libarary
1170         excludes.  Let string "ALL" mean all libs when filtering user-specified
1171         libs.
1172         * ld.texinfo: Document --exclude-libs.
1174 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
1176         * ldemul.c (ldemul_new_vers_pattern): New function.
1177         * ldemul.h (ldemul_new_vers_pattern): Declare.
1178         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1179         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1180         * emultempl/ppc64elf.em (dotsyms): New static var.
1181         (gld${EMULATION_NAME}_new_vers_pattern): New function.
1182         (LDEMUL_NEW_VERS_PATTERN): Define.
1183         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1184         (PARSE_AND_LIST_LONGOPTS): Likewise.
1185         (PARSE_AND_LIST_ARGS_CASES): Handle them.
1186         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1187         initialiser.
1188         * emultempl/armcoff.em: Likewise.
1189         * emultempl/armelf_oabi.em: Likewise.
1190         * emultempl/beos.em: Likewise.
1191         * emultempl/elf32.em: Likewise.
1192         * emultempl/generic.em: Likewise.
1193         * emultempl/gld960.em: Likewise.
1194         * emultempl/gld960c.em: Likewise.
1195         * emultempl/linux.em: Likewise.
1196         * emultempl/lnk960.em: Likewise.
1197         * emultempl/m68kcoff.em: Likewise.
1198         * emultempl/mipsecoff.em: Likewise.
1199         * emultempl/pe.em: Likewise.
1200         * emultempl/sunos.em: Likewise.
1201         * emultempl/ticoff.em: Likewise.
1202         * emultempl/vanilla.em: Likewise.
1204 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
1206         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1207         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
1208         (LIB_SEARCH_DIRS): No need to use "tr".
1209         (COMPILE_IN): Only set for native targets.
1210         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1211         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1212         * configure.tgt (powerpc*): Set tdir_*.
1213         (powerpcle*): Correct targ_extra_emuls.
1214         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1215         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1217 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
1219         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1220         calling lang_add_entry.
1222 2002-05-21  H.J. Lu  (hjl@gnu.org)
1224         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1225         "-z muldefs".
1226         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1228         * ld.texinfo: Updated for --allow-multiple-definition and
1229         "-z muldefs".
1231         * ldmain.c (main): Initialize the allow_multiple_definition
1232         field to false.
1234         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1235         (ld_options): Add --allow-multiple-definition.
1236         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1238 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
1240         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1241         (earmelfb_nbsd.c): New rule.
1242         * Makefile.in: Regenerate.
1243         * configure.tgt (armeb-*-netbsdelf*): New target.
1244         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1245         (arm-*-netbsd*): Likewise.
1246         * emulparams/armelfb_nbsd.sh: New file.
1248 2002-05-18  Tom Rix  <trix@redhat.com>
1250         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1251         support.
1253 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1255         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1256         * Makefile.in: Regenerate.
1257         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1259 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1261         * emulparams/avr1.sh: New file.
1262         * emulparams/avr2.sh: New file.
1263         * emulparams/avr3.sh: New file.
1264         * emulparams/avr4.sh: New file.
1265         * emulparams/avr5.sh: New file.
1266         * scripttempl/avr.sc: New file.
1268 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
1270         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1271         (lang_place_orphans): Abort if just_syms_flag.
1273 2002-05-10  Tom Rix  <trix@redhat.com>
1275         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1276         architecture and machine information in the output bfd.
1277         (gld*_before_parse): Remove old arch and machine code.
1278         (choose_target): Rename to gld*_choose_target.
1279         (rtld): Change type to int.
1280         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1281         objects in XCOFF archives.
1282         * ldfile.h: Update copyright date.
1284 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
1286         * ldmain.c (main): Enable -z combreloc by default.
1288 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
1290         * Makefile.am: Honour DESTDIR.
1291         * Makefile.in: Regenerate.
1293 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
1295         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1296         (lang_enter_overlay): Remove the last two parameters.
1297         (lang_leave_overlay): Take them here instead.
1298         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1299         (section): Pass LMA and crossref flag to lang_leave_overlay rather
1300         than lang_enter_overlay.
1301         * ldlang.c (lang_memory_region_lookup): Return null for null names.
1302         (lang_output_section_statement_lookup): Initialize update_dot_tree.
1303         (lang_size_sections_1): Evaluate it.
1304         (lang_leave_output_section_statement): Rework LMA lookup.
1305         (overlay_lma, overlay_nocrossrefs): Remove.
1306         (lang_enter_overlay): Remove LMA and crossref arguments.
1307         (lang_enter_overlay_section): Don't set the LMA here.
1308         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
1309         assignment to the last section's update_dot_tree.  Unconditionally
1310         use the load and run-time regions specified in the OVERLAY statement.
1311         Likewise the first section's LMA.  Only set the other sections' LMAs
1312         when no load region is given.
1314 2002-05-06  Nick Clifton <nickc@redhat.com>
1316         * po/sv.po: New translation.
1318 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
1320         * emultempl/hppaelf.em (build_section_lists): New function.
1321         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1322         and build_section_lists.
1324 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
1326         * ld.h: Fix formatting.
1327         * ldexp.c: Likewise.
1328         * ldfile.c: Likewise.
1329         * ldlang.c: Likewise.
1330         * ldmain.c: Likewise.
1331         * lexsup.c: Likewise.
1332         * pe-dll.c: Likewise.
1334 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
1336         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1337         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
1338         (build_section_lists): Do output_section tests here.
1340 2002-04-30  Tom Rix  <trix@redhat.com>
1342         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1344 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
1346         Long branch stubs, multiple stub sections.
1347         * emultempl/ppc64elf.em: Include ldctor.h.
1348         (stub_file): New var.
1349         (group_size): New var.
1350         (ppc_create_output_section_statements): New function.
1351         (struct hook_stub_info): New.
1352         (hook_in_stub): New function.
1353         (ppc_add_stub_section): New function.
1354         (ppc_layout_sections_again): New function.
1355         (build_section_lists): New function.
1356         (gld${EMULATION_NAME}_finish): Rewrite.
1357         (real_func): New var.
1358         (ppc_for_each_input_file_wrapper): New function.
1359         (ppc_lang_for_each_input_file): New function.
1360         (lang_for_each_input_file): Define.
1361         (PARSE_AND_LIST_PROLOGUE): Define.
1362         (PARSE_AND_LIST_LONGOPTS): Define.
1363         (PARSE_AND_LIST_OPTIONS): Define.
1364         (PARSE_AND_LIST_ARGS_CASES): Define.
1365         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1367 2002-04-30  Tom Rix  <trix@redhat.com>
1369         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1370         -blibpath, -bnolibpath support.
1372 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
1374         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1375         (eelf32ppcwindiss.c): New target.
1376         * Makefile.in: Regenerated.
1377         * configure.tgt: Add support for powerpc-*-windiss.
1378         * emulparams/elf32ppcwindiss.sh: New file.
1380 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
1382         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1383         * ldexp.c (exp_print_token): Add "infix_p" argument.
1384         (exp_print_tree): Update accordingly.
1386 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
1388         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1389         * Makefile.in: Regenerate.
1390         * mpw-elfmips.c: Delete.
1391         * mpw-eppcmac.c: Delete.
1392         * mpw-esh.c: Delete.
1393         * mpw-idtmips.c: Delete.
1395 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
1397         * emulparams/shelf32.sh (MACHINE): Now sh5.
1399 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1401         * ldgram.y: Fix syntax warning.
1403 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
1405         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1406         to prevent "-n" from being taken as an abbreviation for
1407         "--no-pipeline-knowledge".
1409 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1411         * ldlang.c (lang_size_sections_1): Don't complain about
1412         SEC_NEVER_LOAD sections having no memory region specified.
1414         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1416 2002-04-07  matthew green  <mrg@redhat.com>
1418         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1420 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1422         * dep-in.sed: Cope with absolute paths.
1423         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1424         Run "make dep-am".
1425         * Makefile.in: Regenerate.
1427 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1429         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1431 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1433         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1434         is smaller than maximum, round dot up to common page boundary.
1436 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
1438         * configure.host: Set up for generic hosts first, then tweak as
1439         necessary in more specific targets.
1440         (HOSTING_LIBS): Include libgcc_eh.a if found.
1442 2002-03-23  Andreas Jaeger  <aj@suse.de>
1444         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1446 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
1448         * Makefile.am: Run "make dep-am".
1449         * Makefile.in: Regenerate.
1451 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
1453         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1455 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
1457         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1458         add the symbol to the linker hash table immediately.
1459         (lang_place_undefineds): Split symbol creation out..
1460         (insert_undefined): ..to here.
1462 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
1464         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1465         the contents of the buffer returned from basename function will are
1466         getting overwritten while still being used.
1468 2002-03-18  Jan Hubicka  <jh@suse.cz>
1469             Andreas Jaeger  <aj@suse.de>
1470             Andreas Schwab  <schwab@suse.de>
1472         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1473         * elf_x86_64.sh (ARCH): Set to i386:x86-64
1474         set libraries to default to lib64 paths.
1476 2002-03-18  Tom Rix  <trix@redhat.com>
1478         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1479         * configure.tgt : Same.
1480         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1481         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1482         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1483         emulation parameters for better -b32, -b64 support.
1484         * emulparms/aixrs6.sh : Same.
1485         * emulparms/ppcmacos.sh : Same.
1486         * emultempl/aix.em (choose_target) : Use new emulation parameters
1487         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1488         * Makefile.in : Regenerate.
1490 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
1492         * po/fr.po: Updated version.
1494 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
1496         * ldmain.c (main): Move .text readonly flag fudges from here..
1497         * ldlang.c (lang_process): ..to here.
1499 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
1501         * ldlang.c (lang_check): Remove the word size check added in last
1502         change.  Treat emitrelocations case as for relocatable links.
1504 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
1506         * po/fr.po: Updated version.
1508 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
1510         * ldlang.c (lang_check): Do relocatable link checks first, so that
1511         warn_mismatch can't override.  Check compatible and word size too.
1513 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
1515         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1517 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
1519         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1520         DATA_SEGMENT_ALIGN.
1522 2002-03-04  H.J. Lu <hjl@gnu.org>
1524         * scripttempl/elf.sc: Put .preinit_array, .init_array and
1525         .fini_array in the data segment.
1527 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
1529         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1531 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
1533         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1534         .init_array, and .fini_array.
1536 2002-02-20  Andreas Schwab  <schwab@suse.de>
1538         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1539         .IA64_unwind* in a relocatable link.
1541 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
1543         * NEWS: Mark 2.12 branch.
1545 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1547         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1548         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1550 2002-02-18  Tom Rix  <trix@redhat.com>
1552         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1553         (gld*_before_allocation): Same.
1554         (gld*_create_output_section_statements): Generate
1555         __rtinit if run time linking.  Add librtl.a to the link.
1556         (gld*_read_file): Clean.
1558 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1560         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1562 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
1564         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1565         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1566         and eelf64alpha_fbsd.
1567         * Makefile.in: Regenerate.
1568         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1569         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1570         use a FreeBSD-specific emulation rather than the psABI one.
1571         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1572         for all FreeBSD ELF systems.
1573         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1574         emulation.
1575         * emulparams/elf32ppc_fbsd.sh: Likewise.
1576         * emulparams/elf64_ia64_fbsd.sh: Likewise.
1577         * emulparams/elf64_sparc_fbsd.sh: Likewise.
1578         * emulparams/elf64alpha_fbsd.sh: Likewise.
1579         * emulparams/elf_i386_fbsd.sh: Likewise.
1580         * emulparams/elf_x86_64_fbsd.sh: Likewise.
1582 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
1584         * po/tr.po: Updated version.
1586 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1588         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1589         (FILL): Likewise.
1591 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
1593         * emultempl/mmo.em (mmo_after_open): Don't call
1594         _bfd_mmix_check_all_relocs when producing ELF output.
1596 2002-02-15  Richard Henderson  <rth@redhat.com>
1598         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1599         definition.  Emit a unop+nop pair.
1601 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
1603         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1604         for presence of .MMIX.reg_contents.linker_allocated before early
1605         exit.
1607         * NEWS: Mention support for MMIX.
1609 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
1611         Support arbitrary length fill patterns.
1612         * ld.texinfo (Output Section Fill): Describe fill expressions.
1613         (FILL): Refer to the above.
1614         * ldexp.h (etree_value_type): Add "str" field.
1615         (union etree_union): Add "str" to "value" struct.
1616         (exp_bigintop): Declare.
1617         (exp_get_fill): Declare.
1618         * ldexp.c: Include "safe-ctype.h".
1619         (exp_intop): Set value.str to NULL.
1620         (exp_bigintop): New function.
1621         (new_rel): Pass in "str", and set new.str from it.
1622         (new_rel_from_section): Set new.str to NULL.
1623         (fold_name): Adjust calls to new_rel.
1624         (exp_fold_tree): Likewise.
1625         (exp_get_fill): New function.
1626         * ldgram.y (struct big_int bigint, fill_type *fill): New.
1627         (INT): Returns a "bigint".  Adjust all code handling INTs.
1628         (fill_opt): Returns a "fill".
1629         (fill_exp): Split out of fill_opt, use for FILL.
1630         * ldlang.h (struct _fill_type): New.
1631         (fill_type): Move typedef to ldexp.h.
1632         (lang_output_section_statement_type): "fill" is now a pointer.
1633         (lang_fill_statement_type): Likewise.
1634         (lang_padding_statement_type): Likewise.
1635         (lang_add_fill): Now takes a "fill_type *" param.
1636         (lang_leave_output_section_statement): Likewise.
1637         (lang_do_assignments): Likewise.
1638         (lang_size_sections): Likewise.
1639         (lang_leave_overlay_section): Likewise.
1640         (lang_leave_overlay): Likewise.
1641         * ldlang.c: Include ldgram.h after ldexp.h.
1642         (lang_output_section_statement_lookup): Adjust for fill_type change.
1643         (print_fill_statement): Likewise.
1644         (print_padding_statement): Likewise.
1645         (insert_pad): Now takes a "fill_type *" arg.
1646         (size_input_section): Likewise.
1647         (lang_size_sections_1): Likewise.
1648         (lang_size_sections): Likewise.
1649         (lang_do_assignments): Likewise.
1650         (lang_add_fill): Likewise.
1651         (lang_leave_output_section_statement): Likewise.
1652         (lang_leave_overlay_section): Likewise.
1653         (lang_leave_overlay): Likewise.
1654         Adjust all callers of the above function.
1655         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
1656         starting with "0X" as well as "0x".  Return bigint.str for hex
1657         numbers starting with "0x" or "0X", zero bigint.str otherwise.
1658         Always use base 16 for numbers starting with "$".
1659         * ldmain.c: Include ldgram.h after ldexp.h.
1660         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1661         of bfd_fill_link_order.
1662         * pe-dll.c: Adjust lang_do_assignments calls.
1663         * emultempl/elf32.em: Likewise.
1664         * emultempl/hppaelf.em: Likewise.
1665         * emultempl/ppc64elf.em: Likewise.
1666         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1667         lang_add_assignment call.
1668         * emultempl/pe.em: Likewise.
1670 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
1672         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
1673         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
1674         the pattern in question is not a regexp.
1675         * ldlang.c:  Likewise.
1676         * ldlang.h:  Likewise.
1677         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
1679 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
1681         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1682         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1683         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1684         * ldexp.c (exp_data_seg): New variable.
1685         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1686         (fold_binary): Handle DATA_SEGMENT_ALIGN.
1687         (exp_fold_tree): Handle DATA_SEGMENT_END.
1688         Pass allocation_done when recursing instead of hardcoding
1689         lang_allocating_phase_enum.
1690         * ldexp.h (exp_data_seg): New.
1691         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1692         (lang_size_sections): New.
1693         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1694         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1695         if COMMONPAGESIZE is defined.
1696         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1697         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1698         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1699         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1700         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1701         libraries only.
1703 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
1705         * Makefile.in: Regenerate.
1707 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1709         * lexsup.c: Remove strtoul declaration.
1711 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1713         * ldmain.c: Add prototype for main ().
1714         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1715         * emultempl/lnk960.em (lnk960_choose_target): Function should
1716         take two arguments.
1718 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
1720         * ldlang.c (entry_section): New initialised variable.
1721         (lang_finish): Use it.
1722         * ldlang.h (entry_section): Declare.
1723         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1724         entry_section to ".opd".
1726 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
1728         * ld.texinfo (Options): Add back in -nostdlib documentation,
1729         which had been inadvertently removed.
1731 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
1733         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1734         register section vma to a sane value after emitting error.  Make
1735         fatal conditions cause program exit when emitting message.
1737 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
1739         * configure.tgt: Add or32-*-rtems target.
1741 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1743         Contribute sh64-elf.
1744         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1745         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1746         in OTHER_RELOCATABLE_SECTIONS.
1747         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1748         * emulparams/shelf32.sh (STACK_ADDR): Define.
1749         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1750         (OTHER_SECTIONS): this.  Removed stack settings.
1751         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1752         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1753         2001-03-12  DJ Delorie  <dj@redhat.com>
1754         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1755         relaxing if any shmedia or mixed sections are found.
1756         2001-03-07  DJ Delorie  <dj@redhat.com>
1757         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1758         einfo.  Gracefully decline to output to non-elf formats.
1759         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
1760         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1761         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1762         * emulparams/shelf32.sh: Ditto.
1763         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
1764         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1765         comment.
1766         2001-01-10  Ben Elliston  <bje@redhat.com>
1767         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1768         non-portable shell constructs. From Hans-Peter Nilsson.
1769         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
1770         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1771         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1772         dependencies to the shell script include chain.
1773         * Makefile.in: Regenerate.
1774         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
1775         * emultempl/sh64elf.em: Update and tweak comments.
1776         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1777         make a .cranges section SEC_IN_MEMORY.
1778         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1779         * emultempl/sh64elf.em
1780         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1781         .cranges section found to be necessary; continue and set stored
1782         section contents flags for sections with non-mixed contents.
1783         Use a struct sh64_section_data container and sh64_elf_section_data
1784         to store contents-type flags.
1785         Remove unused update of "isec".
1786         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1787         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
1788         access contents-type flags.  Assert that the associated container
1789         is initialized.  Use that container, not elf_gp_size, to hold size
1790         of linker-generated cranges contents.
1791         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1792         * emultempl/sh64elf.em
1793         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1794         there's already a .cranges section.  When section flag difference
1795         is found, don't NULL-check cranges a second time.  Tweak comments.
1796         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1797         merging, not max size, as size of ld-generated .cranges contents.
1798         Don't set ELF section flags in output section.  When checking for
1799         needed .cranges descriptors, don't use a variable; compare
1800         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
1801         comments.
1802         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1803         * emultempl/sh64elf.em: New file.
1804         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1805         * Makefile.in: Regenerate.
1806         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1807         (OTHER_RELOCATING_SECTIONS): Ditto.
1808         (EXTRA_EM_FILE): New, set to sh64elf if not set.
1809         * emulparams/shlelf32.sh: Stub out all settings except
1810         OUTPUT_FORMAT.  Source shelf32.sh.
1811         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1812         OTHER_RELOCATING_SECTIONS.
1813         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1814         * emulparams/shlelf64.sh: Stub out all settings except
1815         OUTPUT_FORMAT.  Source shelf64.sh.
1816         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
1817         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1818         .cranges section.
1819         (DATA_START_SYMBOLS): Define, provide ___data.
1820         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1821         for consecutive .data section.
1822         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1823         section after .data section.
1824         * emulparams/shlelf64.sh: Ditto.
1825         * emulparams/shelf32.sh: Ditto.
1826         (ALIGNMENT): Define to 8.
1827         * emulparams/shelf32.sh: Ditto.
1828         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
1829         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1830         built-in linker scripts.
1831         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1832         * emulparams/shlelf64.sh: New.
1833         * emulparams/shelf64.sh: New.
1834         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1835         targ_extra_emuls.
1836         * Makefile.am: Add support for shlelf64 and shelf64.
1837         * Makefile.in: Regenerate.
1838         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
1839         * configure.tgt (sh64-*-elf*): Add shelf as default.
1840         Add shlelf to targ_extra_emuls.
1841         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
1842         * emulparams/shelf32.sh: New file.
1843         * emulparams/shlelf32.sh: New file.
1844         * Makefile.am: Add support for shlelf32 and shelf32.
1845         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1846         * Makefile.in: Regenerate.
1848 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
1850         * ldlang.c (lang_reset_memory_regions): Rename from
1851         reset_memory_regions.  Change all callers.  Make public.
1852         * ldlang.h (lang_reset_memory_regions): Prototype.
1853         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1854         lang_reset_memory_regions before lang_size_sections.
1855         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1856         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1858 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
1860         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1861         arithmetic when checking for too many global registers.
1863 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
1865         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1866         (ehppanbsd.c): New rule.
1867         * Makefile.in: Regenerate.
1868         * configure.tgt (hppa*-*-netbsd*): New target.
1869         * emulparams/hppalinux.sh: Add comment to check other files
1870         that source this file it is modified, and list which
1871         files that do.
1872         * emulparams/hppanbsd.sh: New file.
1874 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
1876         * scripttempl/xstormy16.sc: Don't allocate extra space for the
1877         stack.
1879 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
1881         Support on-demand global register allocation from
1882         R_MMIX_BASE_PLUS_OFFSET relocs.
1883         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1884         mmix_set_reg_section_vma.  Call
1885         _bfd_mmix_finalize_linker_allocated_gregs.
1886         (mmix_before_allocation): New function.
1887         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1888         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1889         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1890         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1891         before .MMIX.reg_contents.
1892         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1893         (mmo_after_open): New function.
1894         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1895         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
1896         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1898 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
1900         * emulparams/or32.sh: New file.
1901         * emulparams/or32elf.sh: New file.
1902         * scripttempl/or32.sc: New file.
1903         * configure.tgt : Add support for or32.
1904         * configure: Regenerate
1905         * Makefile.am: Add support for or32.
1906         * Makefile.in: Regenerate.
1907         * NEWS: Mention support for or32.
1908         * po/ld.pot: Regenerate.
1910 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
1911             Mitch Lichtenberg  <mpl@broadcom.com>
1913         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1914         * emultempl/mipself.em: New file to handle MIPS ELF embedded
1915         reloc creation (ld --embedded-relocs).
1917 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
1919         * configure: Regenerated.
1921 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
1923         * Makefile.am (install): Depend on install-info.
1924         * Makefile.in: Regenerate.
1926 2002-01-26  Christian Rose  <menthos@menthos.com>
1928         * ldmain.c (main): Use full sentences to ease translation.
1930 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
1932         * po/fr.po: Updated version.
1934 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
1936         * po/es.po: Updated version.
1938 2002-01-25  Andreas Jaeger  <aj@suse.de>
1940         * ldlex.l (yy_input): Correct error check.
1942 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
1944         * ldmisc.c (demangle): Put back dots when string not demangled.
1946 2002-01-22  Richard Henderson  <rth@redhat.com>
1948         * emulparams/elf64alpha.sh (NOP): Use unop.
1950 2002-01-21  Andreas Jaeger  <aj@suse.de>
1952         * ldlex.l: Use fread instead of read.
1954 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
1956         * configure.tgt (ia64-*-netbsd*): New target.
1958 2002-01-21  H.J. Lu <hjl@gnu.org>
1960         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1961         0.
1962         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1964 2002-01-18  Andreas Jaeger  <aj@suse.de>
1966         * ldver.c (ldversion): Update year.
1968 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
1970         * po/ld.pot: Regenerate.
1972 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
1974         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1975         * Makefile.in: Regenerate.
1976         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1977         * emultempl/ppc64elf.em: New file.
1979 2002-01-15  DJ Delorie  <dj@redhat.com>
1981         * scripttempl/pe.sc: Add support for constructor priorities.
1983 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1985         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1986         * emulparams/avr23xx.sh: Likewise.
1987         * emulparams/avr4433.sh: Likewise.
1988         * emulparams/avr44x4.sh: Likewise.
1989         * emulparams/avr85xx.sh: Likewise.
1990         * emulparams/avrmega103.sh: Likewise.
1991         * emulparams/avrmega161.sh: Likewise.
1992         * emulparams/avrmega603.sh: Likewise.
1993         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1995 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
1997         * ldlang.c (walk_wild_section): Exclude object file if enclosing
1998         archive is excluded.
2000 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
2002         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2003         (eshelf_nbsd.c): New rule.
2004         (eshlelf_nbsd.c): New rule.
2005         * Makefile.in: Regenerate.
2006         * configure.tgt (sh*le-*-netbsdelf*): New target.
2007         (sh*-*-netbsdelf*): New target.
2008         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2009         * ld/emulparams/shelf_nbsd.sh: New emulation.
2010         * ld/emulparams/shlelf_nbsd.sh: New emulation.
2012 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
2014         * po/es.po: New file: Spanish translation.
2015         * configure.in (ALL_LINGUAS): Add es.
2016         * configure: Regenerate.
2018 2002-01-06  John Marshall  <jmarshall@acm.org>
2020         * ld.texinfo: Note that --emit-relocs is currently only
2021         implemented for ELF.
2023 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
2025         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2026         of bfd_section_list_remove and bfd_section_list_insert macros.
2027         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2028         * emultempl/mmo.em (mmo_place_orphan): Likewise.
2030 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
2032         * configure.tgt (x86_64-*-netbsd*): New target.
2034 2001-12-21  Tom Rix  <trix@redhat.com>
2036         (gld*_create_output_section_statements): New function.
2037         For -binitfini support.
2038         * emultempl/aix.em (gld*_before_parse): Fix comment.
2039         * emultempl/aix.em (gld*_parse_args): Fix comment.
2041 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
2043         * configure.tgt (mips*-dec-netbsd*): Delete alias for
2044         mips*el-*-netbsd*.
2045         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2047         * configure.tgt (arm-*-netbsdelf*): Add target.
2048         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2049         * emulparams/armelf_nbsd.sh: Added.
2050         * Makefile.am: Add rules for earmelf_nbsd.
2051         * Makefile.in: Regenerate.
2053 2001-12-19  Andreas Jaeger  <aj@suse.de>,
2054             Susanne Oberhauser <froh@suse.de>
2056         * configure.host: Add rules for x86_64-*linux-gnu.  Change
2057         s390x-linux entry to use gcc to report configuration, replace gcc
2058         with $CC in s390-linux
2060 2001-12-19  Andreas Jaeger  <aj@suse.de>
2062         * ld.texinfo (VERSION): Fix markup.
2064 2001-12-18  matthew green  <mrg@eterna.com.au>
2066         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2067         (m68kelfnbsd.c): New rule.
2068         * Makefile.in: Regenerate.
2069         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2070         (m68*-*-netbsd*4k*): .. this.
2071         (m68*-*-netbsdelf*): New target.
2072         (m68*-*-netbsd*): Also include ELF support.
2073         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2074         * emulparams/m68kelfnbsd.sh: New emulation.
2076 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
2078         * ldgram.y (vers_node): Support anonymous version tags.
2079         * ldlang.c (lang_register_vers_node): Ensure anonymous version
2080         tag is not defined together with non-anonymous versions.
2081         * ld.texinfo: Document it.
2083 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
2085         * po/tr.po: New file: Turkish translation.
2086         * configure.in (ALL_LINGUAS): Add tr.
2087         * configure: Regenerate.
2089 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
2091         * Makefile.am: Add rules for eelf64alpha_nbsd.
2092         * Makefile.in: Regenerate.
2093         * configure.tgt (alpha*-*-netbsd*): Set
2094         targ_emul to elf64alpha_nbsd.
2095         * emulparams/elf64alpha_nbsd.sh: Added.
2097 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
2099         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2100         section_tail when fiddling with section list.
2101         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2102         broken into separate strings to make translation easier.
2103         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2104         fiddling with section list.
2105         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2107 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
2109         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2111 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
2113         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2115 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
2117         * emultempl/elf32.em (finish): Supply output_bfd
2118         to bfd_elf*_discard_info.
2119         (OPTION_EH_FRAME_HDR): Define.
2120         (longopts): Add --eh-frame-hdr.
2121         (parse_args): Handle it.
2122         (list_options): Add --eh-frame-hdr to help.
2123         * emultempl/hppaelf.em (finish): Supply output_bfd
2124         to bfd_elf*_discard_info.
2125         * scripttempl/elf.sc (.eh_frame_hdr): Add.
2127 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
2129         * lexsup.c (parse_args): Don't pass shortopts to second call to
2130         getopt functions.  Restore optind rather than decrementing before
2131         second call.  Remove errind as it now duplicates last_optind.
2133 2001-12-11  Christopher Faylor  <cgf@redhat.com>
2135         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2137 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
2138             Richard Henderson  <rth@redhat.com>
2140         * Makefile.am: Add support for xstormy16.
2141         * configure.tgt: Add support for xstormy16.
2142         * Makefile.in: Regenerate.
2143         * emulparams/elf32xstormy16.sh: New file.
2144         * scripttempl/xstormy16.sc: New file.
2146 2001-10-01  Christopher Faylor <cgf@cygnus.com>
2148         * Makefile.in (LIB_PATH): Make configurable.
2149         (GENSCRIPTS): Set LIB_PATH in environment.
2150         * configure.in: Substitute LIB_PATH.
2151         * configure: Regenerate.
2152         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2153         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2155 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
2157         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2158         describing the -N option so that it is easier to translate into
2159         foreign languages.
2161 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
2163         * emultempl/pe.em (..._list_options): Replace multiple fprintf
2164         statements describing a single option with a single, newline
2165         escaped fprintf.  This allows better translation into other
2166         languages.
2168         * ldmain.c (add_archive_element): Combine multiple strings
2169         into a single string to permit better translation into other
2170         languages.
2172 2001-12-05  Tom Rix  <trix@redhat.com>
2174         * Makefile.am: Remove eaixppc64.
2175         * Makefile.in: Regenerate.
2177 2001-12-04  Tom Rix  <trix@redhat.com>
2179         * emultempl/aix.em (choose_target): Change default target to
2180         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
2181         warning.
2182         (gld*_read_file):  Fix typo.
2183         (change_symbol_mode): Add prototype.
2184         (is_syscall): Same.
2186         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2187         * emulparams/aixrs6.sh : Same.
2188         * emulparams/ppcmacos.sh : Same.
2189         * emulparams/aixppc64.sh : Delete file.
2190         * emultempl/aix.em : Formatting changes.
2192 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
2194         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2195         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2196         __Sbss.
2197         (OTHER_END_SYMBOLS): Fix formatting.
2198         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2199         (OTHER_END_SYMBOLS): Fix formatting.
2201 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
2203         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2205 2001-12-02  Tom Rix  <trix@redhat.com>
2207         * configure.tgt : Remove eaixppc64 emulations.
2208         * Makefile.in : Remove eaixppc64.c
2209         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2210         (ldemul_default_target): Same.
2211         * emultempl/gld960.em (gld960_choose_target):  Same.
2212         * emultempl/gld960c.em (gld960_choose_target):  Same.
2213         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2214         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2215         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2216         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2217         * emultempl/aix.em (choose_target): New function.  Handle emulation of
2218         -b32 and -b64.
2220 2001-11-27  H.J. Lu <hjl@gnu.org>
2222         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2223         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2224         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2225         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2226         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2227         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2228         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2229         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2231         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2232         is not empty.
2233         (SDATA): Likewise.
2234         (REL_SDATA): Likewise.
2235         (REL_SBSS): Likewise.
2236         (REL_SDATA2): Likewise.
2237         (REL_SBSS2): Likewise.
2238         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2239         (SDATA2): Likewise.
2241 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2243         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2244         destructor in rom.
2245         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2247 2001-11-22  H.J. Lu  <hjl@gnu.org>
2249         * Makefile.in: Regenerated with automake based on automake
2250         1.4-8 in RedHat 7.1.
2252 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
2254         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2255         (config.status): Delete rule.
2256         Add extra dependencies to cover sourced emulparams files.
2257         * Makefile.in: Regenerate.
2259         * scripttempl/elf.sc: Order <section>, <section>.* and
2260         corresponding linkonce sections as seen in input files.
2261         Formatting fixes.  Zero vma of all sections if not relocating.
2262         (STACK): Define and insert if STACK_ADDR defined.
2263         (OTHER_RELOCATING_SECTIONS): Delete.
2264         (OTHER_END_SYMBOLS): Define.
2265         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2266         (OTHER_READWRITE_SECTIONS): Likewise.
2267         (OTHER_GOT_SECTIONS): Likewise.
2268         (OTHER_SDATA_SECTIONS): Likewise.
2269         (OTHER_BSS_SECTIONS): Likewise.
2270         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2271         (OTHER_READWRITE_SECTIONS): Likewise.
2272         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2273         (OTHER_READWRITE_SECTIONS): Likewise
2275         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2276         (STACK_ADDR): Define.
2277         * emulparams/armelf_oabi.sh: As for armelf.sh.
2278         * emulparams/elf32mcore.sh: As for armelf.sh.
2279         * emulparams/h8300elf.sh: As for armelf.sh.
2280         * emulparams/mn10200.sh: As for armelf.sh.
2281         * emulparams/shelf.sh: As for armelf.sh.
2283         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2284         (OTHER_END_SYMBOLS): Define.
2285         * emulparams/m32relf.sh: As for elf32fr30.sh.
2286         * emulparams/h8300helf.sh: As for elf32fr30.sh.
2287         * emulparams/h8300self.sh: As for elf32fr30.sh.
2289         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2290         defines with RELOCATING test.
2291         (OTHER_SDATA_SECTIONS): Likewise.
2292         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2293         (OTHER_END_SYMBOLS): ..this.
2294         * emulparams/crislinux.sh: As for criself.sh.
2296         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2297         if not relocating.
2298         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2299         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
2300         normal and linkonce sections as seen in input files.
2301         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2302         (TEXT_DYNAMIC): Likewise.
2303         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2304         (OTHER_SDATA_SECTIONS): Likewise.
2305         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2306         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2307         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2308         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2309         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2310         (OTHER_PLT_RELOC_SECTIONS): Likewise.
2311         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
2312         sections as seen in input files.
2313         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2314         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2315         if not relocating.
2316         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2317         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2318         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2319         (OTHER_SECTIONS): Instead, use this..
2320         (OTHER_END_SYMBOLS): ..and this.
2322         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2323         * emulparams/elf32bsmip.sh: Likewise.
2324         * emulparams/elf32btsmip.sh: Likewise.
2325         * emulparams/elf32ebmip.sh: Likewise.
2326         * emulparams/elf32lmip.sh: Likewise.
2327         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2328         * emulparams/elf32lsmip.sh: Likewise.
2329         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2330         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2331         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2332         * emulparams/elf64btsmip.sh: Likewise.
2333         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2334         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2335         * emulparams/elf32ppclinux.sh: Likewise.
2336         * emulparams/elf32ppcsim.sh: Likewise.
2337         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2338         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2339         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2340         * emulparams/h8300self.sh: Likewise.
2341         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2342         * emulparams/sh.sh: Comment.
2343         * emulparams/shl.sh: Source sh.sh, remove duplicates.
2344         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2345         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2347 2001-11-21  David Heine <dlheine@tensilica.com>
2348             Alan Modra  <amodra@bigpond.net.au>
2350         * ldlang.c (map_input_to_output_sections): Replace "break"
2351         accidentally removed with 2001-08-03 change.
2352         (lang_gc_sections_1): Likewise.
2354 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
2356         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2358 2001-11-20  Angela Marie Thomas <angela@redhat.com>
2360         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2361         of false when calling lang_size_sections.
2362         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2364 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
2366         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2367         function when LDEMUL_FINISH isn't set to the same name.  Don't
2368         call ${LDEMUL_FINISH}.
2369         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2370         * emultempl/armelf.em (arm_elf_finish): Call
2371         gld${EMULATION_NAME}_finish.
2372         * emultempl/hppaelf.em (hppaelf_finish): Rename to
2373         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
2374         hppaelf_layout_sections_again if necessary.
2375         (need_laying_out): New var.
2376         (hppaelf_layaout_sections_again): Rename to
2377         hppaelf_layout_sections_again.  Clear need_laying_out.
2378         (PARSE_AND_LIST_OPTIONS): Format text.
2380 2001-11-14  H.J. Lu  <hjl@gnu.org>
2382         * emultempl/armelf.em (arm_elf_finish): Renamed from
2383         gld${EMULATION_NAME}_finish.
2384         (LDEMUL_FINISH): Set to arm_elf_finish.
2386 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
2388         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2389         (struct ld_emulation_xfer_struct): Use it.
2391 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
2393         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2394         additional symbols referenced by newer crt0.o files from HP.
2396 2001-11-12  Anthony Green  <green@redhat.com>
2398         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2400 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
2402         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2403         * Makefile.in: Regenerate.
2405 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2407         * ld.texinfo: Use @command for commands, @option for options.
2408         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2409         the page man title.
2410         * Makefile.in: Rebuild.
2412 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
2414         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2415         Add support for targets.
2417 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
2419         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2420         * configure: Regernate.
2421         * po/fr.po: New file.
2422         * po/sv.po: New file.
2424 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
2426         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2427         as little endian default and to support big endian.
2429 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
2431         * ld.texinfo (Options): Document new option, -nostdlib.
2432         * lexsup.c (OPTION_NOSTDLIB): New definition.
2433         (ld_options): Add entry for "nostdlib".
2434         (parse_args): Handle OPTIONS_NOSTDLIB.
2435         * ldfile.c (ldfile_add_library_path): Don't add directories
2436         to the search path if they weren't specified on the command line
2437         and -nostdlib was specified.
2438         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2440 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
2442         * lexsup.c (parse_args): Prevent infinite parsing loop when
2443         "-rpath.a" is specified on the command line.
2444         Replace calls to fprintf with calls to einfo.
2446 2001-10-31  John Marshall  <jmarshall@acm.org>
2448         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2449         appear only once across all the linker scripts involved in a link
2450         invocation no longer applies.  Make the documentation reflect
2451         that.
2453 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
2455         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2456         targets.
2457         (sh-*-linux*): Added targ_extra_libpath.
2459 2001-10-31  David Heine  <dlheine@tensilica.com>
2461         * ldlang.c (lang_size_sections): Keep a valid output_offset field
2462         for padding statements.
2464 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
2466         * configure.tgt (mmix-*-*): New target.
2467         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2468         Add dependencies to match.
2469         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2470         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2471         scripttempl/mmo.sc: New files.
2472         * gen-doc.texi: @set MMIX.
2473         * ld.texinfo: Ditto.
2474         [MMIX] Add MMIX node.
2475         * Makefile.in: Regenerate.
2477 2001-10-29  Kazu Hirata  <kazu@hxi.com>
2479         * ldlang.c: Fix a comment typo.
2481 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
2483         * configure.host: Move alpha*-*-linux-gnu* entry to generic
2484         entries, and match *-*-linux*.
2486 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
2488         * ldgram.y (mri_script_command): Surround processing of INCLUDE
2489         with ldlex_script, ldlex_popstate.
2490         (ifile_p1): Likewise.
2491         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
2492         correct slot.
2493         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
2494         to 1.  Don't BEGIN(SCRIPT).
2495         (lex_redirect): Similarly.
2496         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2498 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
2500         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2501         __EH_FRAME_END__ and accept eh frames into data section.
2502         Add ctor and dtor sections.
2504 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2506         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2507         (auto-export): Fix indentation.
2509 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2511         * pe-dll.c (autofilter_objectlist):  Add startup objects
2512         for profiling.
2513         (auto-export): Constify char * p.
2514         Extract file basename and use strcmp rather than ststr
2515         for object lookup.
2517 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
2519         * ldmain.c (get_emulation): Improve comment about the handling
2520         of -mipsN options.
2522 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
2524         * po/POTFILES.in: Regenerate.
2526 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
2528         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2529         -z nocopyreloc and -z nocombreloc usage strings.
2531 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
2533         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2534         in usage.
2536 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
2538         * scripttempl/armaout.sc: Place .bss section after end of aligned
2539         data section to match behaviour of aout code in constructrion of
2540         header.
2542 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2544         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2545         startup files for mingw32 dlls to list.
2547 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
2549         * emultempl/elf32.em: Fix shell 'if' usage for portability.
2551 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
2553         * configure.tgt (targ): Add arm9e-*-elf.
2555 2001-10-05  H.J. Lu  <hjl@gnu.org>
2557         * genscripts.sh: Fix a typo in the last change.
2559 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
2561         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2562         -z nocombreloc in usage.
2564 2001-10-03  Jim Blandy  <jimb@redhat.com>
2566         * genscripts.sh: Include a comment at the top of each generated
2567         script, explaining its purpose.
2569 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
2571         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2572         * NEWS: Mention -z nocopyreloc.
2573         * ld.texinfo (Options): Describe nocopyreloc.
2575 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
2577         * configure: Regenerate.
2579 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
2581         * ldver.h (ld_program_version): Remove declaration.
2582         * lexsup.c (parse_args): Move printing of copyright message..
2583         * ldver.c (ldversion): .. to here.
2584         Use BFD_VERSION_STRING in place of BFD_VERSION.
2585         (ld_program_version): Remove.
2586         * Makefile.am (Makefile): Depend on bfd/configure.in.
2587         Run "make dep-am".
2588         * Makefile.in: Regenerate.
2590 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
2592         * Makefile.am: Update dependencies with "make dep-am".
2593         * Makefile.in: Regenerate.
2595 2001-09-29  John Reiser  <jreiser@BitWagon.com>
2597         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2598         * lexsup.c: Add --no-define-common commandline option.
2599         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2600         * ldlex.l: Likewise.
2601         * ld.h: Add command_line.inhibit_common_definition.
2602         * ldmain.c (main): Initialize.
2603         * ld.texinfo: Document.
2605 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
2607         * ldlang.c (section_already_linked): Remove assignment to kept_section.
2609 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
2611         * ldmisc.c (USE_STDARG): Remove.
2612         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2613         (einfo): Likewise.
2614         (minfo): Likewise.
2615         (lfinfo): Likewise.
2617         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2618         declarations.  Update copyright.
2620 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2622         * pe-dll.c: Remove obsoleted declaration of
2623         pe_get_data_import_dll_name.
2624         (pe_create_import_fixup): Fix thinko.
2626         * ld.texinfo(enable-auto-import): Clarify the explanation.
2628 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
2630         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2631         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2632         DLL_SUPPORT controlled code.
2634 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2636         * emultempl/pe.em(pe_data_import_dll): Make static.
2637         (pe_get_data_import_dll_name): New accessor function.
2638         * pe-dll.c(pe_create_import_fixup): call
2639         pe_get_data_import_dll_name() from pe.em, instead of
2640         directly accessing pe_data_import_dll variable from pe.em.
2642 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
2644         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2645         (def_file_add_directive): Use ISSPACE instead of isspace.
2646         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2647         isdigit/isxdigit/isalpha/isalnum.
2648         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2649         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2650         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2651         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2652         isalnum.
2653         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2654         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2655         isupper/tolower.
2656         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2657         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2658         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2659         (ctor_prio): Use ISDIGIT instead of isdigit.
2660         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2661         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2662         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2663         isupper/tolower.
2664         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2665         (stricpy): Use TOLOWER instead of isupper/tolower.
2666         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2667         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2668         (lex_warn_invalid): Use ISPRINT instead of isprint.
2669         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2670         (main): For gettext, also set the LC_CTYPE locate facet.
2671         (add_keepsyms_file): Use ISSPACE instead of isspace.
2672         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2673         (is_num, parse_args): Use ISDIGIT instead of isdigit.
2674         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2675         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2676         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2677         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2678         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2679         (quoteput): Use ISSPACE instead of isspace.
2680         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2681         instead of isalnum.
2683 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
2685         * deffilep.y (def_stash_module): Constify "name" param.
2687         * pe-dll.c: Replace CONST with const throughout.
2688         (quick_symbol): Constify "n1", "n2", "n3" params.
2689         (make_singleton_name_thunk): Constify "import" param.  Make
2690         "buffer_len" a size_t.
2691         (make_import_fixup_entry): Constify "name", "fixup_name",
2692         "dll_symname" params.
2693         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
2694         (pe_get32): Likewise.
2695         (pe_implied_import_dll): Likewise.
2697         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2698         (sort_by_section_name): Likewise.
2700         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2701         (make_import_fixup): Cast printf arg, rel->address to long rather
2702         than int.
2703         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2705 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
2707         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2708         defines BufferSize.  Increase buffer size by one.
2710 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
2712         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2714 2001-09-14  Kevin Lo <kevlo@openbsd.org>
2716         * configure.tgt: Add arm-openbsd target.
2718 2001-09-12  H.J. Lu  <hjl@gnu.org>
2720         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2721         eelf64lppc.o to ...
2722         (ALL_64_EMULATIONS): Here.
2723         * Makefile.in: Regenerated.
2725 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2727         * emultempl/pe.em(make_import_fixup): change signature to
2728         take asection as well as arelec; we need this for proper
2729         error reporting.  Only call pe_create_import_fixup() if
2730         there is no attempt to add a constant addend to the reloc;
2731         otherwise, report error condition.
2732         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2733         since final argument is a pointer to make_import_fixup().
2734         Change call to cb() to match make_import_fixup() signature.
2735         (make_import_fixup_mark): make buffer_len unsigned.
2736         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2738 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
2740         * ld.texinfo: add verbose documentation for auto-import
2741         direct-addressing workaround, to compliment the terse
2742         error message.
2744 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
2746         * scripttempl/v850.sc: Add gcc_except_table sections.
2748 2001-09-11  Jeffrey A Law  (law@cygnus.com)
2750         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2751         * emulparams/h8300self.sh: Similarly.
2753 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2755         * ld.texinfo (Options, --stack): Correct default value for stack
2756         reserve.
2758 2001-09-05  Tom Rix <trix@redhat.com>
2760         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2762 2001-09-03  Andreas Jaeger  <aj@suse.de>
2764         * emultempl/beos.em: Declare prototypes for comparions functions,
2765         adjust definitions.
2767 2001-09-02  Andreas Jaeger  <aj@suse.de>
2769         * emultempl/aix.em: Add missing prototype.
2770         * emultempl/lnk960.em: Likewise.
2771         * emultempl/vanilla.em: Likewise.
2772         * emultempl/armcoff.em: Likewise.
2773         * emultempl/armelf_oabi.em: Likewise.
2774         * emultempl/beos.em: Likewise.
2775         * emultempl/gld960c.em: Likewise.
2776         * emultempl/gld960.em: Likewise.
2778         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2779         for prototype declaration.
2781 2001-08-31  Eric Christopher  <echristo@redhat.com>
2782             Jason Eckhardt  <jle@redhat.com>
2784         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2786 2001-08-31  Andreas Jaeger  <aj@suse.de>
2788         * emultempl/pe.em: Add missing prototypes.
2789         (gld_${EMULATION_NAME}_after_open): Remove extra args to
2790         pe_find_data_imports.
2791         (pr_sym): Add unused attribute.
2793 2001-08-29  Joel Sherrill <joel@OARcorp.com>
2795         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2796         default from coff to elf.
2798 2001-08-29  Jeff Law <law@redhat.com>
2800         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
2801         ARCH specification.
2802         * emulparams/h8300self.sh: Similarly.
2804 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
2806         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2807         eh8300self.o .
2808         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2809         * configure.tgt (h8300-*-elf*): New case.
2810         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2811         * emulparams/h8300self.sh: New file.
2812         * Makefile.in: Regenerated.
2814 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
2816         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2817         with macro name.
2819 2001-08-27  Linus Nordberg  <linus@swox.com>
2820             Alan Modra  <amodra@bigpond.net.au>
2822         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2823         (eelf64ppc.c, eelf64lppc.c): Add make targets.
2824         Run "make dep-am"
2825         * Makefile.in: Regenerate.
2826         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
2827         entries to correct alphabetical position.
2828         * emulparams/elf64ppc.sh: New.
2829         * emulparams/elf64lppc.sh: New.
2831 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
2833         * ldmain.c (main): Declare BSIZE as static.
2835 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2837         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2838         into .rel.dyn resp. .rela.dyn if combreloc.
2839         (get_script): If .x linker script is equal to .xn, only put it
2840         once into the binary.
2841         Add .xc and .xsc scripts.
2842         (parse_args): Handle -z combreloc and -z nocombreloc.
2843         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2844         For .xc and .xsc scripts put all .rel* or .rela* input sections
2845         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2846         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2847         is elf.
2848         Strip trailing whitespace from script.
2849         Generate .xc and .xsc scripts if requested.
2850         * ldmain.c (main): Initialize link_info.combreloc and
2851         link_info.spare_dynamic_tags.
2852         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2853         (ld_options): Add --spare-dynamic-tags option.
2854         (parse_args): Likewise.
2855         * ld.texinfo: Document -z combreloc and -z nocombreloc.
2856         * ldint.texinfo: Document .xc and .xsc linker scripts.
2857         * NEWS: Add notes about -z combreloc and SHF_MERGE.
2859 2001-08-22  H.J. Lu  <hjl@gnu.org>
2861         * emulparams/elf32fr30.sh: Add a newline.
2863 2001-08-21  Andreas Jaeger  <aj@suse.de>
2865         * deffilep.y: Add missing prototypes.
2866         * pe-dll.c: Likewise.
2868 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
2870         * ldlang.c (insert_pad): Fix typos in last patch.
2872         * ldlang.c: When traversing lang_statement_union_type lists,
2873         consistently use "header.next" rather than "next".
2874         * mpw-eppcmac.c: Likewise.
2875         * emultempl/beos.em: Likewise.
2876         * emultempl/hppaelf.em: Likewise.
2877         * emultempl/pe.em: Likewise.
2878         * ldlang.h (union lang_statement_union): Remove "next" field.
2880         * ldlang.c (insert_pad): Use offsetof macro.
2881         (lang_size_sections): Always neuter padding statements.
2882         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2884         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2885         passed to lang_size_sections.
2886         (pe_exe_fill_sections): Likewise.
2887         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2888         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2890 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2892         * emultempl/aix.em: Formatting fixes.
2894 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2896         * ldlang.c (insert_pad): Make use of an existing pad statement if
2897         available.  Move code calculating alignment, adjusting section
2898         alignment power, and adjusting dot to ..
2899         (size_input_section): .. here.  Remove unused relax param.
2900         (lang_size_sections): Change boolean `relax' param to boolean *.
2901         Adjust call to size_input_section.  Make use of insert_pad to
2902         place pad after the assignment statement.  If relaxing, zap
2903         padding statements.
2904         (reset_memory_regions): Reset output_bfd section sizes too.
2905         (relax_again): Move to..
2906         (lang_process): ..here.  Adjust call to lang_size_sections, and
2907         remove duplicated code.
2908         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2910 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
2912         * ld.texinfo: Document that fill values now use the four least
2913         significant bytes.
2914         * emulparams/elf32fr30.sh (NOP): Update.
2915         * emulparams/elf32mcore.sh: Likewise.
2916         * emulparams/elf64_s390.sh: Likewise.
2917         * emulparams/elf_i386.sh: Likewise.
2918         * emulparams/elf_i386_be.sh: Likewise.
2919         * emulparams/elf_i386_chaos.sh: Likewise.
2920         * emulparams/elf_i386_ldso.sh: Likewise.
2921         * emulparams/elf_s390.sh: Likewise.
2922         * emulparams/elf_x86_64.sh: Likewise.
2923         * emulparams/i386moss.sh: Likewise.
2924         * emulparams/i386nw.sh: Likewise.
2925         * emulparams/m68kelf.sh: Likewise.
2926         * scripttempl/elf.sc: Update NOP comment.
2927         * scripttempl/elfi370.sc: Likewise.
2928         * scripttempl/elfm68hc11.sc: Likewise.
2929         * scripttempl/elfm68hc12.sc: Likewise.
2930         * scripttempl/nw.sc: Likewise.
2932 2001-08-15  Tom Rix <trix@redhat.com>
2934         * ldgram.y (saved_script_handle): Initialize to NULL.
2935         * ldmain.c (main): Change check on saved_script_handle.
2937 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
2939         * emultempl/elf32.em: Formatting fixes.
2940         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
2941         looking at sec->owner.
2942         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2943         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
2944         unused code, and reorganize orphan section placement code.
2946         * ldlang.c (wild_doit): Rename to lang_add_section.
2947         * ldlang.h: Here too.
2948         * mpw-elfmips.c: And here.
2949         * emultempl/beos.em: And here.
2950         * emultempl/elf32.em: And here.
2951         * emultempl/hppaelf.em: And here.
2952         * emultempl/pe.em: And here.
2954 2001-08-13  Richard Henderson  <rth@redhat.com>
2956         * emultempl/needrelax.em: New file.
2957         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2958         * Makefile.am (eelf64_ia64.c): Depend on it.
2959         * Makefile.in: Rebuild.
2961 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
2963         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2964         output_section is set non-NULL.
2966         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2967         `true' for SEC_EXCLUDE sections so that the generic code doesn't
2968         needlessly create an output_section_statement.  Treat a correctly
2969         named output_section_statement with NULL bfd_section as compatible.
2971 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
2973         * emultempl/generic.em: Support EXTRA_EM_FILE.
2974         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2975         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2976         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2977         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2978         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2979         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2980         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2981         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2982         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2983         LDEMUL_FIND_POTENTIAL_LIBRARIES.
2985 2001-08-12  Richard Henderson  <rth@redhat.com>
2987         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2988         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2989         scripttempl/v850.sc: Keep .jcr data.
2991 2001-08-12  H.J. Lu  <hjl@gnu.org>
2992             Andrew Haley  <aph@cambridge.redhat.com>
2993             Nick Clifton  <nickc@redhat.com>
2995         * ldgram.y (had_script): Change name to saved_script_handle.
2996         Change type to file handle.
2997         * ld.h (had_script): Rename and retype.
2998         * ldfile.c (ldfile_open_command_file): Save the file handle
2999         used in saved_script_handle.
3000         * lexsup.c (parse_args): Do not allow -c option to alter
3001         saved_script_handle.
3002         * ldmain.c (main): Print out the linker script used if
3003         --verbose is given.  Check saved_script_handle to obtain the
3004         external linker script used, or if NULL, dump the builtin
3005         script.
3006         * ld.texinfo: Document that --verbose now dumps the linker
3007         script used, regardless of whether it was an internal or an
3008         external script.
3010 2001-08-10  Andreas Jaeger  <aj@suse.de>
3012         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3013         to build warnings.
3014         * configure: Regenerate.
3016 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
3018         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3020         * scripttempl/elf.sc: Move non-text .dynamic section before
3021         .plt/.got/.sdata* group.
3022         (OTHER_GOT_SECTIONS): Move to immediately after .got.
3023         (OTHER_SDATA_SECTIONS): Add.
3024         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3025         OTHER_GOT_SECTIONS.
3026         * emulparams/crislinux.sh: Likewise.
3027         * emulparams/elf32b4300.sh: Likewise.
3028         * emulparams/elf32bmip.sh: Likewise.
3029         * emulparams/elf32bmipn32.sh: Likewise.
3030         * emulparams/elf32bsmip.sh: Likewise.
3031         * emulparams/elf32btsmip.sh: Likewise.
3032         * emulparams/elf32ebmip.sh: Likewise.
3033         * emulparams/elf32elmip.sh: Likewise.
3034         * emulparams/elf32l4300.sh: Likewise.
3035         * emulparams/elf32lmip.sh: Likewise.
3036         * emulparams/elf32lsmip.sh: Likewise.
3037         * emulparams/elf32ltsmip.sh: Likewise.
3038         * emulparams/elf64bmip.sh: Likewise.
3039         * emulparams/elf64btsmip.sh: Likewise.
3040         * emulparams/elf64ltsmip.sh: Likewise.
3042 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
3044         * genscripts.sh: Source the emulparams script before each output
3045         script is generated so that variables like `RELOCATING' may affect
3046         variables defined in the emulparams script.
3048 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
3050         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3051         order.
3053         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3054         ie. iterate over wild_statement.section_list.
3055         (gld${EMULATION_NAME}_place_orphan): Likewise.
3057 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3059         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3060         .fini[0-4] sections used by _exit
3061         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3062         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3063         * scripttempl/elfm68hc11.sc: Likewise.
3065 2001-08-03  H.J. Lu  <hjl@gnu.org>
3067         * emultempl/beos.em (init): Add the missing initialization.
3069 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
3071         * ld.texinfo (Input Section Basics): Clarify ordering of output
3072         sections.
3073         * ldlang.c (callback_t): Add wildcard_list param.
3074         (walk_wild_section): Remove "section" param.  Rewrite for
3075         lang_wild_statement_type change.  Remove unique_section_p test.
3076         (walk_wild_file): Remove "section" param.
3077         (walk_wild): Remove "section" and "file" params.
3078         (lang_gc_wild): Likewise.
3079         (wild): Likewise.  Modify for lang_wild_statement_type change.
3080         (wild_sort): Likewise.  Add "sec" param.
3081         (gc_section_callback): Likewise.
3082         (output_section_callback): Likewise.  Do unique_section_p test.
3083         (map_input_to_output_sections): Modify call to wild.
3084         (lang_gc_sections_1): Likewise.
3085         (print_wild_statement): Modify for lang_wild_statement_type
3086         change.
3087         (lang_add_wild): Replace filename, filenames_sorted param with
3088         filespec.  Replace section_name, sections_sorted,
3089         exclude_filename_list with section_list.
3090         * ldlang.h (lang_add_wild): Here too.
3091         (lang_wild_statement_type): Replace section_name, sections_sorted,
3092         and exclude_filename_list with section_list.
3093         * ldgram.y (current_file): Delete.
3094         (%union): Add wildcard_list.
3095         (file_NAME_list): Set type to wildcard_list.  Build a linked list
3096         rather than calling lang_add_wild for each entry.
3097         (input_section_spec_no_keep): Call lang_add_wild here instead.
3098         * ld.h (struct wildcard_list): Declare.
3099         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3101 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
3103         * ldmain.c (main): initialize link_info.pei386_auto_import
3104         * pe-dll.c: new tables for auto-export filtering
3105         (auto_export): change API, pass abfd for contextual filtering.
3106         Loop thru tables of excluded symbols instead of comparing
3107         "by hand".
3109 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
3111         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3112         static variable current_sec (static struct sec *). Add
3113         forward declaration for add_bfd_to_link.
3114         (process_def_file): Don't export undefined symbols. Do not
3115         export symbols starting with  "_imp__".  Call auto_export()
3116         with new API.
3117         (pe_walk_relocs_of_symbol): New function.
3118         (generate_reloc): add optional extra debugging
3119         (pe_dll_generate_def_file): eliminate extraneous initial blank
3120         line in output
3121         (make_one): enlarge symtab to make room for __nm__ symbols
3122         (DATA auto-import support).
3123         (make_singleton_name_thunk): New function.
3124         (make_import_fixup_mark): New function.
3125         (make_import_fixup_entry): New function.
3126         (pe_create_import_fixup): New function.
3127         (add_bfd_to_link): Specify that 'name' argument is a CONST
3128         char *.
3129         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3130         declare new functions pe_walk_relocs_of_symbol and
3131         pe_create_import_fixup.
3132         * emultempl/pe.em: add new options --enable-auto-import,
3133         --disable-auto-import, and --enable-extra-pe-debug.
3134         (make_import_fixup): New function.
3135         (pe_find_data_imports): New function.
3136         (pr_sym): New function.
3137         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3138         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
3139         CODE.
3141 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
3143         * ld.texinfo: add additional documentation for
3144         --export-all-symbols.  Document --out-implib,
3145         --enable-auto-image-base, --disable-auto-image-base,
3146         --dll-search-prefix, --enable-auto-import, and
3147         --disable-auto-import.
3148         * ldint.texinfo: Add detailed documentation on auto-import
3149         implementation.
3151 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
3153         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3154         example.
3156 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
3158         * Makefile.am: Update dependencies with "make dep-am".
3159         * Makefile.in: Regenerate
3161 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
3163         * ldcref.c (check_section_sym_xref): New function.
3164         (check_nocrossrefs): Call it.
3165         (check_nocrossref): Interate over h->refs here instead of..
3166         (check_refs): ..here.  Pass in the symbol name, section, and bfd
3167         rather than hash_entry pointers.
3168         (struct check_refs_info): Keep symbol name rather than hash entry.
3169         Remove "same".
3170         (check_reloc_refs): Tweak for above changes in check_refs_info.
3171         Only report references to section syms when symname is NULL to
3172         prevent duplicate messages for the same reloc.
3174 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
3176         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3177         available.  Do not print NULL trees.
3178         (exp_print_token): Print unknown tokens with values > 126 as
3179         decimal values not ASCII characters.
3181         * ldlang.c (lang_leave_overlay): If a region is specified assign
3182         it to all sections inside the overlay unless they have been
3183         assigned to the own, non-default, memory region.
3185         * README: Add header for consistency with other README files.
3187 2001-07-14  H.J. Lu  <hjl@gnu.org>
3189         * emultempl/elf32.em (output_prev_sec_find): Never return
3190         bfd_abs_section_ptr, bfd_com_section_ptr nor
3191         bfd_und_section_ptr.
3193 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
3195         * Makefile.am (em32relf.c): Change dependency from generic.em to
3196         elf32.em.
3197         * Makefile.in: Regenerate.
3199 2001-07-14  matthew green  <mrg@eterna.com.au>
3201         * configure.tgt (i386-*-netbsdelf*): New target.
3202         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3204 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
3206         * emultempl/elf32.em (output_prev_sec_find): New.
3207         (place_orphan): Use it.
3209 2001-07-11  H.J. Lu  <hjl@gnu.org>
3211         * ldmain.c (main): Fix typos in the last change.
3213 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
3215         * ldmain.c (main): Disallow -F and -f without -shared.
3217 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
3219         * emultempl/pe.em (after_open): Check for the output_bfd not
3220         having any coff_data structure allocated to it.
3222 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
3224         * emultempl/elf32.em: Do not assuming that contents of the buffer
3225         returned from basename function will remain unchanged accross other
3226         function calls.
3228 2001-07-03  H.J. Lu  <hjl@gnu.org>
3230         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3231         2001-07-03. It creates dynamic entries even for static binaries.
3233 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
3235         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3236         (DYNAMIC): Use it to reserve few dynamic entries for
3237         post-linking tools.
3239 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
3241         * emulparams/hppa64linux.sh: New file.
3242         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3243         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3244         (ehppa64linux.c): Add rule to make it.
3245         Run "make dep-am".
3246         * Makefile.in: Regenerate.
3248 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
3250         * ld.texinfo (Options, -r): Mention restrictions when using
3251         different object formats.
3253 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
3255         * ldlang.c (lang_check): Emit fatal error if relocatable link
3256         between different object flavours with relocations in input.
3258 2001-06-19  H.J. Lu  <hjl@gnu.org>
3260         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3261         (--version-script): Mention the language support.
3263 2001-06-19  H.J. Lu <hjl@gnu.org>
3265         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3267 2001-06-18  H.J. Lu <hjl@gnu.org>
3269         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3270         (diststuff): Add $(MANS).
3271         * Makefile.in: Regenerated.
3273         * ld.1: Removed.
3275 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
3277         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3278         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3279         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3280         * ld.h (args_type): Remove member export_dynamic.  All users
3281         changed to use struct bfd_link_info member.
3283         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3284         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3285         * Makefile.in: Regenerate.
3287 2001-06-18  H.J. Lu  <hjl@gnu.org>
3289         * ldlang.c (init_os): Add the newline to the einfo call.
3290         (lang_check): Likewise.
3291         (lang_do_version_exports_section): Likewise.
3293 2001-06-15  H.J. Lu  <hjl@gnu.org>
3295         * lexsup.c (parse_args); Save optind to report unrecognized
3296         option.
3298 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
3300         * ldlang.c (lang_check): Emit fatal error if relocatable link
3301         between different object flavours.
3303         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3304         Set new link_info member export_dynamic.
3305         * ldmain.c (main): Initialize new link_info member export_dynamic.
3307 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
3309         * ldlang.c (walk_wild): Only call walk_wild_file if
3310         lookup_name returns something.
3311         (lookup_name): If load_symbols fails, return NULL.
3312         (load_symbols): Change to a boolean function.
3313         (open_input_bfds): If load_symbols fails then do not make the
3314         executable.
3316 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
3318         * ldlang.c (record_bfd_errors): Remove.
3320         * emultempl/aix.em: Fix copyright dates.
3322 2001-06-07  Andreas Jaeger  <aj@suse.de>
3324         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3325         (TEXT_START_ADDR): Likewise.
3327 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
3329         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3331 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3333         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3335 2001-05-31  H.J. Lu  <hjl@gnu.org>
3337         * ldlang.c (open_input_bfds): Don't change the bfd error
3338         handler whilst loading symbols.
3340 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
3342         * configure.tgt: Remove i370-mvs architecture, it is not currently
3343         supported.
3345 2001-05-25  H.J. Lu  <hjl@gnu.org>
3347         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3348         like emulparams/aixppc.sh.
3350 2001-05-25  H.J. Lu  <hjl@gnu.org>
3352         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3353         setting of output_filename after bfd_scan_arch.
3354         * emultempl/pe.em: Likewise.
3356 2001-05-25  H.J. Lu  <hjl@gnu.org>
3358         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3359         like emulparams/aixppc.sh.
3361         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3362         instead of ${srcdir}/emultempl/stringify.sed.
3364 2001-05-25  Timothy Wall  <twall@oculustech.com>
3366         * emulparams/elf64_aix.sh: Change settings to match IBM linker
3367         output.
3369 2001-05-25  Alan Modra  <amodra@one.net.au>
3371         * configure.host: Replace linuxoldld with linux*oldld.
3372         * configure.tgt: Likewise.
3374 2001-05-24  H.J. Lu  <hjl@gnu.org>
3376         * emultempl/stringify.sed: Removed again.
3378 2001-05-24  H.J. Lu  <hjl@gnu.org>
3380         * emultempl/aix.em (OUTPUT_ARCH): Defined.
3381         (gld${EMULATION_NAME}_before_parse): Initialize
3382         ldfile_output_architecture, ldfile_output_machine and
3383         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3384         * emultempl/beos.em: Likewise.
3385         * emultempl/elf32.em: Likewise.
3386         * emultempl/linux.em: Likewise.
3387         * emultempl/mipsecoff.em: Likewise.
3388         * emultempl/pe.em: Likewise.
3389         * emultempl/sunos.em: Likewise.
3391 2001-05-24 Tom Rix <trix@redhat.com>
3393         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3394         udate import file format.
3395         (change_symbol_mode) New, same
3396         (is_syscall) New, same
3397         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3398         * emulparams/aixppc64.sh : same
3399         * emulparams/aixrs6.sh : same
3400         * emulparams/ppcmacos.sh : same
3401         * emultempl/aix.em : use strtoull to parse options
3402         * Makefile.am : add eaixppc64 emulation for xcoff64
3403         * Makefile.in : same
3404         * configure.tgt : same
3406         * scripttempl/aix.sc : default text section offset to 0x10000000
3407         default data section offset to 0x20000000
3408         add .sv3264 and .sv64 pseudo sections
3409         loader and debug sections use the currect section offset.
3411         * emultempl/aix.em : Add xcoff64 support
3412         Add -binitfini support
3413         (gld${EMULATION_NAME}_before_parse) -binitfini
3414         (gld${EMULATION_NAME}_parse_args) same
3415         (gld${EMULATION_NAME}_before_allocation) format change for special
3416         sections
3418         * emulparams/aixppc64.sh : New file for xcoff64 support
3420 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
3422         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3423         variable to avoid non-portable shell construct.
3425 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3427         * ldmain.c (get_emulation): Add -mips5 command line argument.
3429 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
3431         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3432         (ELF_INTERPRETER_NAME): Define it.
3433         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3434         it.
3435         * configure.tgt (targ_emul, targ_extra_emuls)
3436         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3437         as primary, elf_i386 as extra.
3438         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3439         (eelf_i386_ldso.c): New rule.
3440         * Makefile.in: Rebuilt.
3442 2001-05-22  Nick Clifton  <nickc@redhat.com>
3444         * lexsup.c (ld_options):  Allow -I to be an alias for
3445         --dynamic-linker.  This is for Solaris compatability.
3446         * ld.texinfo: Document that -I can be used.
3447         * ld.1: Regenerate.
3449 2001-05-16  Alan Modra  <amodra@one.net.au>
3451         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3452         whether an input section is the first one assigned to an output
3453         section.
3454         Assorted formatting fixes.
3456 2001-05-14  DJ Delorie  <dj@delorie.com>
3458         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3459         * Makefile.in: Ditto.
3461 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3463         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3464         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3465         output sections.
3466         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3468 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3470         * ldlang.c (lang_process): Call bfd_merge_sections.
3472 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3474         * ldgram.y: Fix typo.
3476 2001-05-03  H.J. Lu  <hjl@gnu.org>
3478         * emultempl/elf32.em: Include "libiberty.h".
3479         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3480         basename of the bfd filename.
3481         (gld${EMULATION_NAME}_stat_needed): Likewise.
3482         (gld${EMULATION_NAME}_try_needed): Likewise.
3483         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3485 2001-05-02  H.J. Lu  <hjl@gnu.org>
3487         * emultempl/pe.em: Include <ctype.h>.
3489 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
3491         * emulparams/elf32openrisc.sh: New file.
3493         * Makefile.am: Add OpenRISC target.
3494         * Makefile.in: Regenerated.
3496         * configure.tgt: Add openrisc-*-* mapping.
3498 2001-05-02  Nick Clifton  <nickc@redhat.com>
3500         * emultempl/aix.em: Replace buystring with xstrdup.
3501         * emultempl/beos.em: Replace buystring with xstrdup.
3503 2001-05-02  H.J. Lu  <hjl@gnu.org>
3505         * ldfile.c: Include "libiberty.h".
3506         * ldlex.l: Likewise.
3508         * ldmisc.c (buystring): Removed.
3509         * ldmisc.h: Likewise.
3511         * ldfile.c: Replace buystring with xstrdup.
3512         * ldlang.c: Likewise.
3513         * ldlex.l: Likewise.
3514         * ldmain.c: Likewise.
3515         * ldmisc.c: Likewise.
3516         * lexsup.c: Likewise.
3517         * mpw-eppcmac.c: Likewise.
3519 2001-04-30  Andreas Jaeger  <aj@suse.de>
3521         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3523 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3525         * ldlang.c (load_symbols): Give emulation a chance
3526         to process unrecognized file before fatal error is
3527         reported, not after.
3529 2001-04-27  Sean McNeil <sean@mcneil.com>
3531         * configure.tgt: Add arm-vxworks target.
3532         * scripttempl/armcoff.sc: Support .text or .data as a section name
3533         prefix.
3534         Define _etext.
3536 2001-04-13  J.T. Conklin  <jtc@redback.com>
3538         * ld.texinfo: Document --fatal-warnings.
3539         * ld.1: Regenerate.
3541         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3542         warnings have been turned into errors.
3543         * lexsup.c (OPTION_WARN_FATAL): Define.
3544         (ld_options): Entry for --fatal-warnings.
3545         (parse_args): Handle OPTION_WARN_FATAL.
3546         * ld.h (ld_config_type): Add fatal_warnings field.
3548 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
3550         * ldmain.c (main): Default to discard_sec_merge.
3551         * lexsup.c (OPTION_DISCARD_NONE): Define.
3552         (ld_options): Add --discard-none.
3553         (parse_args): Handle OPTION_DISCARD_NONE.
3554         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3555         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3556         all its input sections match.
3558 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
3560         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3561         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3562         (eelf32ltsmip.c): New target.
3563         (eelf64btsmip.c): Likewise.
3564         (eelf64ltsmip.c): Likewise.
3565         * Makefile.in: Regenerated.
3567         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3568         target.
3569         (mips*-*-linux-gnu*): Likewise.
3571         * emulparams/elf32ltsmip.sh: New. Traditional little endian
3572         MIPS taget.
3573         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3574         target.
3575         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3576         endian target.
3578 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
3580         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3581         correct value of __Stext here.
3582         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3583         .startup section.
3585         * emulparams/crislinux.sh: Remove FIXME.
3587 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
3589         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3590         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3592 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
3594         * configure.tgt (cris-*-*): Change default emulation to criself.
3595         (cris-*-*aout*): New rule.
3597 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
3599         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3600         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3602 2001-03-26  Andreas Jaeger  <aj@suse.de>
3604         * ld.texinfo (Overview): Fix syntax in texi code.
3606 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3608         * ld.texinfo: Put @c man indications to generate the ld man page.
3609         When generating man, define all the variables.  Define SEEALSO
3610         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
3611         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3612         (ld.1): Generate from ld.texinfo.
3613         * Makefile.in: Regenerate.
3615 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
3617         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3618         and '-fdata-sections'. Set the VMA of STABS sections to zero.
3620 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3622         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3623         is an absolute path look only for this file and not along the path.
3625 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3627         * emultempl/elf32.em (OPTION_GROUP): New macro.
3628         Add new option Bgroup to longopts.
3629         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3630         (gld*_list_options): Add -Bgroup and -z defs.
3631         * ld.1: Document -Bgroup and -z defs.
3632         * ld.texinfo: Likewise.
3634 2001-03-07  Michael Meissner  <meissner@redhat.com>
3636         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3637         with sections created by -fdata-sections.
3638         (.dynbss,.bss): Ditto.
3640 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
3642         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3643         after_allocation_default, not gld..._before_allocation.
3645 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
3647         * configure.in (BFD_VERSION): New.
3648         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3649         * configure: Regenerate.
3650         * Makefile.am: Run "make dep-am"
3651         * Makefile.in: Regenerate.
3653 2001-02-26  Timothy Wall  <twall@cygnus.com>
3655         * emulparams/elf64_aix.sh: Add additional read-only sections;
3656         uncomment lines which are now required.
3658 2001-02-26  H.J. Lu  <hjl@gnu.org>
3660         * ldlang.c (open_input_bfds): Set the bfd error handler so
3661         that problems can be caught whilst loading symbols.
3662         (record_bfd_errors): New function: Report BFD errors and mark
3663         the executable output as being invalid.
3665 2001-02-22  Timothy Wall  <twall@cygnus.com>
3667         * configure.host: Add configuration for ia64-*-aix*.
3668         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3669         Add dependencies for eelf64_aix.c.
3670         * Makefile.in: Regenerate.
3671         * configure.tgt: Add ia64-*-aix* mapping.
3672         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3674 2001-02-20  H.J. Lu  <hjl@gnu.org>
3676         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3677         false if we found the file.
3679 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
3681         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3682         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3684 2001-02-18  lars brinkhoff  <lars@nocrew.org>
3686         * Makefile.am: Add PDP-11 target.
3687         * configure.tgt: Likewise.
3688         * emulparams/pdp11.sh: New file.
3690 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
3692         * configure.host: Add a generic FreeBSD configuration entry such that
3693         all [modern] FreeBSD systems on all platforms will look the same.
3695 2001-02-14  H.J. Lu  <hjl@gnu.org>
3697         * configure.tgt: Remove mention of earmelf_linux26.
3699 2001-02-13  Richard Henderson  <rth@redhat.com>
3701         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3703 2001-02-13  H.J. Lu  <hjl@gnu.org>
3705         * ldexp.h (node_type): Add etree_provided.
3706         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3707         type to etree_provided if defined by PROVIDE. Allow updating
3708         for etree_provided.
3709         (exp_print_tree): Handle etree_provided.
3710         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3711         etree_provided.
3713 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
3715         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3716         .IA_64.unwind.* pattern to unwind table section and
3717         .IA_64.unwind_info* pattern to unwind info section.
3719 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3721         * Makefile.am: Add linux target for S/390.
3722         * Makefile.in: Likewise.
3723         * configure.host: Likewise.
3724         * configure.tgt: Likewise.
3725         * emulparams/elf64_s390.sh: New file.
3726         * emulparams/elf_s390.sh: New file.
3728 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
3730         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3731         targ_extra_libpath.
3732         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3734 2001-02-06  Philip Blundell  <philb@gnu.org>
3736         * Makefile.am: Remove mention of earmelf_linux26.
3737         * Makefile.in: Regenerate.
3739 2001-02-04  Philip Blundell  <philb@gnu.org>
3741         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3742         * emulparams/armelf_linux26.sh: Delete.
3743         * configure.tgt: Remove mention of armelf_linux26 emulation.
3745 2001-02-01  Nick Clifton  <nickc@redhat.com>
3747         * ld.1: Replace occurances of -oformat with --oformat.
3749 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
3751         * ldlang.c (lang_leave_overlay): Don't set lma_region when
3752         load_base is specified.
3754 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
3756         * emultempl/elf32.em: Correct spelling in comments and listed
3757         options.
3759 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
3761         * ldlang.c (lang_leave_overlay): Only set lma_region from the
3762         default for the first section of a group of overlay sections.
3764 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
3766         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3767         * Makefile.in: Regenerate.
3768         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3769         Check for null tool_dir.
3771 2001-01-16  Jim Wilson  <wilson@redhat.com>
3773         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3774         and IA_64.unwind.info.
3776 2001-01-16  H.J. Lu  <hjl@gnu.org>
3778         * ldlang.c (lang_check): Merge the private data only if the
3779         input file has contents.
3781 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
3783         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3785         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3786         enabling search for libmilli.  On a relocatable link, make .text
3787         sections unique.
3788         (LDEMUL_AFTER_PARSE): Define.
3789         (hppaelf_finish): Correct spelling of relocatable in comments.
3791         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3792         rummage through the script for sections on the unique list.
3793         Correct length of strncmp for ".note".
3794         (gld${EMULATION_NAME}_check_needed): Rearrange function.
3796         * ldlang.c (unique_section_list): New var.
3797         (unique_section_p): New function.
3798         (walk_wild_section): Don't match sections on unique_section_list.
3799         (lang_add_unique): New function.
3800         Correct spelling of relocatable in comments.
3802         * ldlang.h (struct unique_sections): Declare.
3803         (unique_section_list): Declare.
3804         (unique_section_p): Declare.
3805         (lang_add_unique): Declare.
3807         * lexsup.c (ld_options): Allow --unique to take an optional arg.
3808         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3810         * ld.texinfo (--unique): Update.
3812 2001-01-13  Nick Clifton  <nickc@redhat.com>
3814         * lexsup.c (parse_args): Remove spurious white space.
3816 2001-01-12  Nick Clifton  <nickc@redhat.com>
3818         * lexsup.c (parse_args): Update copyright date.
3820 2001-01-12  Philip Blundell  <pb@futuretv.com>
3822         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3824 2001-01-10  Kazu Hirata  <kazu@hxi.com>
3826         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
3827         * scripttempl/h8300h.sc: Fix formatting.
3828         * scripttempl/h8300s.sc: Likewise.
3829         * scripttempl/h8500.sc: Likewise.
3830         * scripttempl/h8500b.sc: Likewise.
3831         * scripttempl/h8500c.sc: Likewise.
3832         * scripttempl/h8500m.sc: Likewise.
3833         * scripttempl/h8500s.sc: Likewise.
3835 2000-01-07  David O'Brien  <obrien@BSDi.com>
3837         * emultempl/elf32.em: Only perform Linux ld hints processing when
3838         targeting Linux.
3840 2001-01-07  Philip Blundell  <philb@gnu.org>
3842         * ld.texinfo (Bug Reporting): Update email address for reports.
3844 2000-12-31  Nick Clifton  <nickc@redhat.com>
3846         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3847         options by checking for a return value of '?' not -1.
3849 2000-12-28  Nick Clifton  <nickc@redhat.com>
3851         * lexsup.c (struct ld_option): Add new enum value:
3852         EXACTLY_TWO_DASHES.
3853         (ld_options[]): Change -omagic, -output and -oformat options
3854         to be EXACTLY_TWO_DASHES.
3855         (OUTPUT_COUNT): Use ARRAY_SIZE.
3856         (parse_args): Change parameter 'argc' to unsigned.
3857         Place EXACTLY_TWO_DASHES options into new really_longopts
3858         array.
3859         If getopt_long_only fails, try calling getopt_long using the
3860         really_longopts array.
3861         (help): Print a double dash for both EXACTLY_TWO_DASHES and
3862         TWO_DASHES options.
3864         * ldlex.h: Fix prototype of parse_args.
3866         * ld.texinfo: Document that long options starting with 'o'
3867         must be preceeded by two dashes.  Change example of a single
3868         dashed long option from -oformat to -trace-symbol.
3870 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3872         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3873         (longopts[]): New --no-default-excludes option.
3874         (gld_${EMULATION_NAME}_list_options): Document.
3875         (gld_${EMULATION_NAME}_parse_args): Handle.
3877 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3879         * ldlang.c (new_stat): Revert the last beautification with "innocent"
3880         whitespace, it breaks the K&R C preprocessor.
3882 2000-12-11  DJ Delorie  <dj@redhat.com>
3884         * ld.texinfo: Add notes about --whole-archive and gcc.
3886 2000-11-18  Fred Fish  <fnf@be.com>
3888         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3889         (ld_options): Entry for --allow-shlib-undefined.
3890         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3891         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3892         to false.
3893         * ld.texinfo: Document new command line switch.
3895 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
3897         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3898         .fixup is actually read/write.
3899         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3900         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3901         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3903 2000-12-11  Jan Hubicka  <jh@suse.cz>
3905         * NEWS: Add note about x86_64 architecture.
3907 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
3909         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3910         Set DWARF2 sections to a VMA of zero.
3912 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
3914         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3915         New targets.
3916         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3917         (sparc*-*-rtems*): Switched from a.out to ELF.
3919 2000-11-30  Jan Hubicka  <jh@suse.cz>
3921         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3922         (eelf_x86_64.c): New.
3923         * Makefile.in: Regenerate.
3924         * configure.tgt: Add support for x86_64-*-linux-gnu*.
3925         * emulparams/elf_x86_64.sh: New.
3927 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
3929         * emulparams/crislinux.sh (ENTRY): Change back to _start.
3930         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3932         * scripttempl/crisaout.sc: Change all RELOCATING not related to
3933         merging non-a.out sections into CONSTRUCTING.
3935 2000-11-28  Nick Clifton  <nickc@redhat.com>
3937         * ld.1 (COPYING): Mention that the GNU Free Documentation
3938         License is present in the sources, but not the output, and
3939         also available from the GNU website.
3940         (GNU Free Documentation License): Comment out this section.
3942 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
3944         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3945         does not use them.
3947 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
3949         * ld.1: Remove old date so it does not give the impression the manpage
3950         is way out of date.
3952 2000-11-24  Nick Clifton  <nickc@redhat.com>
3954         * configure.tgt (xscale-coff): Add target.
3955         (xscale-elf): Add target.
3957 2000-11-24  Fred Fish  <fnf@be.com>
3959         * ldmain.c (main): Remove redundant init of config.make_executable
3960         to true.
3962 2000-11-15  Richard Henderson  <rth@redhat.com>
3964         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3966 2000-11-14  Kazu Hirata  <kazu@hxi.com>
3968         * scripttempl/h8300.sc: Fix formatting.
3969         * scripttempl/h8300h.sc: Likewise.
3970         * scripttempl/h8300s.sc: Likewise.
3972 2000-11-14  Denis Chertykov  <denisc@overta.ru>
3974         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3976 2000-11-09  Philip Blundell  <pb@futuretv.com>
3978         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3979         around orphan sections whose names can be represented in C.
3981 2000-11-07  Jim Wilson  <wilson@redhat.com>
3983         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3984         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
3986 2000-11-06  Nick Clifton  <nickc@redhat.com>
3988         * ld.texinfo: Add GNU Free Documentation License.
3989         * ldint.texinfo: Add GNU Free Documentation License.
3990         * ld.1: Add GNU Free Documentation License.
3992 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
3994         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3995         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3997         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3998         Move 2000-11-02 Makefile.in changes to this file.
3999         * Makefile.in: Regenerate.
4001 2000-11-03  Nick Clifton  <nickc@redhat.com>
4003         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4004         constructors and destructors.
4005         * scripttempl/h8300h.sc: Ditto.
4006         * scripttempl/h8300s.sc: Ditto.
4007         * scripttempl/h8500.sc: Ditto.
4008         * scripttempl/h8500b.sc: Ditto.
4009         * scripttempl/h8500c.sc: Ditto.
4010         * scripttempl/h8500m.sc: Ditto.
4011         * scripttempl/h8500s.sc: Ditto.
4012         * scripttempl/v850.sc: Ditto.
4013         * scripttempl/w65.sc: Ditto.
4014         * scripttempl/z8000.sc: Ditto.
4016 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
4018         * Makefile.in (e_i386_chaos.c): New rule.
4019         (ALL_EMULATIONS): Added e_i386_chaos.o.
4020         * emulparams/elf_i386_chaos.sh: New file.
4021         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4023 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
4025         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4026         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4027         Fix sed invocation, so that it coped with '/' in Solaris 64bit
4028         library path suffix.
4029         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4031 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
4033         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4034         for consecutive sections.
4036 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
4038         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4039         options.
4040         * ld.texinfo: Added notes about this new option.
4042 2000-10-16  Nick Clifton  <nickc@redhat.com>
4044         * emultempl/pe.em (_after_open): Add tests of return values from
4045         bfd functions.  Emit appropriate error messages if necessary.
4047 2000-10-13  Nick Clifton  <nickc@redhat.com>
4049         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4050         local variables - they are not used, but leave in the call to
4051         bfd_canonicalize_symtab.
4052         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4053         pe_dll_search_prefix.
4055 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
4057         * emultempl/pe.em (pe_dll_search_prefix): New variable,
4058         (longopts): New --dll-search-prefix option.
4059         (gld_${EMULATION_NAME}_list_options): Document.
4060         (gld_${EMULATION_NAME}_parse_args): Handle.
4061         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4062         dynamically, search for a dll named '<prefix><basename>.dll'
4063         in preference to 'lib<basename>.dll' if --dll-search-prefix
4064         is specified.
4066 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
4068         * ldlang.c (section_already_linked): Set kept_section instead of
4069         sec->comdat->sec.
4071 2000-10-10  Kazu Hirata  <kazu@hxi.com>
4073         * deffile.h: Fix formatting.
4074         * lexsup.c: Likewise.
4075         * mri.c: Likewise.
4077 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
4079         * pe-dll.c (make_one): Do not generate code thunk for DATA
4080         exports.
4081         (process_def_file): deduce DATA flag for auto-export sumbols.
4083 2000-10-09  Kazu Hirata  <kazu@hxi.com>
4085         * ld.h: Fix formatting.
4086         * ldcref.c: Likewise.
4087         * ldctor.h: Likewise.
4088         * ldemul.c: Likewise.
4089         * ldemul.h: Likewise.
4090         * ldexp.c: Likewise.
4091         * ldexp.h: Likewise.
4092         * ldfile.c: Likewise.
4093         * ldfile.h: Likewise.
4094         * ldlang.c: Likewise.
4095         * ldlang.h: Likewise.
4096         * ldmain.c: Likewise.
4097         * pe-dll.c: Likewise.
4099         * pe-dll.c: Revert some formatting fixes.
4101 2000-10-08  Kazu Hirata  <kazu@hxi.com>
4103         * pe-dll.c: Fix formatting.
4105 2000-10-05  Kazu Hirata  <kazu@hxi.com>
4107         * ldlang.c: Fix formatting.
4109 2000-10-03  DJ Delorie  <dj@redhat.com>
4111         * pe-dll.c (fill_edata): initialize entire block
4112         (make_one): fill in correct section.
4114 2000-10-03  Kazu Hirata  <kazu@hxi.com>
4116         * ldexp.c: Fix formatting.
4118 2000-10-02  DJ Delorie  <dj@redhat.com>
4120         * emultempl/pe.em (gld_*_after_open): detect case where there two
4121         import libraries for same dll; rename one to ensure proper link
4122         order.
4124         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4125         typo
4126         (generate_edata): fix typo
4128 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
4130         * scripttempl/crisaout.sc (ENTRY): Now __start.
4131         (.text): Add default setting for __start.
4132         Remove CONSTRUCTORS handling.
4133         (/DISCARD/): Add .gnu.warning.*.
4134         * emulparams/crislinux.sh (ENTRY): Now __start.
4135         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4136         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4137         (ENTRY): Now __start.
4138         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4139         (EXECUTABLE_SYMBOLS): Add default setting for __start.
4141 2000-09-29  Kazu Hirata  <kazu@hxi.com>
4143         * deffile.h: Fix formatting.
4144         * ld.h: Likewise.
4145         * ldcref.c: Likewise.
4146         * ldctor.c: Likewise.
4147         * ldctor.h: Likewise.
4148         * ldemul.c: Likewise.
4149         * ldemul.h: Likewise.
4150         * ldexp.c: Likewise.
4151         * ldexp.h: Likewise.
4152         * ldfile.c: Likewise.
4153         * ldfile.h: Likewise.
4154         * ldlang.c: Likewise.
4155         * ldlang.h: Likewise.
4156         * lexsup.c: Likewise.
4157         * mri.c: Likewise.
4158         * pe-dll.c: Likewise.
4160 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
4162         * pe-dll.c (process_def_file): Uninitialized data wasn't
4163         exported with --export-all-symbols switch.
4165 2000-09-28  DJ Delorie  <dj@redhat.com>
4167         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4168         noname work properly.
4170 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
4172         * ld.texinfo (HPPA ELF32): New section.
4174         * emultempl/hppaelf.em (group_size): New.
4175         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4176         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4177         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
4178         options to prevent abbreviations matching.
4179         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
4180         (PARSE_AND_LIST_ARGS_CASES): Handle it.
4182 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4184         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4185         on the m68*-*-elf target.  Make it support COFF input objects.
4187 2000-09-21  Kazu Hirata  <kazu@hxi.com>
4189         * ldmain.c: Fix formatting.
4190         * ldmisc.c: Likewise.
4191         * ldver.c: Likewise.
4192         * ldwrite.c: Likewise.
4194 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
4196         * ldwrite.c (clone_section): Silence gcc warnings.
4198 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
4200         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4201         out of memory failure.
4203         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4204         (clone_section): Handle out of memory failures.  Rename var to
4205         avoid c++ reserved word.
4207 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
4209         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4210         stub_name param to stub_sec_name.
4211         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4213 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4215         * emultempl/m68kelf.em: New file.
4216         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4217         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4218         * Makefile.in: Regenerate.
4220 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
4222         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4223         only as needed.
4225 2000-09-13  Nick Clifton  <nickc@redhat.com>
4227         * ldmain.c (multiple_definition): Disable relaxation if
4228         multiple symbol definitions are encountered - otherwise the
4229         linker could abort with an assertion failure.
4231 2000-09-10  Nick Clifton  <nickc@redhat.com>
4233         * mri.c: Fix formatting.
4235 2000-09-07  H.J. Lu  <hjl@gnu.org>
4237         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4238         * configure: Rebuild.
4240 2000-09-07  H.J. Lu  <hjl@gnu.org>
4242         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4243         * Makefile.in: Rebuild.
4245 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
4247         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4248         broken list handling.  Create __start_SECNAME and __stop_SECNAME
4249         when no place-holder.  Add some comments.  Test both SEC_CODE and
4250         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4251         Handle case where no output section statement created.
4253 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
4255         * configure.tgt (sh-*-linux*): Added.
4256         * Makefile.am: Added eshelf_linux and eshlelf_linux.
4257         * Makefile.in: Rebuilt.
4258         * emulparams/shelf_linux.sh: New file.
4259         * emulparams/shlelf_linux.sh: New file.
4261 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
4263         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4264         try shuffling sections when the orphan happens to be the place
4265         holder.  Keep count of unique section names generated so we speed
4266         the search for a new name.
4268 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
4270         * configure: Rebuilt with new libtool.m4.
4272 2000-09-05  Nick Clifton  <nickc@redhat.com>
4274         * Makefile.in: Regenerate.
4275         * aclocal.m4: Regenerate.
4276         * configure: Regenerate.
4277         * config.in: Regenerate.
4278         * po/ld.pot: Regenerate.
4280         * ldint.texinfo: Remove CVS revision marker - it foils local
4281         comparisons.
4283         * emultempl/ticoff.em: Remove extraneous comma.
4285 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
4287         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4288         to stub section flags.
4289         (hppa_for_each_input_file_wrapper): New.
4290         (hppa_lang_for_each_input_file): New.
4291         (lang_for_each_input_file): Define to call above.
4292         (multi_subspace): New.
4293         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4294         (PARSE_AND_LIST_PROLOGUE): Define.
4295         (PARSE_AND_LIST_LONGOPTS): Define.
4296         (PARSE_AND_LIST_OPTIONS): Define.
4297         (PARSE_AND_LIST_ARGS_CASES): Define.
4298         (hppaelf_finish): Call elf32_hppa_set_gp.
4299         (hppaelf_set_output_arch): Remove.
4300         (LDEMUL_SET_OUTPUT_ARCH): Remove.
4302         * emulparams/hppalinux.sh (ELFSIZE): Define.
4303         (MACHINE): Define.
4304         (OTHER_READONLY_SECTIONS): Define.
4305         (DATA_PLT): Define.
4306         (GENERATE_SHLIB_SCRIPT): Define.
4308         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
4309         to const throughout.  Change `void *' to `PTR' throughout.
4310         (lang_memory_default): Function is local to file, add `static'.
4312         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4313         (ehppalinux.c): Likewise.
4314         (earmelf.c): Likewise.
4315         (earmelf_linux.c): Likewise.
4316         (earmelf_linux26.c): Likewise.
4317         * Makefile.in: Regenerate.
4319         * ld.h (ld_config_type): Add unique_orphan_sections.
4320         * lexsup.c (OPTION_UNIQUE): Define.
4321         (ld_options): Add "--unique".
4322         (parse_args): Handle it.
4323         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4324         search for an existing output section if unique_orphan_sections is
4325         set.  Make use of bfd_get_unique_section_name rather than
4326         duplicating code here.
4327         * ld.texinfo: Describe --unique.
4329         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4330         optional arg to split-by-file.
4331         (parse_args): Handle them.
4332         * ld.texinfo: Update description of these options.
4333         * ldwrite.c (clone_section): Pass in the section name.  Replace
4334         local code with bfd_get_unique_section_name.
4335         (split_sections): Tidy code and comments.  Use a list traversal
4336         more appropriate to the list construction.  Handle cooked section
4337         sizes.  Split when split_by_reloc reached rather than exceeded.
4338         Track section size and split when split_by_file reached.  Fix
4339         link_order_tail (even though it's not used).
4340         (ldwrite): Modify condition for calling split_sections to suit
4341         changed split_by_reloc and split_by_file.
4342         * ldmain.c (main): Init config.split_by_reloc and
4343         config.split_by_file to -1.
4344         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4345         Change split_by_file to bfd_size_type.
4347 2000-09-02  Nick Clifton  <nickc@redhat.com>
4349         * configure.in: Increase version number to 2.10.91.
4350         * NEWS: Mention new ability to support removal of duplicate DWARF2
4351         debug information.
4352         * configure: Regenerate.
4353         * aclocal.m4: Regenerate.
4354         * config.in: Regenerate.
4356 2000-09-02  Daniel Berlin <dberlin@redhat.com>
4358         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4359         sections.
4360         * scripttempl/elf32avr.sc: Ditto.
4361         * scripttempl/elfd10v.sc: Ditto.
4362         * scripttempl/elfd30v.sc: Ditto.
4363         * scripttempl/elfi370.sc: Ditto.
4364         * scripttempl/elfm68hc11.sc: Ditto.
4365         * scripttempl/elfm68hc12.sc: Ditto.
4366         * scripttempl/elfi386beos.sc: Ditto.
4367         * scripttempl/v850.sc: Ditto.
4369 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
4371         * acinclude.m4: Include libtool and gettext macros from the
4372         top level.
4373         * aclocal.m4, configure: Rebuilt.
4375 2000-08-25  Nick Clifton  <nickc@redhat.com>
4377         * ldlang.c (open_output): When choosing the target for a
4378         particular endianness, do nothing if the target is not
4379         supported.
4381 2000-08-25  H.J. Lu  <hjl@gnu.org>
4383         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4384         check -rpath nor LD_RUN_PATH for cross link.
4385         * ld.texinfo: Document the change.
4387 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
4389         * NEWS: Mention support for CRIS.
4391 2000-08-23  H.J. Lu  <hjl@gnu.org>
4393         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4394         the current runpath list from bfd_elf_get_runpath_list ()
4395         before search.
4397 2000-08-22  H.J. Lu  <hjl@gnu.org>
4399         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4400         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4401         LD_LIBRARY_PATH for native linker. Display the needed DSO if
4402         trace_file_tries is non-zero.
4403         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4404         if trace_file_tries is non-zero.
4406         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4407         * NEWS: Mention it.
4409 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
4411         * NEWS: Mention i860 support.
4413 2000-08-14  Andreas Schwab  <schwab@suse.de>
4415         * scripttempl/elf.sc: Fix last change to use correct comment
4416         syntax.
4418 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
4420         * scripttempl/elf.sc: Add a comment giving the correspondence
4421         between sections, per-datum sections, and linkonce sections.  Make
4422         the comment true even for .bss, .sdata, .sdata2, .sbss, and
4423         .sbss2.
4425 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
4427         * emulparams/elf32_i860.sh: New file.
4428         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4429         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4430         (eelf32_i860.c): New rule.
4431         * Makefile.in: Regenerate.
4433 2000-08-10  Nick Clifton  <nickc@cygnus.com>
4435         * emulparams/mipspe.sh (ENTRY): Add definition.
4437 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
4439         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4440         in error message.
4442 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4444         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4445         the final size of .bss section.
4446         * scripttempl/elfm68hc12.sc: Likewise.
4448 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
4450         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4451         gld${EMULATION_NAME}_parse_args for consistency.  Combine
4452         lastoptind and prevoptind vars, and keep track of last optind.
4453         (gld_${EMULATION_NAME}_list_options): Rename to
4454         gld${EMULATION_NAME}_list_options.
4456 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
4458         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4459         (i586-sco-sysv5uw7.1.0).
4461 2000-07-27  H.J. Lu  <hjl@gnu.org>
4463         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4464         (PARSE_AND_LIST_PROLOGUE): New.
4465         (PARSE_AND_LIST_LONGOPTS): Likewise.
4466         (PARSE_AND_LIST_OPTIONS): Likewise.
4467         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4468         (PARSE_AND_LIST_EPILOGUE): Likewise.
4470 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
4472         * emultempl/armelf.em: Elide functions common to elf32.em,
4473         ie. most of the file.
4474         (arm_elf_after_open): New.  Do arm specific things then call
4475         gld${EMULATION_NAME}_after_open.
4476         (arm_elf_before_allocation): New.  Call
4477         gld${EMULATION_NAME}_before_allocation then do arm specifics.
4478         (PARSE_AND_LIST_PROLOGUE): Define.
4479         (PARSE_AND_LIST_SHORTOPTS): Define.
4480         (PARSE_AND_LIST_LONGOPTS): Define.
4481         (PARSE_AND_LIST_OPTIONS): Define.
4482         (PARSE_AND_LIST_ARGS_CASES): Define.
4483         (LDEMUL_AFTER_OPEN): Define.
4484         (LDEMUL_BEFORE_ALLOCATION): Define.
4485         (LDEMUL_BEFORE_PARSE): Define.
4486         (LDEMUL_FINISH): Define.
4488         * emultempl/hppaelf.em: Similarly zap most of this file.
4489         (hppaelf_add_stub_section): Prototype.
4490         (hppaelf_layaout_sections_again): Prototype.
4491         (hook_in_stub): Prototype.
4492         (LDEMUL_SET_OUTPUT_ARCH): Define.
4493         (LDEMUL_FINISH): Define.
4494         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4496         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4497         (EXTRA_EM_FILE): New.
4498         * emulparams/armelf_linux.sh: Likewise.
4499         * emulparams/armelf_linux26.sh: Likewise.
4500         * emulparams/hppalinux.sh: Likewise.
4501         * emulparams/hppaelf.sh: Likewise.
4502         (NOP): Define.
4504         * emultempl/elf32.em: Fix formatting.
4505         (EXTRA_EM_FILE): Source it.
4506         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4507         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4508         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4509         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4510         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4511         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4512         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4513         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4514         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
4515         allow functions in this file to be overridden.
4516         (PARSE_AND_LIST_SHORTOPTS): Handle it.
4518         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4520         * emultempl/elf32.em: Reorganize file.
4522 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
4524         * emulparams/elf64alpha.sh: Implement "-taso" emulation
4525         specific option to fit 64-bit executable in the lower
4526         31-bit address range.  This is done by changing start
4527         address of .interp (the very first section of executable)
4528         and then setting EF_ALPHA_32BIT elf header flag.
4530 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4532         * emultempl/m68kcoff.em: New file.
4533         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4534         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4535         generic.em.
4536         * Makefile.in: Regenerate.
4538 2000-07-20  H.J. Lu  <hjl@gnu.org>
4540         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4541         and "disable-new-dtags" to stop getopt from treating -d/-e as
4542         abbreviations for these options.
4544 2000-07-20  H.J. Lu  <hjl@gnu.org>
4546         * ld.texinfo: Add documentation for --disable-new-dtags and
4547         --enable-new-dtags.
4549         * ldmain.c (main): Initialize link_info.new_dtags to false.
4551         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4552         --disable-new-dtags and --enable-new-dtags.
4553         (gld_${EMULATION_NAME}_list_options): Likewise.
4555 2000-07-05  Kenneth Block  <krblock@computer.org>
4557         * lexsup.c: Add optional style to demangle switch
4558         * ld.texinfo: Document optional style to demangle switch.
4560 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
4562         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4563         ecrislinux.o.
4564         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4565         Regenerate dependencies.
4566         * Makefile.in: Rebuild.
4567         * configure.tgt (cris-*-*): New target.
4568         * emulparams/crisaout.sh, emulparams/criself.sh,
4569         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4570         * po/POTFILES.in, po/ld.pot: Regenerate.
4572 2000-07-20  H.J. Lu  <hjl@gnu.org>
4574         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4575         Print out ignored -z options.
4577 2000-07-19  H.J. Lu  <hjl@gnu.org>
4579         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4580         (PARSE_AND_LIST_PROLOGUE): New.
4581         (PARSE_AND_LIST_LONGOPTS): Likewise.
4582         (PARSE_AND_LIST_OPTIONS): Likewise.
4583         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4585         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4587         * lexsup.c (ld_options): Comment out 'z'.
4588         (parse_args): Likewise.
4590         * emultempl/elf32.em: Include "elf/common.h".
4591         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4592         options.
4593         (gld_${EMULATION_NAME}_list_options): Likewise.
4595         * ld.texinfo: Add documentation for the recognized -z options.
4597 2000-07-19  H.J. Lu  <hjl@gnu.org>
4599         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4600         bfd_elf_set_dt_needed_soname ().
4602 2000-07-18  DJ Delorie  <dj@cygnus.com>
4604         * pe-dll.c (pe_dll_id_target): check object target name also
4606 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
4608         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4609         ${INIT_END} if relocating.
4610         (.fini): Likewise ${FINI_START} and ${FINI_END}.
4612 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
4614         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4615         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4616         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4617         errors introduced by the old dynamic lib search order.
4619 2000-07-17  DJ Delorie  <dj@cygnus.com>
4621         * pe-dll.c (process_def_file): auto-export data items also
4622         (pe_process_import_defs): also see if _imp_ form needed
4624 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
4626         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4627         for dll import libraries
4629 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
4631         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4632         gcc 2.95.2 and later.
4634 2000-07-11  Kazu Hirata  <kazu@hxi.com>
4636         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4637         message.
4639 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4641         * ldemul.h (struct lang_input_statement_struct): Remove forward
4642         declaration.
4643         (struct search_dirs): Likewise.
4644         * ldfile.h (struct lang_input_statement_struct): Likewise.
4645         Protect file from multiple inclusion.
4646         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4647         declaration from macro to file scope.
4649         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4650         * ldgram.y: Likewise here.
4651         * ldlang.c: And here.
4652         * ldmain.c: And here.
4653         * mpw-elfmips.c: And here.
4654         * mpw-eppcmac.c: And here.
4655         * emultempl/aix.em: And here.
4656         * emultempl/armcoff.em: And here.
4657         * emultempl/armelf.em: And here.
4658         * emultempl/armelf_oabi.em: And here.
4659         * emultempl/beos.em: And here.
4660         * emultempl/elf32.em: And here.
4661         * emultempl/hppaelf.em: And here.
4662         * emultempl/linux.em: And here.
4663         * emultempl/lnk960.em: And here.
4664         * emultempl/pe.em: And here.
4665         * emultempl/sunos.em: And here.
4666         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4667         * mpw-idtmips.c: Ditto.
4668         * emultempl/generic.em: Ditto.
4669         * emultempl/gld960.em: Ditto.
4670         * emultempl/gld960c.em: Ditto.
4671         * emultempl/mipsecoff.em: Ditto.
4672         * emultempl/ticoff.em: Ditto.
4673         * emultempl/vanilla.em: Ditto.
4675         * pe-dll.c: Include ldfile.h
4676         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4678         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4679         arguments to bfd_elf32_size_dynamic_sections call.
4680         (gldelf32ebmip_place_orphan): Add missing arguments to
4681         lang_leave_output_section_statement call.
4683 2000-07-10  H.J. Lu  <hjl@gnu.org>
4685         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4686         DLL_SUPPORT.
4687         (strhash): Likewise.
4688         (compute_dll_image_base): Likewise.
4689         (pe_undef_found_sym): Likewise.
4690         (pe_undef_cdecl_match): Likewise.
4691         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4692         argument "arch" with ATTRIBUTE_UNUSED.
4694 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4696         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4698         From  Ryan Bradetich  <rbradetich@uswest.net>
4699         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4701 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
4703         Changes to create multiple linker stubs, positioned immediately
4704         before the section where they are required.
4705         * emultempl/hppaelf.em: Include elf32-hppa.h.
4706         (stub_sec, file_chain): Delete.
4707         (hppaelf_create_output_section_statements): Don't make a stub
4708         section here.
4709         (hook_stub_info): New struct.
4710         (hook_in_stub): New function.
4711         (hppaelf_add_stub_section): New function.
4712         (hppaelf_finish): Do nothing for relocateable links.  Modify the
4713         call to elf32_hppa_size_stubs.  Move code for updating section
4714         layout from here...
4715         (hppaelf_layaout_sections_again): ..to here, a new function.
4717         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4718         broken list handling.  Pass in a pointer to the list.
4719         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4720         for above changes.
4721         (hppaelf_before_parse): Prototype.
4722         (hppaelf_set_output_arch): Prototype.
4723         (hppaelf_create_output_section_statements): Prototype.
4724         (hppaelf_delete_padding_statements): Prototype.
4725         (hppaelf_finish): Prototype.
4727         Merge from elf32.em
4728         * emultempl/hppaelf.em: Include ctype.h.
4729         (struct orphan_save): New.
4730         (gld${EMULATION_NAME}_place_orphan): New.
4731         (output_rel_find): New.
4732         (hppaelf_get_script): Update from elf32.em.
4733         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4734         Change emulation_name field to "${EMULATION_NAME}".  Add
4735         gld${EMULATION_NAME}_place_orphan.
4737         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
4738         ehppalinux.o, sort it.  Regenerate dependencies.
4739         (ehppalinux.c): Depend on hppaelf.em
4740         * Makefile.in: Regenerate.
4742         * configure.tgt: targ_emul=hppalinux for hppa*linux
4744         * emulparams/hppalinux.sh: New.
4745         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4747 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
4749         * lexsup.c (parse_args): Copy section name.
4751 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
4753         * emultempl/pe.em: institute the following search order for
4754         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4755         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
4756         static lib (libfoo.a) if none of the above are found.
4758 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
4760         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4761         (longopts): New --{enable,disable}-auto-image-base options.
4762         (gld_${EMULATION_NAME}_list_options): Document.
4763         (gld_${EMULATION_NAME}_parse): Handle.
4764         (strhash): New static function.
4765         (compute_dll_image_base): New static function.
4766         (gld_${EMULATION_NAME}_set_symbols): Use.
4768 2000-07-05  DJ Delorie  <dj@redhat.com>
4770         * MAINTAINERS: new
4772 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
4774         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4775         * emulparams/elf32btsmip.sh: New file.
4776         * Makefile.am: Add traditional mips target.
4777         * Makefile.in: Rebuild.
4779 2000-07-01  H.J. Lu  <hjl@gnu.org>
4781         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4782         automake to use YLWRAP.
4783         * Makefile.in: Rebuild.
4785 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
4787         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
4788         (CLEANFILES): Add DEPA.
4789         * Makefile.in: Regenerate.
4791 2000-06-30  Timothy Wall  <twall@ppc>
4793         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4794         the page in the upper octet of the address.
4796 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
4798         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4800 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
4802         * NEWS: arm-elf does --gc-sections too.
4804 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
4806         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4807         find one.
4808         * Makefile.in: Regenerate.
4810 2000-06-21  H.J. Lu  <hjl@gnu.org>
4812         * Makefile.am: Rebuild dependency.
4813         * Makefile.in: Rebuild.
4815 2000-06-20  H.J. Lu  <hjl@gnu.org>
4817         * Makefile.am: Rebuild dependency.
4818         * Makefile.in: Rebuild.
4820 2000-06-20  Timothy Wall  <twall@cygnus.com>
4822         * scripttempl/tic54xcoff.sc: New.
4823         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4824         * gen-doc.texi: Add flag for TI COFF.
4825         * ld.texinfo: Add documentation for TI COFF handling switches.
4826         * emultempl/ticoff.em: New. TI COFF handling.
4827         * configure.tgt: Add tic54x target.
4828         * Makefile.am: Add tic54x target.
4829         * Makefile.in: Ditto.
4831 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
4833         * ldmain.c (set_scripts_dir): Correct pointer comparison when
4834         checking for backslashes.
4836 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
4838         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4840 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
4842         * NEWS: Update list of targets supporting --gc-sections.
4844         * scripttempl/elf.sc: KEEP .eh_frame contents.
4845         * scripttempl/elfd30v.sc: Same here.
4847 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4849         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4850         and m68hc11 (elf).
4851         * Makefile.in: Rebuild.
4852         * configure.tgt: Recognize m68hc12 and m68hc11.
4853         * scripttempl/elfm68hc12.sc: New file.
4854         * emulparams/m68hc12elfb: New emulation.
4855         * emulparams/m68hc12elf: New emulation.
4856         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
4857         (includes a memory.x script to define the ROM and RAM banks).
4858         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4859         New configuration files for support of Motorola 68hc11
4861 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
4863         * ldmain.c (main): Only change SEC_READONLY for final link.
4865 2000-06-13  H.J. Lu  <hjl@gnu.org>
4867         * configure: Regenerate.
4869 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4871         * configure.in (VERSION): Update to show this is the CVS mainline.
4873 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4875         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4876         input objects to be ECOFF.
4877         (check_sections): einfo takes %B, not %P, to print a BFD name.
4879 2000-06-05  Michael Matz <matz@ifh.de>
4881         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4882         version scripts.
4884         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4886 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
4888         * emulparams/avr1200.sh (STACK): Define as 0.
4889         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4890         * emulparams/avr4433.sh (STACK): Likewise.
4891         * emulparams/avr44x4.sh (STACK): Likewise.
4892         * emulparams/avr85xx.sh (STACK): Likewise.
4893         * emulparams/avrmega103.sh (STACK): Likewise.
4894         * emulparams/avrmega161.sh (STACK): Likewise.
4895         * emulparams/avrmega603.sh (STACK): Likewise.
4896         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4897         (__stack): Define from ${STACK} for main().
4899 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4901         * Makefile.am: Update dependencies with "make dep-am"
4902         * Makefile.in: Regenerate.
4904 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
4906         * ldmain.c: Include filenames.h.
4907         (set_scripts_dir): Support backslashes in program name.
4909 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
4911         * ldmain.c (main): When deciding if ".text" section should be
4912         read-only, don't forget to reset SEC_READONLY because it
4913         could be already set.
4915 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
4917         * ld.1: Add documentation for new command line option:
4918                 --section-start <sectionname>=<sectionorg>
4919         This is a generic version of -Ttext etc. which accepts
4920         any section name as a parameter instead of just text/data/
4921         bss.
4922         * ld.texinfo: More docs.
4923         * NEWS: More docs.
4924         * lexsup.c: (parse_args): Recognize new command line option.
4925         (ld_options): Add new option.
4927 2000-05-18  H.J. Lu  <hjl@gnu.org>
4929         * lexsup.c (parse_args): `i' == `r', not `q'.
4931 2000-05-18  Jeffrey A Law  (law@cygnus.com)
4933         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4935 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
4936               Rick Gorton          <gorton@scrugs.lkg.dec.com>
4938         Add support for '-q' == '--emit-relocs' switch.
4939         * ldmain.c (main): Default to false.
4940         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4941         * NEWS: Describe the emitrelocations switch.
4942         * ld.texinfo: Describe the emitrelocations switch.
4944 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
4946         * emultempl/pe.em (_open_dynamic_archive): New function: Search
4947         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4948         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4949         link options.
4951 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
4953         * lexsup.c (parse_args): Update the year in the copyright notice.
4955 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
4957         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4958         Replace defines with those from intl/libgettext.h to quieten gcc
4959         warnings.
4961 2000-05-10  H.J. Lu  <hjl@gnu.org>
4963         * ldlang.c (open_input_bfds): Don't load the same file within
4964         a group again if the whole archive has been loaded already.
4966 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
4968         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4969         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4970         strtoul.
4972 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4974         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4976         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4977         host "ia64-*-linux-gnu*".
4979 2000-04-29  Andreas Jaeger  <aj@suse.de>
4981         * ld.h: Correctly check GCC version.
4983 2000-04-25  Jeffrey A Law  (law@cygnus.com)
4985         * Makefile.am: Add PA64 support.  Add missing dependencies for
4986         PA32 elf support.
4987         * Makefile.in: Rebuilt.
4988         * configure.tgt: Add PA64 support (currently disabled).
4990 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
4992         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4993         (output_rel_find): New function.
4994         (hold_section, hold_use): Delete.
4995         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4996         hold_interp): Make local to place_orphan.
4997         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4998         rather than place_section to find possible previous use of orphan.
4999         Similarly find the place-holder output sections.  Use returned
5000         value from lang_enter_output_section_statement rather than calling
5001         lang_output_section_statement_lookup.
5002         * emultempl/armelf.em: Same here.
5003         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5005         * ldlang.c (lang_enter_output_section_statement): Return output
5006         section statement.
5007         * ldlang.h (lang_enter_output_section_statement): Change
5008         declaration too.
5010         * ldlang.h (lang_output_section_statement): Export it.
5011         * ldlang.c (lang_output_section_statement): Ditto.
5013 2000-04-24  Nick Clifton  <nickc@cygnus.com>
5015         * ld.texinfo (Output Section Data): Add note that section data
5016         commands cannot appear outside of section directives.
5018 2000-04-2  Matthew Green  <mrg@cygnus.com>
5020         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5022 2000-04-21  Richard Henderson  <rth@cygnus.com>
5023             David Mosberger  <davidm@hpl.hp.com>
5025         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5026         (eelf64_ia64.c): New rule.
5027         * Makefile.in: Rebuild.
5028         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5029         * emulparams/elf64_ia64.sh: New file.
5031 2000-04-21  Richard Henderson  <rth@cygnus.com>
5033         * scripttempl/elfd30v.sc: Place .gcc_except_table.
5035 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
5037         * dep-in.sed: Match space at start of file name, not at end.
5039 2000-04-18  H.J. Lu  <hjl@gnu.org>
5041         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5042         lang_leave_output_section_statement () after calling
5043         lang_enter_output_section_statement ().
5044         * emultempl/armelf.em: Likewise.
5046 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
5048         * emultempl/elf32.em (struct orphan_save): Add section field.
5049         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5050         better order, and place first orphan section as we did before the
5051         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
5052         Don't call make_bfd_section here, let wild_doit do the job for us.
5053         Don't build a statement list when we'll only throw it away.
5054         * emultempl/armelf.em: Ditto.
5055         * emultempl/pe.em: Similarly.
5057 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
5059         * scripttempl/elfppc.sc: Remove.
5060         * emulparams/elf32ppc.sh: Use elf.sc.
5061         * emulparams/elf32lppc.sh: Use elf.sc.
5062         * emulparams/elf32ppclinux.sh: Use elf.sc.
5063         * emulparams/elf32ppcsim.sh: New file.
5064         * emulparams/elf32lppcsim.sh: New file.
5065         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
5066         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5067         * Makefile.in: Regenerate.
5068         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5070 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
5072         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5073         ~SEC_ALLOC sections too.  Init start address of debug sections.
5074         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5075         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5076         Also set all relocateable section start addresses.
5078 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
5080         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5081         Add new BSS_PLT variable for when .plt need not be contained in
5082         the file.  Move _etext so that it is also after .fini, and provide
5083         both etext and _etext with a leading underscore.  Mark the start
5084         and end of .sbss.
5086 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
5088         * emultempl/elf32.em (struct orphan_save): New.
5089         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5090         hold_interp): Make them struct orphan_save.
5091         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5092         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5093         the end of the relevant section list.  Also add associated section
5094         statements to the end of any previous orphan statements.
5095         * emultempl/armelf.em: Similarly.
5096         * emultempl/pe.em: Similarly.
5098 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
5100         * ld.texinfo (Simple Example): Remove extraneous paragraph.
5102 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
5104         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
5105         --enable-build-warnings option.
5106         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5107         * Makefile.in, configure: Re-generate.
5109 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
5111         * po/ld.pot: Regenerate.
5113         * lexsup.c (help): Restore translated part of bug string.
5115         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5116         (DEP): Quote when passing vars to sub-make.  Add warning message
5117         to end.
5118         (DEP1): Rewrite for "gcc -MM".
5119         (CLEANFILES): Add DEP2.
5120         Update dependencies.
5121         * Makefile.in: Regenerate.
5123 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
5125         * ld.h: #include "bin-bugs.h"
5126         * lexsup.c (help): Use REPORT_BUGS_TO.
5128 2000-03-27  Denis Chertykov  <denisc@overta.ru>
5130         * configure.tgt (avr-*-*): New target support.
5131         * Makefile.am: Likewise.
5132         * scripttempl/elf32avr.sc: New script file.
5133         * emulparams/avr1200.sh: New file.
5134         * emulparams/avr23xx.sh: New file.
5135         * emulparams/avr4433.sh New file.
5136         * emulparams/avr44x4.sh New file.
5137         * emulparams/avr85xx.sh New file.
5138         * emulparams/avrmega103.sh New file.
5139         * emulparams/avrmega161.sh New file.
5140         * emulparams/avrmega603.sh New file.
5141         * Makefile.in: Regenerate.
5143 2000-03-09  Andreas Jaeger  <aj@suse.de>
5145         * Makefile.am (check-DEJAGNU): Also unset LANG.
5146         * Makefile.in: Rebuild.
5148 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
5150         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5151         archive.
5153 2000-03-02  H.J. Lu  <hjl@gnu.org>
5155         * emulparams/elf32mcore.sh: Include "getopt.h".
5157 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
5159         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5161 2000-03-01  H.J. Lu  <hjl@gnu.org>
5163         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5164         * emulparams/shpe.sh: Likewise.
5166 2000-03-01  Nick Clifton  <nickc@cygnus.com>
5168         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5169         to unused parameters.
5171         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5172         functions only used by DLL code.
5173         (_place_orphan): Initialise 'dollar'.
5175 2000-03-01  H.J. Lu  <hjl@gnu.org>
5177         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5178         indicate if the undefined symbol is a fatal error or not.
5179         Don't delete the output file if "fatal" is false.
5181 2000-02-29  H.J. Lu  <hjl@gnu.org>
5183         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5184         Set LC_COLLATE and LC_ALL to null and export them. It is for
5185         sort which expects the C locale.
5186         Add $(LIBS) to all $(HOSTING_LIBS).
5187         * Makefile.in: Rebuild.
5189 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
5191         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5192         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5193         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5194         (ld_emulation_xfer_struct): Add missing NULL initialiser for
5195         find_potential_libraries.
5197 2000-02-28  Jim Blandy  <jimb@redhat.com>
5199         * ldgram.y (exclude_name_list): Don't require a comma to separate
5200         list entries; the lexer considers commas to be valid part of a
5201         filename, so in something like `foo, bar' the comma is considered
5202         part of the first filename, `foo,'.
5203         * ld.texinfo: Update section on EXCLUDE_FILE lists.
5205 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
5207         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5208         host "i[3456]86-*-freebsdelf*".
5210 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
5212         * scripttempl/i386go32.sc: Move misplaced semicolons.
5214 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
5216         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5217         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5218         (eelf64hppa.c, ehppaelf.c): Remove targets.
5219         * Makefile.in: Rebuild.
5221 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
5223         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5224         GNU/Linux/sparc, but keep the default as 32.
5226         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
5227         it default if sparcv9 or sparc64.
5229 2000-02-24  Nick Clifton  <nickc@cygnus.com>
5231         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5232         * Makefile.in: Regenerate.
5233         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5235         * ldemul.h (ld_emulation_xfer_struct): Add new field:
5236         find_potential_libraries.
5237         * ldemul.c (ldemul_find_potential_libraries): New function.
5239         * ldfile.c (ldfile_open_file_search): Allow function to be
5240         exported.
5241         (ldfile_open_file): Call ldemul_find_potential_libraries.
5242         * ldfile.h: Add prototype for ldfile_open_file_search.
5244         * pe-dll.c: Add support for ARM, MIPS and SH targets.
5246         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
5247         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
5249         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5250         (gld_X_find_potential_libraries): New function.  Search for
5251         libraries called "*.lib".
5253         * scripttempl/pe.sc: Add .pdata section.
5255 2000-02-23  Richard Henderson  <rth@cygnus.com>
5257         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5258         Add and use memory regions.
5260 2000-02-23  Linas Vepstas (linas@linas.org)
5262         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5264         * Makefile.am: Add support for Linux/IBM 370.
5265         * configure.tgt: Likewise.
5267         * Makefile.in: Regenerate.
5269 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
5271         * ldlang.c (print_input_section, print_data_statement,
5272         print_reloc_statement, print_padding_statement, insert_pad,
5273         size_input_section, lang_check_section_addresses,
5274         lang_size_sections, lang_do_assignments, lang_set_startof,
5275         lang_one_common): Change `opb' to unsigned.
5276         (lang_do_assignments): Also change `size' to unsigned.
5278 2000-02-16  Richard Henderson  <rth@cygnus.com>
5280         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5282 2000-02-16  Timothy Wall  <twall@cygnus.com>
5284         * mri.c (mri_draw_tree): Add default LMA region argument to call
5285         to lang_leave_output_section_statement.
5286         * ldlang.h: Update prototypes with LMA region arguments.
5287         * ldlang.c (lang_size_sections): Encapsulate region bounds
5288         checking in os_check_region call.
5289         (os_check_region): New function.
5290         (lang_output_section_statement_lookup): Initialize lma_region.
5291         (lang_leave_output_section_statement): Add LMA region argument.
5292         (lang_leave_overlay): Ditto.
5293         * ldgram.y: Handle LMA region syntax.
5294         * ld.texinfo (Output Section Description): Describe LMA region usage.
5295         * emultempl/armelf.em (gld$place_orphan): Add default value for
5296         lma region in call to lang_leave_output_section_statement.
5297         * emultempl/elf32.em (gld$place_orphan): Add default value for
5298         lma region in call to lang_leave_output_section_statement.
5299         * emultempl/pe.em (gld$place_orphan): Add default value for
5300         lma region in call to lang_leave_output_section_statement.
5303 2000-02-04  Timothy Wall  <twall@redhat.com>
5305         * ldlang.c (lang_check_section_addresses): Use bytes instead of
5306         octets when calculating section end addresses.
5308 2000-02-04  Timothy Wall  <twall@redhat.com>
5310         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5312 2000-02-03  Timothy Wall <twall@redhat.com>
5314         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5315         octet count.
5316         * ldlang.c (print_input_section, print_data_statement,
5317         print_reloc_statement, print_padding_statement): Print target
5318         address values and section sizes as bytes, not octets.
5319         (insert_pad) Calculate padding size in octets, and adjust "dot"
5320         by bytes.
5321         (size_input_section) Always adjust "dot" by bytes, not octets.
5322         (lang_check_section_addresses, lang_do_assignments) Adjust
5323         "dot" by bytes, not octets.  Use the larger of the directive size
5324         or octets_per_byte for the number of octets actually allocated in
5325         the output section.
5326         (lang_set_startof) Make sure STARTOF returns a target address.
5327         (lang_one_common) Record size changes in octets.
5328         (lang_abs_symbol_at_end_of) Section end symbol's value is
5329         recorded in target bytes.
5330         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5331         to be clear about behavior when an octet is smaller than one byte.
5333 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
5335         * ldcref.c (output_cref): Don't pass message strings to printf
5336         as format arg.
5337         Update copyright.
5339         * ldmisc.c (vfinfo): Same here.
5340         Update copyright.
5342 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
5344         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5345         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5346         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5347         Add missing NULL initialisers, and comments.
5349 2000-01-21  Nick Clifton  <nickc@cygnus.com>
5351         * ldlang.c (lang_size_sections): Fix typo in comment.
5353 2000-01-18  H.J. Lu  <hjl@gnu.org>
5355         * ldlang.c (lang_size_sections): Also update the current
5356         address of a region if the SEC_NEVER_LOAD bit is not set.
5358 2000-01-10  Philip Blundell  <pb@futuretv.com>
5360         * configure.tgt (arm*-*-conix*): New target.
5362 2000-01-07  Nick Clifton  <nickc@cygnus.com>
5364         * ld.texinfo (Options): Remind users to preceed linker command
5365         line switches with -Wl, (or whatever is appropriate) if it is
5366         being invoked by a comnpiler driver program.
5367         Fix description of the behaviour of the -n command line switch.
5369 2000-01-05  Catherine Moore  <clm@cygnus.com>
5371         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
5372         (name_list): New.
5373         * ld.texinfo (EXCLUDE_FILE): Update documentation.
5374         * ldgram.y (wildcard_spec): Support a list of excluded_files.
5375         (exclude_name_list): New.
5376         ldlang.c (walk_wild_section): Support list of excluded files.
5377         (print_wild_statement): Likewise.
5378         (lang_add_wild): Likewise.
5379         * ldlang.h (lang_wild_statement_type): Likewise.
5380         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5382 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
5384         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5385         (process_def_file): Use.
5386         (pe_dll_compat_implib): New variable.
5387         (make_one): Use.
5389         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5390         pe_dll_compat_implib.
5392         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5393         compat-implib options.
5394         (gld_${EMULATION_NAME}_list_options): List new options.
5395         (gld_${EMULATION_NAME}_parse_args): Handle.
5397         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5398         dll.
5400         * deffilep.y (opt_name): Allow "." in name.
5402 For older changes see ChangeLog-9899
5404 Local Variables:
5405 mode: change-log
5406 left-margin: 8
5407 fill-column: 74
5408 version-control: never
5409 End: