* config/tc-mcore.c (mcore_pool_count): New function.
[binutils.git] / ld / ChangeLog
blob564633bdd974e2ead0c10feb164102af1cb8d3a3
1 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
3         * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
5 2002-11-14  Egor Duda  <deo@logos-m.ru>
7         * ldmain.c (main): Make runtime relocs disabled by default. Remove
8         assignment which has no effect.
9         * pe-dll.h (pe_create_import_fixup): Change prototype.
10         * pe-dll.c (make_runtime_pseudo_reloc): New function.
11         (pe_create_runtime_relocator_reference): Ditto.
12         (pe_create_import_fixup): Handle relocations with non-zero addends.
13         * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
14         --disable-runtime-pseudo-reloc.
15         (make_import_fixup): Handle relocations with non-zero addends. Create
16         an external reference to _pei386_runtime_relocator symbol if at least
17         one pseudo reloc was created.
18         * ld.texinfo: Document --enable-runtime-pseudo-reloc and
19         --disable-runtime-pseudo-reloc options.
21 2002-11-12  Earl Chew <earl_chew@agilent.com>
23         * ldlang.c (lang_add_section): Discard debugging sections that have
24         been marked SEC_EXCLUDE.
26 2002-11-12  Nick Clifton  <nickc@redhat.com>
28         * configure.in (ALL_LINGUAS): Add da.
29         * configure: Regenerate.
30         * po/da.po: New Danish translation.
32 2002-11-12  Alan Modra  <amodra@bigpond.net.au>
34         * emultempl/ppc64elf.em (ppc_before_allocation): New function.
35         (LDEMUL_BEFORE_ALLOCATION): Define.
36         (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
37         linking.
38         * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
40 2002-11-11  Christopher Faylor  <cgf@redhat.com>
42         * configure.tgt (LIB_PATH): Default to searching w32api directory under
43         cygwin.
45 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
47         * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
48         of restricted auto-export libs.
50 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
52         * pe-dll.c (autofilter_liblist): Generalize library names to catch more
53         creative library naming instances like, e.g., libstdc++-2.a.
55 2002-11-06  Alexandre Oliva  <aoliva@redhat.com>
57         * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
58         * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
60 2002-11-07  Danny Smith  <dannysmith@users.sourceforge.net>
62         * deffilep.y (def_lex): Handle '@' as first character of an ID.
63         * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
64         (make_one): Don't prefix decorated fastcall symbols with '_'.
65         (pe_process_import_defs): Likewise.
66         * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
67         symbols to cdecl names or vise-versa.
69 2002-10-13  Eric Kohl  <ekohl@rz-online.de>
71         * pe-dll.c (process_def_file): Handle fastcall symbols when
72         generating undecorated aliases.  Don't prefix decorated fastcall
73         symbols with '_'.
74         (fill_exported_offsets): Don't prefix decorated fastcall symbols
75         with '_'.
77 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
79         * emultempl/aix.em: Use include <> for generated headers.
80         * emultempl/beos.em: Likewise.
81         * emultempl/elf32.em: Likewise.
82         * emultempl/pe.em: Likewise.
83         * ldctor.c: Likewise.
84         * ldexp.c: Likewise.
85         * ldfile.c: Likewise.
86         * ldlang.c: Likewise.
87         * ldlex.c: Likewise.
88         * ldlex.l: Likewise.
89         * ldmain.c: Likewise.
90         * ldmisc.c: Likewise.
91         * ldwrite.c: Likewise.
92         * lexsup.c: Likewise.
93         * mri.c: Likewise.
94         * pe-dll.c: Likewise.
96 2002-10-23  Jakub Jelinek  <jakub@redhat.com>
98         * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
99         sections into .rel{,a}.dyn.
101 2002-10-23  Nick Clifton  <nickc@redhat.com>
103         * lexsup.c (OPTION_NO_OMAGIC): Define.
104         (ld_options): Add "no-omagic" option.
105         (parse_args): Parse --no-omagic.
106         * ld.texinfo: Document --no-omagic.
107         * NEWS: Mention new option.
109 2002-10-21  Danny Smith  <dannysmith@users.sourceforeg.net>
111         * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
112         __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
114 2002-10-22  Alexandre Oliva  <aoliva@redhat.com>
116         * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
117         emulation name.  Set LIB_PATH only for native tools, and
118         search the ABI-specific versions of NATIVE_LIB_DIRS before the
119         .../lib variants, not instead of them.  Mostly copied from...
120         * emulparams/elf32ppc.sh: ... here.  Fixed typo.
121         * emulparams/elf64bmip-defs.sh: Backed out.
122         * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
123         * emulparams/elf64btsmip.sh: Likewise.
124         (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
125         TEXT_DYNAMIC): Removed.
127 2002-10-17  Alexandre Oliva  <aoliva@redhat.com>
129         * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
130         (GENERATE_SHLIB_SCRIPT): Set to yes.
131         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
132         * emulparams/elf32bmipn32.sh: here.
133         (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
134         * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
135         * emulparams/elf64bmip-defs.sh: New file.  Extend
136         elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
137         * emulparams/elf64bmip.sh: Bring in definitions from
138         elf64bmip-defs.sh.
139         (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
140         settings.
141         (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
142         * emulparams/elf64btsmip.sh: Bring in definitions from
143         elf64bmip-defs.sh.
144         (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
145         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
147 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
149         * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
150         (s390-*-linux*): Add elf64_s390 emulation if want64.
151         * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
152         genscript.sh changes.
153         * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
154         * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
156 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
158         * ldlang.c (load_symbols): Revert last change.
160 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
162         * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
163         just_syms_flag.
164         (lang_reasonable_defaults): Don't compare against false.
165         (size_input_section): Likewise.
166         (lang_size_sections_1): Likewise.
167         (lang_do_assignments): Likewise.
168         (lang_add_output): Likewise.
170         * Makefile.am: Run "make dep-am".
171         * Makefile.in: Regenerate.
172         * ldver.c: #include "bfdver.h".
174 2002-10-13  Stephane Carrez  <stcarrez@nerim.fr>
176         * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
177         .finiN section.
178         * scripttempl/elfm68hc12.sc: Likewise.
180 2002-10-11  Alan Modra  <amodra@bigpond.net.au>
182         * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
184         * ldgram.y (memory_spec): Provide empty action.
185         (section <NAME>): Likewise.
187 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
189         * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
190         they have OUTPUT_FORMAT not matching actual output format.
191         * ldlang.c (lang_get_output_target): New function.
192         (open_output): Use it.
193         * ldlang.h (lang_get_output_target): New prototype.
195 2002-10-10  Alan Modra  <amodra@bigpond.net.au>
197         * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
198         when orphan is .rel, .rela when orphan is .rela.
199         (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
200         first.  Remove outsecname var.
202 2002-10-09  Richard Shann <richard.shann@superh.com>
203             Stephen Clarke <stephen.clarke@superh.com>
205         * Makefile.am: Add eshelf32_linux.o and
206         eshlelf32_linux.o, new emulations for sh64 Linux.
207         * Makefile.in: Regenerate.
208         * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
209         * emulparams/shelf32_linux.sh: New file.
210         * emulparams/shlelf32_linux.sh: New file.
212 2002-10-08  H.J. Lu <hjl@gnu.org>
214         * ldlang.c (lang_file_exist): Removed.
215         (new_afile): Revert the last change.
216         * ldlang.h (lang_file_exist): Removed.
217         * lexsup.c (parse_args): Revert the last change.
219 2002-10-07  Ralf Habacker  <Ralf.Habacker@freenet.de>
221         * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
222         auto-import symbols.
223         (make_one): Create _nm_<symbol> for data only.
225 2002-10-05  Elias Athanasopoulos  <eathan@otenet.gr>
227         * ldlang.c (lang_file_exist): New function.
228         (new_afile): Abort if the filename to be added matches the linker
229         output filename.
230         * ldlang.h: Add prototype for lang_file_exist.
231         * lexsup.c (parse_args): Abort if the output filename matches
232         one of the input filenames.
234 2002-10-02  Alan Modra  <amodra@bigpond.net.au>
236         * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
238 2002-09-30  Alan Modra  <amodra@bigpond.net.au>
240         * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
241         * scripttempl/elfm68hc11.sc: Likewise.
242         * scripttempl/elfm68hc12.sc: Likewise.
244         * emultempl/elf32.em (output_rel_find): Always place orphan loadable
245         reloc sections just before .rel.plt/.rela.plt.
246         (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
247         Only put loadable reloc sections in hold_rel.
249 2002-09-29  H.J. Lu <hjl@gnu.org>
251         * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
253 2002-09-25  Daniel Jacobowitz  <drow@mvista.com>
255         From "Anita Kulkarni" <AnitaK@kpit.com>
256         * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
257         sections.
259 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
261         * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
262         TARGET_PAGE_SIZE.
263         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
264         SEGMENT_SIZE alignment.
265         * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
266         (SEGMENT_SIZE): Define.
268         * ldexp.c (fold_unary): New.  Split out from exp_fold_tree.
269         (fold_binary): Correct abs - non-abs case.
270         (fold_trinary): New.  Split out from exp_fold_tree.
272 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
274         * emulparams/elf64ppc.sh (DATA_ADDR): Define.
275         * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
276         for start of .data, instead align up to 256M boundary.
277         * scripttempl/aix.sc: Likewise.
279 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
281         * scripttempl/i386go32.sc: Handle bss unique sections.
283 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
285         * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
287 2002-09-17  Stan Cox  <scox@redhat.com>
289         * emulparams/elf32bmipn32-defs.sh: New file.
290         * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
291         * emulparams/elf32btsmipn32.sh: Likewise.
292         * emulparams/elf64bmip.sh: Likewise.
293         * emulparams/elf64btsmip.sh: Likewise.
295 2002-09-16  Bruno Haible  <bruno@clisp.org>
297         * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
298         elf32-i386-freebsd.
299         * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
300         elf64-alpha-freebsd.
302 2002-09-11  Nick Clifton  <nickc@redhat.com>
304         * NEWS: New TI port supports both C4x and C3x series of DSPs.
306         * po/tr.po: Updated Turkish translation.
308 2002-09-06  Jeffrey A Law  (law@redhat.com)
310         * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
312 2002-09-02  Nick Clifton  <nickc@redhat.com>
314         * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
315         __ep.
316         * emulparams/v850.sh (TEMPLATE_NAME): Define.
318 2002-08-30  Nick Clifton  <nickc@redhat.com>
320         * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
321         used.  Change INSN to start at 0x01000000 and extend for
322         256K (ignoring holes).  Start the STACK on a word aligned
323         boundary.
324         (.rodata): Start it at the READONLY_START_ADDR.
326 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
328         * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
330 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
332         * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
333         added makefile targets for this file.
334         * Makefile.in: Regenerate.
335         * configure.tgt: Added tic4x-coff and c4x-coff emulations.
336         * NEWS: Mention new port.
338 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
340         * emulparams/tic3xcoff.sh: New file.
341         * emulparams/tic4xcoff.sh: New file.
342         * scripttempl/tic3xcoff.sc: New file.
343         * scripttempl/tic4xcoff.sc: New file.
345 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
347         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
348         strtoul and strtoull with bfd_scan_vma.
349         (gld${EMULATION_NAME}_read_file): Likewise.
351 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
353         * configure.tgt: Remove h8[35]00-*-hms*.  Add h8500-*-rtems*.
355 2002-08-27  Egor Duda  <deo@logos-m.ru>
357         * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
358         Add symbols for application to access them.
360 2002-08-27  Nick Clifton  <nickc@redhat.com>
362         * emultempl/armelf.em:  Revert this patch, it is not needed.
364         2002-08-22  Adam Nemet  <anemet@lnxw.com>
366 2002-08-20 Dan Kegel <dank@kegel.com>
368         * configure.in: added --with-lib-path argument to ld's configure
369         to set LIB_PATH.
370         * ld/NEWS: Document new switch.
371         * ld/README: Mention new switch.
372         * configure: Regenerate.
373         * Makefile.in: Regenerate.
375         Based on this patch:
376         2001-04-25  Christopher Faylor <cgf@cygnus.com>
378         * Makefile.in (LIB_PATH): Make configurable.
379         (GENSCRIPTS): Set LIB_PATH in environment.
380         * configure.in: Substitute LIB_PATH.
382 2002-08-22  Adam Nemet  <anemet@lnxw.com>
384         * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
385         (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
386         depending on the type of the function.
387         (arm_elf_convert_thumb_symbol_to_address): New function.
389 2002-08-22  Graeme Peterson  <gp@qnx.com>
391         * Makefile.am: Add esh{l}elf_nto.o files.
392         * Makefile.in: Regenerate.
393         * configure.tgt: Add support for sh-**-nto* targets.
394         * emulparams/shelf_nto.sh: New file.
395         * emulparams/shlelf_nto.sh: New file.
397 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
399         * ldlang.c (offsetof): Define if not defined.
401 2002-08-14  H.J. Lu <hjl@gnu.org>
403         * configure.tgt: Always enable 64bit emulations for 32bit
404         Linux/mips.
406 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
408         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
409         (MAXPAGESIZE): Set to 1.
411         * ld.h (ALIGN_N): Delete.
412         * ldexp.h (align_n): Declare.
413         * ldexp.c (align_n): New function.
414         (fold_binary): Use align_n instead of ALIGN_N.
415         (exp_fold_tree): Likewise.
416         * ldlang.c (lang_size_sections_1): Likewise.
417         (lang_one_common): Likewise.
418         * ld.texinfo (ALIGN): Remove power of 2 restriction.
420 2002-07-31  Graeme Peterson  <gp@qnx.com>
422         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
423         * Makefile.am: Add eelf32{l}ppcnto.o files.
424         * Makefile.in: Regenerate.
425         * emulparams/elf32lppcnto.sh: New file.
426         * emulparams/elf32ppcnto.sh: New file.
428 2002-08-07  H.J. Lu <hjl@gnu.org>
430         * ld.texinfo: Document --no-undefined-version.
432         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
433         `script.' fields to 0.
435         * ldmain.c (main): Initialize the allow_undefined_version to
436         true.
438         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
439         (ld_options): Add --no-undefined-version.
440         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
442 2002-08-07  Nick Clifton  <nickc@redhat.com>
444         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
445         an interworking bfd if there are input bfds. (107501)
447 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
449         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
450         2002-05-10 change.
452 2002-08-01  Nick Clifton  <nickc@redhat.com>
454         * emulparams/armelf.sh: Revert previous delta.
455         * scripttempl/elf.sc: Revert previous delta.
457 2002-07-31  H.J. Lu <hjl@gnu.org>
459         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
460         --enable-64-bit-bfd.
462 2002-07-31  H.J. Lu <hjl@gnu.org>
464         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
465         64bit BFD is selected.
467 2002-07-31  H.J. Lu <hjl@gnu.org>
469         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
470         if 64bit BFD is selected.
472 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
474         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
475         link_info.common_skip_ar_aymbols.
476         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
478         * ldmain.c (main): Initialize new field
479         link_info.common_skip_ar_aymbols.
481 2002-07-31  Adam Nemet  <anemet@lnxw.com>
483         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
484         to .plt.thumb.
485         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
486         used.
488 2002-07-31  Nick Clifton  <nickc@redhat.com>
490         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
491         of the PDP-11 and 2.11BSD a.out support.
493 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
495         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
496         for n32 ABI support.
497         * Makefile.in: Regenerate.
498         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
499         n32 ABI emulations for these 64 bit targets.
500         * emulparams/elf32bmipn32.sh: Expand comment.
501         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
502         n32 ABI.
503         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
505 2002-07-30  Graeme Peterson  <gp@qnx.com>
507         * configure.tgt: Add support for arm-*-nto target.
508         * Makefile.am: Add earmnto.o file.
509         * Makefile.in: Regenerate.
510         * NEWS: Mention port of ARM support to QNX.
511         * emulparams/armnto.sh: New file.
513 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
515         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
516         for relocatable link.
517         (lang_size_sections_1): Don't make .tbss zero size for relocatable
518         link.
520 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
522         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
523         (STACK_ADDR): New.
525 2002-07-25  Nick Clifton  <nickc@redhat.com>
527         * po/sv.po: Updated Swedish translation.
528         * po/es.po: Updated Spanish translation.
529         * po/fr.po: Updated French translation.
531 2002-07-24  Nick Clifton  <nickc@redhat.com>
533         * po/sv.po: Updated Swedish translation.
534         * po/es.po: Updated Spanish translation.
536 2002-07-23  Nick Clifton  <nickc@redhat.com>
538         * po/fr.po: Updated French translation.
540 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
542         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
543         bomb on /DISCARD/ input section.
544         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
545         * emultempl/mmo.em (mmo_place_orphan): Likewise.
547 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
549         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
550         output section.
552 2002-07-16  Denis Chertykov  <denisc@overta.ru>
553             Nick Clifton  <nickc@redhat.com>
554             Frank Ch. Eigler  <fche@redhat.com>
555             John Healy  <jhealy@redhat.com>
557         * configure.tgt: Add support for ip2k-elf.
558         * Makefile.am: Add support for ip2k-elf.
559         * Makefile.in: Regenerate.
560         * emulparams/elf32ip2k.sh: New file.
561         * scripttempl/ip2k.sc: New file
562         * NEWS: Mention support for new port.
564 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
566         * NEWS: Add 'Changes in 2.13'.
568 2002-07-14  H.J. Lu <hjl@gnu.org>
570         * ld.texinfo: Document a .symver takes precedence over a
571         version script.
573 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
575         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
576         (COMMONPAGESIZE): Define.
578 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
580         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
582 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
584         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
585         powerpc-*-openbsd* and sparc64-*-openbsd*.
586         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
587         * Makefile.in: Regenerate.
588         * emulparams/hppaobsd.sh: New file.
590 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
592         * ldlang.c (print_wild_statement): Fix output formatting.
594 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
596         * ldlang.c: (strip_excluded_output_sections): New function.
597         (lang_process): Call it.
598         (lang_size_sections_1): Revert 2002-06-10 change.
600 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
602         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
603         Run "make dep-am".
604         * Makefile.in: Regenerate.
606 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
608         * ldfile.c (ldfile_try_open_bfd): Formatting.
610         * ldmisc.c (demangle): Move so that it doesn't intrude between
611         vfinfo comment and body.  Add comment.
613 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
615         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
617 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
619         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
620         * ldlang.c (entry_sym): Likewise.
621         (ldlang_undef_chain_list_type): Likewise.
622         (lang_finish): Adjust references to entry_symbol.
623         (lang_add_entry): Likewise.
624         (lang_gc_sections): Use link_info.gc_sym_list.
625         (lang_process): Set link_info.gc_sym_list.
626         * ldlex.l: Include bfdlink.h.
627         * ldmain.c (main): Init link_info.gc_sym_list.
628         * emultempl/aix.em: Adjust references to entry_symbol.
629         * emultempl/armcoff.em: Likewise.
630         * emultempl/armelf.em: Likewise.
631         * emultempl/pe.em: Likewise.
632         * emultempl/ppc64elf.em (ppc_after_open): New function.
633         (LDEMUL_AFTER_OPEN): Define.
634         * emulparams/elf64ppc.sh: KEEP .opd sections.
636 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
638         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
639         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
640         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
641         (EEPROM_START_ADDR): Define.
642         (EEPROM_MEMORY): Define.
643         * emulparams/m68hc12elf.sh: Likewise.
644         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
645         section to put soft registers in .page0.
646         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
648 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
650         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
651         section.  Add ${RELOCATING-0}.
653 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
655         * emulparams/shelf.sh (STACK_ADDR): Don't define.
656         (OTHER_SECTIONS): Define.
657         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
658         (OTHER_SECTIONS): Undef.
660 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
662         * ldmisc.c (demangle): Restore dots stripped from sym name.
664 2002-06-25  H.J. Lu <hjl@gnu.org>
666         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
667         * Makefile.in: Regenerated.
669 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
671         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
672         the size of attached object files, to allow make the object files
673         available via FTP or HTTP and to mention that the mail will be
674         sent to a mailing list.
676 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
678         * ld/configure.host (romp): Drop support.
680 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
682         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
683         section flags for SEC_DATA, rather than for SEC_CODE being unset.
685 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
687         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
688         format specifier used to print BFD name.
690 2002-06-18  Dave Brolley  <brolley@redhat.com>
692         From Catherine Moore, Michael Meissner, Jim Blandy:
693         * emulparams/elf32frv.sh: New file.
694         * configure.tgt: Support frv-*-*.
695         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
696         (eelf32frv.c): New target.
698 2002-06-17  Tom Rix  <trix@redhat.com>
700         * emultempl/elf32.em: gld*_get_script:  Check for
701         GENERATE_COMBRELOC_SCRIPT.
702         * scripttempl/elfd10v.sc : Fix STACK and INSN.
703         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
705 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
707         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
709 2002-06-12  H.J. Lu <hjl@gnu.org>
711         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
712         false if xvec doesn't match.
714 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
716         * ldlang.c (lang_size_sections_1): Skip removed output sections.
718 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
720         * ldexp.c: Replace CONST with const.
721         * ldfile.c: Likewise.
722         * ldfile.h: Likewise.
723         * ldlex.l: Likewise.
724         * mri.c: Likewise.
725         * pe-dll.h: Likewise.
727 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
729         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
731 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
733         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
734         to -1 == implicit enable.
735         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
736         initialize link_info.pei386_auto_import to -1 == implicit
737         enable.
738         (gld_${EMULATION_NAME}_parse_args): When processing
739         --enable-auto-import and --disable-auto-import options, use
740         '1' and '0' instead of 'true' and 'false'.
741         (pe_find_data_imports): Only issue message about auto-import
742         when the feature is implicitly enabled.  Downgrade message to
743         informational instead of warning.
745 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
747         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
749 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
751         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
752         HOSTING_CRT0 and HOSTING_LIBS.
754 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
756         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
758 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
760         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
761         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
763 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
765         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
766         SEC_EXCLUDE sections when doing a relocatable link.
768 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
770         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
771         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
772         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
773         (eshlelf64_nbsd.c): New rules.
774         * Makefile.in: Regenerate.
775         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
776         (sh64-*-netbsd*): New targets.
777         * emulparams/shelf32_nbsd.sh: New file.
778         * emulparams/shelf64_nbsd.sh: New file.
779         * emulparams/shlelf32_nbsd.sh: New file.
780         * emulparams/shlelf64_nbsd.sh: New file.
782 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
784         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
786 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
788         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
789         C++ constructors/destructors, loosely based on the m68hc11 port.
791 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
793         * Makefile.in: Regenerate.
794         * aclocal.m4: Regenerate.
795         * config.in: Regenerate.
796         * configure: Regenerate.
798 2002-05-31  Graeme Peterson  <gp@qnx.com>
800         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
801         (ei386nto.c): Add rule.
802         * Makefile.in: Regenerate.
803         * configure.tgt: Add i[3456]86-*-nto-qnx*.
804         * emulparams/i386nto.sh: New file.
806 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
808         * NEWS: Add entry for VAX ELF support.
810 2002-05-29  Matt Thomas  <matt@3am-software.com>
811             Jason Thorpe  <thorpej@wasabisystems.com>
813         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
814         (eelf32vax.c)
815         (evaxnbsd.c): New rules.
816         * Makefile.in: Regenerate.
817         * configure.tgt (vax-*-netbsdelf*)
818         (vax-*-netbsdaout*)
819         (vax-*-netbsd*): New targets.
820         * emulparams/elf32vax.sh: New file.
821         * emulparams/vaxnbsd.sh: New file.
823 2002-05-29  Adam Nemet  <anemet@lnxw.com>
825         * emultempl/armelf.em (arm_elf_after_open): Don't determine
826         bfd_for_interwork, instead add glue sections to each input bfd.
827         (bfd_for_interwork): New global.
828         (arm_elf_set_bfd_for_interworking): New function.
829         (arm_elf_before_allocation): Use it.
831 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
833         * Makefile.am: Add DLX make target.
834         * configure.tgt: Add DLX configuration.
835         * Makefile.in: Regenerate.
836         * emulparams/elf32_dlx.sh: New file
837         * scripttempl/dlx.sc: New file
839 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
841         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
842         * Makefile.in: Regenerate.
843         * emulparams/elf_chaos.sh: Use elf_chaos script.
844         * scripttempl/elf_chaos.sc: New file.
846 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
848         * ldlang.c (lang_size_sections_1): Move check for conflicting load
849         addresses and regions from here...
850         (lang_get_regions): ...to this new function.
851         (lang_leave_output_section_statement): Use lang_get_regions.
852         (lang_leave_overlay): Likewise.
853         * mri.c (mri_draw_tree): Pass null as last argument to
854         lang_leave_output_section_statement.
855         * emultempl/elf32.em (gld*_place_orphan): Likewise.
856         * emultempl/mmo.em (mmo_place_orphan): Likewise.
857         * emultempl/pe.em (gld*_place_orphan): Likewise.
859 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
861         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
863 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
865         * ldemul.c: Fix formatting.
866         * ldfile.c: Likewise.
867         * pe-dll.c: Likewise.
868         * pe-dll.h: Likewise.
870 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
872         * ldlang.c (lang_process): Formatting, grammar.
874         * ldlex.l: Use #include "" instead of <> for local header files.
876 2002-05-24  TAMURA Kent <kent@netbsd.org>
878         * configure.tgt: Add a target for i386-netbsdpe.
880 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
882         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
883         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
884         output section if necessary.  Handle .tbss.
885         (lang_size_sections): Clear _raw_size for .tbss section
886         (it allocates space in PT_TLS segment only).
887         * ldwrite.c (build_link_order): Build link order for .tbss too.
889 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
891         * configure.in: Correct spelling of AC_PREREQ.
893 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
895         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
896         default.
897         (autofilter_objlist): Add crtbegin.o, crtend.o.
899 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
901         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
902         (longopts): Add new option --exclude-libs.
903         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
904         (gld_${EMULATION_NAME}_parse_args): Use it.
905         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
906         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
907         from whole archives.
908         (pe_dll_add_excludes): Set excludes->type.
909         (auto_export): Add new variable libname and set to archive basename if
910         abfd.  Use it when filtering default and user-specified libarary
911         excludes.  Let string "ALL" mean all libs when filtering user-specified
912         libs.
913         * ld.texinfo: Document --exclude-libs.
915 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
917         * ldemul.c (ldemul_new_vers_pattern): New function.
918         * ldemul.h (ldemul_new_vers_pattern): Declare.
919         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
920         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
921         * emultempl/ppc64elf.em (dotsyms): New static var.
922         (gld${EMULATION_NAME}_new_vers_pattern): New function.
923         (LDEMUL_NEW_VERS_PATTERN): Define.
924         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
925         (PARSE_AND_LIST_LONGOPTS): Likewise.
926         (PARSE_AND_LIST_ARGS_CASES): Handle them.
927         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
928         initialiser.
929         * emultempl/armcoff.em: Likewise.
930         * emultempl/armelf_oabi.em: Likewise.
931         * emultempl/beos.em: Likewise.
932         * emultempl/elf32.em: Likewise.
933         * emultempl/generic.em: Likewise.
934         * emultempl/gld960.em: Likewise.
935         * emultempl/gld960c.em: Likewise.
936         * emultempl/linux.em: Likewise.
937         * emultempl/lnk960.em: Likewise.
938         * emultempl/m68kcoff.em: Likewise.
939         * emultempl/mipsecoff.em: Likewise.
940         * emultempl/pe.em: Likewise.
941         * emultempl/sunos.em: Likewise.
942         * emultempl/ticoff.em: Likewise.
943         * emultempl/vanilla.em: Likewise.
945 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
947         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
948         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
949         (LIB_SEARCH_DIRS): No need to use "tr".
950         (COMPILE_IN): Only set for native targets.
951         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
952         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
953         * configure.tgt (powerpc*): Set tdir_*.
954         (powerpcle*): Correct targ_extra_emuls.
955         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
956         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
958 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
960         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
961         calling lang_add_entry.
963 2002-05-21  H.J. Lu  (hjl@gnu.org)
965         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
966         "-z muldefs".
967         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
969         * ld.texinfo: Updated for --allow-multiple-definition and
970         "-z muldefs".
972         * ldmain.c (main): Initialize the allow_multiple_definition
973         field to false.
975         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
976         (ld_options): Add --allow-multiple-definition.
977         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
979 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
981         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
982         (earmelfb_nbsd.c): New rule.
983         * Makefile.in: Regenerate.
984         * configure.tgt (armeb-*-netbsdelf*): New target.
985         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
986         (arm-*-netbsd*): Likewise.
987         * emulparams/armelfb_nbsd.sh: New file.
989 2002-05-18  Tom Rix  <trix@redhat.com>
991         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
992         support.
994 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
996         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
997         * Makefile.in: Regenerate.
998         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1000 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1002         * emulparams/avr1.sh: New file.
1003         * emulparams/avr2.sh: New file.
1004         * emulparams/avr3.sh: New file.
1005         * emulparams/avr4.sh: New file.
1006         * emulparams/avr5.sh: New file.
1007         * scripttempl/avr.sc: New file.
1009 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
1011         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1012         (lang_place_orphans): Abort if just_syms_flag.
1014 2002-05-10  Tom Rix  <trix@redhat.com>
1016         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1017         architecture and machine information in the output bfd.
1018         (gld*_before_parse): Remove old arch and machine code.
1019         (choose_target): Rename to gld*_choose_target.
1020         (rtld): Change type to int.
1021         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1022         objects in XCOFF archives.
1023         * ldfile.h: Update copyright date.
1025 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
1027         * ldmain.c (main): Enable -z combreloc by default.
1029 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
1031         * Makefile.am: Honour DESTDIR.
1032         * Makefile.in: Regenerate.
1034 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
1036         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1037         (lang_enter_overlay): Remove the last two parameters.
1038         (lang_leave_overlay): Take them here instead.
1039         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1040         (section): Pass LMA and crossref flag to lang_leave_overlay rather
1041         than lang_enter_overlay.
1042         * ldlang.c (lang_memory_region_lookup): Return null for null names.
1043         (lang_output_section_statement_lookup): Initialize update_dot_tree.
1044         (lang_size_sections_1): Evaluate it.
1045         (lang_leave_output_section_statement): Rework LMA lookup.
1046         (overlay_lma, overlay_nocrossrefs): Remove.
1047         (lang_enter_overlay): Remove LMA and crossref arguments.
1048         (lang_enter_overlay_section): Don't set the LMA here.
1049         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
1050         assignment to the last section's update_dot_tree.  Unconditionally
1051         use the load and run-time regions specified in the OVERLAY statement.
1052         Likewise the first section's LMA.  Only set the other sections' LMAs
1053         when no load region is given.
1055 2002-05-06  Nick Clifton <nickc@redhat.com>
1057         * po/sv.po: New translation.
1059 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
1061         * emultempl/hppaelf.em (build_section_lists): New function.
1062         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1063         and build_section_lists.
1065 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
1067         * ld.h: Fix formatting.
1068         * ldexp.c: Likewise.
1069         * ldfile.c: Likewise.
1070         * ldlang.c: Likewise.
1071         * ldmain.c: Likewise.
1072         * lexsup.c: Likewise.
1073         * pe-dll.c: Likewise.
1075 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
1077         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1078         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
1079         (build_section_lists): Do output_section tests here.
1081 2002-04-30  Tom Rix  <trix@redhat.com>
1083         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1085 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
1087         Long branch stubs, multiple stub sections.
1088         * emultempl/ppc64elf.em: Include ldctor.h.
1089         (stub_file): New var.
1090         (group_size): New var.
1091         (ppc_create_output_section_statements): New function.
1092         (struct hook_stub_info): New.
1093         (hook_in_stub): New function.
1094         (ppc_add_stub_section): New function.
1095         (ppc_layout_sections_again): New function.
1096         (build_section_lists): New function.
1097         (gld${EMULATION_NAME}_finish): Rewrite.
1098         (real_func): New var.
1099         (ppc_for_each_input_file_wrapper): New function.
1100         (ppc_lang_for_each_input_file): New function.
1101         (lang_for_each_input_file): Define.
1102         (PARSE_AND_LIST_PROLOGUE): Define.
1103         (PARSE_AND_LIST_LONGOPTS): Define.
1104         (PARSE_AND_LIST_OPTIONS): Define.
1105         (PARSE_AND_LIST_ARGS_CASES): Define.
1106         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1108 2002-04-30  Tom Rix  <trix@redhat.com>
1110         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1111         -blibpath, -bnolibpath support.
1113 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
1115         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1116         (eelf32ppcwindiss.c): New target.
1117         * Makefile.in: Regenerated.
1118         * configure.tgt: Add support for powerpc-*-windiss.
1119         * emulparams/elf32ppcwindiss.sh: New file.
1121 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
1123         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1124         * ldexp.c (exp_print_token): Add "infix_p" argument.
1125         (exp_print_tree): Update accordingly.
1127 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
1129         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1130         * Makefile.in: Regenerate.
1131         * mpw-elfmips.c: Delete.
1132         * mpw-eppcmac.c: Delete.
1133         * mpw-esh.c: Delete.
1134         * mpw-idtmips.c: Delete.
1136 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
1138         * emulparams/shelf32.sh (MACHINE): Now sh5.
1140 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1142         * ldgram.y: Fix syntax warning.
1144 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
1146         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1147         to prevent "-n" from being taken as an abbreviation for
1148         "--no-pipeline-knowledge".
1150 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1152         * ldlang.c (lang_size_sections_1): Don't complain about
1153         SEC_NEVER_LOAD sections having no memory region specified.
1155         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1157 2002-04-07  matthew green  <mrg@redhat.com>
1159         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1161 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1163         * dep-in.sed: Cope with absolute paths.
1164         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1165         Run "make dep-am".
1166         * Makefile.in: Regenerate.
1168 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1170         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1172 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1174         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1175         is smaller than maximum, round dot up to common page boundary.
1177 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
1179         * configure.host: Set up for generic hosts first, then tweak as
1180         necessary in more specific targets.
1181         (HOSTING_LIBS): Include libgcc_eh.a if found.
1183 2002-03-23  Andreas Jaeger  <aj@suse.de>
1185         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1187 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
1189         * Makefile.am: Run "make dep-am".
1190         * Makefile.in: Regenerate.
1192 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
1194         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1196 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
1198         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1199         add the symbol to the linker hash table immediately.
1200         (lang_place_undefineds): Split symbol creation out..
1201         (insert_undefined): ..to here.
1203 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
1205         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1206         the contents of the buffer returned from basename function will are
1207         getting overwritten while still being used.
1209 2002-03-18  Jan Hubicka  <jh@suse.cz>
1210             Andreas Jaeger  <aj@suse.de>
1211             Andreas Schwab  <schwab@suse.de>
1213         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1214         * elf_x86_64.sh (ARCH): Set to i386:x86-64
1215         set libraries to default to lib64 paths.
1217 2002-03-18  Tom Rix  <trix@redhat.com>
1219         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1220         * configure.tgt : Same.
1221         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1222         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1223         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1224         emulation parameters for better -b32, -b64 support.
1225         * emulparms/aixrs6.sh : Same.
1226         * emulparms/ppcmacos.sh : Same.
1227         * emultempl/aix.em (choose_target) : Use new emulation parameters
1228         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1229         * Makefile.in : Regenerate.
1231 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
1233         * po/fr.po: Updated version.
1235 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
1237         * ldmain.c (main): Move .text readonly flag fudges from here..
1238         * ldlang.c (lang_process): ..to here.
1240 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
1242         * ldlang.c (lang_check): Remove the word size check added in last
1243         change.  Treat emitrelocations case as for relocatable links.
1245 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
1247         * po/fr.po: Updated version.
1249 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
1251         * ldlang.c (lang_check): Do relocatable link checks first, so that
1252         warn_mismatch can't override.  Check compatible and word size too.
1254 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
1256         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1258 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
1260         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1261         DATA_SEGMENT_ALIGN.
1263 2002-03-04  H.J. Lu <hjl@gnu.org>
1265         * scripttempl/elf.sc: Put .preinit_array, .init_array and
1266         .fini_array in the data segment.
1268 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
1270         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1272 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
1274         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1275         .init_array, and .fini_array.
1277 2002-02-20  Andreas Schwab  <schwab@suse.de>
1279         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1280         .IA64_unwind* in a relocatable link.
1282 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
1284         * NEWS: Mark 2.12 branch.
1286 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1288         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1289         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1291 2002-02-18  Tom Rix  <trix@redhat.com>
1293         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1294         (gld*_before_allocation): Same.
1295         (gld*_create_output_section_statements): Generate
1296         __rtinit if run time linking.  Add librtl.a to the link.
1297         (gld*_read_file): Clean.
1299 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1301         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1303 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
1305         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1306         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1307         and eelf64alpha_fbsd.
1308         * Makefile.in: Regenerate.
1309         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1310         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1311         use a FreeBSD-specific emulation rather than the psABI one.
1312         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1313         for all FreeBSD ELF systems.
1314         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1315         emulation.
1316         * emulparams/elf32ppc_fbsd.sh: Likewise.
1317         * emulparams/elf64_ia64_fbsd.sh: Likewise.
1318         * emulparams/elf64_sparc_fbsd.sh: Likewise.
1319         * emulparams/elf64alpha_fbsd.sh: Likewise.
1320         * emulparams/elf_i386_fbsd.sh: Likewise.
1321         * emulparams/elf_x86_64_fbsd.sh: Likewise.
1323 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
1325         * po/tr.po: Updated version.
1327 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1329         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1330         (FILL): Likewise.
1332 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
1334         * emultempl/mmo.em (mmo_after_open): Don't call
1335         _bfd_mmix_check_all_relocs when producing ELF output.
1337 2002-02-15  Richard Henderson  <rth@redhat.com>
1339         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1340         definition.  Emit a unop+nop pair.
1342 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
1344         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1345         for presence of .MMIX.reg_contents.linker_allocated before early
1346         exit.
1348         * NEWS: Mention support for MMIX.
1350 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
1352         Support arbitrary length fill patterns.
1353         * ld.texinfo (Output Section Fill): Describe fill expressions.
1354         (FILL): Refer to the above.
1355         * ldexp.h (etree_value_type): Add "str" field.
1356         (union etree_union): Add "str" to "value" struct.
1357         (exp_bigintop): Declare.
1358         (exp_get_fill): Declare.
1359         * ldexp.c: Include "safe-ctype.h".
1360         (exp_intop): Set value.str to NULL.
1361         (exp_bigintop): New function.
1362         (new_rel): Pass in "str", and set new.str from it.
1363         (new_rel_from_section): Set new.str to NULL.
1364         (fold_name): Adjust calls to new_rel.
1365         (exp_fold_tree): Likewise.
1366         (exp_get_fill): New function.
1367         * ldgram.y (struct big_int bigint, fill_type *fill): New.
1368         (INT): Returns a "bigint".  Adjust all code handling INTs.
1369         (fill_opt): Returns a "fill".
1370         (fill_exp): Split out of fill_opt, use for FILL.
1371         * ldlang.h (struct _fill_type): New.
1372         (fill_type): Move typedef to ldexp.h.
1373         (lang_output_section_statement_type): "fill" is now a pointer.
1374         (lang_fill_statement_type): Likewise.
1375         (lang_padding_statement_type): Likewise.
1376         (lang_add_fill): Now takes a "fill_type *" param.
1377         (lang_leave_output_section_statement): Likewise.
1378         (lang_do_assignments): Likewise.
1379         (lang_size_sections): Likewise.
1380         (lang_leave_overlay_section): Likewise.
1381         (lang_leave_overlay): Likewise.
1382         * ldlang.c: Include ldgram.h after ldexp.h.
1383         (lang_output_section_statement_lookup): Adjust for fill_type change.
1384         (print_fill_statement): Likewise.
1385         (print_padding_statement): Likewise.
1386         (insert_pad): Now takes a "fill_type *" arg.
1387         (size_input_section): Likewise.
1388         (lang_size_sections_1): Likewise.
1389         (lang_size_sections): Likewise.
1390         (lang_do_assignments): Likewise.
1391         (lang_add_fill): Likewise.
1392         (lang_leave_output_section_statement): Likewise.
1393         (lang_leave_overlay_section): Likewise.
1394         (lang_leave_overlay): Likewise.
1395         Adjust all callers of the above function.
1396         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
1397         starting with "0X" as well as "0x".  Return bigint.str for hex
1398         numbers starting with "0x" or "0X", zero bigint.str otherwise.
1399         Always use base 16 for numbers starting with "$".
1400         * ldmain.c: Include ldgram.h after ldexp.h.
1401         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1402         of bfd_fill_link_order.
1403         * pe-dll.c: Adjust lang_do_assignments calls.
1404         * emultempl/elf32.em: Likewise.
1405         * emultempl/hppaelf.em: Likewise.
1406         * emultempl/ppc64elf.em: Likewise.
1407         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1408         lang_add_assignment call.
1409         * emultempl/pe.em: Likewise.
1411 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
1413         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
1414         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
1415         the pattern in question is not a regexp.
1416         * ldlang.c:  Likewise.
1417         * ldlang.h:  Likewise.
1418         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
1420 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
1422         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1423         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1424         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1425         * ldexp.c (exp_data_seg): New variable.
1426         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1427         (fold_binary): Handle DATA_SEGMENT_ALIGN.
1428         (exp_fold_tree): Handle DATA_SEGMENT_END.
1429         Pass allocation_done when recursing instead of hardcoding
1430         lang_allocating_phase_enum.
1431         * ldexp.h (exp_data_seg): New.
1432         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1433         (lang_size_sections): New.
1434         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1435         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1436         if COMMONPAGESIZE is defined.
1437         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1438         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1439         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1440         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1441         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1442         libraries only.
1444 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
1446         * Makefile.in: Regenerate.
1448 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1450         * lexsup.c: Remove strtoul declaration.
1452 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1454         * ldmain.c: Add prototype for main ().
1455         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1456         * emultempl/lnk960.em (lnk960_choose_target): Function should
1457         take two arguments.
1459 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
1461         * ldlang.c (entry_section): New initialised variable.
1462         (lang_finish): Use it.
1463         * ldlang.h (entry_section): Declare.
1464         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1465         entry_section to ".opd".
1467 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
1469         * ld.texinfo (Options): Add back in -nostdlib documentation,
1470         which had been inadvertently removed.
1472 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
1474         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1475         register section vma to a sane value after emitting error.  Make
1476         fatal conditions cause program exit when emitting message.
1478 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
1480         * configure.tgt: Add or32-*-rtems target.
1482 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1484         Contribute sh64-elf.
1485         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1486         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1487         in OTHER_RELOCATABLE_SECTIONS.
1488         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1489         * emulparams/shelf32.sh (STACK_ADDR): Define.
1490         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1491         (OTHER_SECTIONS): this.  Removed stack settings.
1492         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1493         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1494         2001-03-12  DJ Delorie  <dj@redhat.com>
1495         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1496         relaxing if any shmedia or mixed sections are found.
1497         2001-03-07  DJ Delorie  <dj@redhat.com>
1498         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1499         einfo.  Gracefully decline to output to non-elf formats.
1500         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
1501         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1502         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1503         * emulparams/shelf32.sh: Ditto.
1504         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
1505         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1506         comment.
1507         2001-01-10  Ben Elliston  <bje@redhat.com>
1508         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1509         non-portable shell constructs. From Hans-Peter Nilsson.
1510         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
1511         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1512         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1513         dependencies to the shell script include chain.
1514         * Makefile.in: Regenerate.
1515         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
1516         * emultempl/sh64elf.em: Update and tweak comments.
1517         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1518         make a .cranges section SEC_IN_MEMORY.
1519         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1520         * emultempl/sh64elf.em
1521         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1522         .cranges section found to be necessary; continue and set stored
1523         section contents flags for sections with non-mixed contents.
1524         Use a struct sh64_section_data container and sh64_elf_section_data
1525         to store contents-type flags.
1526         Remove unused update of "isec".
1527         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1528         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
1529         access contents-type flags.  Assert that the associated container
1530         is initialized.  Use that container, not elf_gp_size, to hold size
1531         of linker-generated cranges contents.
1532         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1533         * emultempl/sh64elf.em
1534         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1535         there's already a .cranges section.  When section flag difference
1536         is found, don't NULL-check cranges a second time.  Tweak comments.
1537         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1538         merging, not max size, as size of ld-generated .cranges contents.
1539         Don't set ELF section flags in output section.  When checking for
1540         needed .cranges descriptors, don't use a variable; compare
1541         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
1542         comments.
1543         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1544         * emultempl/sh64elf.em: New file.
1545         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1546         * Makefile.in: Regenerate.
1547         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1548         (OTHER_RELOCATING_SECTIONS): Ditto.
1549         (EXTRA_EM_FILE): New, set to sh64elf if not set.
1550         * emulparams/shlelf32.sh: Stub out all settings except
1551         OUTPUT_FORMAT.  Source shelf32.sh.
1552         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1553         OTHER_RELOCATING_SECTIONS.
1554         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1555         * emulparams/shlelf64.sh: Stub out all settings except
1556         OUTPUT_FORMAT.  Source shelf64.sh.
1557         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
1558         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1559         .cranges section.
1560         (DATA_START_SYMBOLS): Define, provide ___data.
1561         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1562         for consecutive .data section.
1563         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1564         section after .data section.
1565         * emulparams/shlelf64.sh: Ditto.
1566         * emulparams/shelf32.sh: Ditto.
1567         (ALIGNMENT): Define to 8.
1568         * emulparams/shelf32.sh: Ditto.
1569         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
1570         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1571         built-in linker scripts.
1572         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1573         * emulparams/shlelf64.sh: New.
1574         * emulparams/shelf64.sh: New.
1575         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1576         targ_extra_emuls.
1577         * Makefile.am: Add support for shlelf64 and shelf64.
1578         * Makefile.in: Regenerate.
1579         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
1580         * configure.tgt (sh64-*-elf*): Add shelf as default.
1581         Add shlelf to targ_extra_emuls.
1582         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
1583         * emulparams/shelf32.sh: New file.
1584         * emulparams/shlelf32.sh: New file.
1585         * Makefile.am: Add support for shlelf32 and shelf32.
1586         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1587         * Makefile.in: Regenerate.
1589 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
1591         * ldlang.c (lang_reset_memory_regions): Rename from
1592         reset_memory_regions.  Change all callers.  Make public.
1593         * ldlang.h (lang_reset_memory_regions): Prototype.
1594         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1595         lang_reset_memory_regions before lang_size_sections.
1596         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1597         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1599 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
1601         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1602         arithmetic when checking for too many global registers.
1604 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
1606         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1607         (ehppanbsd.c): New rule.
1608         * Makefile.in: Regenerate.
1609         * configure.tgt (hppa*-*-netbsd*): New target.
1610         * emulparams/hppalinux.sh: Add comment to check other files
1611         that source this file it is modified, and list which
1612         files that do.
1613         * emulparams/hppanbsd.sh: New file.
1615 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
1617         * scripttempl/xstormy16.sc: Don't allocate extra space for the
1618         stack.
1620 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
1622         Support on-demand global register allocation from
1623         R_MMIX_BASE_PLUS_OFFSET relocs.
1624         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1625         mmix_set_reg_section_vma.  Call
1626         _bfd_mmix_finalize_linker_allocated_gregs.
1627         (mmix_before_allocation): New function.
1628         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1629         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1630         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1631         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1632         before .MMIX.reg_contents.
1633         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1634         (mmo_after_open): New function.
1635         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1636         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
1637         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1639 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
1641         * emulparams/or32.sh: New file.
1642         * emulparams/or32elf.sh: New file.
1643         * scripttempl/or32.sc: New file.
1644         * configure.tgt : Add support for or32.
1645         * configure: Regenerate
1646         * Makefile.am: Add support for or32.
1647         * Makefile.in: Regenerate.
1648         * NEWS: Mention support for or32.
1649         * po/ld.pot: Regenerate.
1651 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
1652             Mitch Lichtenberg  <mpl@broadcom.com>
1654         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1655         * emultempl/mipself.em: New file to handle MIPS ELF embedded
1656         reloc creation (ld --embedded-relocs).
1658 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
1660         * configure: Regenerated.
1662 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
1664         * Makefile.am (install): Depend on install-info.
1665         * Makefile.in: Regenerate.
1667 2002-01-26  Christian Rose  <menthos@menthos.com>
1669         * ldmain.c (main): Use full sentences to ease translation.
1671 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
1673         * po/fr.po: Updated version.
1675 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
1677         * po/es.po: Updated version.
1679 2002-01-25  Andreas Jaeger  <aj@suse.de>
1681         * ldlex.l (yy_input): Correct error check.
1683 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
1685         * ldmisc.c (demangle): Put back dots when string not demangled.
1687 2002-01-22  Richard Henderson  <rth@redhat.com>
1689         * emulparams/elf64alpha.sh (NOP): Use unop.
1691 2002-01-21  Andreas Jaeger  <aj@suse.de>
1693         * ldlex.l: Use fread instead of read.
1695 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
1697         * configure.tgt (ia64-*-netbsd*): New target.
1699 2002-01-21  H.J. Lu <hjl@gnu.org>
1701         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1702         0.
1703         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1705 2002-01-18  Andreas Jaeger  <aj@suse.de>
1707         * ldver.c (ldversion): Update year.
1709 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
1711         * po/ld.pot: Regenerate.
1713 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
1715         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1716         * Makefile.in: Regenerate.
1717         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1718         * emultempl/ppc64elf.em: New file.
1720 2002-01-15  DJ Delorie  <dj@redhat.com>
1722         * scripttempl/pe.sc: Add support for constructor priorities.
1724 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1726         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1727         * emulparams/avr23xx.sh: Likewise.
1728         * emulparams/avr4433.sh: Likewise.
1729         * emulparams/avr44x4.sh: Likewise.
1730         * emulparams/avr85xx.sh: Likewise.
1731         * emulparams/avrmega103.sh: Likewise.
1732         * emulparams/avrmega161.sh: Likewise.
1733         * emulparams/avrmega603.sh: Likewise.
1734         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1736 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
1738         * ldlang.c (walk_wild_section): Exclude object file if enclosing
1739         archive is excluded.
1741 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
1743         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1744         (eshelf_nbsd.c): New rule.
1745         (eshlelf_nbsd.c): New rule.
1746         * Makefile.in: Regenerate.
1747         * configure.tgt (sh*le-*-netbsdelf*): New target.
1748         (sh*-*-netbsdelf*): New target.
1749         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1750         * ld/emulparams/shelf_nbsd.sh: New emulation.
1751         * ld/emulparams/shlelf_nbsd.sh: New emulation.
1753 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
1755         * po/es.po: New file: Spanish translation.
1756         * configure.in (ALL_LINGUAS): Add es.
1757         * configure: Regenerate.
1759 2002-01-06  John Marshall  <jmarshall@acm.org>
1761         * ld.texinfo: Note that --emit-relocs is currently only
1762         implemented for ELF.
1764 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
1766         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1767         of bfd_section_list_remove and bfd_section_list_insert macros.
1768         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1769         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1771 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1773         * configure.tgt (x86_64-*-netbsd*): New target.
1775 2001-12-21  Tom Rix  <trix@redhat.com>
1777         (gld*_create_output_section_statements): New function.
1778         For -binitfini support.
1779         * emultempl/aix.em (gld*_before_parse): Fix comment.
1780         * emultempl/aix.em (gld*_parse_args): Fix comment.
1782 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
1784         * configure.tgt (mips*-dec-netbsd*): Delete alias for
1785         mips*el-*-netbsd*.
1786         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1788         * configure.tgt (arm-*-netbsdelf*): Add target.
1789         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1790         * emulparams/armelf_nbsd.sh: Added.
1791         * Makefile.am: Add rules for earmelf_nbsd.
1792         * Makefile.in: Regenerate.
1794 2001-12-19  Andreas Jaeger  <aj@suse.de>,
1795             Susanne Oberhauser <froh@suse.de>
1797         * configure.host: Add rules for x86_64-*linux-gnu.  Change
1798         s390x-linux entry to use gcc to report configuration, replace gcc
1799         with $CC in s390-linux
1801 2001-12-19  Andreas Jaeger  <aj@suse.de>
1803         * ld.texinfo (VERSION): Fix markup.
1805 2001-12-18  matthew green  <mrg@eterna.com.au>
1807         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1808         (m68kelfnbsd.c): New rule.
1809         * Makefile.in: Regenerate.
1810         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1811         (m68*-*-netbsd*4k*): .. this.
1812         (m68*-*-netbsdelf*): New target.
1813         (m68*-*-netbsd*): Also include ELF support.
1814         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1815         * emulparams/m68kelfnbsd.sh: New emulation.
1817 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1819         * ldgram.y (vers_node): Support anonymous version tags.
1820         * ldlang.c (lang_register_vers_node): Ensure anonymous version
1821         tag is not defined together with non-anonymous versions.
1822         * ld.texinfo: Document it.
1824 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
1826         * po/tr.po: New file: Turkish translation.
1827         * configure.in (ALL_LINGUAS): Add tr.
1828         * configure: Regenerate.
1830 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
1832         * Makefile.am: Add rules for eelf64alpha_nbsd.
1833         * Makefile.in: Regenerate.
1834         * configure.tgt (alpha*-*-netbsd*): Set
1835         targ_emul to elf64alpha_nbsd.
1836         * emulparams/elf64alpha_nbsd.sh: Added.
1838 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
1840         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1841         section_tail when fiddling with section list.
1842         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1843         broken into separate strings to make translation easier.
1844         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1845         fiddling with section list.
1846         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1848 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
1850         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1852 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
1854         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1856 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
1858         * emultempl/elf32.em (finish): Supply output_bfd
1859         to bfd_elf*_discard_info.
1860         (OPTION_EH_FRAME_HDR): Define.
1861         (longopts): Add --eh-frame-hdr.
1862         (parse_args): Handle it.
1863         (list_options): Add --eh-frame-hdr to help.
1864         * emultempl/hppaelf.em (finish): Supply output_bfd
1865         to bfd_elf*_discard_info.
1866         * scripttempl/elf.sc (.eh_frame_hdr): Add.
1868 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
1870         * lexsup.c (parse_args): Don't pass shortopts to second call to
1871         getopt functions.  Restore optind rather than decrementing before
1872         second call.  Remove errind as it now duplicates last_optind.
1874 2001-12-11  Christopher Faylor  <cgf@redhat.com>
1876         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1878 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
1879             Richard Henderson  <rth@redhat.com>
1881         * Makefile.am: Add support for xstormy16.
1882         * configure.tgt: Add support for xstormy16.
1883         * Makefile.in: Regenerate.
1884         * emulparams/elf32xstormy16.sh: New file.
1885         * scripttempl/xstormy16.sc: New file.
1887 2001-10-01  Christopher Faylor <cgf@cygnus.com>
1889         * Makefile.in (LIB_PATH): Make configurable.
1890         (GENSCRIPTS): Set LIB_PATH in environment.
1891         * configure.in: Substitute LIB_PATH.
1892         * configure: Regenerate.
1893         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1894         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1896 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
1898         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1899         describing the -N option so that it is easier to translate into
1900         foreign languages.
1902 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
1904         * emultempl/pe.em (..._list_options): Replace multiple fprintf
1905         statements describing a single option with a single, newline
1906         escaped fprintf.  This allows better translation into other
1907         languages.
1909         * ldmain.c (add_archive_element): Combine multiple strings
1910         into a single string to permit better translation into other
1911         languages.
1913 2001-12-05  Tom Rix  <trix@redhat.com>
1915         * Makefile.am: Remove eaixppc64.
1916         * Makefile.in: Regenerate.
1918 2001-12-04  Tom Rix  <trix@redhat.com>
1920         * emultempl/aix.em (choose_target): Change default target to
1921         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
1922         warning.
1923         (gld*_read_file):  Fix typo.
1924         (change_symbol_mode): Add prototype.
1925         (is_syscall): Same.
1927         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1928         * emulparams/aixrs6.sh : Same.
1929         * emulparams/ppcmacos.sh : Same.
1930         * emulparams/aixppc64.sh : Delete file.
1931         * emultempl/aix.em : Formatting changes.
1933 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
1935         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1936         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1937         __Sbss.
1938         (OTHER_END_SYMBOLS): Fix formatting.
1939         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1940         (OTHER_END_SYMBOLS): Fix formatting.
1942 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
1944         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1946 2001-12-02  Tom Rix  <trix@redhat.com>
1948         * configure.tgt : Remove eaixppc64 emulations.
1949         * Makefile.in : Remove eaixppc64.c
1950         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1951         (ldemul_default_target): Same.
1952         * emultempl/gld960.em (gld960_choose_target):  Same.
1953         * emultempl/gld960c.em (gld960_choose_target):  Same.
1954         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1955         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1956         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1957         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1958         * emultempl/aix.em (choose_target): New function.  Handle emulation of
1959         -b32 and -b64.
1961 2001-11-27  H.J. Lu <hjl@gnu.org>
1963         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1964         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1965         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1966         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1967         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1968         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1969         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1970         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1972         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1973         is not empty.
1974         (SDATA): Likewise.
1975         (REL_SDATA): Likewise.
1976         (REL_SBSS): Likewise.
1977         (REL_SDATA2): Likewise.
1978         (REL_SBSS2): Likewise.
1979         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1980         (SDATA2): Likewise.
1982 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1984         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1985         destructor in rom.
1986         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1988 2001-11-22  H.J. Lu  <hjl@gnu.org>
1990         * Makefile.in: Regenerated with automake based on automake
1991         1.4-8 in RedHat 7.1.
1993 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
1995         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1996         (config.status): Delete rule.
1997         Add extra dependencies to cover sourced emulparams files.
1998         * Makefile.in: Regenerate.
2000         * scripttempl/elf.sc: Order <section>, <section>.* and
2001         corresponding linkonce sections as seen in input files.
2002         Formatting fixes.  Zero vma of all sections if not relocating.
2003         (STACK): Define and insert if STACK_ADDR defined.
2004         (OTHER_RELOCATING_SECTIONS): Delete.
2005         (OTHER_END_SYMBOLS): Define.
2006         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2007         (OTHER_READWRITE_SECTIONS): Likewise.
2008         (OTHER_GOT_SECTIONS): Likewise.
2009         (OTHER_SDATA_SECTIONS): Likewise.
2010         (OTHER_BSS_SECTIONS): Likewise.
2011         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2012         (OTHER_READWRITE_SECTIONS): Likewise.
2013         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2014         (OTHER_READWRITE_SECTIONS): Likewise
2016         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2017         (STACK_ADDR): Define.
2018         * emulparams/armelf_oabi.sh: As for armelf.sh.
2019         * emulparams/elf32mcore.sh: As for armelf.sh.
2020         * emulparams/h8300elf.sh: As for armelf.sh.
2021         * emulparams/mn10200.sh: As for armelf.sh.
2022         * emulparams/shelf.sh: As for armelf.sh.
2024         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2025         (OTHER_END_SYMBOLS): Define.
2026         * emulparams/m32relf.sh: As for elf32fr30.sh.
2027         * emulparams/h8300helf.sh: As for elf32fr30.sh.
2028         * emulparams/h8300self.sh: As for elf32fr30.sh.
2030         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2031         defines with RELOCATING test.
2032         (OTHER_SDATA_SECTIONS): Likewise.
2033         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2034         (OTHER_END_SYMBOLS): ..this.
2035         * emulparams/crislinux.sh: As for criself.sh.
2037         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2038         if not relocating.
2039         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2040         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
2041         normal and linkonce sections as seen in input files.
2042         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2043         (TEXT_DYNAMIC): Likewise.
2044         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2045         (OTHER_SDATA_SECTIONS): Likewise.
2046         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2047         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2048         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2049         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2050         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2051         (OTHER_PLT_RELOC_SECTIONS): Likewise.
2052         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
2053         sections as seen in input files.
2054         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2055         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2056         if not relocating.
2057         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2058         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2059         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2060         (OTHER_SECTIONS): Instead, use this..
2061         (OTHER_END_SYMBOLS): ..and this.
2063         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2064         * emulparams/elf32bsmip.sh: Likewise.
2065         * emulparams/elf32btsmip.sh: Likewise.
2066         * emulparams/elf32ebmip.sh: Likewise.
2067         * emulparams/elf32lmip.sh: Likewise.
2068         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2069         * emulparams/elf32lsmip.sh: Likewise.
2070         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2071         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2072         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2073         * emulparams/elf64btsmip.sh: Likewise.
2074         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2075         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2076         * emulparams/elf32ppclinux.sh: Likewise.
2077         * emulparams/elf32ppcsim.sh: Likewise.
2078         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2079         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2080         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2081         * emulparams/h8300self.sh: Likewise.
2082         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2083         * emulparams/sh.sh: Comment.
2084         * emulparams/shl.sh: Source sh.sh, remove duplicates.
2085         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2086         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2088 2001-11-21  David Heine <dlheine@tensilica.com>
2089             Alan Modra  <amodra@bigpond.net.au>
2091         * ldlang.c (map_input_to_output_sections): Replace "break"
2092         accidentally removed with 2001-08-03 change.
2093         (lang_gc_sections_1): Likewise.
2095 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
2097         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2099 2001-11-20  Angela Marie Thomas <angela@redhat.com>
2101         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2102         of false when calling lang_size_sections.
2103         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2105 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
2107         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2108         function when LDEMUL_FINISH isn't set to the same name.  Don't
2109         call ${LDEMUL_FINISH}.
2110         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2111         * emultempl/armelf.em (arm_elf_finish): Call
2112         gld${EMULATION_NAME}_finish.
2113         * emultempl/hppaelf.em (hppaelf_finish): Rename to
2114         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
2115         hppaelf_layout_sections_again if necessary.
2116         (need_laying_out): New var.
2117         (hppaelf_layaout_sections_again): Rename to
2118         hppaelf_layout_sections_again.  Clear need_laying_out.
2119         (PARSE_AND_LIST_OPTIONS): Format text.
2121 2001-11-14  H.J. Lu  <hjl@gnu.org>
2123         * emultempl/armelf.em (arm_elf_finish): Renamed from
2124         gld${EMULATION_NAME}_finish.
2125         (LDEMUL_FINISH): Set to arm_elf_finish.
2127 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
2129         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2130         (struct ld_emulation_xfer_struct): Use it.
2132 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
2134         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2135         additional symbols referenced by newer crt0.o files from HP.
2137 2001-11-12  Anthony Green  <green@redhat.com>
2139         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2141 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
2143         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2144         * Makefile.in: Regenerate.
2146 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2148         * ld.texinfo: Use @command for commands, @option for options.
2149         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2150         the page man title.
2151         * Makefile.in: Rebuild.
2153 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
2155         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2156         Add support for targets.
2158 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
2160         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2161         * configure: Regernate.
2162         * po/fr.po: New file.
2163         * po/sv.po: New file.
2165 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
2167         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2168         as little endian default and to support big endian.
2170 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
2172         * ld.texinfo (Options): Document new option, -nostdlib.
2173         * lexsup.c (OPTION_NOSTDLIB): New definition.
2174         (ld_options): Add entry for "nostdlib".
2175         (parse_args): Handle OPTIONS_NOSTDLIB.
2176         * ldfile.c (ldfile_add_library_path): Don't add directories
2177         to the search path if they weren't specified on the command line
2178         and -nostdlib was specified.
2179         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2181 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
2183         * lexsup.c (parse_args): Prevent infinite parsing loop when
2184         "-rpath.a" is specified on the command line.
2185         Replace calls to fprintf with calls to einfo.
2187 2001-10-31  John Marshall  <jmarshall@acm.org>
2189         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2190         appear only once across all the linker scripts involved in a link
2191         invocation no longer applies.  Make the documentation reflect
2192         that.
2194 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
2196         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2197         targets.
2198         (sh-*-linux*): Added targ_extra_libpath.
2200 2001-10-31  David Heine  <dlheine@tensilica.com>
2202         * ldlang.c (lang_size_sections): Keep a valid output_offset field
2203         for padding statements.
2205 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
2207         * configure.tgt (mmix-*-*): New target.
2208         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2209         Add dependencies to match.
2210         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2211         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2212         scripttempl/mmo.sc: New files.
2213         * gen-doc.texi: @set MMIX.
2214         * ld.texinfo: Ditto.
2215         [MMIX] Add MMIX node.
2216         * Makefile.in: Regenerate.
2218 2001-10-29  Kazu Hirata  <kazu@hxi.com>
2220         * ldlang.c: Fix a comment typo.
2222 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
2224         * configure.host: Move alpha*-*-linux-gnu* entry to generic
2225         entries, and match *-*-linux*.
2227 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
2229         * ldgram.y (mri_script_command): Surround processing of INCLUDE
2230         with ldlex_script, ldlex_popstate.
2231         (ifile_p1): Likewise.
2232         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
2233         correct slot.
2234         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
2235         to 1.  Don't BEGIN(SCRIPT).
2236         (lex_redirect): Similarly.
2237         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2239 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
2241         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2242         __EH_FRAME_END__ and accept eh frames into data section.
2243         Add ctor and dtor sections.
2245 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2247         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2248         (auto-export): Fix indentation.
2250 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2252         * pe-dll.c (autofilter_objectlist):  Add startup objects
2253         for profiling.
2254         (auto-export): Constify char * p.
2255         Extract file basename and use strcmp rather than ststr
2256         for object lookup.
2258 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
2260         * ldmain.c (get_emulation): Improve comment about the handling
2261         of -mipsN options.
2263 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
2265         * po/POTFILES.in: Regenerate.
2267 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
2269         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2270         -z nocopyreloc and -z nocombreloc usage strings.
2272 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
2274         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2275         in usage.
2277 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
2279         * scripttempl/armaout.sc: Place .bss section after end of aligned
2280         data section to match behaviour of aout code in constructrion of
2281         header.
2283 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2285         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2286         startup files for mingw32 dlls to list.
2288 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
2290         * emultempl/elf32.em: Fix shell 'if' usage for portability.
2292 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
2294         * configure.tgt (targ): Add arm9e-*-elf.
2296 2001-10-05  H.J. Lu  <hjl@gnu.org>
2298         * genscripts.sh: Fix a typo in the last change.
2300 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
2302         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2303         -z nocombreloc in usage.
2305 2001-10-03  Jim Blandy  <jimb@redhat.com>
2307         * genscripts.sh: Include a comment at the top of each generated
2308         script, explaining its purpose.
2310 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
2312         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2313         * NEWS: Mention -z nocopyreloc.
2314         * ld.texinfo (Options): Describe nocopyreloc.
2316 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
2318         * configure: Regenerate.
2320 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
2322         * ldver.h (ld_program_version): Remove declaration.
2323         * lexsup.c (parse_args): Move printing of copyright message..
2324         * ldver.c (ldversion): .. to here.
2325         Use BFD_VERSION_STRING in place of BFD_VERSION.
2326         (ld_program_version): Remove.
2327         * Makefile.am (Makefile): Depend on bfd/configure.in.
2328         Run "make dep-am".
2329         * Makefile.in: Regenerate.
2331 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
2333         * Makefile.am: Update dependencies with "make dep-am".
2334         * Makefile.in: Regenerate.
2336 2001-09-29  John Reiser  <jreiser@BitWagon.com>
2338         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2339         * lexsup.c: Add --no-define-common commandline option.
2340         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2341         * ldlex.l: Likewise.
2342         * ld.h: Add command_line.inhibit_common_definition.
2343         * ldmain.c (main): Initialize.
2344         * ld.texinfo: Document.
2346 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
2348         * ldlang.c (section_already_linked): Remove assignment to kept_section.
2350 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
2352         * ldmisc.c (USE_STDARG): Remove.
2353         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2354         (einfo): Likewise.
2355         (minfo): Likewise.
2356         (lfinfo): Likewise.
2358         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2359         declarations.  Update copyright.
2361 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2363         * pe-dll.c: Remove obsoleted declaration of
2364         pe_get_data_import_dll_name.
2365         (pe_create_import_fixup): Fix thinko.
2367         * ld.texinfo(enable-auto-import): Clarify the explanation.
2369 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
2371         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2372         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2373         DLL_SUPPORT controlled code.
2375 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2377         * emultempl/pe.em(pe_data_import_dll): Make static.
2378         (pe_get_data_import_dll_name): New accessor function.
2379         * pe-dll.c(pe_create_import_fixup): call
2380         pe_get_data_import_dll_name() from pe.em, instead of
2381         directly accessing pe_data_import_dll variable from pe.em.
2383 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
2385         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2386         (def_file_add_directive): Use ISSPACE instead of isspace.
2387         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2388         isdigit/isxdigit/isalpha/isalnum.
2389         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2390         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2391         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2392         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2393         isalnum.
2394         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2395         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2396         isupper/tolower.
2397         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2398         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2399         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2400         (ctor_prio): Use ISDIGIT instead of isdigit.
2401         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2402         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2403         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2404         isupper/tolower.
2405         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2406         (stricpy): Use TOLOWER instead of isupper/tolower.
2407         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2408         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2409         (lex_warn_invalid): Use ISPRINT instead of isprint.
2410         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2411         (main): For gettext, also set the LC_CTYPE locate facet.
2412         (add_keepsyms_file): Use ISSPACE instead of isspace.
2413         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2414         (is_num, parse_args): Use ISDIGIT instead of isdigit.
2415         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2416         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2417         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2418         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2419         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2420         (quoteput): Use ISSPACE instead of isspace.
2421         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2422         instead of isalnum.
2424 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
2426         * deffilep.y (def_stash_module): Constify "name" param.
2428         * pe-dll.c: Replace CONST with const throughout.
2429         (quick_symbol): Constify "n1", "n2", "n3" params.
2430         (make_singleton_name_thunk): Constify "import" param.  Make
2431         "buffer_len" a size_t.
2432         (make_import_fixup_entry): Constify "name", "fixup_name",
2433         "dll_symname" params.
2434         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
2435         (pe_get32): Likewise.
2436         (pe_implied_import_dll): Likewise.
2438         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2439         (sort_by_section_name): Likewise.
2441         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2442         (make_import_fixup): Cast printf arg, rel->address to long rather
2443         than int.
2444         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2446 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
2448         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2449         defines BufferSize.  Increase buffer size by one.
2451 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
2453         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2455 2001-09-14  Kevin Lo <kevlo@openbsd.org>
2457         * configure.tgt: Add arm-openbsd target.
2459 2001-09-12  H.J. Lu  <hjl@gnu.org>
2461         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2462         eelf64lppc.o to ...
2463         (ALL_64_EMULATIONS): Here.
2464         * Makefile.in: Regenerated.
2466 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2468         * emultempl/pe.em(make_import_fixup): change signature to
2469         take asection as well as arelec; we need this for proper
2470         error reporting.  Only call pe_create_import_fixup() if
2471         there is no attempt to add a constant addend to the reloc;
2472         otherwise, report error condition.
2473         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2474         since final argument is a pointer to make_import_fixup().
2475         Change call to cb() to match make_import_fixup() signature.
2476         (make_import_fixup_mark): make buffer_len unsigned.
2477         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2479 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
2481         * ld.texinfo: add verbose documentation for auto-import
2482         direct-addressing workaround, to compliment the terse
2483         error message.
2485 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
2487         * scripttempl/v850.sc: Add gcc_except_table sections.
2489 2001-09-11  Jeffrey A Law  (law@cygnus.com)
2491         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2492         * emulparams/h8300self.sh: Similarly.
2494 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2496         * ld.texinfo (Options, --stack): Correct default value for stack
2497         reserve.
2499 2001-09-05  Tom Rix <trix@redhat.com>
2501         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2503 2001-09-03  Andreas Jaeger  <aj@suse.de>
2505         * emultempl/beos.em: Declare prototypes for comparions functions,
2506         adjust definitions.
2508 2001-09-02  Andreas Jaeger  <aj@suse.de>
2510         * emultempl/aix.em: Add missing prototype.
2511         * emultempl/lnk960.em: Likewise.
2512         * emultempl/vanilla.em: Likewise.
2513         * emultempl/armcoff.em: Likewise.
2514         * emultempl/armelf_oabi.em: Likewise.
2515         * emultempl/beos.em: Likewise.
2516         * emultempl/gld960c.em: Likewise.
2517         * emultempl/gld960.em: Likewise.
2519         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2520         for prototype declaration.
2522 2001-08-31  Eric Christopher  <echristo@redhat.com>
2523             Jason Eckhardt  <jle@redhat.com>
2525         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2527 2001-08-31  Andreas Jaeger  <aj@suse.de>
2529         * emultempl/pe.em: Add missing prototypes.
2530         (gld_${EMULATION_NAME}_after_open): Remove extra args to
2531         pe_find_data_imports.
2532         (pr_sym): Add unused attribute.
2534 2001-08-29  Joel Sherrill <joel@OARcorp.com>
2536         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2537         default from coff to elf.
2539 2001-08-29  Jeff Law <law@redhat.com>
2541         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
2542         ARCH specification.
2543         * emulparams/h8300self.sh: Similarly.
2545 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
2547         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2548         eh8300self.o .
2549         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2550         * configure.tgt (h8300-*-elf*): New case.
2551         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2552         * emulparams/h8300self.sh: New file.
2553         * Makefile.in: Regenerated.
2555 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
2557         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2558         with macro name.
2560 2001-08-27  Linus Nordberg  <linus@swox.com>
2561             Alan Modra  <amodra@bigpond.net.au>
2563         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2564         (eelf64ppc.c, eelf64lppc.c): Add make targets.
2565         Run "make dep-am"
2566         * Makefile.in: Regenerate.
2567         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
2568         entries to correct alphabetical position.
2569         * emulparams/elf64ppc.sh: New.
2570         * emulparams/elf64lppc.sh: New.
2572 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
2574         * ldmain.c (main): Declare BSIZE as static.
2576 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2578         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2579         into .rel.dyn resp. .rela.dyn if combreloc.
2580         (get_script): If .x linker script is equal to .xn, only put it
2581         once into the binary.
2582         Add .xc and .xsc scripts.
2583         (parse_args): Handle -z combreloc and -z nocombreloc.
2584         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2585         For .xc and .xsc scripts put all .rel* or .rela* input sections
2586         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2587         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2588         is elf.
2589         Strip trailing whitespace from script.
2590         Generate .xc and .xsc scripts if requested.
2591         * ldmain.c (main): Initialize link_info.combreloc and
2592         link_info.spare_dynamic_tags.
2593         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2594         (ld_options): Add --spare-dynamic-tags option.
2595         (parse_args): Likewise.
2596         * ld.texinfo: Document -z combreloc and -z nocombreloc.
2597         * ldint.texinfo: Document .xc and .xsc linker scripts.
2598         * NEWS: Add notes about -z combreloc and SHF_MERGE.
2600 2001-08-22  H.J. Lu  <hjl@gnu.org>
2602         * emulparams/elf32fr30.sh: Add a newline.
2604 2001-08-21  Andreas Jaeger  <aj@suse.de>
2606         * deffilep.y: Add missing prototypes.
2607         * pe-dll.c: Likewise.
2609 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
2611         * ldlang.c (insert_pad): Fix typos in last patch.
2613         * ldlang.c: When traversing lang_statement_union_type lists,
2614         consistently use "header.next" rather than "next".
2615         * mpw-eppcmac.c: Likewise.
2616         * emultempl/beos.em: Likewise.
2617         * emultempl/hppaelf.em: Likewise.
2618         * emultempl/pe.em: Likewise.
2619         * ldlang.h (union lang_statement_union): Remove "next" field.
2621         * ldlang.c (insert_pad): Use offsetof macro.
2622         (lang_size_sections): Always neuter padding statements.
2623         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2625         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2626         passed to lang_size_sections.
2627         (pe_exe_fill_sections): Likewise.
2628         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2629         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2631 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2633         * emultempl/aix.em: Formatting fixes.
2635 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2637         * ldlang.c (insert_pad): Make use of an existing pad statement if
2638         available.  Move code calculating alignment, adjusting section
2639         alignment power, and adjusting dot to ..
2640         (size_input_section): .. here.  Remove unused relax param.
2641         (lang_size_sections): Change boolean `relax' param to boolean *.
2642         Adjust call to size_input_section.  Make use of insert_pad to
2643         place pad after the assignment statement.  If relaxing, zap
2644         padding statements.
2645         (reset_memory_regions): Reset output_bfd section sizes too.
2646         (relax_again): Move to..
2647         (lang_process): ..here.  Adjust call to lang_size_sections, and
2648         remove duplicated code.
2649         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2651 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
2653         * ld.texinfo: Document that fill values now use the four least
2654         significant bytes.
2655         * emulparams/elf32fr30.sh (NOP): Update.
2656         * emulparams/elf32mcore.sh: Likewise.
2657         * emulparams/elf64_s390.sh: Likewise.
2658         * emulparams/elf_i386.sh: Likewise.
2659         * emulparams/elf_i386_be.sh: Likewise.
2660         * emulparams/elf_i386_chaos.sh: Likewise.
2661         * emulparams/elf_i386_ldso.sh: Likewise.
2662         * emulparams/elf_s390.sh: Likewise.
2663         * emulparams/elf_x86_64.sh: Likewise.
2664         * emulparams/i386moss.sh: Likewise.
2665         * emulparams/i386nw.sh: Likewise.
2666         * emulparams/m68kelf.sh: Likewise.
2667         * scripttempl/elf.sc: Update NOP comment.
2668         * scripttempl/elfi370.sc: Likewise.
2669         * scripttempl/elfm68hc11.sc: Likewise.
2670         * scripttempl/elfm68hc12.sc: Likewise.
2671         * scripttempl/nw.sc: Likewise.
2673 2001-08-15  Tom Rix <trix@redhat.com>
2675         * ldgram.y (saved_script_handle): Initialize to NULL.
2676         * ldmain.c (main): Change check on saved_script_handle.
2678 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
2680         * emultempl/elf32.em: Formatting fixes.
2681         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
2682         looking at sec->owner.
2683         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2684         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
2685         unused code, and reorganize orphan section placement code.
2687         * ldlang.c (wild_doit): Rename to lang_add_section.
2688         * ldlang.h: Here too.
2689         * mpw-elfmips.c: And here.
2690         * emultempl/beos.em: And here.
2691         * emultempl/elf32.em: And here.
2692         * emultempl/hppaelf.em: And here.
2693         * emultempl/pe.em: And here.
2695 2001-08-13  Richard Henderson  <rth@redhat.com>
2697         * emultempl/needrelax.em: New file.
2698         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2699         * Makefile.am (eelf64_ia64.c): Depend on it.
2700         * Makefile.in: Rebuild.
2702 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
2704         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2705         output_section is set non-NULL.
2707         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2708         `true' for SEC_EXCLUDE sections so that the generic code doesn't
2709         needlessly create an output_section_statement.  Treat a correctly
2710         named output_section_statement with NULL bfd_section as compatible.
2712 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
2714         * emultempl/generic.em: Support EXTRA_EM_FILE.
2715         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2716         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2717         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2718         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2719         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2720         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2721         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2722         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2723         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2724         LDEMUL_FIND_POTENTIAL_LIBRARIES.
2726 2001-08-12  Richard Henderson  <rth@redhat.com>
2728         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2729         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2730         scripttempl/v850.sc: Keep .jcr data.
2732 2001-08-12  H.J. Lu  <hjl@gnu.org>
2733             Andrew Haley  <aph@cambridge.redhat.com>
2734             Nick Clifton  <nickc@redhat.com>
2736         * ldgram.y (had_script): Change name to saved_script_handle.
2737         Change type to file handle.
2738         * ld.h (had_script): Rename and retype.
2739         * ldfile.c (ldfile_open_command_file): Save the file handle
2740         used in saved_script_handle.
2741         * lexsup.c (parse_args): Do not allow -c option to alter
2742         saved_script_handle.
2743         * ldmain.c (main): Print out the linker script used if
2744         --verbose is given.  Check saved_script_handle to obtain the
2745         external linker script used, or if NULL, dump the builtin
2746         script.
2747         * ld.texinfo: Document that --verbose now dumps the linker
2748         script used, regardless of whether it was an internal or an
2749         external script.
2751 2001-08-10  Andreas Jaeger  <aj@suse.de>
2753         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2754         to build warnings.
2755         * configure: Regenerate.
2757 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
2759         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2761         * scripttempl/elf.sc: Move non-text .dynamic section before
2762         .plt/.got/.sdata* group.
2763         (OTHER_GOT_SECTIONS): Move to immediately after .got.
2764         (OTHER_SDATA_SECTIONS): Add.
2765         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2766         OTHER_GOT_SECTIONS.
2767         * emulparams/crislinux.sh: Likewise.
2768         * emulparams/elf32b4300.sh: Likewise.
2769         * emulparams/elf32bmip.sh: Likewise.
2770         * emulparams/elf32bmipn32.sh: Likewise.
2771         * emulparams/elf32bsmip.sh: Likewise.
2772         * emulparams/elf32btsmip.sh: Likewise.
2773         * emulparams/elf32ebmip.sh: Likewise.
2774         * emulparams/elf32elmip.sh: Likewise.
2775         * emulparams/elf32l4300.sh: Likewise.
2776         * emulparams/elf32lmip.sh: Likewise.
2777         * emulparams/elf32lsmip.sh: Likewise.
2778         * emulparams/elf32ltsmip.sh: Likewise.
2779         * emulparams/elf64bmip.sh: Likewise.
2780         * emulparams/elf64btsmip.sh: Likewise.
2781         * emulparams/elf64ltsmip.sh: Likewise.
2783 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
2785         * genscripts.sh: Source the emulparams script before each output
2786         script is generated so that variables like `RELOCATING' may affect
2787         variables defined in the emulparams script.
2789 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
2791         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2792         order.
2794         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2795         ie. iterate over wild_statement.section_list.
2796         (gld${EMULATION_NAME}_place_orphan): Likewise.
2798 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2800         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2801         .fini[0-4] sections used by _exit
2802         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2803         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2804         * scripttempl/elfm68hc11.sc: Likewise.
2806 2001-08-03  H.J. Lu  <hjl@gnu.org>
2808         * emultempl/beos.em (init): Add the missing initialization.
2810 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
2812         * ld.texinfo (Input Section Basics): Clarify ordering of output
2813         sections.
2814         * ldlang.c (callback_t): Add wildcard_list param.
2815         (walk_wild_section): Remove "section" param.  Rewrite for
2816         lang_wild_statement_type change.  Remove unique_section_p test.
2817         (walk_wild_file): Remove "section" param.
2818         (walk_wild): Remove "section" and "file" params.
2819         (lang_gc_wild): Likewise.
2820         (wild): Likewise.  Modify for lang_wild_statement_type change.
2821         (wild_sort): Likewise.  Add "sec" param.
2822         (gc_section_callback): Likewise.
2823         (output_section_callback): Likewise.  Do unique_section_p test.
2824         (map_input_to_output_sections): Modify call to wild.
2825         (lang_gc_sections_1): Likewise.
2826         (print_wild_statement): Modify for lang_wild_statement_type
2827         change.
2828         (lang_add_wild): Replace filename, filenames_sorted param with
2829         filespec.  Replace section_name, sections_sorted,
2830         exclude_filename_list with section_list.
2831         * ldlang.h (lang_add_wild): Here too.
2832         (lang_wild_statement_type): Replace section_name, sections_sorted,
2833         and exclude_filename_list with section_list.
2834         * ldgram.y (current_file): Delete.
2835         (%union): Add wildcard_list.
2836         (file_NAME_list): Set type to wildcard_list.  Build a linked list
2837         rather than calling lang_add_wild for each entry.
2838         (input_section_spec_no_keep): Call lang_add_wild here instead.
2839         * ld.h (struct wildcard_list): Declare.
2840         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2842 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2844         * ldmain.c (main): initialize link_info.pei386_auto_import
2845         * pe-dll.c: new tables for auto-export filtering
2846         (auto_export): change API, pass abfd for contextual filtering.
2847         Loop thru tables of excluded symbols instead of comparing
2848         "by hand".
2850 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
2852         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2853         static variable current_sec (static struct sec *). Add
2854         forward declaration for add_bfd_to_link.
2855         (process_def_file): Don't export undefined symbols. Do not
2856         export symbols starting with  "_imp__".  Call auto_export()
2857         with new API.
2858         (pe_walk_relocs_of_symbol): New function.
2859         (generate_reloc): add optional extra debugging
2860         (pe_dll_generate_def_file): eliminate extraneous initial blank
2861         line in output
2862         (make_one): enlarge symtab to make room for __nm__ symbols
2863         (DATA auto-import support).
2864         (make_singleton_name_thunk): New function.
2865         (make_import_fixup_mark): New function.
2866         (make_import_fixup_entry): New function.
2867         (pe_create_import_fixup): New function.
2868         (add_bfd_to_link): Specify that 'name' argument is a CONST
2869         char *.
2870         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2871         declare new functions pe_walk_relocs_of_symbol and
2872         pe_create_import_fixup.
2873         * emultempl/pe.em: add new options --enable-auto-import,
2874         --disable-auto-import, and --enable-extra-pe-debug.
2875         (make_import_fixup): New function.
2876         (pe_find_data_imports): New function.
2877         (pr_sym): New function.
2878         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2879         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
2880         CODE.
2882 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2884         * ld.texinfo: add additional documentation for
2885         --export-all-symbols.  Document --out-implib,
2886         --enable-auto-image-base, --disable-auto-image-base,
2887         --dll-search-prefix, --enable-auto-import, and
2888         --disable-auto-import.
2889         * ldint.texinfo: Add detailed documentation on auto-import
2890         implementation.
2892 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
2894         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2895         example.
2897 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
2899         * Makefile.am: Update dependencies with "make dep-am".
2900         * Makefile.in: Regenerate
2902 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
2904         * ldcref.c (check_section_sym_xref): New function.
2905         (check_nocrossrefs): Call it.
2906         (check_nocrossref): Interate over h->refs here instead of..
2907         (check_refs): ..here.  Pass in the symbol name, section, and bfd
2908         rather than hash_entry pointers.
2909         (struct check_refs_info): Keep symbol name rather than hash entry.
2910         Remove "same".
2911         (check_reloc_refs): Tweak for above changes in check_refs_info.
2912         Only report references to section syms when symname is NULL to
2913         prevent duplicate messages for the same reloc.
2915 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2917         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2918         available.  Do not print NULL trees.
2919         (exp_print_token): Print unknown tokens with values > 126 as
2920         decimal values not ASCII characters.
2922         * ldlang.c (lang_leave_overlay): If a region is specified assign
2923         it to all sections inside the overlay unless they have been
2924         assigned to the own, non-default, memory region.
2926         * README: Add header for consistency with other README files.
2928 2001-07-14  H.J. Lu  <hjl@gnu.org>
2930         * emultempl/elf32.em (output_prev_sec_find): Never return
2931         bfd_abs_section_ptr, bfd_com_section_ptr nor
2932         bfd_und_section_ptr.
2934 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
2936         * Makefile.am (em32relf.c): Change dependency from generic.em to
2937         elf32.em.
2938         * Makefile.in: Regenerate.
2940 2001-07-14  matthew green  <mrg@eterna.com.au>
2942         * configure.tgt (i386-*-netbsdelf*): New target.
2943         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2945 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
2947         * emultempl/elf32.em (output_prev_sec_find): New.
2948         (place_orphan): Use it.
2950 2001-07-11  H.J. Lu  <hjl@gnu.org>
2952         * ldmain.c (main): Fix typos in the last change.
2954 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
2956         * ldmain.c (main): Disallow -F and -f without -shared.
2958 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
2960         * emultempl/pe.em (after_open): Check for the output_bfd not
2961         having any coff_data structure allocated to it.
2963 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
2965         * emultempl/elf32.em: Do not assuming that contents of the buffer
2966         returned from basename function will remain unchanged accross other
2967         function calls.
2969 2001-07-03  H.J. Lu  <hjl@gnu.org>
2971         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2972         2001-07-03. It creates dynamic entries even for static binaries.
2974 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
2976         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2977         (DYNAMIC): Use it to reserve few dynamic entries for
2978         post-linking tools.
2980 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
2982         * emulparams/hppa64linux.sh: New file.
2983         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2984         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2985         (ehppa64linux.c): Add rule to make it.
2986         Run "make dep-am".
2987         * Makefile.in: Regenerate.
2989 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
2991         * ld.texinfo (Options, -r): Mention restrictions when using
2992         different object formats.
2994 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
2996         * ldlang.c (lang_check): Emit fatal error if relocatable link
2997         between different object flavours with relocations in input.
2999 2001-06-19  H.J. Lu  <hjl@gnu.org>
3001         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3002         (--version-script): Mention the language support.
3004 2001-06-19  H.J. Lu <hjl@gnu.org>
3006         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3008 2001-06-18  H.J. Lu <hjl@gnu.org>
3010         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3011         (diststuff): Add $(MANS).
3012         * Makefile.in: Regenerated.
3014         * ld.1: Removed.
3016 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
3018         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3019         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3020         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3021         * ld.h (args_type): Remove member export_dynamic.  All users
3022         changed to use struct bfd_link_info member.
3024         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3025         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3026         * Makefile.in: Regenerate.
3028 2001-06-18  H.J. Lu  <hjl@gnu.org>
3030         * ldlang.c (init_os): Add the newline to the einfo call.
3031         (lang_check): Likewise.
3032         (lang_do_version_exports_section): Likewise.
3034 2001-06-15  H.J. Lu  <hjl@gnu.org>
3036         * lexsup.c (parse_args); Save optind to report unrecognized
3037         option.
3039 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
3041         * ldlang.c (lang_check): Emit fatal error if relocatable link
3042         between different object flavours.
3044         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3045         Set new link_info member export_dynamic.
3046         * ldmain.c (main): Initialize new link_info member export_dynamic.
3048 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
3050         * ldlang.c (walk_wild): Only call walk_wild_file if
3051         lookup_name returns something.
3052         (lookup_name): If load_symbols fails, return NULL.
3053         (load_symbols): Change to a boolean function.
3054         (open_input_bfds): If load_symbols fails then do not make the
3055         executable.
3057 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
3059         * ldlang.c (record_bfd_errors): Remove.
3061         * emultempl/aix.em: Fix copyright dates.
3063 2001-06-07  Andreas Jaeger  <aj@suse.de>
3065         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3066         (TEXT_START_ADDR): Likewise.
3068 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
3070         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3072 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3074         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3076 2001-05-31  H.J. Lu  <hjl@gnu.org>
3078         * ldlang.c (open_input_bfds): Don't change the bfd error
3079         handler whilst loading symbols.
3081 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
3083         * configure.tgt: Remove i370-mvs architecture, it is not currently
3084         supported.
3086 2001-05-25  H.J. Lu  <hjl@gnu.org>
3088         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3089         like emulparams/aixppc.sh.
3091 2001-05-25  H.J. Lu  <hjl@gnu.org>
3093         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3094         setting of output_filename after bfd_scan_arch.
3095         * emultempl/pe.em: Likewise.
3097 2001-05-25  H.J. Lu  <hjl@gnu.org>
3099         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3100         like emulparams/aixppc.sh.
3102         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3103         instead of ${srcdir}/emultempl/stringify.sed.
3105 2001-05-25  Timothy Wall  <twall@oculustech.com>
3107         * emulparams/elf64_aix.sh: Change settings to match IBM linker
3108         output.
3110 2001-05-25  Alan Modra  <amodra@one.net.au>
3112         * configure.host: Replace linuxoldld with linux*oldld.
3113         * configure.tgt: Likewise.
3115 2001-05-24  H.J. Lu  <hjl@gnu.org>
3117         * emultempl/stringify.sed: Removed again.
3119 2001-05-24  H.J. Lu  <hjl@gnu.org>
3121         * emultempl/aix.em (OUTPUT_ARCH): Defined.
3122         (gld${EMULATION_NAME}_before_parse): Initialize
3123         ldfile_output_architecture, ldfile_output_machine and
3124         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3125         * emultempl/beos.em: Likewise.
3126         * emultempl/elf32.em: Likewise.
3127         * emultempl/linux.em: Likewise.
3128         * emultempl/mipsecoff.em: Likewise.
3129         * emultempl/pe.em: Likewise.
3130         * emultempl/sunos.em: Likewise.
3132 2001-05-24 Tom Rix <trix@redhat.com>
3134         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3135         udate import file format.
3136         (change_symbol_mode) New, same
3137         (is_syscall) New, same
3138         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3139         * emulparams/aixppc64.sh : same
3140         * emulparams/aixrs6.sh : same
3141         * emulparams/ppcmacos.sh : same
3142         * emultempl/aix.em : use strtoull to parse options
3143         * Makefile.am : add eaixppc64 emulation for xcoff64
3144         * Makefile.in : same
3145         * configure.tgt : same
3147         * scripttempl/aix.sc : default text section offset to 0x10000000
3148         default data section offset to 0x20000000
3149         add .sv3264 and .sv64 pseudo sections
3150         loader and debug sections use the currect section offset.
3152         * emultempl/aix.em : Add xcoff64 support
3153         Add -binitfini support
3154         (gld${EMULATION_NAME}_before_parse) -binitfini
3155         (gld${EMULATION_NAME}_parse_args) same
3156         (gld${EMULATION_NAME}_before_allocation) format change for special
3157         sections
3159         * emulparams/aixppc64.sh : New file for xcoff64 support
3161 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
3163         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3164         variable to avoid non-portable shell construct.
3166 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3168         * ldmain.c (get_emulation): Add -mips5 command line argument.
3170 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
3172         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3173         (ELF_INTERPRETER_NAME): Define it.
3174         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3175         it.
3176         * configure.tgt (targ_emul, targ_extra_emuls)
3177         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3178         as primary, elf_i386 as extra.
3179         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3180         (eelf_i386_ldso.c): New rule.
3181         * Makefile.in: Rebuilt.
3183 2001-05-22  Nick Clifton  <nickc@redhat.com>
3185         * lexsup.c (ld_options):  Allow -I to be an alias for
3186         --dynamic-linker.  This is for Solaris compatability.
3187         * ld.texinfo: Document that -I can be used.
3188         * ld.1: Regenerate.
3190 2001-05-16  Alan Modra  <amodra@one.net.au>
3192         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3193         whether an input section is the first one assigned to an output
3194         section.
3195         Assorted formatting fixes.
3197 2001-05-14  DJ Delorie  <dj@delorie.com>
3199         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3200         * Makefile.in: Ditto.
3202 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3204         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3205         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3206         output sections.
3207         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3209 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3211         * ldlang.c (lang_process): Call bfd_merge_sections.
3213 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3215         * ldgram.y: Fix typo.
3217 2001-05-03  H.J. Lu  <hjl@gnu.org>
3219         * emultempl/elf32.em: Include "libiberty.h".
3220         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3221         basename of the bfd filename.
3222         (gld${EMULATION_NAME}_stat_needed): Likewise.
3223         (gld${EMULATION_NAME}_try_needed): Likewise.
3224         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3226 2001-05-02  H.J. Lu  <hjl@gnu.org>
3228         * emultempl/pe.em: Include <ctype.h>.
3230 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
3232         * emulparams/elf32openrisc.sh: New file.
3234         * Makefile.am: Add OpenRISC target.
3235         * Makefile.in: Regenerated.
3237         * configure.tgt: Add openrisc-*-* mapping.
3239 2001-05-02  Nick Clifton  <nickc@redhat.com>
3241         * emultempl/aix.em: Replace buystring with xstrdup.
3242         * emultempl/beos.em: Replace buystring with xstrdup.
3244 2001-05-02  H.J. Lu  <hjl@gnu.org>
3246         * ldfile.c: Include "libiberty.h".
3247         * ldlex.l: Likewise.
3249         * ldmisc.c (buystring): Removed.
3250         * ldmisc.h: Likewise.
3252         * ldfile.c: Replace buystring with xstrdup.
3253         * ldlang.c: Likewise.
3254         * ldlex.l: Likewise.
3255         * ldmain.c: Likewise.
3256         * ldmisc.c: Likewise.
3257         * lexsup.c: Likewise.
3258         * mpw-eppcmac.c: Likewise.
3260 2001-04-30  Andreas Jaeger  <aj@suse.de>
3262         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3264 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3266         * ldlang.c (load_symbols): Give emulation a chance
3267         to process unrecognized file before fatal error is
3268         reported, not after.
3270 2001-04-27  Sean McNeil <sean@mcneil.com>
3272         * configure.tgt: Add arm-vxworks target.
3273         * scripttempl/armcoff.sc: Support .text or .data as a section name
3274         prefix.
3275         Define _etext.
3277 2001-04-13  J.T. Conklin  <jtc@redback.com>
3279         * ld.texinfo: Document --fatal-warnings.
3280         * ld.1: Regenerate.
3282         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3283         warnings have been turned into errors.
3284         * lexsup.c (OPTION_WARN_FATAL): Define.
3285         (ld_options): Entry for --fatal-warnings.
3286         (parse_args): Handle OPTION_WARN_FATAL.
3287         * ld.h (ld_config_type): Add fatal_warnings field.
3289 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
3291         * ldmain.c (main): Default to discard_sec_merge.
3292         * lexsup.c (OPTION_DISCARD_NONE): Define.
3293         (ld_options): Add --discard-none.
3294         (parse_args): Handle OPTION_DISCARD_NONE.
3295         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3296         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3297         all its input sections match.
3299 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
3301         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3302         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3303         (eelf32ltsmip.c): New target.
3304         (eelf64btsmip.c): Likewise.
3305         (eelf64ltsmip.c): Likewise.
3306         * Makefile.in: Regenerated.
3308         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3309         target.
3310         (mips*-*-linux-gnu*): Likewise.
3312         * emulparams/elf32ltsmip.sh: New. Traditional little endian
3313         MIPS taget.
3314         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3315         target.
3316         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3317         endian target.
3319 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
3321         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3322         correct value of __Stext here.
3323         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3324         .startup section.
3326         * emulparams/crislinux.sh: Remove FIXME.
3328 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
3330         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3331         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3333 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
3335         * configure.tgt (cris-*-*): Change default emulation to criself.
3336         (cris-*-*aout*): New rule.
3338 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
3340         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3341         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3343 2001-03-26  Andreas Jaeger  <aj@suse.de>
3345         * ld.texinfo (Overview): Fix syntax in texi code.
3347 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3349         * ld.texinfo: Put @c man indications to generate the ld man page.
3350         When generating man, define all the variables.  Define SEEALSO
3351         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
3352         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3353         (ld.1): Generate from ld.texinfo.
3354         * Makefile.in: Regenerate.
3356 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
3358         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3359         and '-fdata-sections'. Set the VMA of STABS sections to zero.
3361 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3363         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3364         is an absolute path look only for this file and not along the path.
3366 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3368         * emultempl/elf32.em (OPTION_GROUP): New macro.
3369         Add new option Bgroup to longopts.
3370         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3371         (gld*_list_options): Add -Bgroup and -z defs.
3372         * ld.1: Document -Bgroup and -z defs.
3373         * ld.texinfo: Likewise.
3375 2001-03-07  Michael Meissner  <meissner@redhat.com>
3377         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3378         with sections created by -fdata-sections.
3379         (.dynbss,.bss): Ditto.
3381 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
3383         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3384         after_allocation_default, not gld..._before_allocation.
3386 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
3388         * configure.in (BFD_VERSION): New.
3389         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3390         * configure: Regenerate.
3391         * Makefile.am: Run "make dep-am"
3392         * Makefile.in: Regenerate.
3394 2001-02-26  Timothy Wall  <twall@cygnus.com>
3396         * emulparams/elf64_aix.sh: Add additional read-only sections;
3397         uncomment lines which are now required.
3399 2001-02-26  H.J. Lu  <hjl@gnu.org>
3401         * ldlang.c (open_input_bfds): Set the bfd error handler so
3402         that problems can be caught whilst loading symbols.
3403         (record_bfd_errors): New function: Report BFD errors and mark
3404         the executable output as being invalid.
3406 2001-02-22  Timothy Wall  <twall@cygnus.com>
3408         * configure.host: Add configuration for ia64-*-aix*.
3409         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3410         Add dependencies for eelf64_aix.c.
3411         * Makefile.in: Regenerate.
3412         * configure.tgt: Add ia64-*-aix* mapping.
3413         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3415 2001-02-20  H.J. Lu  <hjl@gnu.org>
3417         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3418         false if we found the file.
3420 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
3422         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3423         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3425 2001-02-18  lars brinkhoff  <lars@nocrew.org>
3427         * Makefile.am: Add PDP-11 target.
3428         * configure.tgt: Likewise.
3429         * emulparams/pdp11.sh: New file.
3431 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
3433         * configure.host: Add a generic FreeBSD configuration entry such that
3434         all [modern] FreeBSD systems on all platforms will look the same.
3436 2001-02-14  H.J. Lu  <hjl@gnu.org>
3438         * configure.tgt: Remove mention of earmelf_linux26.
3440 2001-02-13  Richard Henderson  <rth@redhat.com>
3442         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3444 2001-02-13  H.J. Lu  <hjl@gnu.org>
3446         * ldexp.h (node_type): Add etree_provided.
3447         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3448         type to etree_provided if defined by PROVIDE. Allow updating
3449         for etree_provided.
3450         (exp_print_tree): Handle etree_provided.
3451         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3452         etree_provided.
3454 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
3456         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3457         .IA_64.unwind.* pattern to unwind table section and
3458         .IA_64.unwind_info* pattern to unwind info section.
3460 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3462         * Makefile.am: Add linux target for S/390.
3463         * Makefile.in: Likewise.
3464         * configure.host: Likewise.
3465         * configure.tgt: Likewise.
3466         * emulparams/elf64_s390.sh: New file.
3467         * emulparams/elf_s390.sh: New file.
3469 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
3471         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3472         targ_extra_libpath.
3473         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3475 2001-02-06  Philip Blundell  <philb@gnu.org>
3477         * Makefile.am: Remove mention of earmelf_linux26.
3478         * Makefile.in: Regenerate.
3480 2001-02-04  Philip Blundell  <philb@gnu.org>
3482         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3483         * emulparams/armelf_linux26.sh: Delete.
3484         * configure.tgt: Remove mention of armelf_linux26 emulation.
3486 2001-02-01  Nick Clifton  <nickc@redhat.com>
3488         * ld.1: Replace occurances of -oformat with --oformat.
3490 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
3492         * ldlang.c (lang_leave_overlay): Don't set lma_region when
3493         load_base is specified.
3495 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
3497         * emultempl/elf32.em: Correct spelling in comments and listed
3498         options.
3500 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
3502         * ldlang.c (lang_leave_overlay): Only set lma_region from the
3503         default for the first section of a group of overlay sections.
3505 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
3507         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3508         * Makefile.in: Regenerate.
3509         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3510         Check for null tool_dir.
3512 2001-01-16  Jim Wilson  <wilson@redhat.com>
3514         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3515         and IA_64.unwind.info.
3517 2001-01-16  H.J. Lu  <hjl@gnu.org>
3519         * ldlang.c (lang_check): Merge the private data only if the
3520         input file has contents.
3522 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
3524         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3526         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3527         enabling search for libmilli.  On a relocatable link, make .text
3528         sections unique.
3529         (LDEMUL_AFTER_PARSE): Define.
3530         (hppaelf_finish): Correct spelling of relocatable in comments.
3532         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3533         rummage through the script for sections on the unique list.
3534         Correct length of strncmp for ".note".
3535         (gld${EMULATION_NAME}_check_needed): Rearrange function.
3537         * ldlang.c (unique_section_list): New var.
3538         (unique_section_p): New function.
3539         (walk_wild_section): Don't match sections on unique_section_list.
3540         (lang_add_unique): New function.
3541         Correct spelling of relocatable in comments.
3543         * ldlang.h (struct unique_sections): Declare.
3544         (unique_section_list): Declare.
3545         (unique_section_p): Declare.
3546         (lang_add_unique): Declare.
3548         * lexsup.c (ld_options): Allow --unique to take an optional arg.
3549         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3551         * ld.texinfo (--unique): Update.
3553 2001-01-13  Nick Clifton  <nickc@redhat.com>
3555         * lexsup.c (parse_args): Remove spurious white space.
3557 2001-01-12  Nick Clifton  <nickc@redhat.com>
3559         * lexsup.c (parse_args): Update copyright date.
3561 2001-01-12  Philip Blundell  <pb@futuretv.com>
3563         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3565 2001-01-10  Kazu Hirata  <kazu@hxi.com>
3567         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
3568         * scripttempl/h8300h.sc: Fix formatting.
3569         * scripttempl/h8300s.sc: Likewise.
3570         * scripttempl/h8500.sc: Likewise.
3571         * scripttempl/h8500b.sc: Likewise.
3572         * scripttempl/h8500c.sc: Likewise.
3573         * scripttempl/h8500m.sc: Likewise.
3574         * scripttempl/h8500s.sc: Likewise.
3576 2000-01-07  David O'Brien  <obrien@BSDi.com>
3578         * emultempl/elf32.em: Only perform Linux ld hints processing when
3579         targeting Linux.
3581 2001-01-07  Philip Blundell  <philb@gnu.org>
3583         * ld.texinfo (Bug Reporting): Update email address for reports.
3585 2000-12-31  Nick Clifton  <nickc@redhat.com>
3587         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3588         options by checking for a return value of '?' not -1.
3590 2000-12-28  Nick Clifton  <nickc@redhat.com>
3592         * lexsup.c (struct ld_option): Add new enum value:
3593         EXACTLY_TWO_DASHES.
3594         (ld_options[]): Change -omagic, -output and -oformat options
3595         to be EXACTLY_TWO_DASHES.
3596         (OUTPUT_COUNT): Use ARRAY_SIZE.
3597         (parse_args): Change parameter 'argc' to unsigned.
3598         Place EXACTLY_TWO_DASHES options into new really_longopts
3599         array.
3600         If getopt_long_only fails, try calling getopt_long using the
3601         really_longopts array.
3602         (help): Print a double dash for both EXACTLY_TWO_DASHES and
3603         TWO_DASHES options.
3605         * ldlex.h: Fix prototype of parse_args.
3607         * ld.texinfo: Document that long options starting with 'o'
3608         must be preceeded by two dashes.  Change example of a single
3609         dashed long option from -oformat to -trace-symbol.
3611 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3613         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3614         (longopts[]): New --no-default-excludes option.
3615         (gld_${EMULATION_NAME}_list_options): Document.
3616         (gld_${EMULATION_NAME}_parse_args): Handle.
3618 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3620         * ldlang.c (new_stat): Revert the last beautification with "innocent"
3621         whitespace, it breaks the K&R C preprocessor.
3623 2000-12-11  DJ Delorie  <dj@redhat.com>
3625         * ld.texinfo: Add notes about --whole-archive and gcc.
3627 2000-11-18  Fred Fish  <fnf@be.com>
3629         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3630         (ld_options): Entry for --allow-shlib-undefined.
3631         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3632         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3633         to false.
3634         * ld.texinfo: Document new command line switch.
3636 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
3638         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3639         .fixup is actually read/write.
3640         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3641         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3642         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3644 2000-12-11  Jan Hubicka  <jh@suse.cz>
3646         * NEWS: Add note about x86_64 architecture.
3648 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
3650         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3651         Set DWARF2 sections to a VMA of zero.
3653 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
3655         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3656         New targets.
3657         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3658         (sparc*-*-rtems*): Switched from a.out to ELF.
3660 2000-11-30  Jan Hubicka  <jh@suse.cz>
3662         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3663         (eelf_x86_64.c): New.
3664         * Makefile.in: Regenerate.
3665         * configure.tgt: Add support for x86_64-*-linux-gnu*.
3666         * emulparams/elf_x86_64.sh: New.
3668 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
3670         * emulparams/crislinux.sh (ENTRY): Change back to _start.
3671         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3673         * scripttempl/crisaout.sc: Change all RELOCATING not related to
3674         merging non-a.out sections into CONSTRUCTING.
3676 2000-11-28  Nick Clifton  <nickc@redhat.com>
3678         * ld.1 (COPYING): Mention that the GNU Free Documentation
3679         License is present in the sources, but not the output, and
3680         also available from the GNU website.
3681         (GNU Free Documentation License): Comment out this section.
3683 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
3685         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3686         does not use them.
3688 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
3690         * ld.1: Remove old date so it does not give the impression the manpage
3691         is way out of date.
3693 2000-11-24  Nick Clifton  <nickc@redhat.com>
3695         * configure.tgt (xscale-coff): Add target.
3696         (xscale-elf): Add target.
3698 2000-11-24  Fred Fish  <fnf@be.com>
3700         * ldmain.c (main): Remove redundant init of config.make_executable
3701         to true.
3703 2000-11-15  Richard Henderson  <rth@redhat.com>
3705         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3707 2000-11-14  Kazu Hirata  <kazu@hxi.com>
3709         * scripttempl/h8300.sc: Fix formatting.
3710         * scripttempl/h8300h.sc: Likewise.
3711         * scripttempl/h8300s.sc: Likewise.
3713 2000-11-14  Denis Chertykov  <denisc@overta.ru>
3715         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3717 2000-11-09  Philip Blundell  <pb@futuretv.com>
3719         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3720         around orphan sections whose names can be represented in C.
3722 2000-11-07  Jim Wilson  <wilson@redhat.com>
3724         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3725         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
3727 2000-11-06  Nick Clifton  <nickc@redhat.com>
3729         * ld.texinfo: Add GNU Free Documentation License.
3730         * ldint.texinfo: Add GNU Free Documentation License.
3731         * ld.1: Add GNU Free Documentation License.
3733 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
3735         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3736         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3738         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3739         Move 2000-11-02 Makefile.in changes to this file.
3740         * Makefile.in: Regenerate.
3742 2000-11-03  Nick Clifton  <nickc@redhat.com>
3744         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3745         constructors and destructors.
3746         * scripttempl/h8300h.sc: Ditto.
3747         * scripttempl/h8300s.sc: Ditto.
3748         * scripttempl/h8500.sc: Ditto.
3749         * scripttempl/h8500b.sc: Ditto.
3750         * scripttempl/h8500c.sc: Ditto.
3751         * scripttempl/h8500m.sc: Ditto.
3752         * scripttempl/h8500s.sc: Ditto.
3753         * scripttempl/v850.sc: Ditto.
3754         * scripttempl/w65.sc: Ditto.
3755         * scripttempl/z8000.sc: Ditto.
3757 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
3759         * Makefile.in (e_i386_chaos.c): New rule.
3760         (ALL_EMULATIONS): Added e_i386_chaos.o.
3761         * emulparams/elf_i386_chaos.sh: New file.
3762         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3764 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
3766         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3767         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3768         Fix sed invocation, so that it coped with '/' in Solaris 64bit
3769         library path suffix.
3770         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3772 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
3774         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3775         for consecutive sections.
3777 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
3779         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3780         options.
3781         * ld.texinfo: Added notes about this new option.
3783 2000-10-16  Nick Clifton  <nickc@redhat.com>
3785         * emultempl/pe.em (_after_open): Add tests of return values from
3786         bfd functions.  Emit appropriate error messages if necessary.
3788 2000-10-13  Nick Clifton  <nickc@redhat.com>
3790         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3791         local variables - they are not used, but leave in the call to
3792         bfd_canonicalize_symtab.
3793         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3794         pe_dll_search_prefix.
3796 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
3798         * emultempl/pe.em (pe_dll_search_prefix): New variable,
3799         (longopts): New --dll-search-prefix option.
3800         (gld_${EMULATION_NAME}_list_options): Document.
3801         (gld_${EMULATION_NAME}_parse_args): Handle.
3802         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3803         dynamically, search for a dll named '<prefix><basename>.dll'
3804         in preference to 'lib<basename>.dll' if --dll-search-prefix
3805         is specified.
3807 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3809         * ldlang.c (section_already_linked): Set kept_section instead of
3810         sec->comdat->sec.
3812 2000-10-10  Kazu Hirata  <kazu@hxi.com>
3814         * deffile.h: Fix formatting.
3815         * lexsup.c: Likewise.
3816         * mri.c: Likewise.
3818 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3820         * pe-dll.c (make_one): Do not generate code thunk for DATA
3821         exports.
3822         (process_def_file): deduce DATA flag for auto-export sumbols.
3824 2000-10-09  Kazu Hirata  <kazu@hxi.com>
3826         * ld.h: Fix formatting.
3827         * ldcref.c: Likewise.
3828         * ldctor.h: Likewise.
3829         * ldemul.c: Likewise.
3830         * ldemul.h: Likewise.
3831         * ldexp.c: Likewise.
3832         * ldexp.h: Likewise.
3833         * ldfile.c: Likewise.
3834         * ldfile.h: Likewise.
3835         * ldlang.c: Likewise.
3836         * ldlang.h: Likewise.
3837         * ldmain.c: Likewise.
3838         * pe-dll.c: Likewise.
3840         * pe-dll.c: Revert some formatting fixes.
3842 2000-10-08  Kazu Hirata  <kazu@hxi.com>
3844         * pe-dll.c: Fix formatting.
3846 2000-10-05  Kazu Hirata  <kazu@hxi.com>
3848         * ldlang.c: Fix formatting.
3850 2000-10-03  DJ Delorie  <dj@redhat.com>
3852         * pe-dll.c (fill_edata): initialize entire block
3853         (make_one): fill in correct section.
3855 2000-10-03  Kazu Hirata  <kazu@hxi.com>
3857         * ldexp.c: Fix formatting.
3859 2000-10-02  DJ Delorie  <dj@redhat.com>
3861         * emultempl/pe.em (gld_*_after_open): detect case where there two
3862         import libraries for same dll; rename one to ensure proper link
3863         order.
3865         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3866         typo
3867         (generate_edata): fix typo
3869 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
3871         * scripttempl/crisaout.sc (ENTRY): Now __start.
3872         (.text): Add default setting for __start.
3873         Remove CONSTRUCTORS handling.
3874         (/DISCARD/): Add .gnu.warning.*.
3875         * emulparams/crislinux.sh (ENTRY): Now __start.
3876         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3877         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3878         (ENTRY): Now __start.
3879         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3880         (EXECUTABLE_SYMBOLS): Add default setting for __start.
3882 2000-09-29  Kazu Hirata  <kazu@hxi.com>
3884         * deffile.h: Fix formatting.
3885         * ld.h: Likewise.
3886         * ldcref.c: Likewise.
3887         * ldctor.c: Likewise.
3888         * ldctor.h: Likewise.
3889         * ldemul.c: Likewise.
3890         * ldemul.h: Likewise.
3891         * ldexp.c: Likewise.
3892         * ldexp.h: Likewise.
3893         * ldfile.c: Likewise.
3894         * ldfile.h: Likewise.
3895         * ldlang.c: Likewise.
3896         * ldlang.h: Likewise.
3897         * lexsup.c: Likewise.
3898         * mri.c: Likewise.
3899         * pe-dll.c: Likewise.
3901 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3903         * pe-dll.c (process_def_file): Uninitialized data wasn't
3904         exported with --export-all-symbols switch.
3906 2000-09-28  DJ Delorie  <dj@redhat.com>
3908         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3909         noname work properly.
3911 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
3913         * ld.texinfo (HPPA ELF32): New section.
3915         * emultempl/hppaelf.em (group_size): New.
3916         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3917         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3918         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
3919         options to prevent abbreviations matching.
3920         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
3921         (PARSE_AND_LIST_ARGS_CASES): Handle it.
3923 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3925         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3926         on the m68*-*-elf target.  Make it support COFF input objects.
3928 2000-09-21  Kazu Hirata  <kazu@hxi.com>
3930         * ldmain.c: Fix formatting.
3931         * ldmisc.c: Likewise.
3932         * ldver.c: Likewise.
3933         * ldwrite.c: Likewise.
3935 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3937         * ldwrite.c (clone_section): Silence gcc warnings.
3939 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3941         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3942         out of memory failure.
3944         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3945         (clone_section): Handle out of memory failures.  Rename var to
3946         avoid c++ reserved word.
3948 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3950         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3951         stub_name param to stub_sec_name.
3952         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3954 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3956         * emultempl/m68kelf.em: New file.
3957         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3958         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3959         * Makefile.in: Regenerate.
3961 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3963         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3964         only as needed.
3966 2000-09-13  Nick Clifton  <nickc@redhat.com>
3968         * ldmain.c (multiple_definition): Disable relaxation if
3969         multiple symbol definitions are encountered - otherwise the
3970         linker could abort with an assertion failure.
3972 2000-09-10  Nick Clifton  <nickc@redhat.com>
3974         * mri.c: Fix formatting.
3976 2000-09-07  H.J. Lu  <hjl@gnu.org>
3978         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3979         * configure: Rebuild.
3981 2000-09-07  H.J. Lu  <hjl@gnu.org>
3983         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3984         * Makefile.in: Rebuild.
3986 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
3988         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3989         broken list handling.  Create __start_SECNAME and __stop_SECNAME
3990         when no place-holder.  Add some comments.  Test both SEC_CODE and
3991         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3992         Handle case where no output section statement created.
3994 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
3996         * configure.tgt (sh-*-linux*): Added.
3997         * Makefile.am: Added eshelf_linux and eshlelf_linux.
3998         * Makefile.in: Rebuilt.
3999         * emulparams/shelf_linux.sh: New file.
4000         * emulparams/shlelf_linux.sh: New file.
4002 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
4004         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4005         try shuffling sections when the orphan happens to be the place
4006         holder.  Keep count of unique section names generated so we speed
4007         the search for a new name.
4009 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
4011         * configure: Rebuilt with new libtool.m4.
4013 2000-09-05  Nick Clifton  <nickc@redhat.com>
4015         * Makefile.in: Regenerate.
4016         * aclocal.m4: Regenerate.
4017         * configure: Regenerate.
4018         * config.in: Regenerate.
4019         * po/ld.pot: Regenerate.
4021         * ldint.texinfo: Remove CVS revision marker - it foils local
4022         comparisons.
4024         * emultempl/ticoff.em: Remove extraneous comma.
4026 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
4028         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4029         to stub section flags.
4030         (hppa_for_each_input_file_wrapper): New.
4031         (hppa_lang_for_each_input_file): New.
4032         (lang_for_each_input_file): Define to call above.
4033         (multi_subspace): New.
4034         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4035         (PARSE_AND_LIST_PROLOGUE): Define.
4036         (PARSE_AND_LIST_LONGOPTS): Define.
4037         (PARSE_AND_LIST_OPTIONS): Define.
4038         (PARSE_AND_LIST_ARGS_CASES): Define.
4039         (hppaelf_finish): Call elf32_hppa_set_gp.
4040         (hppaelf_set_output_arch): Remove.
4041         (LDEMUL_SET_OUTPUT_ARCH): Remove.
4043         * emulparams/hppalinux.sh (ELFSIZE): Define.
4044         (MACHINE): Define.
4045         (OTHER_READONLY_SECTIONS): Define.
4046         (DATA_PLT): Define.
4047         (GENERATE_SHLIB_SCRIPT): Define.
4049         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
4050         to const throughout.  Change `void *' to `PTR' throughout.
4051         (lang_memory_default): Function is local to file, add `static'.
4053         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4054         (ehppalinux.c): Likewise.
4055         (earmelf.c): Likewise.
4056         (earmelf_linux.c): Likewise.
4057         (earmelf_linux26.c): Likewise.
4058         * Makefile.in: Regenerate.
4060         * ld.h (ld_config_type): Add unique_orphan_sections.
4061         * lexsup.c (OPTION_UNIQUE): Define.
4062         (ld_options): Add "--unique".
4063         (parse_args): Handle it.
4064         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4065         search for an existing output section if unique_orphan_sections is
4066         set.  Make use of bfd_get_unique_section_name rather than
4067         duplicating code here.
4068         * ld.texinfo: Describe --unique.
4070         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4071         optional arg to split-by-file.
4072         (parse_args): Handle them.
4073         * ld.texinfo: Update description of these options.
4074         * ldwrite.c (clone_section): Pass in the section name.  Replace
4075         local code with bfd_get_unique_section_name.
4076         (split_sections): Tidy code and comments.  Use a list traversal
4077         more appropriate to the list construction.  Handle cooked section
4078         sizes.  Split when split_by_reloc reached rather than exceeded.
4079         Track section size and split when split_by_file reached.  Fix
4080         link_order_tail (even though it's not used).
4081         (ldwrite): Modify condition for calling split_sections to suit
4082         changed split_by_reloc and split_by_file.
4083         * ldmain.c (main): Init config.split_by_reloc and
4084         config.split_by_file to -1.
4085         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4086         Change split_by_file to bfd_size_type.
4088 2000-09-02  Nick Clifton  <nickc@redhat.com>
4090         * configure.in: Increase version number to 2.10.91.
4091         * NEWS: Mention new ability to support removal of duplicate DWARF2
4092         debug information.
4093         * configure: Regenerate.
4094         * aclocal.m4: Regenerate.
4095         * config.in: Regenerate.
4097 2000-09-02  Daniel Berlin <dberlin@redhat.com>
4099         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4100         sections.
4101         * scripttempl/elf32avr.sc: Ditto.
4102         * scripttempl/elfd10v.sc: Ditto.
4103         * scripttempl/elfd30v.sc: Ditto.
4104         * scripttempl/elfi370.sc: Ditto.
4105         * scripttempl/elfm68hc11.sc: Ditto.
4106         * scripttempl/elfm68hc12.sc: Ditto.
4107         * scripttempl/elfi386beos.sc: Ditto.
4108         * scripttempl/v850.sc: Ditto.
4110 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
4112         * acinclude.m4: Include libtool and gettext macros from the
4113         top level.
4114         * aclocal.m4, configure: Rebuilt.
4116 2000-08-25  Nick Clifton  <nickc@redhat.com>
4118         * ldlang.c (open_output): When choosing the target for a
4119         particular endianness, do nothing if the target is not
4120         supported.
4122 2000-08-25  H.J. Lu  <hjl@gnu.org>
4124         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4125         check -rpath nor LD_RUN_PATH for cross link.
4126         * ld.texinfo: Document the change.
4128 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
4130         * NEWS: Mention support for CRIS.
4132 2000-08-23  H.J. Lu  <hjl@gnu.org>
4134         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4135         the current runpath list from bfd_elf_get_runpath_list ()
4136         before search.
4138 2000-08-22  H.J. Lu  <hjl@gnu.org>
4140         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4141         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4142         LD_LIBRARY_PATH for native linker. Display the needed DSO if
4143         trace_file_tries is non-zero.
4144         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4145         if trace_file_tries is non-zero.
4147         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4148         * NEWS: Mention it.
4150 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
4152         * NEWS: Mention i860 support.
4154 2000-08-14  Andreas Schwab  <schwab@suse.de>
4156         * scripttempl/elf.sc: Fix last change to use correct comment
4157         syntax.
4159 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
4161         * scripttempl/elf.sc: Add a comment giving the correspondence
4162         between sections, per-datum sections, and linkonce sections.  Make
4163         the comment true even for .bss, .sdata, .sdata2, .sbss, and
4164         .sbss2.
4166 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
4168         * emulparams/elf32_i860.sh: New file.
4169         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4170         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4171         (eelf32_i860.c): New rule.
4172         * Makefile.in: Regenerate.
4174 2000-08-10  Nick Clifton  <nickc@cygnus.com>
4176         * emulparams/mipspe.sh (ENTRY): Add definition.
4178 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
4180         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4181         in error message.
4183 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4185         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4186         the final size of .bss section.
4187         * scripttempl/elfm68hc12.sc: Likewise.
4189 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
4191         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4192         gld${EMULATION_NAME}_parse_args for consistency.  Combine
4193         lastoptind and prevoptind vars, and keep track of last optind.
4194         (gld_${EMULATION_NAME}_list_options): Rename to
4195         gld${EMULATION_NAME}_list_options.
4197 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
4199         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4200         (i586-sco-sysv5uw7.1.0).
4202 2000-07-27  H.J. Lu  <hjl@gnu.org>
4204         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4205         (PARSE_AND_LIST_PROLOGUE): New.
4206         (PARSE_AND_LIST_LONGOPTS): Likewise.
4207         (PARSE_AND_LIST_OPTIONS): Likewise.
4208         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4209         (PARSE_AND_LIST_EPILOGUE): Likewise.
4211 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
4213         * emultempl/armelf.em: Elide functions common to elf32.em,
4214         ie. most of the file.
4215         (arm_elf_after_open): New.  Do arm specific things then call
4216         gld${EMULATION_NAME}_after_open.
4217         (arm_elf_before_allocation): New.  Call
4218         gld${EMULATION_NAME}_before_allocation then do arm specifics.
4219         (PARSE_AND_LIST_PROLOGUE): Define.
4220         (PARSE_AND_LIST_SHORTOPTS): Define.
4221         (PARSE_AND_LIST_LONGOPTS): Define.
4222         (PARSE_AND_LIST_OPTIONS): Define.
4223         (PARSE_AND_LIST_ARGS_CASES): Define.
4224         (LDEMUL_AFTER_OPEN): Define.
4225         (LDEMUL_BEFORE_ALLOCATION): Define.
4226         (LDEMUL_BEFORE_PARSE): Define.
4227         (LDEMUL_FINISH): Define.
4229         * emultempl/hppaelf.em: Similarly zap most of this file.
4230         (hppaelf_add_stub_section): Prototype.
4231         (hppaelf_layaout_sections_again): Prototype.
4232         (hook_in_stub): Prototype.
4233         (LDEMUL_SET_OUTPUT_ARCH): Define.
4234         (LDEMUL_FINISH): Define.
4235         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4237         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4238         (EXTRA_EM_FILE): New.
4239         * emulparams/armelf_linux.sh: Likewise.
4240         * emulparams/armelf_linux26.sh: Likewise.
4241         * emulparams/hppalinux.sh: Likewise.
4242         * emulparams/hppaelf.sh: Likewise.
4243         (NOP): Define.
4245         * emultempl/elf32.em: Fix formatting.
4246         (EXTRA_EM_FILE): Source it.
4247         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4248         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4249         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4250         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4251         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4252         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4253         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4254         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4255         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
4256         allow functions in this file to be overridden.
4257         (PARSE_AND_LIST_SHORTOPTS): Handle it.
4259         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4261         * emultempl/elf32.em: Reorganize file.
4263 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
4265         * emulparams/elf64alpha.sh: Implement "-taso" emulation
4266         specific option to fit 64-bit executable in the lower
4267         31-bit address range.  This is done by changing start
4268         address of .interp (the very first section of executable)
4269         and then setting EF_ALPHA_32BIT elf header flag.
4271 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4273         * emultempl/m68kcoff.em: New file.
4274         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4275         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4276         generic.em.
4277         * Makefile.in: Regenerate.
4279 2000-07-20  H.J. Lu  <hjl@gnu.org>
4281         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4282         and "disable-new-dtags" to stop getopt from treating -d/-e as
4283         abbreviations for these options.
4285 2000-07-20  H.J. Lu  <hjl@gnu.org>
4287         * ld.texinfo: Add documentation for --disable-new-dtags and
4288         --enable-new-dtags.
4290         * ldmain.c (main): Initialize link_info.new_dtags to false.
4292         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4293         --disable-new-dtags and --enable-new-dtags.
4294         (gld_${EMULATION_NAME}_list_options): Likewise.
4296 2000-07-05  Kenneth Block  <krblock@computer.org>
4298         * lexsup.c: Add optional style to demangle switch
4299         * ld.texinfo: Document optional style to demangle switch.
4301 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
4303         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4304         ecrislinux.o.
4305         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4306         Regenerate dependencies.
4307         * Makefile.in: Rebuild.
4308         * configure.tgt (cris-*-*): New target.
4309         * emulparams/crisaout.sh, emulparams/criself.sh,
4310         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4311         * po/POTFILES.in, po/ld.pot: Regenerate.
4313 2000-07-20  H.J. Lu  <hjl@gnu.org>
4315         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4316         Print out ignored -z options.
4318 2000-07-19  H.J. Lu  <hjl@gnu.org>
4320         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4321         (PARSE_AND_LIST_PROLOGUE): New.
4322         (PARSE_AND_LIST_LONGOPTS): Likewise.
4323         (PARSE_AND_LIST_OPTIONS): Likewise.
4324         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4326         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4328         * lexsup.c (ld_options): Comment out 'z'.
4329         (parse_args): Likewise.
4331         * emultempl/elf32.em: Include "elf/common.h".
4332         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4333         options.
4334         (gld_${EMULATION_NAME}_list_options): Likewise.
4336         * ld.texinfo: Add documentation for the recognized -z options.
4338 2000-07-19  H.J. Lu  <hjl@gnu.org>
4340         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4341         bfd_elf_set_dt_needed_soname ().
4343 2000-07-18  DJ Delorie  <dj@cygnus.com>
4345         * pe-dll.c (pe_dll_id_target): check object target name also
4347 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
4349         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4350         ${INIT_END} if relocating.
4351         (.fini): Likewise ${FINI_START} and ${FINI_END}.
4353 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
4355         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4356         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4357         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4358         errors introduced by the old dynamic lib search order.
4360 2000-07-17  DJ Delorie  <dj@cygnus.com>
4362         * pe-dll.c (process_def_file): auto-export data items also
4363         (pe_process_import_defs): also see if _imp_ form needed
4365 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
4367         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4368         for dll import libraries
4370 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
4372         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4373         gcc 2.95.2 and later.
4375 2000-07-11  Kazu Hirata  <kazu@hxi.com>
4377         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4378         message.
4380 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4382         * ldemul.h (struct lang_input_statement_struct): Remove forward
4383         declaration.
4384         (struct search_dirs): Likewise.
4385         * ldfile.h (struct lang_input_statement_struct): Likewise.
4386         Protect file from multiple inclusion.
4387         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4388         declaration from macro to file scope.
4390         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4391         * ldgram.y: Likewise here.
4392         * ldlang.c: And here.
4393         * ldmain.c: And here.
4394         * mpw-elfmips.c: And here.
4395         * mpw-eppcmac.c: And here.
4396         * emultempl/aix.em: And here.
4397         * emultempl/armcoff.em: And here.
4398         * emultempl/armelf.em: And here.
4399         * emultempl/armelf_oabi.em: And here.
4400         * emultempl/beos.em: And here.
4401         * emultempl/elf32.em: And here.
4402         * emultempl/hppaelf.em: And here.
4403         * emultempl/linux.em: And here.
4404         * emultempl/lnk960.em: And here.
4405         * emultempl/pe.em: And here.
4406         * emultempl/sunos.em: And here.
4407         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4408         * mpw-idtmips.c: Ditto.
4409         * emultempl/generic.em: Ditto.
4410         * emultempl/gld960.em: Ditto.
4411         * emultempl/gld960c.em: Ditto.
4412         * emultempl/mipsecoff.em: Ditto.
4413         * emultempl/ticoff.em: Ditto.
4414         * emultempl/vanilla.em: Ditto.
4416         * pe-dll.c: Include ldfile.h
4417         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4419         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4420         arguments to bfd_elf32_size_dynamic_sections call.
4421         (gldelf32ebmip_place_orphan): Add missing arguments to
4422         lang_leave_output_section_statement call.
4424 2000-07-10  H.J. Lu  <hjl@gnu.org>
4426         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4427         DLL_SUPPORT.
4428         (strhash): Likewise.
4429         (compute_dll_image_base): Likewise.
4430         (pe_undef_found_sym): Likewise.
4431         (pe_undef_cdecl_match): Likewise.
4432         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4433         argument "arch" with ATTRIBUTE_UNUSED.
4435 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4437         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4439         From  Ryan Bradetich  <rbradetich@uswest.net>
4440         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4442 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
4444         Changes to create multiple linker stubs, positioned immediately
4445         before the section where they are required.
4446         * emultempl/hppaelf.em: Include elf32-hppa.h.
4447         (stub_sec, file_chain): Delete.
4448         (hppaelf_create_output_section_statements): Don't make a stub
4449         section here.
4450         (hook_stub_info): New struct.
4451         (hook_in_stub): New function.
4452         (hppaelf_add_stub_section): New function.
4453         (hppaelf_finish): Do nothing for relocateable links.  Modify the
4454         call to elf32_hppa_size_stubs.  Move code for updating section
4455         layout from here...
4456         (hppaelf_layaout_sections_again): ..to here, a new function.
4458         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4459         broken list handling.  Pass in a pointer to the list.
4460         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4461         for above changes.
4462         (hppaelf_before_parse): Prototype.
4463         (hppaelf_set_output_arch): Prototype.
4464         (hppaelf_create_output_section_statements): Prototype.
4465         (hppaelf_delete_padding_statements): Prototype.
4466         (hppaelf_finish): Prototype.
4468         Merge from elf32.em
4469         * emultempl/hppaelf.em: Include ctype.h.
4470         (struct orphan_save): New.
4471         (gld${EMULATION_NAME}_place_orphan): New.
4472         (output_rel_find): New.
4473         (hppaelf_get_script): Update from elf32.em.
4474         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4475         Change emulation_name field to "${EMULATION_NAME}".  Add
4476         gld${EMULATION_NAME}_place_orphan.
4478         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
4479         ehppalinux.o, sort it.  Regenerate dependencies.
4480         (ehppalinux.c): Depend on hppaelf.em
4481         * Makefile.in: Regenerate.
4483         * configure.tgt: targ_emul=hppalinux for hppa*linux
4485         * emulparams/hppalinux.sh: New.
4486         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4488 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
4490         * lexsup.c (parse_args): Copy section name.
4492 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
4494         * emultempl/pe.em: institute the following search order for
4495         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4496         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
4497         static lib (libfoo.a) if none of the above are found.
4499 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
4501         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4502         (longopts): New --{enable,disable}-auto-image-base options.
4503         (gld_${EMULATION_NAME}_list_options): Document.
4504         (gld_${EMULATION_NAME}_parse): Handle.
4505         (strhash): New static function.
4506         (compute_dll_image_base): New static function.
4507         (gld_${EMULATION_NAME}_set_symbols): Use.
4509 2000-07-05  DJ Delorie  <dj@redhat.com>
4511         * MAINTAINERS: new
4513 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
4515         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4516         * emulparams/elf32btsmip.sh: New file.
4517         * Makefile.am: Add traditional mips target.
4518         * Makefile.in: Rebuild.
4520 2000-07-01  H.J. Lu  <hjl@gnu.org>
4522         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4523         automake to use YLWRAP.
4524         * Makefile.in: Rebuild.
4526 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
4528         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
4529         (CLEANFILES): Add DEPA.
4530         * Makefile.in: Regenerate.
4532 2000-06-30  Timothy Wall  <twall@ppc>
4534         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4535         the page in the upper octet of the address.
4537 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
4539         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4541 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
4543         * NEWS: arm-elf does --gc-sections too.
4545 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
4547         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4548         find one.
4549         * Makefile.in: Regenerate.
4551 2000-06-21  H.J. Lu  <hjl@gnu.org>
4553         * Makefile.am: Rebuild dependency.
4554         * Makefile.in: Rebuild.
4556 2000-06-20  H.J. Lu  <hjl@gnu.org>
4558         * Makefile.am: Rebuild dependency.
4559         * Makefile.in: Rebuild.
4561 2000-06-20  Timothy Wall  <twall@cygnus.com>
4563         * scripttempl/tic54xcoff.sc: New.
4564         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4565         * gen-doc.texi: Add flag for TI COFF.
4566         * ld.texinfo: Add documentation for TI COFF handling switches.
4567         * emultempl/ticoff.em: New. TI COFF handling.
4568         * configure.tgt: Add tic54x target.
4569         * Makefile.am: Add tic54x target.
4570         * Makefile.in: Ditto.
4572 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
4574         * ldmain.c (set_scripts_dir): Correct pointer comparison when
4575         checking for backslashes.
4577 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
4579         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4581 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
4583         * NEWS: Update list of targets supporting --gc-sections.
4585         * scripttempl/elf.sc: KEEP .eh_frame contents.
4586         * scripttempl/elfd30v.sc: Same here.
4588 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4590         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4591         and m68hc11 (elf).
4592         * Makefile.in: Rebuild.
4593         * configure.tgt: Recognize m68hc12 and m68hc11.
4594         * scripttempl/elfm68hc12.sc: New file.
4595         * emulparams/m68hc12elfb: New emulation.
4596         * emulparams/m68hc12elf: New emulation.
4597         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
4598         (includes a memory.x script to define the ROM and RAM banks).
4599         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4600         New configuration files for support of Motorola 68hc11
4602 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
4604         * ldmain.c (main): Only change SEC_READONLY for final link.
4606 2000-06-13  H.J. Lu  <hjl@gnu.org>
4608         * configure: Regenerate.
4610 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4612         * configure.in (VERSION): Update to show this is the CVS mainline.
4614 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4616         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4617         input objects to be ECOFF.
4618         (check_sections): einfo takes %B, not %P, to print a BFD name.
4620 2000-06-05  Michael Matz <matz@ifh.de>
4622         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4623         version scripts.
4625         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4627 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
4629         * emulparams/avr1200.sh (STACK): Define as 0.
4630         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4631         * emulparams/avr4433.sh (STACK): Likewise.
4632         * emulparams/avr44x4.sh (STACK): Likewise.
4633         * emulparams/avr85xx.sh (STACK): Likewise.
4634         * emulparams/avrmega103.sh (STACK): Likewise.
4635         * emulparams/avrmega161.sh (STACK): Likewise.
4636         * emulparams/avrmega603.sh (STACK): Likewise.
4637         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4638         (__stack): Define from ${STACK} for main().
4640 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4642         * Makefile.am: Update dependencies with "make dep-am"
4643         * Makefile.in: Regenerate.
4645 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
4647         * ldmain.c: Include filenames.h.
4648         (set_scripts_dir): Support backslashes in program name.
4650 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
4652         * ldmain.c (main): When deciding if ".text" section should be
4653         read-only, don't forget to reset SEC_READONLY because it
4654         could be already set.
4656 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
4658         * ld.1: Add documentation for new command line option:
4659                 --section-start <sectionname>=<sectionorg>
4660         This is a generic version of -Ttext etc. which accepts
4661         any section name as a parameter instead of just text/data/
4662         bss.
4663         * ld.texinfo: More docs.
4664         * NEWS: More docs.
4665         * lexsup.c: (parse_args): Recognize new command line option.
4666         (ld_options): Add new option.
4668 2000-05-18  H.J. Lu  <hjl@gnu.org>
4670         * lexsup.c (parse_args): `i' == `r', not `q'.
4672 2000-05-18  Jeffrey A Law  (law@cygnus.com)
4674         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4676 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
4677               Rick Gorton          <gorton@scrugs.lkg.dec.com>
4679         Add support for '-q' == '--emit-relocs' switch.
4680         * ldmain.c (main): Default to false.
4681         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4682         * NEWS: Describe the emitrelocations switch.
4683         * ld.texinfo: Describe the emitrelocations switch.
4685 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
4687         * emultempl/pe.em (_open_dynamic_archive): New function: Search
4688         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4689         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4690         link options.
4692 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
4694         * lexsup.c (parse_args): Update the year in the copyright notice.
4696 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
4698         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4699         Replace defines with those from intl/libgettext.h to quieten gcc
4700         warnings.
4702 2000-05-10  H.J. Lu  <hjl@gnu.org>
4704         * ldlang.c (open_input_bfds): Don't load the same file within
4705         a group again if the whole archive has been loaded already.
4707 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
4709         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4710         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4711         strtoul.
4713 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4715         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4717         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4718         host "ia64-*-linux-gnu*".
4720 2000-04-29  Andreas Jaeger  <aj@suse.de>
4722         * ld.h: Correctly check GCC version.
4724 2000-04-25  Jeffrey A Law  (law@cygnus.com)
4726         * Makefile.am: Add PA64 support.  Add missing dependencies for
4727         PA32 elf support.
4728         * Makefile.in: Rebuilt.
4729         * configure.tgt: Add PA64 support (currently disabled).
4731 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
4733         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4734         (output_rel_find): New function.
4735         (hold_section, hold_use): Delete.
4736         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4737         hold_interp): Make local to place_orphan.
4738         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4739         rather than place_section to find possible previous use of orphan.
4740         Similarly find the place-holder output sections.  Use returned
4741         value from lang_enter_output_section_statement rather than calling
4742         lang_output_section_statement_lookup.
4743         * emultempl/armelf.em: Same here.
4744         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4746         * ldlang.c (lang_enter_output_section_statement): Return output
4747         section statement.
4748         * ldlang.h (lang_enter_output_section_statement): Change
4749         declaration too.
4751         * ldlang.h (lang_output_section_statement): Export it.
4752         * ldlang.c (lang_output_section_statement): Ditto.
4754 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4756         * ld.texinfo (Output Section Data): Add note that section data
4757         commands cannot appear outside of section directives.
4759 2000-04-2  Matthew Green  <mrg@cygnus.com>
4761         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4763 2000-04-21  Richard Henderson  <rth@cygnus.com>
4764             David Mosberger  <davidm@hpl.hp.com>
4766         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4767         (eelf64_ia64.c): New rule.
4768         * Makefile.in: Rebuild.
4769         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4770         * emulparams/elf64_ia64.sh: New file.
4772 2000-04-21  Richard Henderson  <rth@cygnus.com>
4774         * scripttempl/elfd30v.sc: Place .gcc_except_table.
4776 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
4778         * dep-in.sed: Match space at start of file name, not at end.
4780 2000-04-18  H.J. Lu  <hjl@gnu.org>
4782         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4783         lang_leave_output_section_statement () after calling
4784         lang_enter_output_section_statement ().
4785         * emultempl/armelf.em: Likewise.
4787 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
4789         * emultempl/elf32.em (struct orphan_save): Add section field.
4790         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4791         better order, and place first orphan section as we did before the
4792         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
4793         Don't call make_bfd_section here, let wild_doit do the job for us.
4794         Don't build a statement list when we'll only throw it away.
4795         * emultempl/armelf.em: Ditto.
4796         * emultempl/pe.em: Similarly.
4798 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4800         * scripttempl/elfppc.sc: Remove.
4801         * emulparams/elf32ppc.sh: Use elf.sc.
4802         * emulparams/elf32lppc.sh: Use elf.sc.
4803         * emulparams/elf32ppclinux.sh: Use elf.sc.
4804         * emulparams/elf32ppcsim.sh: New file.
4805         * emulparams/elf32lppcsim.sh: New file.
4806         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
4807         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4808         * Makefile.in: Regenerate.
4809         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4811 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
4813         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4814         ~SEC_ALLOC sections too.  Init start address of debug sections.
4815         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4816         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4817         Also set all relocateable section start addresses.
4819 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
4821         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4822         Add new BSS_PLT variable for when .plt need not be contained in
4823         the file.  Move _etext so that it is also after .fini, and provide
4824         both etext and _etext with a leading underscore.  Mark the start
4825         and end of .sbss.
4827 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
4829         * emultempl/elf32.em (struct orphan_save): New.
4830         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4831         hold_interp): Make them struct orphan_save.
4832         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4833         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4834         the end of the relevant section list.  Also add associated section
4835         statements to the end of any previous orphan statements.
4836         * emultempl/armelf.em: Similarly.
4837         * emultempl/pe.em: Similarly.
4839 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
4841         * ld.texinfo (Simple Example): Remove extraneous paragraph.
4843 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
4845         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4846         --enable-build-warnings option.
4847         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4848         * Makefile.in, configure: Re-generate.
4850 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
4852         * po/ld.pot: Regenerate.
4854         * lexsup.c (help): Restore translated part of bug string.
4856         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4857         (DEP): Quote when passing vars to sub-make.  Add warning message
4858         to end.
4859         (DEP1): Rewrite for "gcc -MM".
4860         (CLEANFILES): Add DEP2.
4861         Update dependencies.
4862         * Makefile.in: Regenerate.
4864 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
4866         * ld.h: #include "bin-bugs.h"
4867         * lexsup.c (help): Use REPORT_BUGS_TO.
4869 2000-03-27  Denis Chertykov  <denisc@overta.ru>
4871         * configure.tgt (avr-*-*): New target support.
4872         * Makefile.am: Likewise.
4873         * scripttempl/elf32avr.sc: New script file.
4874         * emulparams/avr1200.sh: New file.
4875         * emulparams/avr23xx.sh: New file.
4876         * emulparams/avr4433.sh New file.
4877         * emulparams/avr44x4.sh New file.
4878         * emulparams/avr85xx.sh New file.
4879         * emulparams/avrmega103.sh New file.
4880         * emulparams/avrmega161.sh New file.
4881         * emulparams/avrmega603.sh New file.
4882         * Makefile.in: Regenerate.
4884 2000-03-09  Andreas Jaeger  <aj@suse.de>
4886         * Makefile.am (check-DEJAGNU): Also unset LANG.
4887         * Makefile.in: Rebuild.
4889 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
4891         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4892         archive.
4894 2000-03-02  H.J. Lu  <hjl@gnu.org>
4896         * emulparams/elf32mcore.sh: Include "getopt.h".
4898 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
4900         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4902 2000-03-01  H.J. Lu  <hjl@gnu.org>
4904         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4905         * emulparams/shpe.sh: Likewise.
4907 2000-03-01  Nick Clifton  <nickc@cygnus.com>
4909         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4910         to unused parameters.
4912         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4913         functions only used by DLL code.
4914         (_place_orphan): Initialise 'dollar'.
4916 2000-03-01  H.J. Lu  <hjl@gnu.org>
4918         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4919         indicate if the undefined symbol is a fatal error or not.
4920         Don't delete the output file if "fatal" is false.
4922 2000-02-29  H.J. Lu  <hjl@gnu.org>
4924         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4925         Set LC_COLLATE and LC_ALL to null and export them. It is for
4926         sort which expects the C locale.
4927         Add $(LIBS) to all $(HOSTING_LIBS).
4928         * Makefile.in: Rebuild.
4930 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
4932         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4933         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4934         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4935         (ld_emulation_xfer_struct): Add missing NULL initialiser for
4936         find_potential_libraries.
4938 2000-02-28  Jim Blandy  <jimb@redhat.com>
4940         * ldgram.y (exclude_name_list): Don't require a comma to separate
4941         list entries; the lexer considers commas to be valid part of a
4942         filename, so in something like `foo, bar' the comma is considered
4943         part of the first filename, `foo,'.
4944         * ld.texinfo: Update section on EXCLUDE_FILE lists.
4946 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
4948         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4949         host "i[3456]86-*-freebsdelf*".
4951 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
4953         * scripttempl/i386go32.sc: Move misplaced semicolons.
4955 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
4957         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4958         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4959         (eelf64hppa.c, ehppaelf.c): Remove targets.
4960         * Makefile.in: Rebuild.
4962 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4964         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4965         GNU/Linux/sparc, but keep the default as 32.
4967         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
4968         it default if sparcv9 or sparc64.
4970 2000-02-24  Nick Clifton  <nickc@cygnus.com>
4972         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4973         * Makefile.in: Regenerate.
4974         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4976         * ldemul.h (ld_emulation_xfer_struct): Add new field:
4977         find_potential_libraries.
4978         * ldemul.c (ldemul_find_potential_libraries): New function.
4980         * ldfile.c (ldfile_open_file_search): Allow function to be
4981         exported.
4982         (ldfile_open_file): Call ldemul_find_potential_libraries.
4983         * ldfile.h: Add prototype for ldfile_open_file_search.
4985         * pe-dll.c: Add support for ARM, MIPS and SH targets.
4987         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
4988         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
4990         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4991         (gld_X_find_potential_libraries): New function.  Search for
4992         libraries called "*.lib".
4994         * scripttempl/pe.sc: Add .pdata section.
4996 2000-02-23  Richard Henderson  <rth@cygnus.com>
4998         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4999         Add and use memory regions.
5001 2000-02-23  Linas Vepstas (linas@linas.org)
5003         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5005         * Makefile.am: Add support for Linux/IBM 370.
5006         * configure.tgt: Likewise.
5008         * Makefile.in: Regenerate.
5010 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
5012         * ldlang.c (print_input_section, print_data_statement,
5013         print_reloc_statement, print_padding_statement, insert_pad,
5014         size_input_section, lang_check_section_addresses,
5015         lang_size_sections, lang_do_assignments, lang_set_startof,
5016         lang_one_common): Change `opb' to unsigned.
5017         (lang_do_assignments): Also change `size' to unsigned.
5019 2000-02-16  Richard Henderson  <rth@cygnus.com>
5021         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5023 2000-02-16  Timothy Wall  <twall@cygnus.com>
5025         * mri.c (mri_draw_tree): Add default LMA region argument to call
5026         to lang_leave_output_section_statement.
5027         * ldlang.h: Update prototypes with LMA region arguments.
5028         * ldlang.c (lang_size_sections): Encapsulate region bounds
5029         checking in os_check_region call.
5030         (os_check_region): New function.
5031         (lang_output_section_statement_lookup): Initialize lma_region.
5032         (lang_leave_output_section_statement): Add LMA region argument.
5033         (lang_leave_overlay): Ditto.
5034         * ldgram.y: Handle LMA region syntax.
5035         * ld.texinfo (Output Section Description): Describe LMA region usage.
5036         * emultempl/armelf.em (gld$place_orphan): Add default value for
5037         lma region in call to lang_leave_output_section_statement.
5038         * emultempl/elf32.em (gld$place_orphan): Add default value for
5039         lma region in call to lang_leave_output_section_statement.
5040         * emultempl/pe.em (gld$place_orphan): Add default value for
5041         lma region in call to lang_leave_output_section_statement.
5044 2000-02-04  Timothy Wall  <twall@redhat.com>
5046         * ldlang.c (lang_check_section_addresses): Use bytes instead of
5047         octets when calculating section end addresses.
5049 2000-02-04  Timothy Wall  <twall@redhat.com>
5051         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5053 2000-02-03  Timothy Wall <twall@redhat.com>
5055         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5056         octet count.
5057         * ldlang.c (print_input_section, print_data_statement,
5058         print_reloc_statement, print_padding_statement): Print target
5059         address values and section sizes as bytes, not octets.
5060         (insert_pad) Calculate padding size in octets, and adjust "dot"
5061         by bytes.
5062         (size_input_section) Always adjust "dot" by bytes, not octets.
5063         (lang_check_section_addresses, lang_do_assignments) Adjust
5064         "dot" by bytes, not octets.  Use the larger of the directive size
5065         or octets_per_byte for the number of octets actually allocated in
5066         the output section.
5067         (lang_set_startof) Make sure STARTOF returns a target address.
5068         (lang_one_common) Record size changes in octets.
5069         (lang_abs_symbol_at_end_of) Section end symbol's value is
5070         recorded in target bytes.
5071         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5072         to be clear about behavior when an octet is smaller than one byte.
5074 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
5076         * ldcref.c (output_cref): Don't pass message strings to printf
5077         as format arg.
5078         Update copyright.
5080         * ldmisc.c (vfinfo): Same here.
5081         Update copyright.
5083 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
5085         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5086         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5087         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5088         Add missing NULL initialisers, and comments.
5090 2000-01-21  Nick Clifton  <nickc@cygnus.com>
5092         * ldlang.c (lang_size_sections): Fix typo in comment.
5094 2000-01-18  H.J. Lu  <hjl@gnu.org>
5096         * ldlang.c (lang_size_sections): Also update the current
5097         address of a region if the SEC_NEVER_LOAD bit is not set.
5099 2000-01-10  Philip Blundell  <pb@futuretv.com>
5101         * configure.tgt (arm*-*-conix*): New target.
5103 2000-01-07  Nick Clifton  <nickc@cygnus.com>
5105         * ld.texinfo (Options): Remind users to preceed linker command
5106         line switches with -Wl, (or whatever is appropriate) if it is
5107         being invoked by a comnpiler driver program.
5108         Fix description of the behaviour of the -n command line switch.
5110 2000-01-05  Catherine Moore  <clm@cygnus.com>
5112         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
5113         (name_list): New.
5114         * ld.texinfo (EXCLUDE_FILE): Update documentation.
5115         * ldgram.y (wildcard_spec): Support a list of excluded_files.
5116         (exclude_name_list): New.
5117         ldlang.c (walk_wild_section): Support list of excluded files.
5118         (print_wild_statement): Likewise.
5119         (lang_add_wild): Likewise.
5120         * ldlang.h (lang_wild_statement_type): Likewise.
5121         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5123 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
5125         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5126         (process_def_file): Use.
5127         (pe_dll_compat_implib): New variable.
5128         (make_one): Use.
5130         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5131         pe_dll_compat_implib.
5133         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5134         compat-implib options.
5135         (gld_${EMULATION_NAME}_list_options): List new options.
5136         (gld_${EMULATION_NAME}_parse_args): Handle.
5138         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5139         dll.
5141         * deffilep.y (opt_name): Allow "." in name.
5143 For older changes see ChangeLog-9899
5145 Local Variables:
5146 mode: change-log
5147 left-margin: 8
5148 fill-column: 74
5149 version-control: never
5150 End: