* Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
[binutils.git] / ld / ChangeLog
blobdcf5847894f18d57ecde54c5316627907869903e
1 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
3         * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
4         * Makefile.in: Regenerate.
6         * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
7         ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
8         ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
9         emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
10         emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
11         emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
12         emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
13         emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
14         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
15         emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
16         emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
17         boolean with bfd_boolean, true with TRUE, false with FALSE.  Simplify
18         comparisons of bfd_boolean vars with TRUE/FALSE.  Formatting.
20 2002-11-27  David O'Brien  <obrien@FreeBSD.org>
22         * configure.host: Fix generic FreeBSD configuration entry.
24 2002-11-27  H.J. Lu <hjl@gnu.org>
26         * ld.texinfo: Add the missing `;' to sample version scripts.
28 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
30         * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
32 2002-11-14  Egor Duda  <deo@logos-m.ru>
34         * ldmain.c (main): Make runtime relocs disabled by default. Remove
35         assignment which has no effect.
36         * pe-dll.h (pe_create_import_fixup): Change prototype.
37         * pe-dll.c (make_runtime_pseudo_reloc): New function.
38         (pe_create_runtime_relocator_reference): Ditto.
39         (pe_create_import_fixup): Handle relocations with non-zero addends.
40         * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
41         --disable-runtime-pseudo-reloc.
42         (make_import_fixup): Handle relocations with non-zero addends. Create
43         an external reference to _pei386_runtime_relocator symbol if at least
44         one pseudo reloc was created.
45         * ld.texinfo: Document --enable-runtime-pseudo-reloc and
46         --disable-runtime-pseudo-reloc options.
48 2002-11-12  Earl Chew <earl_chew@agilent.com>
50         * ldlang.c (lang_add_section): Discard debugging sections that have
51         been marked SEC_EXCLUDE.
53 2002-11-12  Nick Clifton  <nickc@redhat.com>
55         * configure.in (ALL_LINGUAS): Add da.
56         * configure: Regenerate.
57         * po/da.po: New Danish translation.
59 2002-11-12  Alan Modra  <amodra@bigpond.net.au>
61         * emultempl/ppc64elf.em (ppc_before_allocation): New function.
62         (LDEMUL_BEFORE_ALLOCATION): Define.
63         (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
64         linking.
65         * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
67 2002-11-11  Christopher Faylor  <cgf@redhat.com>
69         * configure.tgt (LIB_PATH): Default to searching w32api directory under
70         cygwin.
72 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
74         * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
75         of restricted auto-export libs.
77 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
79         * pe-dll.c (autofilter_liblist): Generalize library names to catch more
80         creative library naming instances like, e.g., libstdc++-2.a.
82 2002-11-06  Alexandre Oliva  <aoliva@redhat.com>
84         * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
85         * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
87 2002-11-07  Danny Smith  <dannysmith@users.sourceforge.net>
89         * deffilep.y (def_lex): Handle '@' as first character of an ID.
90         * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
91         (make_one): Don't prefix decorated fastcall symbols with '_'.
92         (pe_process_import_defs): Likewise.
93         * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
94         symbols to cdecl names or vise-versa.
96 2002-10-13  Eric Kohl  <ekohl@rz-online.de>
98         * pe-dll.c (process_def_file): Handle fastcall symbols when
99         generating undecorated aliases.  Don't prefix decorated fastcall
100         symbols with '_'.
101         (fill_exported_offsets): Don't prefix decorated fastcall symbols
102         with '_'.
104 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
106         * emultempl/aix.em: Use include <> for generated headers.
107         * emultempl/beos.em: Likewise.
108         * emultempl/elf32.em: Likewise.
109         * emultempl/pe.em: Likewise.
110         * ldctor.c: Likewise.
111         * ldexp.c: Likewise.
112         * ldfile.c: Likewise.
113         * ldlang.c: Likewise.
114         * ldlex.c: Likewise.
115         * ldlex.l: Likewise.
116         * ldmain.c: Likewise.
117         * ldmisc.c: Likewise.
118         * ldwrite.c: Likewise.
119         * lexsup.c: Likewise.
120         * mri.c: Likewise.
121         * pe-dll.c: Likewise.
123 2002-10-23  Jakub Jelinek  <jakub@redhat.com>
125         * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
126         sections into .rel{,a}.dyn.
128 2002-10-23  Nick Clifton  <nickc@redhat.com>
130         * lexsup.c (OPTION_NO_OMAGIC): Define.
131         (ld_options): Add "no-omagic" option.
132         (parse_args): Parse --no-omagic.
133         * ld.texinfo: Document --no-omagic.
134         * NEWS: Mention new option.
136 2002-10-21  Danny Smith  <dannysmith@users.sourceforeg.net>
138         * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
139         __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
141 2002-10-22  Alexandre Oliva  <aoliva@redhat.com>
143         * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
144         emulation name.  Set LIB_PATH only for native tools, and
145         search the ABI-specific versions of NATIVE_LIB_DIRS before the
146         .../lib variants, not instead of them.  Mostly copied from...
147         * emulparams/elf32ppc.sh: ... here.  Fixed typo.
148         * emulparams/elf64bmip-defs.sh: Backed out.
149         * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
150         * emulparams/elf64btsmip.sh: Likewise.
151         (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
152         TEXT_DYNAMIC): Removed.
154 2002-10-17  Alexandre Oliva  <aoliva@redhat.com>
156         * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
157         (GENERATE_SHLIB_SCRIPT): Set to yes.
158         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
159         * emulparams/elf32bmipn32.sh: here.
160         (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
161         * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
162         * emulparams/elf64bmip-defs.sh: New file.  Extend
163         elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
164         * emulparams/elf64bmip.sh: Bring in definitions from
165         elf64bmip-defs.sh.
166         (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
167         settings.
168         (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
169         * emulparams/elf64btsmip.sh: Bring in definitions from
170         elf64bmip-defs.sh.
171         (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
172         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
174 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
176         * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
177         (s390-*-linux*): Add elf64_s390 emulation if want64.
178         * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
179         genscript.sh changes.
180         * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
181         * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
183 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
185         * ldlang.c (load_symbols): Revert last change.
187 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
189         * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
190         just_syms_flag.
191         (lang_reasonable_defaults): Don't compare against false.
192         (size_input_section): Likewise.
193         (lang_size_sections_1): Likewise.
194         (lang_do_assignments): Likewise.
195         (lang_add_output): Likewise.
197         * Makefile.am: Run "make dep-am".
198         * Makefile.in: Regenerate.
199         * ldver.c: #include "bfdver.h".
201 2002-10-13  Stephane Carrez  <stcarrez@nerim.fr>
203         * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
204         .finiN section.
205         * scripttempl/elfm68hc12.sc: Likewise.
207 2002-10-11  Alan Modra  <amodra@bigpond.net.au>
209         * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
211         * ldgram.y (memory_spec): Provide empty action.
212         (section <NAME>): Likewise.
214 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
216         * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
217         they have OUTPUT_FORMAT not matching actual output format.
218         * ldlang.c (lang_get_output_target): New function.
219         (open_output): Use it.
220         * ldlang.h (lang_get_output_target): New prototype.
222 2002-10-10  Alan Modra  <amodra@bigpond.net.au>
224         * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
225         when orphan is .rel, .rela when orphan is .rela.
226         (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
227         first.  Remove outsecname var.
229 2002-10-09  Richard Shann <richard.shann@superh.com>
230             Stephen Clarke <stephen.clarke@superh.com>
232         * Makefile.am: Add eshelf32_linux.o and
233         eshlelf32_linux.o, new emulations for sh64 Linux.
234         * Makefile.in: Regenerate.
235         * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
236         * emulparams/shelf32_linux.sh: New file.
237         * emulparams/shlelf32_linux.sh: New file.
239 2002-10-08  H.J. Lu <hjl@gnu.org>
241         * ldlang.c (lang_file_exist): Removed.
242         (new_afile): Revert the last change.
243         * ldlang.h (lang_file_exist): Removed.
244         * lexsup.c (parse_args): Revert the last change.
246 2002-10-07  Ralf Habacker  <Ralf.Habacker@freenet.de>
248         * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
249         auto-import symbols.
250         (make_one): Create _nm_<symbol> for data only.
252 2002-10-05  Elias Athanasopoulos  <eathan@otenet.gr>
254         * ldlang.c (lang_file_exist): New function.
255         (new_afile): Abort if the filename to be added matches the linker
256         output filename.
257         * ldlang.h: Add prototype for lang_file_exist.
258         * lexsup.c (parse_args): Abort if the output filename matches
259         one of the input filenames.
261 2002-10-02  Alan Modra  <amodra@bigpond.net.au>
263         * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
265 2002-09-30  Alan Modra  <amodra@bigpond.net.au>
267         * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
268         * scripttempl/elfm68hc11.sc: Likewise.
269         * scripttempl/elfm68hc12.sc: Likewise.
271         * emultempl/elf32.em (output_rel_find): Always place orphan loadable
272         reloc sections just before .rel.plt/.rela.plt.
273         (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
274         Only put loadable reloc sections in hold_rel.
276 2002-09-29  H.J. Lu <hjl@gnu.org>
278         * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
280 2002-09-25  Daniel Jacobowitz  <drow@mvista.com>
282         From "Anita Kulkarni" <AnitaK@kpit.com>
283         * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
284         sections.
286 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
288         * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
289         TARGET_PAGE_SIZE.
290         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
291         SEGMENT_SIZE alignment.
292         * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
293         (SEGMENT_SIZE): Define.
295         * ldexp.c (fold_unary): New.  Split out from exp_fold_tree.
296         (fold_binary): Correct abs - non-abs case.
297         (fold_trinary): New.  Split out from exp_fold_tree.
299 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
301         * emulparams/elf64ppc.sh (DATA_ADDR): Define.
302         * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
303         for start of .data, instead align up to 256M boundary.
304         * scripttempl/aix.sc: Likewise.
306 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
308         * scripttempl/i386go32.sc: Handle bss unique sections.
310 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
312         * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
314 2002-09-17  Stan Cox  <scox@redhat.com>
316         * emulparams/elf32bmipn32-defs.sh: New file.
317         * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
318         * emulparams/elf32btsmipn32.sh: Likewise.
319         * emulparams/elf64bmip.sh: Likewise.
320         * emulparams/elf64btsmip.sh: Likewise.
322 2002-09-16  Bruno Haible  <bruno@clisp.org>
324         * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
325         elf32-i386-freebsd.
326         * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
327         elf64-alpha-freebsd.
329 2002-09-11  Nick Clifton  <nickc@redhat.com>
331         * NEWS: New TI port supports both C4x and C3x series of DSPs.
333         * po/tr.po: Updated Turkish translation.
335 2002-09-06  Jeffrey A Law  (law@redhat.com)
337         * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
339 2002-09-02  Nick Clifton  <nickc@redhat.com>
341         * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
342         __ep.
343         * emulparams/v850.sh (TEMPLATE_NAME): Define.
345 2002-08-30  Nick Clifton  <nickc@redhat.com>
347         * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
348         used.  Change INSN to start at 0x01000000 and extend for
349         256K (ignoring holes).  Start the STACK on a word aligned
350         boundary.
351         (.rodata): Start it at the READONLY_START_ADDR.
353 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
355         * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
357 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
359         * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
360         added makefile targets for this file.
361         * Makefile.in: Regenerate.
362         * configure.tgt: Added tic4x-coff and c4x-coff emulations.
363         * NEWS: Mention new port.
365 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
367         * emulparams/tic3xcoff.sh: New file.
368         * emulparams/tic4xcoff.sh: New file.
369         * scripttempl/tic3xcoff.sc: New file.
370         * scripttempl/tic4xcoff.sc: New file.
372 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
374         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
375         strtoul and strtoull with bfd_scan_vma.
376         (gld${EMULATION_NAME}_read_file): Likewise.
378 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
380         * configure.tgt: Remove h8[35]00-*-hms*.  Add h8500-*-rtems*.
382 2002-08-27  Egor Duda  <deo@logos-m.ru>
384         * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
385         Add symbols for application to access them.
387 2002-08-27  Nick Clifton  <nickc@redhat.com>
389         * emultempl/armelf.em:  Revert this patch, it is not needed.
391         2002-08-22  Adam Nemet  <anemet@lnxw.com>
393 2002-08-20 Dan Kegel <dank@kegel.com>
395         * configure.in: added --with-lib-path argument to ld's configure
396         to set LIB_PATH.
397         * ld/NEWS: Document new switch.
398         * ld/README: Mention new switch.
399         * configure: Regenerate.
400         * Makefile.in: Regenerate.
402         Based on this patch:
403         2001-04-25  Christopher Faylor <cgf@cygnus.com>
405         * Makefile.in (LIB_PATH): Make configurable.
406         (GENSCRIPTS): Set LIB_PATH in environment.
407         * configure.in: Substitute LIB_PATH.
409 2002-08-22  Adam Nemet  <anemet@lnxw.com>
411         * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
412         (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
413         depending on the type of the function.
414         (arm_elf_convert_thumb_symbol_to_address): New function.
416 2002-08-22  Graeme Peterson  <gp@qnx.com>
418         * Makefile.am: Add esh{l}elf_nto.o files.
419         * Makefile.in: Regenerate.
420         * configure.tgt: Add support for sh-**-nto* targets.
421         * emulparams/shelf_nto.sh: New file.
422         * emulparams/shlelf_nto.sh: New file.
424 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
426         * ldlang.c (offsetof): Define if not defined.
428 2002-08-14  H.J. Lu <hjl@gnu.org>
430         * configure.tgt: Always enable 64bit emulations for 32bit
431         Linux/mips.
433 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
435         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
436         (MAXPAGESIZE): Set to 1.
438         * ld.h (ALIGN_N): Delete.
439         * ldexp.h (align_n): Declare.
440         * ldexp.c (align_n): New function.
441         (fold_binary): Use align_n instead of ALIGN_N.
442         (exp_fold_tree): Likewise.
443         * ldlang.c (lang_size_sections_1): Likewise.
444         (lang_one_common): Likewise.
445         * ld.texinfo (ALIGN): Remove power of 2 restriction.
447 2002-07-31  Graeme Peterson  <gp@qnx.com>
449         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
450         * Makefile.am: Add eelf32{l}ppcnto.o files.
451         * Makefile.in: Regenerate.
452         * emulparams/elf32lppcnto.sh: New file.
453         * emulparams/elf32ppcnto.sh: New file.
455 2002-08-07  H.J. Lu <hjl@gnu.org>
457         * ld.texinfo: Document --no-undefined-version.
459         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
460         `script.' fields to 0.
462         * ldmain.c (main): Initialize the allow_undefined_version to
463         true.
465         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
466         (ld_options): Add --no-undefined-version.
467         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
469 2002-08-07  Nick Clifton  <nickc@redhat.com>
471         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
472         an interworking bfd if there are input bfds. (107501)
474 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
476         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
477         2002-05-10 change.
479 2002-08-01  Nick Clifton  <nickc@redhat.com>
481         * emulparams/armelf.sh: Revert previous delta.
482         * scripttempl/elf.sc: Revert previous delta.
484 2002-07-31  H.J. Lu <hjl@gnu.org>
486         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
487         --enable-64-bit-bfd.
489 2002-07-31  H.J. Lu <hjl@gnu.org>
491         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
492         64bit BFD is selected.
494 2002-07-31  H.J. Lu <hjl@gnu.org>
496         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
497         if 64bit BFD is selected.
499 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
501         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
502         link_info.common_skip_ar_aymbols.
503         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
505         * ldmain.c (main): Initialize new field
506         link_info.common_skip_ar_aymbols.
508 2002-07-31  Adam Nemet  <anemet@lnxw.com>
510         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
511         to .plt.thumb.
512         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
513         used.
515 2002-07-31  Nick Clifton  <nickc@redhat.com>
517         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
518         of the PDP-11 and 2.11BSD a.out support.
520 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
522         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
523         for n32 ABI support.
524         * Makefile.in: Regenerate.
525         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
526         n32 ABI emulations for these 64 bit targets.
527         * emulparams/elf32bmipn32.sh: Expand comment.
528         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
529         n32 ABI.
530         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
532 2002-07-30  Graeme Peterson  <gp@qnx.com>
534         * configure.tgt: Add support for arm-*-nto target.
535         * Makefile.am: Add earmnto.o file.
536         * Makefile.in: Regenerate.
537         * NEWS: Mention port of ARM support to QNX.
538         * emulparams/armnto.sh: New file.
540 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
542         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
543         for relocatable link.
544         (lang_size_sections_1): Don't make .tbss zero size for relocatable
545         link.
547 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
549         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
550         (STACK_ADDR): New.
552 2002-07-25  Nick Clifton  <nickc@redhat.com>
554         * po/sv.po: Updated Swedish translation.
555         * po/es.po: Updated Spanish translation.
556         * po/fr.po: Updated French translation.
558 2002-07-24  Nick Clifton  <nickc@redhat.com>
560         * po/sv.po: Updated Swedish translation.
561         * po/es.po: Updated Spanish translation.
563 2002-07-23  Nick Clifton  <nickc@redhat.com>
565         * po/fr.po: Updated French translation.
567 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
569         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
570         bomb on /DISCARD/ input section.
571         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
572         * emultempl/mmo.em (mmo_place_orphan): Likewise.
574 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
576         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
577         output section.
579 2002-07-16  Denis Chertykov  <denisc@overta.ru>
580             Nick Clifton  <nickc@redhat.com>
581             Frank Ch. Eigler  <fche@redhat.com>
582             John Healy  <jhealy@redhat.com>
584         * configure.tgt: Add support for ip2k-elf.
585         * Makefile.am: Add support for ip2k-elf.
586         * Makefile.in: Regenerate.
587         * emulparams/elf32ip2k.sh: New file.
588         * scripttempl/ip2k.sc: New file
589         * NEWS: Mention support for new port.
591 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
593         * NEWS: Add 'Changes in 2.13'.
595 2002-07-14  H.J. Lu <hjl@gnu.org>
597         * ld.texinfo: Document a .symver takes precedence over a
598         version script.
600 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
602         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
603         (COMMONPAGESIZE): Define.
605 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
607         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
609 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
611         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
612         powerpc-*-openbsd* and sparc64-*-openbsd*.
613         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
614         * Makefile.in: Regenerate.
615         * emulparams/hppaobsd.sh: New file.
617 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
619         * ldlang.c (print_wild_statement): Fix output formatting.
621 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
623         * ldlang.c: (strip_excluded_output_sections): New function.
624         (lang_process): Call it.
625         (lang_size_sections_1): Revert 2002-06-10 change.
627 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
629         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
630         Run "make dep-am".
631         * Makefile.in: Regenerate.
633 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
635         * ldfile.c (ldfile_try_open_bfd): Formatting.
637         * ldmisc.c (demangle): Move so that it doesn't intrude between
638         vfinfo comment and body.  Add comment.
640 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
642         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
644 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
646         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
647         * ldlang.c (entry_sym): Likewise.
648         (ldlang_undef_chain_list_type): Likewise.
649         (lang_finish): Adjust references to entry_symbol.
650         (lang_add_entry): Likewise.
651         (lang_gc_sections): Use link_info.gc_sym_list.
652         (lang_process): Set link_info.gc_sym_list.
653         * ldlex.l: Include bfdlink.h.
654         * ldmain.c (main): Init link_info.gc_sym_list.
655         * emultempl/aix.em: Adjust references to entry_symbol.
656         * emultempl/armcoff.em: Likewise.
657         * emultempl/armelf.em: Likewise.
658         * emultempl/pe.em: Likewise.
659         * emultempl/ppc64elf.em (ppc_after_open): New function.
660         (LDEMUL_AFTER_OPEN): Define.
661         * emulparams/elf64ppc.sh: KEEP .opd sections.
663 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
665         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
666         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
667         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
668         (EEPROM_START_ADDR): Define.
669         (EEPROM_MEMORY): Define.
670         * emulparams/m68hc12elf.sh: Likewise.
671         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
672         section to put soft registers in .page0.
673         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
675 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
677         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
678         section.  Add ${RELOCATING-0}.
680 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
682         * emulparams/shelf.sh (STACK_ADDR): Don't define.
683         (OTHER_SECTIONS): Define.
684         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
685         (OTHER_SECTIONS): Undef.
687 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
689         * ldmisc.c (demangle): Restore dots stripped from sym name.
691 2002-06-25  H.J. Lu <hjl@gnu.org>
693         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
694         * Makefile.in: Regenerated.
696 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
698         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
699         the size of attached object files, to allow make the object files
700         available via FTP or HTTP and to mention that the mail will be
701         sent to a mailing list.
703 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
705         * ld/configure.host (romp): Drop support.
707 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
709         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
710         section flags for SEC_DATA, rather than for SEC_CODE being unset.
712 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
714         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
715         format specifier used to print BFD name.
717 2002-06-18  Dave Brolley  <brolley@redhat.com>
719         From Catherine Moore, Michael Meissner, Jim Blandy:
720         * emulparams/elf32frv.sh: New file.
721         * configure.tgt: Support frv-*-*.
722         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
723         (eelf32frv.c): New target.
725 2002-06-17  Tom Rix  <trix@redhat.com>
727         * emultempl/elf32.em: gld*_get_script:  Check for
728         GENERATE_COMBRELOC_SCRIPT.
729         * scripttempl/elfd10v.sc : Fix STACK and INSN.
730         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
732 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
734         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
736 2002-06-12  H.J. Lu <hjl@gnu.org>
738         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
739         false if xvec doesn't match.
741 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
743         * ldlang.c (lang_size_sections_1): Skip removed output sections.
745 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
747         * ldexp.c: Replace CONST with const.
748         * ldfile.c: Likewise.
749         * ldfile.h: Likewise.
750         * ldlex.l: Likewise.
751         * mri.c: Likewise.
752         * pe-dll.h: Likewise.
754 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
756         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
758 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
760         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
761         to -1 == implicit enable.
762         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
763         initialize link_info.pei386_auto_import to -1 == implicit
764         enable.
765         (gld_${EMULATION_NAME}_parse_args): When processing
766         --enable-auto-import and --disable-auto-import options, use
767         '1' and '0' instead of 'true' and 'false'.
768         (pe_find_data_imports): Only issue message about auto-import
769         when the feature is implicitly enabled.  Downgrade message to
770         informational instead of warning.
772 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
774         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
776 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
778         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
779         HOSTING_CRT0 and HOSTING_LIBS.
781 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
783         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
785 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
787         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
788         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
790 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
792         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
793         SEC_EXCLUDE sections when doing a relocatable link.
795 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
797         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
798         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
799         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
800         (eshlelf64_nbsd.c): New rules.
801         * Makefile.in: Regenerate.
802         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
803         (sh64-*-netbsd*): New targets.
804         * emulparams/shelf32_nbsd.sh: New file.
805         * emulparams/shelf64_nbsd.sh: New file.
806         * emulparams/shlelf32_nbsd.sh: New file.
807         * emulparams/shlelf64_nbsd.sh: New file.
809 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
811         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
813 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
815         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
816         C++ constructors/destructors, loosely based on the m68hc11 port.
818 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
820         * Makefile.in: Regenerate.
821         * aclocal.m4: Regenerate.
822         * config.in: Regenerate.
823         * configure: Regenerate.
825 2002-05-31  Graeme Peterson  <gp@qnx.com>
827         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
828         (ei386nto.c): Add rule.
829         * Makefile.in: Regenerate.
830         * configure.tgt: Add i[3456]86-*-nto-qnx*.
831         * emulparams/i386nto.sh: New file.
833 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
835         * NEWS: Add entry for VAX ELF support.
837 2002-05-29  Matt Thomas  <matt@3am-software.com>
838             Jason Thorpe  <thorpej@wasabisystems.com>
840         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
841         (eelf32vax.c)
842         (evaxnbsd.c): New rules.
843         * Makefile.in: Regenerate.
844         * configure.tgt (vax-*-netbsdelf*)
845         (vax-*-netbsdaout*)
846         (vax-*-netbsd*): New targets.
847         * emulparams/elf32vax.sh: New file.
848         * emulparams/vaxnbsd.sh: New file.
850 2002-05-29  Adam Nemet  <anemet@lnxw.com>
852         * emultempl/armelf.em (arm_elf_after_open): Don't determine
853         bfd_for_interwork, instead add glue sections to each input bfd.
854         (bfd_for_interwork): New global.
855         (arm_elf_set_bfd_for_interworking): New function.
856         (arm_elf_before_allocation): Use it.
858 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
860         * Makefile.am: Add DLX make target.
861         * configure.tgt: Add DLX configuration.
862         * Makefile.in: Regenerate.
863         * emulparams/elf32_dlx.sh: New file
864         * scripttempl/dlx.sc: New file
866 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
868         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
869         * Makefile.in: Regenerate.
870         * emulparams/elf_chaos.sh: Use elf_chaos script.
871         * scripttempl/elf_chaos.sc: New file.
873 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
875         * ldlang.c (lang_size_sections_1): Move check for conflicting load
876         addresses and regions from here...
877         (lang_get_regions): ...to this new function.
878         (lang_leave_output_section_statement): Use lang_get_regions.
879         (lang_leave_overlay): Likewise.
880         * mri.c (mri_draw_tree): Pass null as last argument to
881         lang_leave_output_section_statement.
882         * emultempl/elf32.em (gld*_place_orphan): Likewise.
883         * emultempl/mmo.em (mmo_place_orphan): Likewise.
884         * emultempl/pe.em (gld*_place_orphan): Likewise.
886 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
888         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
890 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
892         * ldemul.c: Fix formatting.
893         * ldfile.c: Likewise.
894         * pe-dll.c: Likewise.
895         * pe-dll.h: Likewise.
897 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
899         * ldlang.c (lang_process): Formatting, grammar.
901         * ldlex.l: Use #include "" instead of <> for local header files.
903 2002-05-24  TAMURA Kent <kent@netbsd.org>
905         * configure.tgt: Add a target for i386-netbsdpe.
907 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
909         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
910         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
911         output section if necessary.  Handle .tbss.
912         (lang_size_sections): Clear _raw_size for .tbss section
913         (it allocates space in PT_TLS segment only).
914         * ldwrite.c (build_link_order): Build link order for .tbss too.
916 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
918         * configure.in: Correct spelling of AC_PREREQ.
920 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
922         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
923         default.
924         (autofilter_objlist): Add crtbegin.o, crtend.o.
926 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
928         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
929         (longopts): Add new option --exclude-libs.
930         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
931         (gld_${EMULATION_NAME}_parse_args): Use it.
932         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
933         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
934         from whole archives.
935         (pe_dll_add_excludes): Set excludes->type.
936         (auto_export): Add new variable libname and set to archive basename if
937         abfd.  Use it when filtering default and user-specified libarary
938         excludes.  Let string "ALL" mean all libs when filtering user-specified
939         libs.
940         * ld.texinfo: Document --exclude-libs.
942 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
944         * ldemul.c (ldemul_new_vers_pattern): New function.
945         * ldemul.h (ldemul_new_vers_pattern): Declare.
946         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
947         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
948         * emultempl/ppc64elf.em (dotsyms): New static var.
949         (gld${EMULATION_NAME}_new_vers_pattern): New function.
950         (LDEMUL_NEW_VERS_PATTERN): Define.
951         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
952         (PARSE_AND_LIST_LONGOPTS): Likewise.
953         (PARSE_AND_LIST_ARGS_CASES): Handle them.
954         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
955         initialiser.
956         * emultempl/armcoff.em: Likewise.
957         * emultempl/armelf_oabi.em: Likewise.
958         * emultempl/beos.em: Likewise.
959         * emultempl/elf32.em: Likewise.
960         * emultempl/generic.em: Likewise.
961         * emultempl/gld960.em: Likewise.
962         * emultempl/gld960c.em: Likewise.
963         * emultempl/linux.em: Likewise.
964         * emultempl/lnk960.em: Likewise.
965         * emultempl/m68kcoff.em: Likewise.
966         * emultempl/mipsecoff.em: Likewise.
967         * emultempl/pe.em: Likewise.
968         * emultempl/sunos.em: Likewise.
969         * emultempl/ticoff.em: Likewise.
970         * emultempl/vanilla.em: Likewise.
972 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
974         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
975         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
976         (LIB_SEARCH_DIRS): No need to use "tr".
977         (COMPILE_IN): Only set for native targets.
978         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
979         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
980         * configure.tgt (powerpc*): Set tdir_*.
981         (powerpcle*): Correct targ_extra_emuls.
982         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
983         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
985 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
987         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
988         calling lang_add_entry.
990 2002-05-21  H.J. Lu  (hjl@gnu.org)
992         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
993         "-z muldefs".
994         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
996         * ld.texinfo: Updated for --allow-multiple-definition and
997         "-z muldefs".
999         * ldmain.c (main): Initialize the allow_multiple_definition
1000         field to false.
1002         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1003         (ld_options): Add --allow-multiple-definition.
1004         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1006 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
1008         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1009         (earmelfb_nbsd.c): New rule.
1010         * Makefile.in: Regenerate.
1011         * configure.tgt (armeb-*-netbsdelf*): New target.
1012         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1013         (arm-*-netbsd*): Likewise.
1014         * emulparams/armelfb_nbsd.sh: New file.
1016 2002-05-18  Tom Rix  <trix@redhat.com>
1018         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1019         support.
1021 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1023         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1024         * Makefile.in: Regenerate.
1025         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1027 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1029         * emulparams/avr1.sh: New file.
1030         * emulparams/avr2.sh: New file.
1031         * emulparams/avr3.sh: New file.
1032         * emulparams/avr4.sh: New file.
1033         * emulparams/avr5.sh: New file.
1034         * scripttempl/avr.sc: New file.
1036 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
1038         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1039         (lang_place_orphans): Abort if just_syms_flag.
1041 2002-05-10  Tom Rix  <trix@redhat.com>
1043         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1044         architecture and machine information in the output bfd.
1045         (gld*_before_parse): Remove old arch and machine code.
1046         (choose_target): Rename to gld*_choose_target.
1047         (rtld): Change type to int.
1048         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1049         objects in XCOFF archives.
1050         * ldfile.h: Update copyright date.
1052 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
1054         * ldmain.c (main): Enable -z combreloc by default.
1056 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
1058         * Makefile.am: Honour DESTDIR.
1059         * Makefile.in: Regenerate.
1061 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
1063         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1064         (lang_enter_overlay): Remove the last two parameters.
1065         (lang_leave_overlay): Take them here instead.
1066         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1067         (section): Pass LMA and crossref flag to lang_leave_overlay rather
1068         than lang_enter_overlay.
1069         * ldlang.c (lang_memory_region_lookup): Return null for null names.
1070         (lang_output_section_statement_lookup): Initialize update_dot_tree.
1071         (lang_size_sections_1): Evaluate it.
1072         (lang_leave_output_section_statement): Rework LMA lookup.
1073         (overlay_lma, overlay_nocrossrefs): Remove.
1074         (lang_enter_overlay): Remove LMA and crossref arguments.
1075         (lang_enter_overlay_section): Don't set the LMA here.
1076         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
1077         assignment to the last section's update_dot_tree.  Unconditionally
1078         use the load and run-time regions specified in the OVERLAY statement.
1079         Likewise the first section's LMA.  Only set the other sections' LMAs
1080         when no load region is given.
1082 2002-05-06  Nick Clifton <nickc@redhat.com>
1084         * po/sv.po: New translation.
1086 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
1088         * emultempl/hppaelf.em (build_section_lists): New function.
1089         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1090         and build_section_lists.
1092 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
1094         * ld.h: Fix formatting.
1095         * ldexp.c: Likewise.
1096         * ldfile.c: Likewise.
1097         * ldlang.c: Likewise.
1098         * ldmain.c: Likewise.
1099         * lexsup.c: Likewise.
1100         * pe-dll.c: Likewise.
1102 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
1104         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1105         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
1106         (build_section_lists): Do output_section tests here.
1108 2002-04-30  Tom Rix  <trix@redhat.com>
1110         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1112 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
1114         Long branch stubs, multiple stub sections.
1115         * emultempl/ppc64elf.em: Include ldctor.h.
1116         (stub_file): New var.
1117         (group_size): New var.
1118         (ppc_create_output_section_statements): New function.
1119         (struct hook_stub_info): New.
1120         (hook_in_stub): New function.
1121         (ppc_add_stub_section): New function.
1122         (ppc_layout_sections_again): New function.
1123         (build_section_lists): New function.
1124         (gld${EMULATION_NAME}_finish): Rewrite.
1125         (real_func): New var.
1126         (ppc_for_each_input_file_wrapper): New function.
1127         (ppc_lang_for_each_input_file): New function.
1128         (lang_for_each_input_file): Define.
1129         (PARSE_AND_LIST_PROLOGUE): Define.
1130         (PARSE_AND_LIST_LONGOPTS): Define.
1131         (PARSE_AND_LIST_OPTIONS): Define.
1132         (PARSE_AND_LIST_ARGS_CASES): Define.
1133         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1135 2002-04-30  Tom Rix  <trix@redhat.com>
1137         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1138         -blibpath, -bnolibpath support.
1140 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
1142         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1143         (eelf32ppcwindiss.c): New target.
1144         * Makefile.in: Regenerated.
1145         * configure.tgt: Add support for powerpc-*-windiss.
1146         * emulparams/elf32ppcwindiss.sh: New file.
1148 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
1150         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1151         * ldexp.c (exp_print_token): Add "infix_p" argument.
1152         (exp_print_tree): Update accordingly.
1154 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
1156         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1157         * Makefile.in: Regenerate.
1158         * mpw-elfmips.c: Delete.
1159         * mpw-eppcmac.c: Delete.
1160         * mpw-esh.c: Delete.
1161         * mpw-idtmips.c: Delete.
1163 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
1165         * emulparams/shelf32.sh (MACHINE): Now sh5.
1167 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1169         * ldgram.y: Fix syntax warning.
1171 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
1173         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1174         to prevent "-n" from being taken as an abbreviation for
1175         "--no-pipeline-knowledge".
1177 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1179         * ldlang.c (lang_size_sections_1): Don't complain about
1180         SEC_NEVER_LOAD sections having no memory region specified.
1182         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1184 2002-04-07  matthew green  <mrg@redhat.com>
1186         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1188 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1190         * dep-in.sed: Cope with absolute paths.
1191         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1192         Run "make dep-am".
1193         * Makefile.in: Regenerate.
1195 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1197         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1199 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1201         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1202         is smaller than maximum, round dot up to common page boundary.
1204 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
1206         * configure.host: Set up for generic hosts first, then tweak as
1207         necessary in more specific targets.
1208         (HOSTING_LIBS): Include libgcc_eh.a if found.
1210 2002-03-23  Andreas Jaeger  <aj@suse.de>
1212         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1214 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
1216         * Makefile.am: Run "make dep-am".
1217         * Makefile.in: Regenerate.
1219 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
1221         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1223 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
1225         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1226         add the symbol to the linker hash table immediately.
1227         (lang_place_undefineds): Split symbol creation out..
1228         (insert_undefined): ..to here.
1230 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
1232         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1233         the contents of the buffer returned from basename function will are
1234         getting overwritten while still being used.
1236 2002-03-18  Jan Hubicka  <jh@suse.cz>
1237             Andreas Jaeger  <aj@suse.de>
1238             Andreas Schwab  <schwab@suse.de>
1240         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1241         * elf_x86_64.sh (ARCH): Set to i386:x86-64
1242         set libraries to default to lib64 paths.
1244 2002-03-18  Tom Rix  <trix@redhat.com>
1246         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1247         * configure.tgt : Same.
1248         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1249         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1250         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1251         emulation parameters for better -b32, -b64 support.
1252         * emulparms/aixrs6.sh : Same.
1253         * emulparms/ppcmacos.sh : Same.
1254         * emultempl/aix.em (choose_target) : Use new emulation parameters
1255         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1256         * Makefile.in : Regenerate.
1258 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
1260         * po/fr.po: Updated version.
1262 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
1264         * ldmain.c (main): Move .text readonly flag fudges from here..
1265         * ldlang.c (lang_process): ..to here.
1267 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
1269         * ldlang.c (lang_check): Remove the word size check added in last
1270         change.  Treat emitrelocations case as for relocatable links.
1272 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
1274         * po/fr.po: Updated version.
1276 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
1278         * ldlang.c (lang_check): Do relocatable link checks first, so that
1279         warn_mismatch can't override.  Check compatible and word size too.
1281 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
1283         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1285 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
1287         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1288         DATA_SEGMENT_ALIGN.
1290 2002-03-04  H.J. Lu <hjl@gnu.org>
1292         * scripttempl/elf.sc: Put .preinit_array, .init_array and
1293         .fini_array in the data segment.
1295 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
1297         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1299 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
1301         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1302         .init_array, and .fini_array.
1304 2002-02-20  Andreas Schwab  <schwab@suse.de>
1306         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1307         .IA64_unwind* in a relocatable link.
1309 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
1311         * NEWS: Mark 2.12 branch.
1313 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1315         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1316         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1318 2002-02-18  Tom Rix  <trix@redhat.com>
1320         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1321         (gld*_before_allocation): Same.
1322         (gld*_create_output_section_statements): Generate
1323         __rtinit if run time linking.  Add librtl.a to the link.
1324         (gld*_read_file): Clean.
1326 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1328         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1330 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
1332         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1333         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1334         and eelf64alpha_fbsd.
1335         * Makefile.in: Regenerate.
1336         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1337         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1338         use a FreeBSD-specific emulation rather than the psABI one.
1339         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1340         for all FreeBSD ELF systems.
1341         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1342         emulation.
1343         * emulparams/elf32ppc_fbsd.sh: Likewise.
1344         * emulparams/elf64_ia64_fbsd.sh: Likewise.
1345         * emulparams/elf64_sparc_fbsd.sh: Likewise.
1346         * emulparams/elf64alpha_fbsd.sh: Likewise.
1347         * emulparams/elf_i386_fbsd.sh: Likewise.
1348         * emulparams/elf_x86_64_fbsd.sh: Likewise.
1350 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
1352         * po/tr.po: Updated version.
1354 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1356         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1357         (FILL): Likewise.
1359 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
1361         * emultempl/mmo.em (mmo_after_open): Don't call
1362         _bfd_mmix_check_all_relocs when producing ELF output.
1364 2002-02-15  Richard Henderson  <rth@redhat.com>
1366         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1367         definition.  Emit a unop+nop pair.
1369 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
1371         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1372         for presence of .MMIX.reg_contents.linker_allocated before early
1373         exit.
1375         * NEWS: Mention support for MMIX.
1377 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
1379         Support arbitrary length fill patterns.
1380         * ld.texinfo (Output Section Fill): Describe fill expressions.
1381         (FILL): Refer to the above.
1382         * ldexp.h (etree_value_type): Add "str" field.
1383         (union etree_union): Add "str" to "value" struct.
1384         (exp_bigintop): Declare.
1385         (exp_get_fill): Declare.
1386         * ldexp.c: Include "safe-ctype.h".
1387         (exp_intop): Set value.str to NULL.
1388         (exp_bigintop): New function.
1389         (new_rel): Pass in "str", and set new.str from it.
1390         (new_rel_from_section): Set new.str to NULL.
1391         (fold_name): Adjust calls to new_rel.
1392         (exp_fold_tree): Likewise.
1393         (exp_get_fill): New function.
1394         * ldgram.y (struct big_int bigint, fill_type *fill): New.
1395         (INT): Returns a "bigint".  Adjust all code handling INTs.
1396         (fill_opt): Returns a "fill".
1397         (fill_exp): Split out of fill_opt, use for FILL.
1398         * ldlang.h (struct _fill_type): New.
1399         (fill_type): Move typedef to ldexp.h.
1400         (lang_output_section_statement_type): "fill" is now a pointer.
1401         (lang_fill_statement_type): Likewise.
1402         (lang_padding_statement_type): Likewise.
1403         (lang_add_fill): Now takes a "fill_type *" param.
1404         (lang_leave_output_section_statement): Likewise.
1405         (lang_do_assignments): Likewise.
1406         (lang_size_sections): Likewise.
1407         (lang_leave_overlay_section): Likewise.
1408         (lang_leave_overlay): Likewise.
1409         * ldlang.c: Include ldgram.h after ldexp.h.
1410         (lang_output_section_statement_lookup): Adjust for fill_type change.
1411         (print_fill_statement): Likewise.
1412         (print_padding_statement): Likewise.
1413         (insert_pad): Now takes a "fill_type *" arg.
1414         (size_input_section): Likewise.
1415         (lang_size_sections_1): Likewise.
1416         (lang_size_sections): Likewise.
1417         (lang_do_assignments): Likewise.
1418         (lang_add_fill): Likewise.
1419         (lang_leave_output_section_statement): Likewise.
1420         (lang_leave_overlay_section): Likewise.
1421         (lang_leave_overlay): Likewise.
1422         Adjust all callers of the above function.
1423         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
1424         starting with "0X" as well as "0x".  Return bigint.str for hex
1425         numbers starting with "0x" or "0X", zero bigint.str otherwise.
1426         Always use base 16 for numbers starting with "$".
1427         * ldmain.c: Include ldgram.h after ldexp.h.
1428         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1429         of bfd_fill_link_order.
1430         * pe-dll.c: Adjust lang_do_assignments calls.
1431         * emultempl/elf32.em: Likewise.
1432         * emultempl/hppaelf.em: Likewise.
1433         * emultempl/ppc64elf.em: Likewise.
1434         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1435         lang_add_assignment call.
1436         * emultempl/pe.em: Likewise.
1438 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
1440         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
1441         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
1442         the pattern in question is not a regexp.
1443         * ldlang.c:  Likewise.
1444         * ldlang.h:  Likewise.
1445         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
1447 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
1449         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1450         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1451         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1452         * ldexp.c (exp_data_seg): New variable.
1453         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1454         (fold_binary): Handle DATA_SEGMENT_ALIGN.
1455         (exp_fold_tree): Handle DATA_SEGMENT_END.
1456         Pass allocation_done when recursing instead of hardcoding
1457         lang_allocating_phase_enum.
1458         * ldexp.h (exp_data_seg): New.
1459         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1460         (lang_size_sections): New.
1461         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1462         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1463         if COMMONPAGESIZE is defined.
1464         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1465         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1466         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1467         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1468         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1469         libraries only.
1471 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
1473         * Makefile.in: Regenerate.
1475 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1477         * lexsup.c: Remove strtoul declaration.
1479 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1481         * ldmain.c: Add prototype for main ().
1482         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1483         * emultempl/lnk960.em (lnk960_choose_target): Function should
1484         take two arguments.
1486 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
1488         * ldlang.c (entry_section): New initialised variable.
1489         (lang_finish): Use it.
1490         * ldlang.h (entry_section): Declare.
1491         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1492         entry_section to ".opd".
1494 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
1496         * ld.texinfo (Options): Add back in -nostdlib documentation,
1497         which had been inadvertently removed.
1499 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
1501         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1502         register section vma to a sane value after emitting error.  Make
1503         fatal conditions cause program exit when emitting message.
1505 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
1507         * configure.tgt: Add or32-*-rtems target.
1509 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1511         Contribute sh64-elf.
1512         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1513         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1514         in OTHER_RELOCATABLE_SECTIONS.
1515         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1516         * emulparams/shelf32.sh (STACK_ADDR): Define.
1517         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1518         (OTHER_SECTIONS): this.  Removed stack settings.
1519         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1520         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1521         2001-03-12  DJ Delorie  <dj@redhat.com>
1522         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1523         relaxing if any shmedia or mixed sections are found.
1524         2001-03-07  DJ Delorie  <dj@redhat.com>
1525         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1526         einfo.  Gracefully decline to output to non-elf formats.
1527         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
1528         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1529         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1530         * emulparams/shelf32.sh: Ditto.
1531         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
1532         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1533         comment.
1534         2001-01-10  Ben Elliston  <bje@redhat.com>
1535         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1536         non-portable shell constructs. From Hans-Peter Nilsson.
1537         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
1538         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1539         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1540         dependencies to the shell script include chain.
1541         * Makefile.in: Regenerate.
1542         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
1543         * emultempl/sh64elf.em: Update and tweak comments.
1544         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1545         make a .cranges section SEC_IN_MEMORY.
1546         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1547         * emultempl/sh64elf.em
1548         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1549         .cranges section found to be necessary; continue and set stored
1550         section contents flags for sections with non-mixed contents.
1551         Use a struct sh64_section_data container and sh64_elf_section_data
1552         to store contents-type flags.
1553         Remove unused update of "isec".
1554         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1555         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
1556         access contents-type flags.  Assert that the associated container
1557         is initialized.  Use that container, not elf_gp_size, to hold size
1558         of linker-generated cranges contents.
1559         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1560         * emultempl/sh64elf.em
1561         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1562         there's already a .cranges section.  When section flag difference
1563         is found, don't NULL-check cranges a second time.  Tweak comments.
1564         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1565         merging, not max size, as size of ld-generated .cranges contents.
1566         Don't set ELF section flags in output section.  When checking for
1567         needed .cranges descriptors, don't use a variable; compare
1568         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
1569         comments.
1570         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1571         * emultempl/sh64elf.em: New file.
1572         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1573         * Makefile.in: Regenerate.
1574         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1575         (OTHER_RELOCATING_SECTIONS): Ditto.
1576         (EXTRA_EM_FILE): New, set to sh64elf if not set.
1577         * emulparams/shlelf32.sh: Stub out all settings except
1578         OUTPUT_FORMAT.  Source shelf32.sh.
1579         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1580         OTHER_RELOCATING_SECTIONS.
1581         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1582         * emulparams/shlelf64.sh: Stub out all settings except
1583         OUTPUT_FORMAT.  Source shelf64.sh.
1584         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
1585         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1586         .cranges section.
1587         (DATA_START_SYMBOLS): Define, provide ___data.
1588         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1589         for consecutive .data section.
1590         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1591         section after .data section.
1592         * emulparams/shlelf64.sh: Ditto.
1593         * emulparams/shelf32.sh: Ditto.
1594         (ALIGNMENT): Define to 8.
1595         * emulparams/shelf32.sh: Ditto.
1596         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
1597         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1598         built-in linker scripts.
1599         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1600         * emulparams/shlelf64.sh: New.
1601         * emulparams/shelf64.sh: New.
1602         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1603         targ_extra_emuls.
1604         * Makefile.am: Add support for shlelf64 and shelf64.
1605         * Makefile.in: Regenerate.
1606         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
1607         * configure.tgt (sh64-*-elf*): Add shelf as default.
1608         Add shlelf to targ_extra_emuls.
1609         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
1610         * emulparams/shelf32.sh: New file.
1611         * emulparams/shlelf32.sh: New file.
1612         * Makefile.am: Add support for shlelf32 and shelf32.
1613         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1614         * Makefile.in: Regenerate.
1616 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
1618         * ldlang.c (lang_reset_memory_regions): Rename from
1619         reset_memory_regions.  Change all callers.  Make public.
1620         * ldlang.h (lang_reset_memory_regions): Prototype.
1621         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1622         lang_reset_memory_regions before lang_size_sections.
1623         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1624         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1626 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
1628         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1629         arithmetic when checking for too many global registers.
1631 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
1633         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1634         (ehppanbsd.c): New rule.
1635         * Makefile.in: Regenerate.
1636         * configure.tgt (hppa*-*-netbsd*): New target.
1637         * emulparams/hppalinux.sh: Add comment to check other files
1638         that source this file it is modified, and list which
1639         files that do.
1640         * emulparams/hppanbsd.sh: New file.
1642 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
1644         * scripttempl/xstormy16.sc: Don't allocate extra space for the
1645         stack.
1647 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
1649         Support on-demand global register allocation from
1650         R_MMIX_BASE_PLUS_OFFSET relocs.
1651         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1652         mmix_set_reg_section_vma.  Call
1653         _bfd_mmix_finalize_linker_allocated_gregs.
1654         (mmix_before_allocation): New function.
1655         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1656         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1657         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1658         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1659         before .MMIX.reg_contents.
1660         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1661         (mmo_after_open): New function.
1662         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1663         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
1664         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1666 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
1668         * emulparams/or32.sh: New file.
1669         * emulparams/or32elf.sh: New file.
1670         * scripttempl/or32.sc: New file.
1671         * configure.tgt : Add support for or32.
1672         * configure: Regenerate
1673         * Makefile.am: Add support for or32.
1674         * Makefile.in: Regenerate.
1675         * NEWS: Mention support for or32.
1676         * po/ld.pot: Regenerate.
1678 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
1679             Mitch Lichtenberg  <mpl@broadcom.com>
1681         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1682         * emultempl/mipself.em: New file to handle MIPS ELF embedded
1683         reloc creation (ld --embedded-relocs).
1685 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
1687         * configure: Regenerated.
1689 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
1691         * Makefile.am (install): Depend on install-info.
1692         * Makefile.in: Regenerate.
1694 2002-01-26  Christian Rose  <menthos@menthos.com>
1696         * ldmain.c (main): Use full sentences to ease translation.
1698 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
1700         * po/fr.po: Updated version.
1702 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
1704         * po/es.po: Updated version.
1706 2002-01-25  Andreas Jaeger  <aj@suse.de>
1708         * ldlex.l (yy_input): Correct error check.
1710 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
1712         * ldmisc.c (demangle): Put back dots when string not demangled.
1714 2002-01-22  Richard Henderson  <rth@redhat.com>
1716         * emulparams/elf64alpha.sh (NOP): Use unop.
1718 2002-01-21  Andreas Jaeger  <aj@suse.de>
1720         * ldlex.l: Use fread instead of read.
1722 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
1724         * configure.tgt (ia64-*-netbsd*): New target.
1726 2002-01-21  H.J. Lu <hjl@gnu.org>
1728         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1729         0.
1730         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1732 2002-01-18  Andreas Jaeger  <aj@suse.de>
1734         * ldver.c (ldversion): Update year.
1736 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
1738         * po/ld.pot: Regenerate.
1740 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
1742         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1743         * Makefile.in: Regenerate.
1744         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1745         * emultempl/ppc64elf.em: New file.
1747 2002-01-15  DJ Delorie  <dj@redhat.com>
1749         * scripttempl/pe.sc: Add support for constructor priorities.
1751 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1753         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1754         * emulparams/avr23xx.sh: Likewise.
1755         * emulparams/avr4433.sh: Likewise.
1756         * emulparams/avr44x4.sh: Likewise.
1757         * emulparams/avr85xx.sh: Likewise.
1758         * emulparams/avrmega103.sh: Likewise.
1759         * emulparams/avrmega161.sh: Likewise.
1760         * emulparams/avrmega603.sh: Likewise.
1761         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1763 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
1765         * ldlang.c (walk_wild_section): Exclude object file if enclosing
1766         archive is excluded.
1768 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
1770         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1771         (eshelf_nbsd.c): New rule.
1772         (eshlelf_nbsd.c): New rule.
1773         * Makefile.in: Regenerate.
1774         * configure.tgt (sh*le-*-netbsdelf*): New target.
1775         (sh*-*-netbsdelf*): New target.
1776         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1777         * ld/emulparams/shelf_nbsd.sh: New emulation.
1778         * ld/emulparams/shlelf_nbsd.sh: New emulation.
1780 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
1782         * po/es.po: New file: Spanish translation.
1783         * configure.in (ALL_LINGUAS): Add es.
1784         * configure: Regenerate.
1786 2002-01-06  John Marshall  <jmarshall@acm.org>
1788         * ld.texinfo: Note that --emit-relocs is currently only
1789         implemented for ELF.
1791 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
1793         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1794         of bfd_section_list_remove and bfd_section_list_insert macros.
1795         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1796         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1798 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1800         * configure.tgt (x86_64-*-netbsd*): New target.
1802 2001-12-21  Tom Rix  <trix@redhat.com>
1804         (gld*_create_output_section_statements): New function.
1805         For -binitfini support.
1806         * emultempl/aix.em (gld*_before_parse): Fix comment.
1807         * emultempl/aix.em (gld*_parse_args): Fix comment.
1809 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
1811         * configure.tgt (mips*-dec-netbsd*): Delete alias for
1812         mips*el-*-netbsd*.
1813         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1815         * configure.tgt (arm-*-netbsdelf*): Add target.
1816         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1817         * emulparams/armelf_nbsd.sh: Added.
1818         * Makefile.am: Add rules for earmelf_nbsd.
1819         * Makefile.in: Regenerate.
1821 2001-12-19  Andreas Jaeger  <aj@suse.de>,
1822             Susanne Oberhauser <froh@suse.de>
1824         * configure.host: Add rules for x86_64-*linux-gnu.  Change
1825         s390x-linux entry to use gcc to report configuration, replace gcc
1826         with $CC in s390-linux
1828 2001-12-19  Andreas Jaeger  <aj@suse.de>
1830         * ld.texinfo (VERSION): Fix markup.
1832 2001-12-18  matthew green  <mrg@eterna.com.au>
1834         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1835         (m68kelfnbsd.c): New rule.
1836         * Makefile.in: Regenerate.
1837         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1838         (m68*-*-netbsd*4k*): .. this.
1839         (m68*-*-netbsdelf*): New target.
1840         (m68*-*-netbsd*): Also include ELF support.
1841         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1842         * emulparams/m68kelfnbsd.sh: New emulation.
1844 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1846         * ldgram.y (vers_node): Support anonymous version tags.
1847         * ldlang.c (lang_register_vers_node): Ensure anonymous version
1848         tag is not defined together with non-anonymous versions.
1849         * ld.texinfo: Document it.
1851 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
1853         * po/tr.po: New file: Turkish translation.
1854         * configure.in (ALL_LINGUAS): Add tr.
1855         * configure: Regenerate.
1857 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
1859         * Makefile.am: Add rules for eelf64alpha_nbsd.
1860         * Makefile.in: Regenerate.
1861         * configure.tgt (alpha*-*-netbsd*): Set
1862         targ_emul to elf64alpha_nbsd.
1863         * emulparams/elf64alpha_nbsd.sh: Added.
1865 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
1867         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1868         section_tail when fiddling with section list.
1869         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1870         broken into separate strings to make translation easier.
1871         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1872         fiddling with section list.
1873         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1875 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
1877         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1879 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
1881         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1883 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
1885         * emultempl/elf32.em (finish): Supply output_bfd
1886         to bfd_elf*_discard_info.
1887         (OPTION_EH_FRAME_HDR): Define.
1888         (longopts): Add --eh-frame-hdr.
1889         (parse_args): Handle it.
1890         (list_options): Add --eh-frame-hdr to help.
1891         * emultempl/hppaelf.em (finish): Supply output_bfd
1892         to bfd_elf*_discard_info.
1893         * scripttempl/elf.sc (.eh_frame_hdr): Add.
1895 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
1897         * lexsup.c (parse_args): Don't pass shortopts to second call to
1898         getopt functions.  Restore optind rather than decrementing before
1899         second call.  Remove errind as it now duplicates last_optind.
1901 2001-12-11  Christopher Faylor  <cgf@redhat.com>
1903         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1905 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
1906             Richard Henderson  <rth@redhat.com>
1908         * Makefile.am: Add support for xstormy16.
1909         * configure.tgt: Add support for xstormy16.
1910         * Makefile.in: Regenerate.
1911         * emulparams/elf32xstormy16.sh: New file.
1912         * scripttempl/xstormy16.sc: New file.
1914 2001-10-01  Christopher Faylor <cgf@cygnus.com>
1916         * Makefile.in (LIB_PATH): Make configurable.
1917         (GENSCRIPTS): Set LIB_PATH in environment.
1918         * configure.in: Substitute LIB_PATH.
1919         * configure: Regenerate.
1920         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1921         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1923 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
1925         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1926         describing the -N option so that it is easier to translate into
1927         foreign languages.
1929 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
1931         * emultempl/pe.em (..._list_options): Replace multiple fprintf
1932         statements describing a single option with a single, newline
1933         escaped fprintf.  This allows better translation into other
1934         languages.
1936         * ldmain.c (add_archive_element): Combine multiple strings
1937         into a single string to permit better translation into other
1938         languages.
1940 2001-12-05  Tom Rix  <trix@redhat.com>
1942         * Makefile.am: Remove eaixppc64.
1943         * Makefile.in: Regenerate.
1945 2001-12-04  Tom Rix  <trix@redhat.com>
1947         * emultempl/aix.em (choose_target): Change default target to
1948         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
1949         warning.
1950         (gld*_read_file):  Fix typo.
1951         (change_symbol_mode): Add prototype.
1952         (is_syscall): Same.
1954         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1955         * emulparams/aixrs6.sh : Same.
1956         * emulparams/ppcmacos.sh : Same.
1957         * emulparams/aixppc64.sh : Delete file.
1958         * emultempl/aix.em : Formatting changes.
1960 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
1962         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1963         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1964         __Sbss.
1965         (OTHER_END_SYMBOLS): Fix formatting.
1966         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1967         (OTHER_END_SYMBOLS): Fix formatting.
1969 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
1971         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1973 2001-12-02  Tom Rix  <trix@redhat.com>
1975         * configure.tgt : Remove eaixppc64 emulations.
1976         * Makefile.in : Remove eaixppc64.c
1977         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1978         (ldemul_default_target): Same.
1979         * emultempl/gld960.em (gld960_choose_target):  Same.
1980         * emultempl/gld960c.em (gld960_choose_target):  Same.
1981         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1982         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1983         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1984         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1985         * emultempl/aix.em (choose_target): New function.  Handle emulation of
1986         -b32 and -b64.
1988 2001-11-27  H.J. Lu <hjl@gnu.org>
1990         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1991         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1992         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1993         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1994         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1995         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1996         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1997         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1999         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2000         is not empty.
2001         (SDATA): Likewise.
2002         (REL_SDATA): Likewise.
2003         (REL_SBSS): Likewise.
2004         (REL_SDATA2): Likewise.
2005         (REL_SBSS2): Likewise.
2006         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2007         (SDATA2): Likewise.
2009 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2011         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2012         destructor in rom.
2013         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2015 2001-11-22  H.J. Lu  <hjl@gnu.org>
2017         * Makefile.in: Regenerated with automake based on automake
2018         1.4-8 in RedHat 7.1.
2020 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
2022         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2023         (config.status): Delete rule.
2024         Add extra dependencies to cover sourced emulparams files.
2025         * Makefile.in: Regenerate.
2027         * scripttempl/elf.sc: Order <section>, <section>.* and
2028         corresponding linkonce sections as seen in input files.
2029         Formatting fixes.  Zero vma of all sections if not relocating.
2030         (STACK): Define and insert if STACK_ADDR defined.
2031         (OTHER_RELOCATING_SECTIONS): Delete.
2032         (OTHER_END_SYMBOLS): Define.
2033         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2034         (OTHER_READWRITE_SECTIONS): Likewise.
2035         (OTHER_GOT_SECTIONS): Likewise.
2036         (OTHER_SDATA_SECTIONS): Likewise.
2037         (OTHER_BSS_SECTIONS): Likewise.
2038         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2039         (OTHER_READWRITE_SECTIONS): Likewise.
2040         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2041         (OTHER_READWRITE_SECTIONS): Likewise
2043         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2044         (STACK_ADDR): Define.
2045         * emulparams/armelf_oabi.sh: As for armelf.sh.
2046         * emulparams/elf32mcore.sh: As for armelf.sh.
2047         * emulparams/h8300elf.sh: As for armelf.sh.
2048         * emulparams/mn10200.sh: As for armelf.sh.
2049         * emulparams/shelf.sh: As for armelf.sh.
2051         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2052         (OTHER_END_SYMBOLS): Define.
2053         * emulparams/m32relf.sh: As for elf32fr30.sh.
2054         * emulparams/h8300helf.sh: As for elf32fr30.sh.
2055         * emulparams/h8300self.sh: As for elf32fr30.sh.
2057         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2058         defines with RELOCATING test.
2059         (OTHER_SDATA_SECTIONS): Likewise.
2060         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2061         (OTHER_END_SYMBOLS): ..this.
2062         * emulparams/crislinux.sh: As for criself.sh.
2064         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2065         if not relocating.
2066         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2067         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
2068         normal and linkonce sections as seen in input files.
2069         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2070         (TEXT_DYNAMIC): Likewise.
2071         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2072         (OTHER_SDATA_SECTIONS): Likewise.
2073         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2074         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2075         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2076         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2077         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2078         (OTHER_PLT_RELOC_SECTIONS): Likewise.
2079         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
2080         sections as seen in input files.
2081         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2082         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2083         if not relocating.
2084         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2085         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2086         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2087         (OTHER_SECTIONS): Instead, use this..
2088         (OTHER_END_SYMBOLS): ..and this.
2090         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2091         * emulparams/elf32bsmip.sh: Likewise.
2092         * emulparams/elf32btsmip.sh: Likewise.
2093         * emulparams/elf32ebmip.sh: Likewise.
2094         * emulparams/elf32lmip.sh: Likewise.
2095         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2096         * emulparams/elf32lsmip.sh: Likewise.
2097         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2098         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2099         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2100         * emulparams/elf64btsmip.sh: Likewise.
2101         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2102         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2103         * emulparams/elf32ppclinux.sh: Likewise.
2104         * emulparams/elf32ppcsim.sh: Likewise.
2105         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2106         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2107         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2108         * emulparams/h8300self.sh: Likewise.
2109         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2110         * emulparams/sh.sh: Comment.
2111         * emulparams/shl.sh: Source sh.sh, remove duplicates.
2112         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2113         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2115 2001-11-21  David Heine <dlheine@tensilica.com>
2116             Alan Modra  <amodra@bigpond.net.au>
2118         * ldlang.c (map_input_to_output_sections): Replace "break"
2119         accidentally removed with 2001-08-03 change.
2120         (lang_gc_sections_1): Likewise.
2122 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
2124         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2126 2001-11-20  Angela Marie Thomas <angela@redhat.com>
2128         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2129         of false when calling lang_size_sections.
2130         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2132 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
2134         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2135         function when LDEMUL_FINISH isn't set to the same name.  Don't
2136         call ${LDEMUL_FINISH}.
2137         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2138         * emultempl/armelf.em (arm_elf_finish): Call
2139         gld${EMULATION_NAME}_finish.
2140         * emultempl/hppaelf.em (hppaelf_finish): Rename to
2141         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
2142         hppaelf_layout_sections_again if necessary.
2143         (need_laying_out): New var.
2144         (hppaelf_layaout_sections_again): Rename to
2145         hppaelf_layout_sections_again.  Clear need_laying_out.
2146         (PARSE_AND_LIST_OPTIONS): Format text.
2148 2001-11-14  H.J. Lu  <hjl@gnu.org>
2150         * emultempl/armelf.em (arm_elf_finish): Renamed from
2151         gld${EMULATION_NAME}_finish.
2152         (LDEMUL_FINISH): Set to arm_elf_finish.
2154 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
2156         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2157         (struct ld_emulation_xfer_struct): Use it.
2159 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
2161         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2162         additional symbols referenced by newer crt0.o files from HP.
2164 2001-11-12  Anthony Green  <green@redhat.com>
2166         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2168 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
2170         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2171         * Makefile.in: Regenerate.
2173 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2175         * ld.texinfo: Use @command for commands, @option for options.
2176         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2177         the page man title.
2178         * Makefile.in: Rebuild.
2180 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
2182         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2183         Add support for targets.
2185 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
2187         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2188         * configure: Regernate.
2189         * po/fr.po: New file.
2190         * po/sv.po: New file.
2192 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
2194         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2195         as little endian default and to support big endian.
2197 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
2199         * ld.texinfo (Options): Document new option, -nostdlib.
2200         * lexsup.c (OPTION_NOSTDLIB): New definition.
2201         (ld_options): Add entry for "nostdlib".
2202         (parse_args): Handle OPTIONS_NOSTDLIB.
2203         * ldfile.c (ldfile_add_library_path): Don't add directories
2204         to the search path if they weren't specified on the command line
2205         and -nostdlib was specified.
2206         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2208 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
2210         * lexsup.c (parse_args): Prevent infinite parsing loop when
2211         "-rpath.a" is specified on the command line.
2212         Replace calls to fprintf with calls to einfo.
2214 2001-10-31  John Marshall  <jmarshall@acm.org>
2216         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2217         appear only once across all the linker scripts involved in a link
2218         invocation no longer applies.  Make the documentation reflect
2219         that.
2221 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
2223         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2224         targets.
2225         (sh-*-linux*): Added targ_extra_libpath.
2227 2001-10-31  David Heine  <dlheine@tensilica.com>
2229         * ldlang.c (lang_size_sections): Keep a valid output_offset field
2230         for padding statements.
2232 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
2234         * configure.tgt (mmix-*-*): New target.
2235         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2236         Add dependencies to match.
2237         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2238         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2239         scripttempl/mmo.sc: New files.
2240         * gen-doc.texi: @set MMIX.
2241         * ld.texinfo: Ditto.
2242         [MMIX] Add MMIX node.
2243         * Makefile.in: Regenerate.
2245 2001-10-29  Kazu Hirata  <kazu@hxi.com>
2247         * ldlang.c: Fix a comment typo.
2249 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
2251         * configure.host: Move alpha*-*-linux-gnu* entry to generic
2252         entries, and match *-*-linux*.
2254 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
2256         * ldgram.y (mri_script_command): Surround processing of INCLUDE
2257         with ldlex_script, ldlex_popstate.
2258         (ifile_p1): Likewise.
2259         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
2260         correct slot.
2261         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
2262         to 1.  Don't BEGIN(SCRIPT).
2263         (lex_redirect): Similarly.
2264         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2266 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
2268         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2269         __EH_FRAME_END__ and accept eh frames into data section.
2270         Add ctor and dtor sections.
2272 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2274         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2275         (auto-export): Fix indentation.
2277 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2279         * pe-dll.c (autofilter_objectlist):  Add startup objects
2280         for profiling.
2281         (auto-export): Constify char * p.
2282         Extract file basename and use strcmp rather than ststr
2283         for object lookup.
2285 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
2287         * ldmain.c (get_emulation): Improve comment about the handling
2288         of -mipsN options.
2290 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
2292         * po/POTFILES.in: Regenerate.
2294 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
2296         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2297         -z nocopyreloc and -z nocombreloc usage strings.
2299 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
2301         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2302         in usage.
2304 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
2306         * scripttempl/armaout.sc: Place .bss section after end of aligned
2307         data section to match behaviour of aout code in constructrion of
2308         header.
2310 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2312         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2313         startup files for mingw32 dlls to list.
2315 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
2317         * emultempl/elf32.em: Fix shell 'if' usage for portability.
2319 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
2321         * configure.tgt (targ): Add arm9e-*-elf.
2323 2001-10-05  H.J. Lu  <hjl@gnu.org>
2325         * genscripts.sh: Fix a typo in the last change.
2327 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
2329         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2330         -z nocombreloc in usage.
2332 2001-10-03  Jim Blandy  <jimb@redhat.com>
2334         * genscripts.sh: Include a comment at the top of each generated
2335         script, explaining its purpose.
2337 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
2339         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2340         * NEWS: Mention -z nocopyreloc.
2341         * ld.texinfo (Options): Describe nocopyreloc.
2343 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
2345         * configure: Regenerate.
2347 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
2349         * ldver.h (ld_program_version): Remove declaration.
2350         * lexsup.c (parse_args): Move printing of copyright message..
2351         * ldver.c (ldversion): .. to here.
2352         Use BFD_VERSION_STRING in place of BFD_VERSION.
2353         (ld_program_version): Remove.
2354         * Makefile.am (Makefile): Depend on bfd/configure.in.
2355         Run "make dep-am".
2356         * Makefile.in: Regenerate.
2358 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
2360         * Makefile.am: Update dependencies with "make dep-am".
2361         * Makefile.in: Regenerate.
2363 2001-09-29  John Reiser  <jreiser@BitWagon.com>
2365         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2366         * lexsup.c: Add --no-define-common commandline option.
2367         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2368         * ldlex.l: Likewise.
2369         * ld.h: Add command_line.inhibit_common_definition.
2370         * ldmain.c (main): Initialize.
2371         * ld.texinfo: Document.
2373 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
2375         * ldlang.c (section_already_linked): Remove assignment to kept_section.
2377 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
2379         * ldmisc.c (USE_STDARG): Remove.
2380         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2381         (einfo): Likewise.
2382         (minfo): Likewise.
2383         (lfinfo): Likewise.
2385         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2386         declarations.  Update copyright.
2388 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2390         * pe-dll.c: Remove obsoleted declaration of
2391         pe_get_data_import_dll_name.
2392         (pe_create_import_fixup): Fix thinko.
2394         * ld.texinfo(enable-auto-import): Clarify the explanation.
2396 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
2398         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2399         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2400         DLL_SUPPORT controlled code.
2402 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2404         * emultempl/pe.em(pe_data_import_dll): Make static.
2405         (pe_get_data_import_dll_name): New accessor function.
2406         * pe-dll.c(pe_create_import_fixup): call
2407         pe_get_data_import_dll_name() from pe.em, instead of
2408         directly accessing pe_data_import_dll variable from pe.em.
2410 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
2412         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2413         (def_file_add_directive): Use ISSPACE instead of isspace.
2414         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2415         isdigit/isxdigit/isalpha/isalnum.
2416         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2417         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2418         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2419         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2420         isalnum.
2421         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2422         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2423         isupper/tolower.
2424         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2425         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2426         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2427         (ctor_prio): Use ISDIGIT instead of isdigit.
2428         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2429         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2430         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2431         isupper/tolower.
2432         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2433         (stricpy): Use TOLOWER instead of isupper/tolower.
2434         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2435         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2436         (lex_warn_invalid): Use ISPRINT instead of isprint.
2437         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2438         (main): For gettext, also set the LC_CTYPE locate facet.
2439         (add_keepsyms_file): Use ISSPACE instead of isspace.
2440         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2441         (is_num, parse_args): Use ISDIGIT instead of isdigit.
2442         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2443         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2444         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2445         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2446         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2447         (quoteput): Use ISSPACE instead of isspace.
2448         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2449         instead of isalnum.
2451 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
2453         * deffilep.y (def_stash_module): Constify "name" param.
2455         * pe-dll.c: Replace CONST with const throughout.
2456         (quick_symbol): Constify "n1", "n2", "n3" params.
2457         (make_singleton_name_thunk): Constify "import" param.  Make
2458         "buffer_len" a size_t.
2459         (make_import_fixup_entry): Constify "name", "fixup_name",
2460         "dll_symname" params.
2461         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
2462         (pe_get32): Likewise.
2463         (pe_implied_import_dll): Likewise.
2465         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2466         (sort_by_section_name): Likewise.
2468         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2469         (make_import_fixup): Cast printf arg, rel->address to long rather
2470         than int.
2471         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2473 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
2475         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2476         defines BufferSize.  Increase buffer size by one.
2478 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
2480         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2482 2001-09-14  Kevin Lo <kevlo@openbsd.org>
2484         * configure.tgt: Add arm-openbsd target.
2486 2001-09-12  H.J. Lu  <hjl@gnu.org>
2488         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2489         eelf64lppc.o to ...
2490         (ALL_64_EMULATIONS): Here.
2491         * Makefile.in: Regenerated.
2493 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2495         * emultempl/pe.em(make_import_fixup): change signature to
2496         take asection as well as arelec; we need this for proper
2497         error reporting.  Only call pe_create_import_fixup() if
2498         there is no attempt to add a constant addend to the reloc;
2499         otherwise, report error condition.
2500         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2501         since final argument is a pointer to make_import_fixup().
2502         Change call to cb() to match make_import_fixup() signature.
2503         (make_import_fixup_mark): make buffer_len unsigned.
2504         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2506 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
2508         * ld.texinfo: add verbose documentation for auto-import
2509         direct-addressing workaround, to compliment the terse
2510         error message.
2512 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
2514         * scripttempl/v850.sc: Add gcc_except_table sections.
2516 2001-09-11  Jeffrey A Law  (law@cygnus.com)
2518         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2519         * emulparams/h8300self.sh: Similarly.
2521 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2523         * ld.texinfo (Options, --stack): Correct default value for stack
2524         reserve.
2526 2001-09-05  Tom Rix <trix@redhat.com>
2528         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2530 2001-09-03  Andreas Jaeger  <aj@suse.de>
2532         * emultempl/beos.em: Declare prototypes for comparions functions,
2533         adjust definitions.
2535 2001-09-02  Andreas Jaeger  <aj@suse.de>
2537         * emultempl/aix.em: Add missing prototype.
2538         * emultempl/lnk960.em: Likewise.
2539         * emultempl/vanilla.em: Likewise.
2540         * emultempl/armcoff.em: Likewise.
2541         * emultempl/armelf_oabi.em: Likewise.
2542         * emultempl/beos.em: Likewise.
2543         * emultempl/gld960c.em: Likewise.
2544         * emultempl/gld960.em: Likewise.
2546         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2547         for prototype declaration.
2549 2001-08-31  Eric Christopher  <echristo@redhat.com>
2550             Jason Eckhardt  <jle@redhat.com>
2552         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2554 2001-08-31  Andreas Jaeger  <aj@suse.de>
2556         * emultempl/pe.em: Add missing prototypes.
2557         (gld_${EMULATION_NAME}_after_open): Remove extra args to
2558         pe_find_data_imports.
2559         (pr_sym): Add unused attribute.
2561 2001-08-29  Joel Sherrill <joel@OARcorp.com>
2563         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2564         default from coff to elf.
2566 2001-08-29  Jeff Law <law@redhat.com>
2568         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
2569         ARCH specification.
2570         * emulparams/h8300self.sh: Similarly.
2572 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
2574         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2575         eh8300self.o .
2576         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2577         * configure.tgt (h8300-*-elf*): New case.
2578         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2579         * emulparams/h8300self.sh: New file.
2580         * Makefile.in: Regenerated.
2582 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
2584         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2585         with macro name.
2587 2001-08-27  Linus Nordberg  <linus@swox.com>
2588             Alan Modra  <amodra@bigpond.net.au>
2590         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2591         (eelf64ppc.c, eelf64lppc.c): Add make targets.
2592         Run "make dep-am"
2593         * Makefile.in: Regenerate.
2594         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
2595         entries to correct alphabetical position.
2596         * emulparams/elf64ppc.sh: New.
2597         * emulparams/elf64lppc.sh: New.
2599 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
2601         * ldmain.c (main): Declare BSIZE as static.
2603 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2605         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2606         into .rel.dyn resp. .rela.dyn if combreloc.
2607         (get_script): If .x linker script is equal to .xn, only put it
2608         once into the binary.
2609         Add .xc and .xsc scripts.
2610         (parse_args): Handle -z combreloc and -z nocombreloc.
2611         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2612         For .xc and .xsc scripts put all .rel* or .rela* input sections
2613         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2614         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2615         is elf.
2616         Strip trailing whitespace from script.
2617         Generate .xc and .xsc scripts if requested.
2618         * ldmain.c (main): Initialize link_info.combreloc and
2619         link_info.spare_dynamic_tags.
2620         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2621         (ld_options): Add --spare-dynamic-tags option.
2622         (parse_args): Likewise.
2623         * ld.texinfo: Document -z combreloc and -z nocombreloc.
2624         * ldint.texinfo: Document .xc and .xsc linker scripts.
2625         * NEWS: Add notes about -z combreloc and SHF_MERGE.
2627 2001-08-22  H.J. Lu  <hjl@gnu.org>
2629         * emulparams/elf32fr30.sh: Add a newline.
2631 2001-08-21  Andreas Jaeger  <aj@suse.de>
2633         * deffilep.y: Add missing prototypes.
2634         * pe-dll.c: Likewise.
2636 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
2638         * ldlang.c (insert_pad): Fix typos in last patch.
2640         * ldlang.c: When traversing lang_statement_union_type lists,
2641         consistently use "header.next" rather than "next".
2642         * mpw-eppcmac.c: Likewise.
2643         * emultempl/beos.em: Likewise.
2644         * emultempl/hppaelf.em: Likewise.
2645         * emultempl/pe.em: Likewise.
2646         * ldlang.h (union lang_statement_union): Remove "next" field.
2648         * ldlang.c (insert_pad): Use offsetof macro.
2649         (lang_size_sections): Always neuter padding statements.
2650         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2652         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2653         passed to lang_size_sections.
2654         (pe_exe_fill_sections): Likewise.
2655         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2656         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2658 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2660         * emultempl/aix.em: Formatting fixes.
2662 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2664         * ldlang.c (insert_pad): Make use of an existing pad statement if
2665         available.  Move code calculating alignment, adjusting section
2666         alignment power, and adjusting dot to ..
2667         (size_input_section): .. here.  Remove unused relax param.
2668         (lang_size_sections): Change boolean `relax' param to boolean *.
2669         Adjust call to size_input_section.  Make use of insert_pad to
2670         place pad after the assignment statement.  If relaxing, zap
2671         padding statements.
2672         (reset_memory_regions): Reset output_bfd section sizes too.
2673         (relax_again): Move to..
2674         (lang_process): ..here.  Adjust call to lang_size_sections, and
2675         remove duplicated code.
2676         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2678 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
2680         * ld.texinfo: Document that fill values now use the four least
2681         significant bytes.
2682         * emulparams/elf32fr30.sh (NOP): Update.
2683         * emulparams/elf32mcore.sh: Likewise.
2684         * emulparams/elf64_s390.sh: Likewise.
2685         * emulparams/elf_i386.sh: Likewise.
2686         * emulparams/elf_i386_be.sh: Likewise.
2687         * emulparams/elf_i386_chaos.sh: Likewise.
2688         * emulparams/elf_i386_ldso.sh: Likewise.
2689         * emulparams/elf_s390.sh: Likewise.
2690         * emulparams/elf_x86_64.sh: Likewise.
2691         * emulparams/i386moss.sh: Likewise.
2692         * emulparams/i386nw.sh: Likewise.
2693         * emulparams/m68kelf.sh: Likewise.
2694         * scripttempl/elf.sc: Update NOP comment.
2695         * scripttempl/elfi370.sc: Likewise.
2696         * scripttempl/elfm68hc11.sc: Likewise.
2697         * scripttempl/elfm68hc12.sc: Likewise.
2698         * scripttempl/nw.sc: Likewise.
2700 2001-08-15  Tom Rix <trix@redhat.com>
2702         * ldgram.y (saved_script_handle): Initialize to NULL.
2703         * ldmain.c (main): Change check on saved_script_handle.
2705 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
2707         * emultempl/elf32.em: Formatting fixes.
2708         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
2709         looking at sec->owner.
2710         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2711         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
2712         unused code, and reorganize orphan section placement code.
2714         * ldlang.c (wild_doit): Rename to lang_add_section.
2715         * ldlang.h: Here too.
2716         * mpw-elfmips.c: And here.
2717         * emultempl/beos.em: And here.
2718         * emultempl/elf32.em: And here.
2719         * emultempl/hppaelf.em: And here.
2720         * emultempl/pe.em: And here.
2722 2001-08-13  Richard Henderson  <rth@redhat.com>
2724         * emultempl/needrelax.em: New file.
2725         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2726         * Makefile.am (eelf64_ia64.c): Depend on it.
2727         * Makefile.in: Rebuild.
2729 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
2731         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2732         output_section is set non-NULL.
2734         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2735         `true' for SEC_EXCLUDE sections so that the generic code doesn't
2736         needlessly create an output_section_statement.  Treat a correctly
2737         named output_section_statement with NULL bfd_section as compatible.
2739 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
2741         * emultempl/generic.em: Support EXTRA_EM_FILE.
2742         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2743         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2744         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2745         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2746         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2747         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2748         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2749         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2750         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2751         LDEMUL_FIND_POTENTIAL_LIBRARIES.
2753 2001-08-12  Richard Henderson  <rth@redhat.com>
2755         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2756         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2757         scripttempl/v850.sc: Keep .jcr data.
2759 2001-08-12  H.J. Lu  <hjl@gnu.org>
2760             Andrew Haley  <aph@cambridge.redhat.com>
2761             Nick Clifton  <nickc@redhat.com>
2763         * ldgram.y (had_script): Change name to saved_script_handle.
2764         Change type to file handle.
2765         * ld.h (had_script): Rename and retype.
2766         * ldfile.c (ldfile_open_command_file): Save the file handle
2767         used in saved_script_handle.
2768         * lexsup.c (parse_args): Do not allow -c option to alter
2769         saved_script_handle.
2770         * ldmain.c (main): Print out the linker script used if
2771         --verbose is given.  Check saved_script_handle to obtain the
2772         external linker script used, or if NULL, dump the builtin
2773         script.
2774         * ld.texinfo: Document that --verbose now dumps the linker
2775         script used, regardless of whether it was an internal or an
2776         external script.
2778 2001-08-10  Andreas Jaeger  <aj@suse.de>
2780         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2781         to build warnings.
2782         * configure: Regenerate.
2784 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
2786         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2788         * scripttempl/elf.sc: Move non-text .dynamic section before
2789         .plt/.got/.sdata* group.
2790         (OTHER_GOT_SECTIONS): Move to immediately after .got.
2791         (OTHER_SDATA_SECTIONS): Add.
2792         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2793         OTHER_GOT_SECTIONS.
2794         * emulparams/crislinux.sh: Likewise.
2795         * emulparams/elf32b4300.sh: Likewise.
2796         * emulparams/elf32bmip.sh: Likewise.
2797         * emulparams/elf32bmipn32.sh: Likewise.
2798         * emulparams/elf32bsmip.sh: Likewise.
2799         * emulparams/elf32btsmip.sh: Likewise.
2800         * emulparams/elf32ebmip.sh: Likewise.
2801         * emulparams/elf32elmip.sh: Likewise.
2802         * emulparams/elf32l4300.sh: Likewise.
2803         * emulparams/elf32lmip.sh: Likewise.
2804         * emulparams/elf32lsmip.sh: Likewise.
2805         * emulparams/elf32ltsmip.sh: Likewise.
2806         * emulparams/elf64bmip.sh: Likewise.
2807         * emulparams/elf64btsmip.sh: Likewise.
2808         * emulparams/elf64ltsmip.sh: Likewise.
2810 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
2812         * genscripts.sh: Source the emulparams script before each output
2813         script is generated so that variables like `RELOCATING' may affect
2814         variables defined in the emulparams script.
2816 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
2818         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2819         order.
2821         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2822         ie. iterate over wild_statement.section_list.
2823         (gld${EMULATION_NAME}_place_orphan): Likewise.
2825 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2827         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2828         .fini[0-4] sections used by _exit
2829         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2830         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2831         * scripttempl/elfm68hc11.sc: Likewise.
2833 2001-08-03  H.J. Lu  <hjl@gnu.org>
2835         * emultempl/beos.em (init): Add the missing initialization.
2837 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
2839         * ld.texinfo (Input Section Basics): Clarify ordering of output
2840         sections.
2841         * ldlang.c (callback_t): Add wildcard_list param.
2842         (walk_wild_section): Remove "section" param.  Rewrite for
2843         lang_wild_statement_type change.  Remove unique_section_p test.
2844         (walk_wild_file): Remove "section" param.
2845         (walk_wild): Remove "section" and "file" params.
2846         (lang_gc_wild): Likewise.
2847         (wild): Likewise.  Modify for lang_wild_statement_type change.
2848         (wild_sort): Likewise.  Add "sec" param.
2849         (gc_section_callback): Likewise.
2850         (output_section_callback): Likewise.  Do unique_section_p test.
2851         (map_input_to_output_sections): Modify call to wild.
2852         (lang_gc_sections_1): Likewise.
2853         (print_wild_statement): Modify for lang_wild_statement_type
2854         change.
2855         (lang_add_wild): Replace filename, filenames_sorted param with
2856         filespec.  Replace section_name, sections_sorted,
2857         exclude_filename_list with section_list.
2858         * ldlang.h (lang_add_wild): Here too.
2859         (lang_wild_statement_type): Replace section_name, sections_sorted,
2860         and exclude_filename_list with section_list.
2861         * ldgram.y (current_file): Delete.
2862         (%union): Add wildcard_list.
2863         (file_NAME_list): Set type to wildcard_list.  Build a linked list
2864         rather than calling lang_add_wild for each entry.
2865         (input_section_spec_no_keep): Call lang_add_wild here instead.
2866         * ld.h (struct wildcard_list): Declare.
2867         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2869 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2871         * ldmain.c (main): initialize link_info.pei386_auto_import
2872         * pe-dll.c: new tables for auto-export filtering
2873         (auto_export): change API, pass abfd for contextual filtering.
2874         Loop thru tables of excluded symbols instead of comparing
2875         "by hand".
2877 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
2879         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2880         static variable current_sec (static struct sec *). Add
2881         forward declaration for add_bfd_to_link.
2882         (process_def_file): Don't export undefined symbols. Do not
2883         export symbols starting with  "_imp__".  Call auto_export()
2884         with new API.
2885         (pe_walk_relocs_of_symbol): New function.
2886         (generate_reloc): add optional extra debugging
2887         (pe_dll_generate_def_file): eliminate extraneous initial blank
2888         line in output
2889         (make_one): enlarge symtab to make room for __nm__ symbols
2890         (DATA auto-import support).
2891         (make_singleton_name_thunk): New function.
2892         (make_import_fixup_mark): New function.
2893         (make_import_fixup_entry): New function.
2894         (pe_create_import_fixup): New function.
2895         (add_bfd_to_link): Specify that 'name' argument is a CONST
2896         char *.
2897         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2898         declare new functions pe_walk_relocs_of_symbol and
2899         pe_create_import_fixup.
2900         * emultempl/pe.em: add new options --enable-auto-import,
2901         --disable-auto-import, and --enable-extra-pe-debug.
2902         (make_import_fixup): New function.
2903         (pe_find_data_imports): New function.
2904         (pr_sym): New function.
2905         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2906         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
2907         CODE.
2909 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2911         * ld.texinfo: add additional documentation for
2912         --export-all-symbols.  Document --out-implib,
2913         --enable-auto-image-base, --disable-auto-image-base,
2914         --dll-search-prefix, --enable-auto-import, and
2915         --disable-auto-import.
2916         * ldint.texinfo: Add detailed documentation on auto-import
2917         implementation.
2919 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
2921         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2922         example.
2924 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
2926         * Makefile.am: Update dependencies with "make dep-am".
2927         * Makefile.in: Regenerate
2929 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
2931         * ldcref.c (check_section_sym_xref): New function.
2932         (check_nocrossrefs): Call it.
2933         (check_nocrossref): Interate over h->refs here instead of..
2934         (check_refs): ..here.  Pass in the symbol name, section, and bfd
2935         rather than hash_entry pointers.
2936         (struct check_refs_info): Keep symbol name rather than hash entry.
2937         Remove "same".
2938         (check_reloc_refs): Tweak for above changes in check_refs_info.
2939         Only report references to section syms when symname is NULL to
2940         prevent duplicate messages for the same reloc.
2942 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2944         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2945         available.  Do not print NULL trees.
2946         (exp_print_token): Print unknown tokens with values > 126 as
2947         decimal values not ASCII characters.
2949         * ldlang.c (lang_leave_overlay): If a region is specified assign
2950         it to all sections inside the overlay unless they have been
2951         assigned to the own, non-default, memory region.
2953         * README: Add header for consistency with other README files.
2955 2001-07-14  H.J. Lu  <hjl@gnu.org>
2957         * emultempl/elf32.em (output_prev_sec_find): Never return
2958         bfd_abs_section_ptr, bfd_com_section_ptr nor
2959         bfd_und_section_ptr.
2961 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
2963         * Makefile.am (em32relf.c): Change dependency from generic.em to
2964         elf32.em.
2965         * Makefile.in: Regenerate.
2967 2001-07-14  matthew green  <mrg@eterna.com.au>
2969         * configure.tgt (i386-*-netbsdelf*): New target.
2970         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2972 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
2974         * emultempl/elf32.em (output_prev_sec_find): New.
2975         (place_orphan): Use it.
2977 2001-07-11  H.J. Lu  <hjl@gnu.org>
2979         * ldmain.c (main): Fix typos in the last change.
2981 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
2983         * ldmain.c (main): Disallow -F and -f without -shared.
2985 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
2987         * emultempl/pe.em (after_open): Check for the output_bfd not
2988         having any coff_data structure allocated to it.
2990 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
2992         * emultempl/elf32.em: Do not assuming that contents of the buffer
2993         returned from basename function will remain unchanged accross other
2994         function calls.
2996 2001-07-03  H.J. Lu  <hjl@gnu.org>
2998         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2999         2001-07-03. It creates dynamic entries even for static binaries.
3001 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
3003         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3004         (DYNAMIC): Use it to reserve few dynamic entries for
3005         post-linking tools.
3007 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
3009         * emulparams/hppa64linux.sh: New file.
3010         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3011         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3012         (ehppa64linux.c): Add rule to make it.
3013         Run "make dep-am".
3014         * Makefile.in: Regenerate.
3016 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
3018         * ld.texinfo (Options, -r): Mention restrictions when using
3019         different object formats.
3021 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
3023         * ldlang.c (lang_check): Emit fatal error if relocatable link
3024         between different object flavours with relocations in input.
3026 2001-06-19  H.J. Lu  <hjl@gnu.org>
3028         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3029         (--version-script): Mention the language support.
3031 2001-06-19  H.J. Lu <hjl@gnu.org>
3033         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3035 2001-06-18  H.J. Lu <hjl@gnu.org>
3037         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3038         (diststuff): Add $(MANS).
3039         * Makefile.in: Regenerated.
3041         * ld.1: Removed.
3043 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
3045         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3046         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3047         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3048         * ld.h (args_type): Remove member export_dynamic.  All users
3049         changed to use struct bfd_link_info member.
3051         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3052         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3053         * Makefile.in: Regenerate.
3055 2001-06-18  H.J. Lu  <hjl@gnu.org>
3057         * ldlang.c (init_os): Add the newline to the einfo call.
3058         (lang_check): Likewise.
3059         (lang_do_version_exports_section): Likewise.
3061 2001-06-15  H.J. Lu  <hjl@gnu.org>
3063         * lexsup.c (parse_args); Save optind to report unrecognized
3064         option.
3066 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
3068         * ldlang.c (lang_check): Emit fatal error if relocatable link
3069         between different object flavours.
3071         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3072         Set new link_info member export_dynamic.
3073         * ldmain.c (main): Initialize new link_info member export_dynamic.
3075 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
3077         * ldlang.c (walk_wild): Only call walk_wild_file if
3078         lookup_name returns something.
3079         (lookup_name): If load_symbols fails, return NULL.
3080         (load_symbols): Change to a boolean function.
3081         (open_input_bfds): If load_symbols fails then do not make the
3082         executable.
3084 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
3086         * ldlang.c (record_bfd_errors): Remove.
3088         * emultempl/aix.em: Fix copyright dates.
3090 2001-06-07  Andreas Jaeger  <aj@suse.de>
3092         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3093         (TEXT_START_ADDR): Likewise.
3095 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
3097         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3099 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3101         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3103 2001-05-31  H.J. Lu  <hjl@gnu.org>
3105         * ldlang.c (open_input_bfds): Don't change the bfd error
3106         handler whilst loading symbols.
3108 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
3110         * configure.tgt: Remove i370-mvs architecture, it is not currently
3111         supported.
3113 2001-05-25  H.J. Lu  <hjl@gnu.org>
3115         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3116         like emulparams/aixppc.sh.
3118 2001-05-25  H.J. Lu  <hjl@gnu.org>
3120         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3121         setting of output_filename after bfd_scan_arch.
3122         * emultempl/pe.em: Likewise.
3124 2001-05-25  H.J. Lu  <hjl@gnu.org>
3126         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3127         like emulparams/aixppc.sh.
3129         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3130         instead of ${srcdir}/emultempl/stringify.sed.
3132 2001-05-25  Timothy Wall  <twall@oculustech.com>
3134         * emulparams/elf64_aix.sh: Change settings to match IBM linker
3135         output.
3137 2001-05-25  Alan Modra  <amodra@one.net.au>
3139         * configure.host: Replace linuxoldld with linux*oldld.
3140         * configure.tgt: Likewise.
3142 2001-05-24  H.J. Lu  <hjl@gnu.org>
3144         * emultempl/stringify.sed: Removed again.
3146 2001-05-24  H.J. Lu  <hjl@gnu.org>
3148         * emultempl/aix.em (OUTPUT_ARCH): Defined.
3149         (gld${EMULATION_NAME}_before_parse): Initialize
3150         ldfile_output_architecture, ldfile_output_machine and
3151         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3152         * emultempl/beos.em: Likewise.
3153         * emultempl/elf32.em: Likewise.
3154         * emultempl/linux.em: Likewise.
3155         * emultempl/mipsecoff.em: Likewise.
3156         * emultempl/pe.em: Likewise.
3157         * emultempl/sunos.em: Likewise.
3159 2001-05-24 Tom Rix <trix@redhat.com>
3161         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3162         udate import file format.
3163         (change_symbol_mode) New, same
3164         (is_syscall) New, same
3165         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3166         * emulparams/aixppc64.sh : same
3167         * emulparams/aixrs6.sh : same
3168         * emulparams/ppcmacos.sh : same
3169         * emultempl/aix.em : use strtoull to parse options
3170         * Makefile.am : add eaixppc64 emulation for xcoff64
3171         * Makefile.in : same
3172         * configure.tgt : same
3174         * scripttempl/aix.sc : default text section offset to 0x10000000
3175         default data section offset to 0x20000000
3176         add .sv3264 and .sv64 pseudo sections
3177         loader and debug sections use the currect section offset.
3179         * emultempl/aix.em : Add xcoff64 support
3180         Add -binitfini support
3181         (gld${EMULATION_NAME}_before_parse) -binitfini
3182         (gld${EMULATION_NAME}_parse_args) same
3183         (gld${EMULATION_NAME}_before_allocation) format change for special
3184         sections
3186         * emulparams/aixppc64.sh : New file for xcoff64 support
3188 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
3190         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3191         variable to avoid non-portable shell construct.
3193 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3195         * ldmain.c (get_emulation): Add -mips5 command line argument.
3197 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
3199         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3200         (ELF_INTERPRETER_NAME): Define it.
3201         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3202         it.
3203         * configure.tgt (targ_emul, targ_extra_emuls)
3204         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3205         as primary, elf_i386 as extra.
3206         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3207         (eelf_i386_ldso.c): New rule.
3208         * Makefile.in: Rebuilt.
3210 2001-05-22  Nick Clifton  <nickc@redhat.com>
3212         * lexsup.c (ld_options):  Allow -I to be an alias for
3213         --dynamic-linker.  This is for Solaris compatability.
3214         * ld.texinfo: Document that -I can be used.
3215         * ld.1: Regenerate.
3217 2001-05-16  Alan Modra  <amodra@one.net.au>
3219         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3220         whether an input section is the first one assigned to an output
3221         section.
3222         Assorted formatting fixes.
3224 2001-05-14  DJ Delorie  <dj@delorie.com>
3226         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3227         * Makefile.in: Ditto.
3229 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3231         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3232         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3233         output sections.
3234         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3236 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3238         * ldlang.c (lang_process): Call bfd_merge_sections.
3240 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3242         * ldgram.y: Fix typo.
3244 2001-05-03  H.J. Lu  <hjl@gnu.org>
3246         * emultempl/elf32.em: Include "libiberty.h".
3247         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3248         basename of the bfd filename.
3249         (gld${EMULATION_NAME}_stat_needed): Likewise.
3250         (gld${EMULATION_NAME}_try_needed): Likewise.
3251         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3253 2001-05-02  H.J. Lu  <hjl@gnu.org>
3255         * emultempl/pe.em: Include <ctype.h>.
3257 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
3259         * emulparams/elf32openrisc.sh: New file.
3261         * Makefile.am: Add OpenRISC target.
3262         * Makefile.in: Regenerated.
3264         * configure.tgt: Add openrisc-*-* mapping.
3266 2001-05-02  Nick Clifton  <nickc@redhat.com>
3268         * emultempl/aix.em: Replace buystring with xstrdup.
3269         * emultempl/beos.em: Replace buystring with xstrdup.
3271 2001-05-02  H.J. Lu  <hjl@gnu.org>
3273         * ldfile.c: Include "libiberty.h".
3274         * ldlex.l: Likewise.
3276         * ldmisc.c (buystring): Removed.
3277         * ldmisc.h: Likewise.
3279         * ldfile.c: Replace buystring with xstrdup.
3280         * ldlang.c: Likewise.
3281         * ldlex.l: Likewise.
3282         * ldmain.c: Likewise.
3283         * ldmisc.c: Likewise.
3284         * lexsup.c: Likewise.
3285         * mpw-eppcmac.c: Likewise.
3287 2001-04-30  Andreas Jaeger  <aj@suse.de>
3289         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3291 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3293         * ldlang.c (load_symbols): Give emulation a chance
3294         to process unrecognized file before fatal error is
3295         reported, not after.
3297 2001-04-27  Sean McNeil <sean@mcneil.com>
3299         * configure.tgt: Add arm-vxworks target.
3300         * scripttempl/armcoff.sc: Support .text or .data as a section name
3301         prefix.
3302         Define _etext.
3304 2001-04-13  J.T. Conklin  <jtc@redback.com>
3306         * ld.texinfo: Document --fatal-warnings.
3307         * ld.1: Regenerate.
3309         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3310         warnings have been turned into errors.
3311         * lexsup.c (OPTION_WARN_FATAL): Define.
3312         (ld_options): Entry for --fatal-warnings.
3313         (parse_args): Handle OPTION_WARN_FATAL.
3314         * ld.h (ld_config_type): Add fatal_warnings field.
3316 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
3318         * ldmain.c (main): Default to discard_sec_merge.
3319         * lexsup.c (OPTION_DISCARD_NONE): Define.
3320         (ld_options): Add --discard-none.
3321         (parse_args): Handle OPTION_DISCARD_NONE.
3322         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3323         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3324         all its input sections match.
3326 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
3328         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3329         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3330         (eelf32ltsmip.c): New target.
3331         (eelf64btsmip.c): Likewise.
3332         (eelf64ltsmip.c): Likewise.
3333         * Makefile.in: Regenerated.
3335         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3336         target.
3337         (mips*-*-linux-gnu*): Likewise.
3339         * emulparams/elf32ltsmip.sh: New. Traditional little endian
3340         MIPS taget.
3341         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3342         target.
3343         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3344         endian target.
3346 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
3348         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3349         correct value of __Stext here.
3350         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3351         .startup section.
3353         * emulparams/crislinux.sh: Remove FIXME.
3355 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
3357         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3358         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3360 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
3362         * configure.tgt (cris-*-*): Change default emulation to criself.
3363         (cris-*-*aout*): New rule.
3365 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
3367         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3368         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3370 2001-03-26  Andreas Jaeger  <aj@suse.de>
3372         * ld.texinfo (Overview): Fix syntax in texi code.
3374 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3376         * ld.texinfo: Put @c man indications to generate the ld man page.
3377         When generating man, define all the variables.  Define SEEALSO
3378         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
3379         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3380         (ld.1): Generate from ld.texinfo.
3381         * Makefile.in: Regenerate.
3383 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
3385         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3386         and '-fdata-sections'. Set the VMA of STABS sections to zero.
3388 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3390         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3391         is an absolute path look only for this file and not along the path.
3393 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3395         * emultempl/elf32.em (OPTION_GROUP): New macro.
3396         Add new option Bgroup to longopts.
3397         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3398         (gld*_list_options): Add -Bgroup and -z defs.
3399         * ld.1: Document -Bgroup and -z defs.
3400         * ld.texinfo: Likewise.
3402 2001-03-07  Michael Meissner  <meissner@redhat.com>
3404         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3405         with sections created by -fdata-sections.
3406         (.dynbss,.bss): Ditto.
3408 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
3410         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3411         after_allocation_default, not gld..._before_allocation.
3413 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
3415         * configure.in (BFD_VERSION): New.
3416         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3417         * configure: Regenerate.
3418         * Makefile.am: Run "make dep-am"
3419         * Makefile.in: Regenerate.
3421 2001-02-26  Timothy Wall  <twall@cygnus.com>
3423         * emulparams/elf64_aix.sh: Add additional read-only sections;
3424         uncomment lines which are now required.
3426 2001-02-26  H.J. Lu  <hjl@gnu.org>
3428         * ldlang.c (open_input_bfds): Set the bfd error handler so
3429         that problems can be caught whilst loading symbols.
3430         (record_bfd_errors): New function: Report BFD errors and mark
3431         the executable output as being invalid.
3433 2001-02-22  Timothy Wall  <twall@cygnus.com>
3435         * configure.host: Add configuration for ia64-*-aix*.
3436         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3437         Add dependencies for eelf64_aix.c.
3438         * Makefile.in: Regenerate.
3439         * configure.tgt: Add ia64-*-aix* mapping.
3440         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3442 2001-02-20  H.J. Lu  <hjl@gnu.org>
3444         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3445         false if we found the file.
3447 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
3449         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3450         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3452 2001-02-18  lars brinkhoff  <lars@nocrew.org>
3454         * Makefile.am: Add PDP-11 target.
3455         * configure.tgt: Likewise.
3456         * emulparams/pdp11.sh: New file.
3458 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
3460         * configure.host: Add a generic FreeBSD configuration entry such that
3461         all [modern] FreeBSD systems on all platforms will look the same.
3463 2001-02-14  H.J. Lu  <hjl@gnu.org>
3465         * configure.tgt: Remove mention of earmelf_linux26.
3467 2001-02-13  Richard Henderson  <rth@redhat.com>
3469         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3471 2001-02-13  H.J. Lu  <hjl@gnu.org>
3473         * ldexp.h (node_type): Add etree_provided.
3474         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3475         type to etree_provided if defined by PROVIDE. Allow updating
3476         for etree_provided.
3477         (exp_print_tree): Handle etree_provided.
3478         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3479         etree_provided.
3481 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
3483         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3484         .IA_64.unwind.* pattern to unwind table section and
3485         .IA_64.unwind_info* pattern to unwind info section.
3487 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3489         * Makefile.am: Add linux target for S/390.
3490         * Makefile.in: Likewise.
3491         * configure.host: Likewise.
3492         * configure.tgt: Likewise.
3493         * emulparams/elf64_s390.sh: New file.
3494         * emulparams/elf_s390.sh: New file.
3496 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
3498         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3499         targ_extra_libpath.
3500         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3502 2001-02-06  Philip Blundell  <philb@gnu.org>
3504         * Makefile.am: Remove mention of earmelf_linux26.
3505         * Makefile.in: Regenerate.
3507 2001-02-04  Philip Blundell  <philb@gnu.org>
3509         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3510         * emulparams/armelf_linux26.sh: Delete.
3511         * configure.tgt: Remove mention of armelf_linux26 emulation.
3513 2001-02-01  Nick Clifton  <nickc@redhat.com>
3515         * ld.1: Replace occurances of -oformat with --oformat.
3517 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
3519         * ldlang.c (lang_leave_overlay): Don't set lma_region when
3520         load_base is specified.
3522 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
3524         * emultempl/elf32.em: Correct spelling in comments and listed
3525         options.
3527 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
3529         * ldlang.c (lang_leave_overlay): Only set lma_region from the
3530         default for the first section of a group of overlay sections.
3532 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
3534         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3535         * Makefile.in: Regenerate.
3536         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3537         Check for null tool_dir.
3539 2001-01-16  Jim Wilson  <wilson@redhat.com>
3541         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3542         and IA_64.unwind.info.
3544 2001-01-16  H.J. Lu  <hjl@gnu.org>
3546         * ldlang.c (lang_check): Merge the private data only if the
3547         input file has contents.
3549 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
3551         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3553         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3554         enabling search for libmilli.  On a relocatable link, make .text
3555         sections unique.
3556         (LDEMUL_AFTER_PARSE): Define.
3557         (hppaelf_finish): Correct spelling of relocatable in comments.
3559         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3560         rummage through the script for sections on the unique list.
3561         Correct length of strncmp for ".note".
3562         (gld${EMULATION_NAME}_check_needed): Rearrange function.
3564         * ldlang.c (unique_section_list): New var.
3565         (unique_section_p): New function.
3566         (walk_wild_section): Don't match sections on unique_section_list.
3567         (lang_add_unique): New function.
3568         Correct spelling of relocatable in comments.
3570         * ldlang.h (struct unique_sections): Declare.
3571         (unique_section_list): Declare.
3572         (unique_section_p): Declare.
3573         (lang_add_unique): Declare.
3575         * lexsup.c (ld_options): Allow --unique to take an optional arg.
3576         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3578         * ld.texinfo (--unique): Update.
3580 2001-01-13  Nick Clifton  <nickc@redhat.com>
3582         * lexsup.c (parse_args): Remove spurious white space.
3584 2001-01-12  Nick Clifton  <nickc@redhat.com>
3586         * lexsup.c (parse_args): Update copyright date.
3588 2001-01-12  Philip Blundell  <pb@futuretv.com>
3590         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3592 2001-01-10  Kazu Hirata  <kazu@hxi.com>
3594         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
3595         * scripttempl/h8300h.sc: Fix formatting.
3596         * scripttempl/h8300s.sc: Likewise.
3597         * scripttempl/h8500.sc: Likewise.
3598         * scripttempl/h8500b.sc: Likewise.
3599         * scripttempl/h8500c.sc: Likewise.
3600         * scripttempl/h8500m.sc: Likewise.
3601         * scripttempl/h8500s.sc: Likewise.
3603 2000-01-07  David O'Brien  <obrien@BSDi.com>
3605         * emultempl/elf32.em: Only perform Linux ld hints processing when
3606         targeting Linux.
3608 2001-01-07  Philip Blundell  <philb@gnu.org>
3610         * ld.texinfo (Bug Reporting): Update email address for reports.
3612 2000-12-31  Nick Clifton  <nickc@redhat.com>
3614         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3615         options by checking for a return value of '?' not -1.
3617 2000-12-28  Nick Clifton  <nickc@redhat.com>
3619         * lexsup.c (struct ld_option): Add new enum value:
3620         EXACTLY_TWO_DASHES.
3621         (ld_options[]): Change -omagic, -output and -oformat options
3622         to be EXACTLY_TWO_DASHES.
3623         (OUTPUT_COUNT): Use ARRAY_SIZE.
3624         (parse_args): Change parameter 'argc' to unsigned.
3625         Place EXACTLY_TWO_DASHES options into new really_longopts
3626         array.
3627         If getopt_long_only fails, try calling getopt_long using the
3628         really_longopts array.
3629         (help): Print a double dash for both EXACTLY_TWO_DASHES and
3630         TWO_DASHES options.
3632         * ldlex.h: Fix prototype of parse_args.
3634         * ld.texinfo: Document that long options starting with 'o'
3635         must be preceeded by two dashes.  Change example of a single
3636         dashed long option from -oformat to -trace-symbol.
3638 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3640         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3641         (longopts[]): New --no-default-excludes option.
3642         (gld_${EMULATION_NAME}_list_options): Document.
3643         (gld_${EMULATION_NAME}_parse_args): Handle.
3645 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3647         * ldlang.c (new_stat): Revert the last beautification with "innocent"
3648         whitespace, it breaks the K&R C preprocessor.
3650 2000-12-11  DJ Delorie  <dj@redhat.com>
3652         * ld.texinfo: Add notes about --whole-archive and gcc.
3654 2000-11-18  Fred Fish  <fnf@be.com>
3656         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3657         (ld_options): Entry for --allow-shlib-undefined.
3658         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3659         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3660         to false.
3661         * ld.texinfo: Document new command line switch.
3663 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
3665         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3666         .fixup is actually read/write.
3667         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3668         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3669         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3671 2000-12-11  Jan Hubicka  <jh@suse.cz>
3673         * NEWS: Add note about x86_64 architecture.
3675 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
3677         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3678         Set DWARF2 sections to a VMA of zero.
3680 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
3682         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3683         New targets.
3684         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3685         (sparc*-*-rtems*): Switched from a.out to ELF.
3687 2000-11-30  Jan Hubicka  <jh@suse.cz>
3689         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3690         (eelf_x86_64.c): New.
3691         * Makefile.in: Regenerate.
3692         * configure.tgt: Add support for x86_64-*-linux-gnu*.
3693         * emulparams/elf_x86_64.sh: New.
3695 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
3697         * emulparams/crislinux.sh (ENTRY): Change back to _start.
3698         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3700         * scripttempl/crisaout.sc: Change all RELOCATING not related to
3701         merging non-a.out sections into CONSTRUCTING.
3703 2000-11-28  Nick Clifton  <nickc@redhat.com>
3705         * ld.1 (COPYING): Mention that the GNU Free Documentation
3706         License is present in the sources, but not the output, and
3707         also available from the GNU website.
3708         (GNU Free Documentation License): Comment out this section.
3710 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
3712         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3713         does not use them.
3715 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
3717         * ld.1: Remove old date so it does not give the impression the manpage
3718         is way out of date.
3720 2000-11-24  Nick Clifton  <nickc@redhat.com>
3722         * configure.tgt (xscale-coff): Add target.
3723         (xscale-elf): Add target.
3725 2000-11-24  Fred Fish  <fnf@be.com>
3727         * ldmain.c (main): Remove redundant init of config.make_executable
3728         to true.
3730 2000-11-15  Richard Henderson  <rth@redhat.com>
3732         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3734 2000-11-14  Kazu Hirata  <kazu@hxi.com>
3736         * scripttempl/h8300.sc: Fix formatting.
3737         * scripttempl/h8300h.sc: Likewise.
3738         * scripttempl/h8300s.sc: Likewise.
3740 2000-11-14  Denis Chertykov  <denisc@overta.ru>
3742         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3744 2000-11-09  Philip Blundell  <pb@futuretv.com>
3746         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3747         around orphan sections whose names can be represented in C.
3749 2000-11-07  Jim Wilson  <wilson@redhat.com>
3751         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3752         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
3754 2000-11-06  Nick Clifton  <nickc@redhat.com>
3756         * ld.texinfo: Add GNU Free Documentation License.
3757         * ldint.texinfo: Add GNU Free Documentation License.
3758         * ld.1: Add GNU Free Documentation License.
3760 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
3762         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3763         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3765         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3766         Move 2000-11-02 Makefile.in changes to this file.
3767         * Makefile.in: Regenerate.
3769 2000-11-03  Nick Clifton  <nickc@redhat.com>
3771         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3772         constructors and destructors.
3773         * scripttempl/h8300h.sc: Ditto.
3774         * scripttempl/h8300s.sc: Ditto.
3775         * scripttempl/h8500.sc: Ditto.
3776         * scripttempl/h8500b.sc: Ditto.
3777         * scripttempl/h8500c.sc: Ditto.
3778         * scripttempl/h8500m.sc: Ditto.
3779         * scripttempl/h8500s.sc: Ditto.
3780         * scripttempl/v850.sc: Ditto.
3781         * scripttempl/w65.sc: Ditto.
3782         * scripttempl/z8000.sc: Ditto.
3784 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
3786         * Makefile.in (e_i386_chaos.c): New rule.
3787         (ALL_EMULATIONS): Added e_i386_chaos.o.
3788         * emulparams/elf_i386_chaos.sh: New file.
3789         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3791 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
3793         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3794         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3795         Fix sed invocation, so that it coped with '/' in Solaris 64bit
3796         library path suffix.
3797         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3799 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
3801         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3802         for consecutive sections.
3804 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
3806         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3807         options.
3808         * ld.texinfo: Added notes about this new option.
3810 2000-10-16  Nick Clifton  <nickc@redhat.com>
3812         * emultempl/pe.em (_after_open): Add tests of return values from
3813         bfd functions.  Emit appropriate error messages if necessary.
3815 2000-10-13  Nick Clifton  <nickc@redhat.com>
3817         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3818         local variables - they are not used, but leave in the call to
3819         bfd_canonicalize_symtab.
3820         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3821         pe_dll_search_prefix.
3823 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
3825         * emultempl/pe.em (pe_dll_search_prefix): New variable,
3826         (longopts): New --dll-search-prefix option.
3827         (gld_${EMULATION_NAME}_list_options): Document.
3828         (gld_${EMULATION_NAME}_parse_args): Handle.
3829         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3830         dynamically, search for a dll named '<prefix><basename>.dll'
3831         in preference to 'lib<basename>.dll' if --dll-search-prefix
3832         is specified.
3834 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3836         * ldlang.c (section_already_linked): Set kept_section instead of
3837         sec->comdat->sec.
3839 2000-10-10  Kazu Hirata  <kazu@hxi.com>
3841         * deffile.h: Fix formatting.
3842         * lexsup.c: Likewise.
3843         * mri.c: Likewise.
3845 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3847         * pe-dll.c (make_one): Do not generate code thunk for DATA
3848         exports.
3849         (process_def_file): deduce DATA flag for auto-export sumbols.
3851 2000-10-09  Kazu Hirata  <kazu@hxi.com>
3853         * ld.h: Fix formatting.
3854         * ldcref.c: Likewise.
3855         * ldctor.h: Likewise.
3856         * ldemul.c: Likewise.
3857         * ldemul.h: Likewise.
3858         * ldexp.c: Likewise.
3859         * ldexp.h: Likewise.
3860         * ldfile.c: Likewise.
3861         * ldfile.h: Likewise.
3862         * ldlang.c: Likewise.
3863         * ldlang.h: Likewise.
3864         * ldmain.c: Likewise.
3865         * pe-dll.c: Likewise.
3867         * pe-dll.c: Revert some formatting fixes.
3869 2000-10-08  Kazu Hirata  <kazu@hxi.com>
3871         * pe-dll.c: Fix formatting.
3873 2000-10-05  Kazu Hirata  <kazu@hxi.com>
3875         * ldlang.c: Fix formatting.
3877 2000-10-03  DJ Delorie  <dj@redhat.com>
3879         * pe-dll.c (fill_edata): initialize entire block
3880         (make_one): fill in correct section.
3882 2000-10-03  Kazu Hirata  <kazu@hxi.com>
3884         * ldexp.c: Fix formatting.
3886 2000-10-02  DJ Delorie  <dj@redhat.com>
3888         * emultempl/pe.em (gld_*_after_open): detect case where there two
3889         import libraries for same dll; rename one to ensure proper link
3890         order.
3892         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3893         typo
3894         (generate_edata): fix typo
3896 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
3898         * scripttempl/crisaout.sc (ENTRY): Now __start.
3899         (.text): Add default setting for __start.
3900         Remove CONSTRUCTORS handling.
3901         (/DISCARD/): Add .gnu.warning.*.
3902         * emulparams/crislinux.sh (ENTRY): Now __start.
3903         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3904         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3905         (ENTRY): Now __start.
3906         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3907         (EXECUTABLE_SYMBOLS): Add default setting for __start.
3909 2000-09-29  Kazu Hirata  <kazu@hxi.com>
3911         * deffile.h: Fix formatting.
3912         * ld.h: Likewise.
3913         * ldcref.c: Likewise.
3914         * ldctor.c: Likewise.
3915         * ldctor.h: Likewise.
3916         * ldemul.c: Likewise.
3917         * ldemul.h: Likewise.
3918         * ldexp.c: Likewise.
3919         * ldexp.h: Likewise.
3920         * ldfile.c: Likewise.
3921         * ldfile.h: Likewise.
3922         * ldlang.c: Likewise.
3923         * ldlang.h: Likewise.
3924         * lexsup.c: Likewise.
3925         * mri.c: Likewise.
3926         * pe-dll.c: Likewise.
3928 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3930         * pe-dll.c (process_def_file): Uninitialized data wasn't
3931         exported with --export-all-symbols switch.
3933 2000-09-28  DJ Delorie  <dj@redhat.com>
3935         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3936         noname work properly.
3938 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
3940         * ld.texinfo (HPPA ELF32): New section.
3942         * emultempl/hppaelf.em (group_size): New.
3943         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3944         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3945         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
3946         options to prevent abbreviations matching.
3947         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
3948         (PARSE_AND_LIST_ARGS_CASES): Handle it.
3950 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3952         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3953         on the m68*-*-elf target.  Make it support COFF input objects.
3955 2000-09-21  Kazu Hirata  <kazu@hxi.com>
3957         * ldmain.c: Fix formatting.
3958         * ldmisc.c: Likewise.
3959         * ldver.c: Likewise.
3960         * ldwrite.c: Likewise.
3962 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3964         * ldwrite.c (clone_section): Silence gcc warnings.
3966 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3968         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3969         out of memory failure.
3971         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3972         (clone_section): Handle out of memory failures.  Rename var to
3973         avoid c++ reserved word.
3975 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3977         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3978         stub_name param to stub_sec_name.
3979         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3981 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3983         * emultempl/m68kelf.em: New file.
3984         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3985         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3986         * Makefile.in: Regenerate.
3988 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3990         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3991         only as needed.
3993 2000-09-13  Nick Clifton  <nickc@redhat.com>
3995         * ldmain.c (multiple_definition): Disable relaxation if
3996         multiple symbol definitions are encountered - otherwise the
3997         linker could abort with an assertion failure.
3999 2000-09-10  Nick Clifton  <nickc@redhat.com>
4001         * mri.c: Fix formatting.
4003 2000-09-07  H.J. Lu  <hjl@gnu.org>
4005         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4006         * configure: Rebuild.
4008 2000-09-07  H.J. Lu  <hjl@gnu.org>
4010         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4011         * Makefile.in: Rebuild.
4013 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
4015         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4016         broken list handling.  Create __start_SECNAME and __stop_SECNAME
4017         when no place-holder.  Add some comments.  Test both SEC_CODE and
4018         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4019         Handle case where no output section statement created.
4021 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
4023         * configure.tgt (sh-*-linux*): Added.
4024         * Makefile.am: Added eshelf_linux and eshlelf_linux.
4025         * Makefile.in: Rebuilt.
4026         * emulparams/shelf_linux.sh: New file.
4027         * emulparams/shlelf_linux.sh: New file.
4029 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
4031         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4032         try shuffling sections when the orphan happens to be the place
4033         holder.  Keep count of unique section names generated so we speed
4034         the search for a new name.
4036 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
4038         * configure: Rebuilt with new libtool.m4.
4040 2000-09-05  Nick Clifton  <nickc@redhat.com>
4042         * Makefile.in: Regenerate.
4043         * aclocal.m4: Regenerate.
4044         * configure: Regenerate.
4045         * config.in: Regenerate.
4046         * po/ld.pot: Regenerate.
4048         * ldint.texinfo: Remove CVS revision marker - it foils local
4049         comparisons.
4051         * emultempl/ticoff.em: Remove extraneous comma.
4053 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
4055         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4056         to stub section flags.
4057         (hppa_for_each_input_file_wrapper): New.
4058         (hppa_lang_for_each_input_file): New.
4059         (lang_for_each_input_file): Define to call above.
4060         (multi_subspace): New.
4061         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4062         (PARSE_AND_LIST_PROLOGUE): Define.
4063         (PARSE_AND_LIST_LONGOPTS): Define.
4064         (PARSE_AND_LIST_OPTIONS): Define.
4065         (PARSE_AND_LIST_ARGS_CASES): Define.
4066         (hppaelf_finish): Call elf32_hppa_set_gp.
4067         (hppaelf_set_output_arch): Remove.
4068         (LDEMUL_SET_OUTPUT_ARCH): Remove.
4070         * emulparams/hppalinux.sh (ELFSIZE): Define.
4071         (MACHINE): Define.
4072         (OTHER_READONLY_SECTIONS): Define.
4073         (DATA_PLT): Define.
4074         (GENERATE_SHLIB_SCRIPT): Define.
4076         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
4077         to const throughout.  Change `void *' to `PTR' throughout.
4078         (lang_memory_default): Function is local to file, add `static'.
4080         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4081         (ehppalinux.c): Likewise.
4082         (earmelf.c): Likewise.
4083         (earmelf_linux.c): Likewise.
4084         (earmelf_linux26.c): Likewise.
4085         * Makefile.in: Regenerate.
4087         * ld.h (ld_config_type): Add unique_orphan_sections.
4088         * lexsup.c (OPTION_UNIQUE): Define.
4089         (ld_options): Add "--unique".
4090         (parse_args): Handle it.
4091         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4092         search for an existing output section if unique_orphan_sections is
4093         set.  Make use of bfd_get_unique_section_name rather than
4094         duplicating code here.
4095         * ld.texinfo: Describe --unique.
4097         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4098         optional arg to split-by-file.
4099         (parse_args): Handle them.
4100         * ld.texinfo: Update description of these options.
4101         * ldwrite.c (clone_section): Pass in the section name.  Replace
4102         local code with bfd_get_unique_section_name.
4103         (split_sections): Tidy code and comments.  Use a list traversal
4104         more appropriate to the list construction.  Handle cooked section
4105         sizes.  Split when split_by_reloc reached rather than exceeded.
4106         Track section size and split when split_by_file reached.  Fix
4107         link_order_tail (even though it's not used).
4108         (ldwrite): Modify condition for calling split_sections to suit
4109         changed split_by_reloc and split_by_file.
4110         * ldmain.c (main): Init config.split_by_reloc and
4111         config.split_by_file to -1.
4112         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4113         Change split_by_file to bfd_size_type.
4115 2000-09-02  Nick Clifton  <nickc@redhat.com>
4117         * configure.in: Increase version number to 2.10.91.
4118         * NEWS: Mention new ability to support removal of duplicate DWARF2
4119         debug information.
4120         * configure: Regenerate.
4121         * aclocal.m4: Regenerate.
4122         * config.in: Regenerate.
4124 2000-09-02  Daniel Berlin <dberlin@redhat.com>
4126         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4127         sections.
4128         * scripttempl/elf32avr.sc: Ditto.
4129         * scripttempl/elfd10v.sc: Ditto.
4130         * scripttempl/elfd30v.sc: Ditto.
4131         * scripttempl/elfi370.sc: Ditto.
4132         * scripttempl/elfm68hc11.sc: Ditto.
4133         * scripttempl/elfm68hc12.sc: Ditto.
4134         * scripttempl/elfi386beos.sc: Ditto.
4135         * scripttempl/v850.sc: Ditto.
4137 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
4139         * acinclude.m4: Include libtool and gettext macros from the
4140         top level.
4141         * aclocal.m4, configure: Rebuilt.
4143 2000-08-25  Nick Clifton  <nickc@redhat.com>
4145         * ldlang.c (open_output): When choosing the target for a
4146         particular endianness, do nothing if the target is not
4147         supported.
4149 2000-08-25  H.J. Lu  <hjl@gnu.org>
4151         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4152         check -rpath nor LD_RUN_PATH for cross link.
4153         * ld.texinfo: Document the change.
4155 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
4157         * NEWS: Mention support for CRIS.
4159 2000-08-23  H.J. Lu  <hjl@gnu.org>
4161         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4162         the current runpath list from bfd_elf_get_runpath_list ()
4163         before search.
4165 2000-08-22  H.J. Lu  <hjl@gnu.org>
4167         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4168         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4169         LD_LIBRARY_PATH for native linker. Display the needed DSO if
4170         trace_file_tries is non-zero.
4171         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4172         if trace_file_tries is non-zero.
4174         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4175         * NEWS: Mention it.
4177 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
4179         * NEWS: Mention i860 support.
4181 2000-08-14  Andreas Schwab  <schwab@suse.de>
4183         * scripttempl/elf.sc: Fix last change to use correct comment
4184         syntax.
4186 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
4188         * scripttempl/elf.sc: Add a comment giving the correspondence
4189         between sections, per-datum sections, and linkonce sections.  Make
4190         the comment true even for .bss, .sdata, .sdata2, .sbss, and
4191         .sbss2.
4193 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
4195         * emulparams/elf32_i860.sh: New file.
4196         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4197         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4198         (eelf32_i860.c): New rule.
4199         * Makefile.in: Regenerate.
4201 2000-08-10  Nick Clifton  <nickc@cygnus.com>
4203         * emulparams/mipspe.sh (ENTRY): Add definition.
4205 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
4207         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4208         in error message.
4210 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4212         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4213         the final size of .bss section.
4214         * scripttempl/elfm68hc12.sc: Likewise.
4216 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
4218         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4219         gld${EMULATION_NAME}_parse_args for consistency.  Combine
4220         lastoptind and prevoptind vars, and keep track of last optind.
4221         (gld_${EMULATION_NAME}_list_options): Rename to
4222         gld${EMULATION_NAME}_list_options.
4224 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
4226         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4227         (i586-sco-sysv5uw7.1.0).
4229 2000-07-27  H.J. Lu  <hjl@gnu.org>
4231         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4232         (PARSE_AND_LIST_PROLOGUE): New.
4233         (PARSE_AND_LIST_LONGOPTS): Likewise.
4234         (PARSE_AND_LIST_OPTIONS): Likewise.
4235         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4236         (PARSE_AND_LIST_EPILOGUE): Likewise.
4238 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
4240         * emultempl/armelf.em: Elide functions common to elf32.em,
4241         ie. most of the file.
4242         (arm_elf_after_open): New.  Do arm specific things then call
4243         gld${EMULATION_NAME}_after_open.
4244         (arm_elf_before_allocation): New.  Call
4245         gld${EMULATION_NAME}_before_allocation then do arm specifics.
4246         (PARSE_AND_LIST_PROLOGUE): Define.
4247         (PARSE_AND_LIST_SHORTOPTS): Define.
4248         (PARSE_AND_LIST_LONGOPTS): Define.
4249         (PARSE_AND_LIST_OPTIONS): Define.
4250         (PARSE_AND_LIST_ARGS_CASES): Define.
4251         (LDEMUL_AFTER_OPEN): Define.
4252         (LDEMUL_BEFORE_ALLOCATION): Define.
4253         (LDEMUL_BEFORE_PARSE): Define.
4254         (LDEMUL_FINISH): Define.
4256         * emultempl/hppaelf.em: Similarly zap most of this file.
4257         (hppaelf_add_stub_section): Prototype.
4258         (hppaelf_layaout_sections_again): Prototype.
4259         (hook_in_stub): Prototype.
4260         (LDEMUL_SET_OUTPUT_ARCH): Define.
4261         (LDEMUL_FINISH): Define.
4262         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4264         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4265         (EXTRA_EM_FILE): New.
4266         * emulparams/armelf_linux.sh: Likewise.
4267         * emulparams/armelf_linux26.sh: Likewise.
4268         * emulparams/hppalinux.sh: Likewise.
4269         * emulparams/hppaelf.sh: Likewise.
4270         (NOP): Define.
4272         * emultempl/elf32.em: Fix formatting.
4273         (EXTRA_EM_FILE): Source it.
4274         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4275         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4276         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4277         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4278         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4279         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4280         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4281         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4282         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
4283         allow functions in this file to be overridden.
4284         (PARSE_AND_LIST_SHORTOPTS): Handle it.
4286         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4288         * emultempl/elf32.em: Reorganize file.
4290 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
4292         * emulparams/elf64alpha.sh: Implement "-taso" emulation
4293         specific option to fit 64-bit executable in the lower
4294         31-bit address range.  This is done by changing start
4295         address of .interp (the very first section of executable)
4296         and then setting EF_ALPHA_32BIT elf header flag.
4298 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4300         * emultempl/m68kcoff.em: New file.
4301         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4302         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4303         generic.em.
4304         * Makefile.in: Regenerate.
4306 2000-07-20  H.J. Lu  <hjl@gnu.org>
4308         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4309         and "disable-new-dtags" to stop getopt from treating -d/-e as
4310         abbreviations for these options.
4312 2000-07-20  H.J. Lu  <hjl@gnu.org>
4314         * ld.texinfo: Add documentation for --disable-new-dtags and
4315         --enable-new-dtags.
4317         * ldmain.c (main): Initialize link_info.new_dtags to false.
4319         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4320         --disable-new-dtags and --enable-new-dtags.
4321         (gld_${EMULATION_NAME}_list_options): Likewise.
4323 2000-07-05  Kenneth Block  <krblock@computer.org>
4325         * lexsup.c: Add optional style to demangle switch
4326         * ld.texinfo: Document optional style to demangle switch.
4328 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
4330         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4331         ecrislinux.o.
4332         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4333         Regenerate dependencies.
4334         * Makefile.in: Rebuild.
4335         * configure.tgt (cris-*-*): New target.
4336         * emulparams/crisaout.sh, emulparams/criself.sh,
4337         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4338         * po/POTFILES.in, po/ld.pot: Regenerate.
4340 2000-07-20  H.J. Lu  <hjl@gnu.org>
4342         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4343         Print out ignored -z options.
4345 2000-07-19  H.J. Lu  <hjl@gnu.org>
4347         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4348         (PARSE_AND_LIST_PROLOGUE): New.
4349         (PARSE_AND_LIST_LONGOPTS): Likewise.
4350         (PARSE_AND_LIST_OPTIONS): Likewise.
4351         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4353         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4355         * lexsup.c (ld_options): Comment out 'z'.
4356         (parse_args): Likewise.
4358         * emultempl/elf32.em: Include "elf/common.h".
4359         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4360         options.
4361         (gld_${EMULATION_NAME}_list_options): Likewise.
4363         * ld.texinfo: Add documentation for the recognized -z options.
4365 2000-07-19  H.J. Lu  <hjl@gnu.org>
4367         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4368         bfd_elf_set_dt_needed_soname ().
4370 2000-07-18  DJ Delorie  <dj@cygnus.com>
4372         * pe-dll.c (pe_dll_id_target): check object target name also
4374 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
4376         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4377         ${INIT_END} if relocating.
4378         (.fini): Likewise ${FINI_START} and ${FINI_END}.
4380 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
4382         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4383         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4384         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4385         errors introduced by the old dynamic lib search order.
4387 2000-07-17  DJ Delorie  <dj@cygnus.com>
4389         * pe-dll.c (process_def_file): auto-export data items also
4390         (pe_process_import_defs): also see if _imp_ form needed
4392 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
4394         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4395         for dll import libraries
4397 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
4399         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4400         gcc 2.95.2 and later.
4402 2000-07-11  Kazu Hirata  <kazu@hxi.com>
4404         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4405         message.
4407 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4409         * ldemul.h (struct lang_input_statement_struct): Remove forward
4410         declaration.
4411         (struct search_dirs): Likewise.
4412         * ldfile.h (struct lang_input_statement_struct): Likewise.
4413         Protect file from multiple inclusion.
4414         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4415         declaration from macro to file scope.
4417         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4418         * ldgram.y: Likewise here.
4419         * ldlang.c: And here.
4420         * ldmain.c: And here.
4421         * mpw-elfmips.c: And here.
4422         * mpw-eppcmac.c: And here.
4423         * emultempl/aix.em: And here.
4424         * emultempl/armcoff.em: And here.
4425         * emultempl/armelf.em: And here.
4426         * emultempl/armelf_oabi.em: And here.
4427         * emultempl/beos.em: And here.
4428         * emultempl/elf32.em: And here.
4429         * emultempl/hppaelf.em: And here.
4430         * emultempl/linux.em: And here.
4431         * emultempl/lnk960.em: And here.
4432         * emultempl/pe.em: And here.
4433         * emultempl/sunos.em: And here.
4434         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4435         * mpw-idtmips.c: Ditto.
4436         * emultempl/generic.em: Ditto.
4437         * emultempl/gld960.em: Ditto.
4438         * emultempl/gld960c.em: Ditto.
4439         * emultempl/mipsecoff.em: Ditto.
4440         * emultempl/ticoff.em: Ditto.
4441         * emultempl/vanilla.em: Ditto.
4443         * pe-dll.c: Include ldfile.h
4444         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4446         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4447         arguments to bfd_elf32_size_dynamic_sections call.
4448         (gldelf32ebmip_place_orphan): Add missing arguments to
4449         lang_leave_output_section_statement call.
4451 2000-07-10  H.J. Lu  <hjl@gnu.org>
4453         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4454         DLL_SUPPORT.
4455         (strhash): Likewise.
4456         (compute_dll_image_base): Likewise.
4457         (pe_undef_found_sym): Likewise.
4458         (pe_undef_cdecl_match): Likewise.
4459         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4460         argument "arch" with ATTRIBUTE_UNUSED.
4462 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4464         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4466         From  Ryan Bradetich  <rbradetich@uswest.net>
4467         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4469 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
4471         Changes to create multiple linker stubs, positioned immediately
4472         before the section where they are required.
4473         * emultempl/hppaelf.em: Include elf32-hppa.h.
4474         (stub_sec, file_chain): Delete.
4475         (hppaelf_create_output_section_statements): Don't make a stub
4476         section here.
4477         (hook_stub_info): New struct.
4478         (hook_in_stub): New function.
4479         (hppaelf_add_stub_section): New function.
4480         (hppaelf_finish): Do nothing for relocateable links.  Modify the
4481         call to elf32_hppa_size_stubs.  Move code for updating section
4482         layout from here...
4483         (hppaelf_layaout_sections_again): ..to here, a new function.
4485         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4486         broken list handling.  Pass in a pointer to the list.
4487         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4488         for above changes.
4489         (hppaelf_before_parse): Prototype.
4490         (hppaelf_set_output_arch): Prototype.
4491         (hppaelf_create_output_section_statements): Prototype.
4492         (hppaelf_delete_padding_statements): Prototype.
4493         (hppaelf_finish): Prototype.
4495         Merge from elf32.em
4496         * emultempl/hppaelf.em: Include ctype.h.
4497         (struct orphan_save): New.
4498         (gld${EMULATION_NAME}_place_orphan): New.
4499         (output_rel_find): New.
4500         (hppaelf_get_script): Update from elf32.em.
4501         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4502         Change emulation_name field to "${EMULATION_NAME}".  Add
4503         gld${EMULATION_NAME}_place_orphan.
4505         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
4506         ehppalinux.o, sort it.  Regenerate dependencies.
4507         (ehppalinux.c): Depend on hppaelf.em
4508         * Makefile.in: Regenerate.
4510         * configure.tgt: targ_emul=hppalinux for hppa*linux
4512         * emulparams/hppalinux.sh: New.
4513         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4515 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
4517         * lexsup.c (parse_args): Copy section name.
4519 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
4521         * emultempl/pe.em: institute the following search order for
4522         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4523         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
4524         static lib (libfoo.a) if none of the above are found.
4526 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
4528         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4529         (longopts): New --{enable,disable}-auto-image-base options.
4530         (gld_${EMULATION_NAME}_list_options): Document.
4531         (gld_${EMULATION_NAME}_parse): Handle.
4532         (strhash): New static function.
4533         (compute_dll_image_base): New static function.
4534         (gld_${EMULATION_NAME}_set_symbols): Use.
4536 2000-07-05  DJ Delorie  <dj@redhat.com>
4538         * MAINTAINERS: new
4540 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
4542         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4543         * emulparams/elf32btsmip.sh: New file.
4544         * Makefile.am: Add traditional mips target.
4545         * Makefile.in: Rebuild.
4547 2000-07-01  H.J. Lu  <hjl@gnu.org>
4549         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4550         automake to use YLWRAP.
4551         * Makefile.in: Rebuild.
4553 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
4555         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
4556         (CLEANFILES): Add DEPA.
4557         * Makefile.in: Regenerate.
4559 2000-06-30  Timothy Wall  <twall@ppc>
4561         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4562         the page in the upper octet of the address.
4564 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
4566         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4568 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
4570         * NEWS: arm-elf does --gc-sections too.
4572 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
4574         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4575         find one.
4576         * Makefile.in: Regenerate.
4578 2000-06-21  H.J. Lu  <hjl@gnu.org>
4580         * Makefile.am: Rebuild dependency.
4581         * Makefile.in: Rebuild.
4583 2000-06-20  H.J. Lu  <hjl@gnu.org>
4585         * Makefile.am: Rebuild dependency.
4586         * Makefile.in: Rebuild.
4588 2000-06-20  Timothy Wall  <twall@cygnus.com>
4590         * scripttempl/tic54xcoff.sc: New.
4591         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4592         * gen-doc.texi: Add flag for TI COFF.
4593         * ld.texinfo: Add documentation for TI COFF handling switches.
4594         * emultempl/ticoff.em: New. TI COFF handling.
4595         * configure.tgt: Add tic54x target.
4596         * Makefile.am: Add tic54x target.
4597         * Makefile.in: Ditto.
4599 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
4601         * ldmain.c (set_scripts_dir): Correct pointer comparison when
4602         checking for backslashes.
4604 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
4606         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4608 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
4610         * NEWS: Update list of targets supporting --gc-sections.
4612         * scripttempl/elf.sc: KEEP .eh_frame contents.
4613         * scripttempl/elfd30v.sc: Same here.
4615 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4617         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4618         and m68hc11 (elf).
4619         * Makefile.in: Rebuild.
4620         * configure.tgt: Recognize m68hc12 and m68hc11.
4621         * scripttempl/elfm68hc12.sc: New file.
4622         * emulparams/m68hc12elfb: New emulation.
4623         * emulparams/m68hc12elf: New emulation.
4624         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
4625         (includes a memory.x script to define the ROM and RAM banks).
4626         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4627         New configuration files for support of Motorola 68hc11
4629 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
4631         * ldmain.c (main): Only change SEC_READONLY for final link.
4633 2000-06-13  H.J. Lu  <hjl@gnu.org>
4635         * configure: Regenerate.
4637 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4639         * configure.in (VERSION): Update to show this is the CVS mainline.
4641 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4643         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4644         input objects to be ECOFF.
4645         (check_sections): einfo takes %B, not %P, to print a BFD name.
4647 2000-06-05  Michael Matz <matz@ifh.de>
4649         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4650         version scripts.
4652         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4654 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
4656         * emulparams/avr1200.sh (STACK): Define as 0.
4657         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4658         * emulparams/avr4433.sh (STACK): Likewise.
4659         * emulparams/avr44x4.sh (STACK): Likewise.
4660         * emulparams/avr85xx.sh (STACK): Likewise.
4661         * emulparams/avrmega103.sh (STACK): Likewise.
4662         * emulparams/avrmega161.sh (STACK): Likewise.
4663         * emulparams/avrmega603.sh (STACK): Likewise.
4664         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4665         (__stack): Define from ${STACK} for main().
4667 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4669         * Makefile.am: Update dependencies with "make dep-am"
4670         * Makefile.in: Regenerate.
4672 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
4674         * ldmain.c: Include filenames.h.
4675         (set_scripts_dir): Support backslashes in program name.
4677 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
4679         * ldmain.c (main): When deciding if ".text" section should be
4680         read-only, don't forget to reset SEC_READONLY because it
4681         could be already set.
4683 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
4685         * ld.1: Add documentation for new command line option:
4686                 --section-start <sectionname>=<sectionorg>
4687         This is a generic version of -Ttext etc. which accepts
4688         any section name as a parameter instead of just text/data/
4689         bss.
4690         * ld.texinfo: More docs.
4691         * NEWS: More docs.
4692         * lexsup.c: (parse_args): Recognize new command line option.
4693         (ld_options): Add new option.
4695 2000-05-18  H.J. Lu  <hjl@gnu.org>
4697         * lexsup.c (parse_args): `i' == `r', not `q'.
4699 2000-05-18  Jeffrey A Law  (law@cygnus.com)
4701         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4703 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
4704               Rick Gorton          <gorton@scrugs.lkg.dec.com>
4706         Add support for '-q' == '--emit-relocs' switch.
4707         * ldmain.c (main): Default to false.
4708         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4709         * NEWS: Describe the emitrelocations switch.
4710         * ld.texinfo: Describe the emitrelocations switch.
4712 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
4714         * emultempl/pe.em (_open_dynamic_archive): New function: Search
4715         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4716         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4717         link options.
4719 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
4721         * lexsup.c (parse_args): Update the year in the copyright notice.
4723 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
4725         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4726         Replace defines with those from intl/libgettext.h to quieten gcc
4727         warnings.
4729 2000-05-10  H.J. Lu  <hjl@gnu.org>
4731         * ldlang.c (open_input_bfds): Don't load the same file within
4732         a group again if the whole archive has been loaded already.
4734 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
4736         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4737         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4738         strtoul.
4740 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4742         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4744         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4745         host "ia64-*-linux-gnu*".
4747 2000-04-29  Andreas Jaeger  <aj@suse.de>
4749         * ld.h: Correctly check GCC version.
4751 2000-04-25  Jeffrey A Law  (law@cygnus.com)
4753         * Makefile.am: Add PA64 support.  Add missing dependencies for
4754         PA32 elf support.
4755         * Makefile.in: Rebuilt.
4756         * configure.tgt: Add PA64 support (currently disabled).
4758 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
4760         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4761         (output_rel_find): New function.
4762         (hold_section, hold_use): Delete.
4763         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4764         hold_interp): Make local to place_orphan.
4765         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4766         rather than place_section to find possible previous use of orphan.
4767         Similarly find the place-holder output sections.  Use returned
4768         value from lang_enter_output_section_statement rather than calling
4769         lang_output_section_statement_lookup.
4770         * emultempl/armelf.em: Same here.
4771         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4773         * ldlang.c (lang_enter_output_section_statement): Return output
4774         section statement.
4775         * ldlang.h (lang_enter_output_section_statement): Change
4776         declaration too.
4778         * ldlang.h (lang_output_section_statement): Export it.
4779         * ldlang.c (lang_output_section_statement): Ditto.
4781 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4783         * ld.texinfo (Output Section Data): Add note that section data
4784         commands cannot appear outside of section directives.
4786 2000-04-2  Matthew Green  <mrg@cygnus.com>
4788         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4790 2000-04-21  Richard Henderson  <rth@cygnus.com>
4791             David Mosberger  <davidm@hpl.hp.com>
4793         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4794         (eelf64_ia64.c): New rule.
4795         * Makefile.in: Rebuild.
4796         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4797         * emulparams/elf64_ia64.sh: New file.
4799 2000-04-21  Richard Henderson  <rth@cygnus.com>
4801         * scripttempl/elfd30v.sc: Place .gcc_except_table.
4803 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
4805         * dep-in.sed: Match space at start of file name, not at end.
4807 2000-04-18  H.J. Lu  <hjl@gnu.org>
4809         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4810         lang_leave_output_section_statement () after calling
4811         lang_enter_output_section_statement ().
4812         * emultempl/armelf.em: Likewise.
4814 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
4816         * emultempl/elf32.em (struct orphan_save): Add section field.
4817         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4818         better order, and place first orphan section as we did before the
4819         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
4820         Don't call make_bfd_section here, let wild_doit do the job for us.
4821         Don't build a statement list when we'll only throw it away.
4822         * emultempl/armelf.em: Ditto.
4823         * emultempl/pe.em: Similarly.
4825 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4827         * scripttempl/elfppc.sc: Remove.
4828         * emulparams/elf32ppc.sh: Use elf.sc.
4829         * emulparams/elf32lppc.sh: Use elf.sc.
4830         * emulparams/elf32ppclinux.sh: Use elf.sc.
4831         * emulparams/elf32ppcsim.sh: New file.
4832         * emulparams/elf32lppcsim.sh: New file.
4833         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
4834         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4835         * Makefile.in: Regenerate.
4836         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4838 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
4840         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4841         ~SEC_ALLOC sections too.  Init start address of debug sections.
4842         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4843         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4844         Also set all relocateable section start addresses.
4846 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
4848         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4849         Add new BSS_PLT variable for when .plt need not be contained in
4850         the file.  Move _etext so that it is also after .fini, and provide
4851         both etext and _etext with a leading underscore.  Mark the start
4852         and end of .sbss.
4854 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
4856         * emultempl/elf32.em (struct orphan_save): New.
4857         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4858         hold_interp): Make them struct orphan_save.
4859         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4860         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4861         the end of the relevant section list.  Also add associated section
4862         statements to the end of any previous orphan statements.
4863         * emultempl/armelf.em: Similarly.
4864         * emultempl/pe.em: Similarly.
4866 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
4868         * ld.texinfo (Simple Example): Remove extraneous paragraph.
4870 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
4872         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4873         --enable-build-warnings option.
4874         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4875         * Makefile.in, configure: Re-generate.
4877 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
4879         * po/ld.pot: Regenerate.
4881         * lexsup.c (help): Restore translated part of bug string.
4883         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4884         (DEP): Quote when passing vars to sub-make.  Add warning message
4885         to end.
4886         (DEP1): Rewrite for "gcc -MM".
4887         (CLEANFILES): Add DEP2.
4888         Update dependencies.
4889         * Makefile.in: Regenerate.
4891 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
4893         * ld.h: #include "bin-bugs.h"
4894         * lexsup.c (help): Use REPORT_BUGS_TO.
4896 2000-03-27  Denis Chertykov  <denisc@overta.ru>
4898         * configure.tgt (avr-*-*): New target support.
4899         * Makefile.am: Likewise.
4900         * scripttempl/elf32avr.sc: New script file.
4901         * emulparams/avr1200.sh: New file.
4902         * emulparams/avr23xx.sh: New file.
4903         * emulparams/avr4433.sh New file.
4904         * emulparams/avr44x4.sh New file.
4905         * emulparams/avr85xx.sh New file.
4906         * emulparams/avrmega103.sh New file.
4907         * emulparams/avrmega161.sh New file.
4908         * emulparams/avrmega603.sh New file.
4909         * Makefile.in: Regenerate.
4911 2000-03-09  Andreas Jaeger  <aj@suse.de>
4913         * Makefile.am (check-DEJAGNU): Also unset LANG.
4914         * Makefile.in: Rebuild.
4916 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
4918         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4919         archive.
4921 2000-03-02  H.J. Lu  <hjl@gnu.org>
4923         * emulparams/elf32mcore.sh: Include "getopt.h".
4925 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
4927         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4929 2000-03-01  H.J. Lu  <hjl@gnu.org>
4931         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4932         * emulparams/shpe.sh: Likewise.
4934 2000-03-01  Nick Clifton  <nickc@cygnus.com>
4936         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4937         to unused parameters.
4939         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4940         functions only used by DLL code.
4941         (_place_orphan): Initialise 'dollar'.
4943 2000-03-01  H.J. Lu  <hjl@gnu.org>
4945         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4946         indicate if the undefined symbol is a fatal error or not.
4947         Don't delete the output file if "fatal" is false.
4949 2000-02-29  H.J. Lu  <hjl@gnu.org>
4951         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4952         Set LC_COLLATE and LC_ALL to null and export them. It is for
4953         sort which expects the C locale.
4954         Add $(LIBS) to all $(HOSTING_LIBS).
4955         * Makefile.in: Rebuild.
4957 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
4959         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4960         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4961         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4962         (ld_emulation_xfer_struct): Add missing NULL initialiser for
4963         find_potential_libraries.
4965 2000-02-28  Jim Blandy  <jimb@redhat.com>
4967         * ldgram.y (exclude_name_list): Don't require a comma to separate
4968         list entries; the lexer considers commas to be valid part of a
4969         filename, so in something like `foo, bar' the comma is considered
4970         part of the first filename, `foo,'.
4971         * ld.texinfo: Update section on EXCLUDE_FILE lists.
4973 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
4975         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4976         host "i[3456]86-*-freebsdelf*".
4978 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
4980         * scripttempl/i386go32.sc: Move misplaced semicolons.
4982 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
4984         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4985         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4986         (eelf64hppa.c, ehppaelf.c): Remove targets.
4987         * Makefile.in: Rebuild.
4989 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4991         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4992         GNU/Linux/sparc, but keep the default as 32.
4994         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
4995         it default if sparcv9 or sparc64.
4997 2000-02-24  Nick Clifton  <nickc@cygnus.com>
4999         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5000         * Makefile.in: Regenerate.
5001         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5003         * ldemul.h (ld_emulation_xfer_struct): Add new field:
5004         find_potential_libraries.
5005         * ldemul.c (ldemul_find_potential_libraries): New function.
5007         * ldfile.c (ldfile_open_file_search): Allow function to be
5008         exported.
5009         (ldfile_open_file): Call ldemul_find_potential_libraries.
5010         * ldfile.h: Add prototype for ldfile_open_file_search.
5012         * pe-dll.c: Add support for ARM, MIPS and SH targets.
5014         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
5015         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
5017         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5018         (gld_X_find_potential_libraries): New function.  Search for
5019         libraries called "*.lib".
5021         * scripttempl/pe.sc: Add .pdata section.
5023 2000-02-23  Richard Henderson  <rth@cygnus.com>
5025         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5026         Add and use memory regions.
5028 2000-02-23  Linas Vepstas (linas@linas.org)
5030         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5032         * Makefile.am: Add support for Linux/IBM 370.
5033         * configure.tgt: Likewise.
5035         * Makefile.in: Regenerate.
5037 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
5039         * ldlang.c (print_input_section, print_data_statement,
5040         print_reloc_statement, print_padding_statement, insert_pad,
5041         size_input_section, lang_check_section_addresses,
5042         lang_size_sections, lang_do_assignments, lang_set_startof,
5043         lang_one_common): Change `opb' to unsigned.
5044         (lang_do_assignments): Also change `size' to unsigned.
5046 2000-02-16  Richard Henderson  <rth@cygnus.com>
5048         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5050 2000-02-16  Timothy Wall  <twall@cygnus.com>
5052         * mri.c (mri_draw_tree): Add default LMA region argument to call
5053         to lang_leave_output_section_statement.
5054         * ldlang.h: Update prototypes with LMA region arguments.
5055         * ldlang.c (lang_size_sections): Encapsulate region bounds
5056         checking in os_check_region call.
5057         (os_check_region): New function.
5058         (lang_output_section_statement_lookup): Initialize lma_region.
5059         (lang_leave_output_section_statement): Add LMA region argument.
5060         (lang_leave_overlay): Ditto.
5061         * ldgram.y: Handle LMA region syntax.
5062         * ld.texinfo (Output Section Description): Describe LMA region usage.
5063         * emultempl/armelf.em (gld$place_orphan): Add default value for
5064         lma region in call to lang_leave_output_section_statement.
5065         * emultempl/elf32.em (gld$place_orphan): Add default value for
5066         lma region in call to lang_leave_output_section_statement.
5067         * emultempl/pe.em (gld$place_orphan): Add default value for
5068         lma region in call to lang_leave_output_section_statement.
5071 2000-02-04  Timothy Wall  <twall@redhat.com>
5073         * ldlang.c (lang_check_section_addresses): Use bytes instead of
5074         octets when calculating section end addresses.
5076 2000-02-04  Timothy Wall  <twall@redhat.com>
5078         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5080 2000-02-03  Timothy Wall <twall@redhat.com>
5082         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5083         octet count.
5084         * ldlang.c (print_input_section, print_data_statement,
5085         print_reloc_statement, print_padding_statement): Print target
5086         address values and section sizes as bytes, not octets.
5087         (insert_pad) Calculate padding size in octets, and adjust "dot"
5088         by bytes.
5089         (size_input_section) Always adjust "dot" by bytes, not octets.
5090         (lang_check_section_addresses, lang_do_assignments) Adjust
5091         "dot" by bytes, not octets.  Use the larger of the directive size
5092         or octets_per_byte for the number of octets actually allocated in
5093         the output section.
5094         (lang_set_startof) Make sure STARTOF returns a target address.
5095         (lang_one_common) Record size changes in octets.
5096         (lang_abs_symbol_at_end_of) Section end symbol's value is
5097         recorded in target bytes.
5098         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5099         to be clear about behavior when an octet is smaller than one byte.
5101 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
5103         * ldcref.c (output_cref): Don't pass message strings to printf
5104         as format arg.
5105         Update copyright.
5107         * ldmisc.c (vfinfo): Same here.
5108         Update copyright.
5110 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
5112         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5113         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5114         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5115         Add missing NULL initialisers, and comments.
5117 2000-01-21  Nick Clifton  <nickc@cygnus.com>
5119         * ldlang.c (lang_size_sections): Fix typo in comment.
5121 2000-01-18  H.J. Lu  <hjl@gnu.org>
5123         * ldlang.c (lang_size_sections): Also update the current
5124         address of a region if the SEC_NEVER_LOAD bit is not set.
5126 2000-01-10  Philip Blundell  <pb@futuretv.com>
5128         * configure.tgt (arm*-*-conix*): New target.
5130 2000-01-07  Nick Clifton  <nickc@cygnus.com>
5132         * ld.texinfo (Options): Remind users to preceed linker command
5133         line switches with -Wl, (or whatever is appropriate) if it is
5134         being invoked by a comnpiler driver program.
5135         Fix description of the behaviour of the -n command line switch.
5137 2000-01-05  Catherine Moore  <clm@cygnus.com>
5139         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
5140         (name_list): New.
5141         * ld.texinfo (EXCLUDE_FILE): Update documentation.
5142         * ldgram.y (wildcard_spec): Support a list of excluded_files.
5143         (exclude_name_list): New.
5144         ldlang.c (walk_wild_section): Support list of excluded files.
5145         (print_wild_statement): Likewise.
5146         (lang_add_wild): Likewise.
5147         * ldlang.h (lang_wild_statement_type): Likewise.
5148         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5150 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
5152         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5153         (process_def_file): Use.
5154         (pe_dll_compat_implib): New variable.
5155         (make_one): Use.
5157         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5158         pe_dll_compat_implib.
5160         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5161         compat-implib options.
5162         (gld_${EMULATION_NAME}_list_options): List new options.
5163         (gld_${EMULATION_NAME}_parse_args): Handle.
5165         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5166         dll.
5168         * deffilep.y (opt_name): Allow "." in name.
5170 For older changes see ChangeLog-9899
5172 Local Variables:
5173 mode: change-log
5174 left-margin: 8
5175 fill-column: 74
5176 version-control: never
5177 End: