Add Brazillian Portugese translation.
[binutils.git] / ld / ChangeLog
blob37f1412dfba64b0696a509578f0b24e1d27a3364
1 2002-12-01  H.J. Lu <hjl@gnu.org>
3         * ld.texinfo: Remove the extra `;' in sample version script.
5 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
7         * configure.host: Correct dynamic-linker for powerpc64 hosts.
9         * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
10         * Makefile.in: Regenerate.
12         * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
13         ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
14         ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
15         emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
16         emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
17         emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
18         emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
19         emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
20         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
21         emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
22         emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
23         boolean with bfd_boolean, true with TRUE, false with FALSE.  Simplify
24         comparisons of bfd_boolean vars with TRUE/FALSE.  Formatting.
26 2002-11-27  David O'Brien  <obrien@FreeBSD.org>
28         * configure.host: Fix generic FreeBSD configuration entry.
30 2002-11-27  H.J. Lu <hjl@gnu.org>
32         * ld.texinfo: Add the missing `;' to sample version scripts.
34 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
36         * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
38 2002-11-14  Egor Duda  <deo@logos-m.ru>
40         * ldmain.c (main): Make runtime relocs disabled by default. Remove
41         assignment which has no effect.
42         * pe-dll.h (pe_create_import_fixup): Change prototype.
43         * pe-dll.c (make_runtime_pseudo_reloc): New function.
44         (pe_create_runtime_relocator_reference): Ditto.
45         (pe_create_import_fixup): Handle relocations with non-zero addends.
46         * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
47         --disable-runtime-pseudo-reloc.
48         (make_import_fixup): Handle relocations with non-zero addends. Create
49         an external reference to _pei386_runtime_relocator symbol if at least
50         one pseudo reloc was created.
51         * ld.texinfo: Document --enable-runtime-pseudo-reloc and
52         --disable-runtime-pseudo-reloc options.
54 2002-11-12  Earl Chew <earl_chew@agilent.com>
56         * ldlang.c (lang_add_section): Discard debugging sections that have
57         been marked SEC_EXCLUDE.
59 2002-11-12  Nick Clifton  <nickc@redhat.com>
61         * configure.in (ALL_LINGUAS): Add da.
62         * configure: Regenerate.
63         * po/da.po: New Danish translation.
65 2002-11-12  Alan Modra  <amodra@bigpond.net.au>
67         * emultempl/ppc64elf.em (ppc_before_allocation): New function.
68         (LDEMUL_BEFORE_ALLOCATION): Define.
69         (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
70         linking.
71         * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
73 2002-11-11  Christopher Faylor  <cgf@redhat.com>
75         * configure.tgt (LIB_PATH): Default to searching w32api directory under
76         cygwin.
78 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
80         * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
81         of restricted auto-export libs.
83 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
85         * pe-dll.c (autofilter_liblist): Generalize library names to catch more
86         creative library naming instances like, e.g., libstdc++-2.a.
88 2002-11-06  Alexandre Oliva  <aoliva@redhat.com>
90         * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
91         * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
93 2002-11-07  Danny Smith  <dannysmith@users.sourceforge.net>
95         * deffilep.y (def_lex): Handle '@' as first character of an ID.
96         * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
97         (make_one): Don't prefix decorated fastcall symbols with '_'.
98         (pe_process_import_defs): Likewise.
99         * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
100         symbols to cdecl names or vise-versa.
102 2002-10-13  Eric Kohl  <ekohl@rz-online.de>
104         * pe-dll.c (process_def_file): Handle fastcall symbols when
105         generating undecorated aliases.  Don't prefix decorated fastcall
106         symbols with '_'.
107         (fill_exported_offsets): Don't prefix decorated fastcall symbols
108         with '_'.
110 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
112         * emultempl/aix.em: Use include <> for generated headers.
113         * emultempl/beos.em: Likewise.
114         * emultempl/elf32.em: Likewise.
115         * emultempl/pe.em: Likewise.
116         * ldctor.c: Likewise.
117         * ldexp.c: Likewise.
118         * ldfile.c: Likewise.
119         * ldlang.c: Likewise.
120         * ldlex.c: Likewise.
121         * ldlex.l: Likewise.
122         * ldmain.c: Likewise.
123         * ldmisc.c: Likewise.
124         * ldwrite.c: Likewise.
125         * lexsup.c: Likewise.
126         * mri.c: Likewise.
127         * pe-dll.c: Likewise.
129 2002-10-23  Jakub Jelinek  <jakub@redhat.com>
131         * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
132         sections into .rel{,a}.dyn.
134 2002-10-23  Nick Clifton  <nickc@redhat.com>
136         * lexsup.c (OPTION_NO_OMAGIC): Define.
137         (ld_options): Add "no-omagic" option.
138         (parse_args): Parse --no-omagic.
139         * ld.texinfo: Document --no-omagic.
140         * NEWS: Mention new option.
142 2002-10-21  Danny Smith  <dannysmith@users.sourceforeg.net>
144         * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
145         __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
147 2002-10-22  Alexandre Oliva  <aoliva@redhat.com>
149         * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
150         emulation name.  Set LIB_PATH only for native tools, and
151         search the ABI-specific versions of NATIVE_LIB_DIRS before the
152         .../lib variants, not instead of them.  Mostly copied from...
153         * emulparams/elf32ppc.sh: ... here.  Fixed typo.
154         * emulparams/elf64bmip-defs.sh: Backed out.
155         * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
156         * emulparams/elf64btsmip.sh: Likewise.
157         (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
158         TEXT_DYNAMIC): Removed.
160 2002-10-17  Alexandre Oliva  <aoliva@redhat.com>
162         * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
163         (GENERATE_SHLIB_SCRIPT): Set to yes.
164         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
165         * emulparams/elf32bmipn32.sh: here.
166         (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
167         * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
168         * emulparams/elf64bmip-defs.sh: New file.  Extend
169         elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
170         * emulparams/elf64bmip.sh: Bring in definitions from
171         elf64bmip-defs.sh.
172         (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
173         settings.
174         (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
175         * emulparams/elf64btsmip.sh: Bring in definitions from
176         elf64bmip-defs.sh.
177         (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
178         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
180 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
182         * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
183         (s390-*-linux*): Add elf64_s390 emulation if want64.
184         * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
185         genscript.sh changes.
186         * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
187         * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
189 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
191         * ldlang.c (load_symbols): Revert last change.
193 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
195         * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
196         just_syms_flag.
197         (lang_reasonable_defaults): Don't compare against false.
198         (size_input_section): Likewise.
199         (lang_size_sections_1): Likewise.
200         (lang_do_assignments): Likewise.
201         (lang_add_output): Likewise.
203         * Makefile.am: Run "make dep-am".
204         * Makefile.in: Regenerate.
205         * ldver.c: #include "bfdver.h".
207 2002-10-13  Stephane Carrez  <stcarrez@nerim.fr>
209         * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
210         .finiN section.
211         * scripttempl/elfm68hc12.sc: Likewise.
213 2002-10-11  Alan Modra  <amodra@bigpond.net.au>
215         * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
217         * ldgram.y (memory_spec): Provide empty action.
218         (section <NAME>): Likewise.
220 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
222         * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
223         they have OUTPUT_FORMAT not matching actual output format.
224         * ldlang.c (lang_get_output_target): New function.
225         (open_output): Use it.
226         * ldlang.h (lang_get_output_target): New prototype.
228 2002-10-10  Alan Modra  <amodra@bigpond.net.au>
230         * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
231         when orphan is .rel, .rela when orphan is .rela.
232         (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
233         first.  Remove outsecname var.
235 2002-10-09  Richard Shann <richard.shann@superh.com>
236             Stephen Clarke <stephen.clarke@superh.com>
238         * Makefile.am: Add eshelf32_linux.o and
239         eshlelf32_linux.o, new emulations for sh64 Linux.
240         * Makefile.in: Regenerate.
241         * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
242         * emulparams/shelf32_linux.sh: New file.
243         * emulparams/shlelf32_linux.sh: New file.
245 2002-10-08  H.J. Lu <hjl@gnu.org>
247         * ldlang.c (lang_file_exist): Removed.
248         (new_afile): Revert the last change.
249         * ldlang.h (lang_file_exist): Removed.
250         * lexsup.c (parse_args): Revert the last change.
252 2002-10-07  Ralf Habacker  <Ralf.Habacker@freenet.de>
254         * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
255         auto-import symbols.
256         (make_one): Create _nm_<symbol> for data only.
258 2002-10-05  Elias Athanasopoulos  <eathan@otenet.gr>
260         * ldlang.c (lang_file_exist): New function.
261         (new_afile): Abort if the filename to be added matches the linker
262         output filename.
263         * ldlang.h: Add prototype for lang_file_exist.
264         * lexsup.c (parse_args): Abort if the output filename matches
265         one of the input filenames.
267 2002-10-02  Alan Modra  <amodra@bigpond.net.au>
269         * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
271 2002-09-30  Alan Modra  <amodra@bigpond.net.au>
273         * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
274         * scripttempl/elfm68hc11.sc: Likewise.
275         * scripttempl/elfm68hc12.sc: Likewise.
277         * emultempl/elf32.em (output_rel_find): Always place orphan loadable
278         reloc sections just before .rel.plt/.rela.plt.
279         (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
280         Only put loadable reloc sections in hold_rel.
282 2002-09-29  H.J. Lu <hjl@gnu.org>
284         * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
286 2002-09-25  Daniel Jacobowitz  <drow@mvista.com>
288         From "Anita Kulkarni" <AnitaK@kpit.com>
289         * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
290         sections.
292 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
294         * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
295         TARGET_PAGE_SIZE.
296         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
297         SEGMENT_SIZE alignment.
298         * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
299         (SEGMENT_SIZE): Define.
301         * ldexp.c (fold_unary): New.  Split out from exp_fold_tree.
302         (fold_binary): Correct abs - non-abs case.
303         (fold_trinary): New.  Split out from exp_fold_tree.
305 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
307         * emulparams/elf64ppc.sh (DATA_ADDR): Define.
308         * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
309         for start of .data, instead align up to 256M boundary.
310         * scripttempl/aix.sc: Likewise.
312 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
314         * scripttempl/i386go32.sc: Handle bss unique sections.
316 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
318         * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
320 2002-09-17  Stan Cox  <scox@redhat.com>
322         * emulparams/elf32bmipn32-defs.sh: New file.
323         * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
324         * emulparams/elf32btsmipn32.sh: Likewise.
325         * emulparams/elf64bmip.sh: Likewise.
326         * emulparams/elf64btsmip.sh: Likewise.
328 2002-09-16  Bruno Haible  <bruno@clisp.org>
330         * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
331         elf32-i386-freebsd.
332         * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
333         elf64-alpha-freebsd.
335 2002-09-11  Nick Clifton  <nickc@redhat.com>
337         * NEWS: New TI port supports both C4x and C3x series of DSPs.
339         * po/tr.po: Updated Turkish translation.
341 2002-09-06  Jeffrey A Law  (law@redhat.com)
343         * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
345 2002-09-02  Nick Clifton  <nickc@redhat.com>
347         * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
348         __ep.
349         * emulparams/v850.sh (TEMPLATE_NAME): Define.
351 2002-08-30  Nick Clifton  <nickc@redhat.com>
353         * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
354         used.  Change INSN to start at 0x01000000 and extend for
355         256K (ignoring holes).  Start the STACK on a word aligned
356         boundary.
357         (.rodata): Start it at the READONLY_START_ADDR.
359 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
361         * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
363 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
365         * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
366         added makefile targets for this file.
367         * Makefile.in: Regenerate.
368         * configure.tgt: Added tic4x-coff and c4x-coff emulations.
369         * NEWS: Mention new port.
371 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
373         * emulparams/tic3xcoff.sh: New file.
374         * emulparams/tic4xcoff.sh: New file.
375         * scripttempl/tic3xcoff.sc: New file.
376         * scripttempl/tic4xcoff.sc: New file.
378 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
380         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
381         strtoul and strtoull with bfd_scan_vma.
382         (gld${EMULATION_NAME}_read_file): Likewise.
384 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
386         * configure.tgt: Remove h8[35]00-*-hms*.  Add h8500-*-rtems*.
388 2002-08-27  Egor Duda  <deo@logos-m.ru>
390         * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
391         Add symbols for application to access them.
393 2002-08-27  Nick Clifton  <nickc@redhat.com>
395         * emultempl/armelf.em:  Revert this patch, it is not needed.
397         2002-08-22  Adam Nemet  <anemet@lnxw.com>
399 2002-08-20 Dan Kegel <dank@kegel.com>
401         * configure.in: added --with-lib-path argument to ld's configure
402         to set LIB_PATH.
403         * ld/NEWS: Document new switch.
404         * ld/README: Mention new switch.
405         * configure: Regenerate.
406         * Makefile.in: Regenerate.
408         Based on this patch:
409         2001-04-25  Christopher Faylor <cgf@cygnus.com>
411         * Makefile.in (LIB_PATH): Make configurable.
412         (GENSCRIPTS): Set LIB_PATH in environment.
413         * configure.in: Substitute LIB_PATH.
415 2002-08-22  Adam Nemet  <anemet@lnxw.com>
417         * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
418         (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
419         depending on the type of the function.
420         (arm_elf_convert_thumb_symbol_to_address): New function.
422 2002-08-22  Graeme Peterson  <gp@qnx.com>
424         * Makefile.am: Add esh{l}elf_nto.o files.
425         * Makefile.in: Regenerate.
426         * configure.tgt: Add support for sh-**-nto* targets.
427         * emulparams/shelf_nto.sh: New file.
428         * emulparams/shlelf_nto.sh: New file.
430 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
432         * ldlang.c (offsetof): Define if not defined.
434 2002-08-14  H.J. Lu <hjl@gnu.org>
436         * configure.tgt: Always enable 64bit emulations for 32bit
437         Linux/mips.
439 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
441         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
442         (MAXPAGESIZE): Set to 1.
444         * ld.h (ALIGN_N): Delete.
445         * ldexp.h (align_n): Declare.
446         * ldexp.c (align_n): New function.
447         (fold_binary): Use align_n instead of ALIGN_N.
448         (exp_fold_tree): Likewise.
449         * ldlang.c (lang_size_sections_1): Likewise.
450         (lang_one_common): Likewise.
451         * ld.texinfo (ALIGN): Remove power of 2 restriction.
453 2002-07-31  Graeme Peterson  <gp@qnx.com>
455         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
456         * Makefile.am: Add eelf32{l}ppcnto.o files.
457         * Makefile.in: Regenerate.
458         * emulparams/elf32lppcnto.sh: New file.
459         * emulparams/elf32ppcnto.sh: New file.
461 2002-08-07  H.J. Lu <hjl@gnu.org>
463         * ld.texinfo: Document --no-undefined-version.
465         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
466         `script.' fields to 0.
468         * ldmain.c (main): Initialize the allow_undefined_version to
469         true.
471         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
472         (ld_options): Add --no-undefined-version.
473         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
475 2002-08-07  Nick Clifton  <nickc@redhat.com>
477         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
478         an interworking bfd if there are input bfds. (107501)
480 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
482         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
483         2002-05-10 change.
485 2002-08-01  Nick Clifton  <nickc@redhat.com>
487         * emulparams/armelf.sh: Revert previous delta.
488         * scripttempl/elf.sc: Revert previous delta.
490 2002-07-31  H.J. Lu <hjl@gnu.org>
492         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
493         --enable-64-bit-bfd.
495 2002-07-31  H.J. Lu <hjl@gnu.org>
497         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
498         64bit BFD is selected.
500 2002-07-31  H.J. Lu <hjl@gnu.org>
502         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
503         if 64bit BFD is selected.
505 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
507         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
508         link_info.common_skip_ar_aymbols.
509         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
511         * ldmain.c (main): Initialize new field
512         link_info.common_skip_ar_aymbols.
514 2002-07-31  Adam Nemet  <anemet@lnxw.com>
516         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
517         to .plt.thumb.
518         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
519         used.
521 2002-07-31  Nick Clifton  <nickc@redhat.com>
523         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
524         of the PDP-11 and 2.11BSD a.out support.
526 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
528         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
529         for n32 ABI support.
530         * Makefile.in: Regenerate.
531         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
532         n32 ABI emulations for these 64 bit targets.
533         * emulparams/elf32bmipn32.sh: Expand comment.
534         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
535         n32 ABI.
536         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
538 2002-07-30  Graeme Peterson  <gp@qnx.com>
540         * configure.tgt: Add support for arm-*-nto target.
541         * Makefile.am: Add earmnto.o file.
542         * Makefile.in: Regenerate.
543         * NEWS: Mention port of ARM support to QNX.
544         * emulparams/armnto.sh: New file.
546 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
548         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
549         for relocatable link.
550         (lang_size_sections_1): Don't make .tbss zero size for relocatable
551         link.
553 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
555         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
556         (STACK_ADDR): New.
558 2002-07-25  Nick Clifton  <nickc@redhat.com>
560         * po/sv.po: Updated Swedish translation.
561         * po/es.po: Updated Spanish translation.
562         * po/fr.po: Updated French translation.
564 2002-07-24  Nick Clifton  <nickc@redhat.com>
566         * po/sv.po: Updated Swedish translation.
567         * po/es.po: Updated Spanish translation.
569 2002-07-23  Nick Clifton  <nickc@redhat.com>
571         * po/fr.po: Updated French translation.
573 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
575         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
576         bomb on /DISCARD/ input section.
577         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
578         * emultempl/mmo.em (mmo_place_orphan): Likewise.
580 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
582         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
583         output section.
585 2002-07-16  Denis Chertykov  <denisc@overta.ru>
586             Nick Clifton  <nickc@redhat.com>
587             Frank Ch. Eigler  <fche@redhat.com>
588             John Healy  <jhealy@redhat.com>
590         * configure.tgt: Add support for ip2k-elf.
591         * Makefile.am: Add support for ip2k-elf.
592         * Makefile.in: Regenerate.
593         * emulparams/elf32ip2k.sh: New file.
594         * scripttempl/ip2k.sc: New file
595         * NEWS: Mention support for new port.
597 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
599         * NEWS: Add 'Changes in 2.13'.
601 2002-07-14  H.J. Lu <hjl@gnu.org>
603         * ld.texinfo: Document a .symver takes precedence over a
604         version script.
606 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
608         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
609         (COMMONPAGESIZE): Define.
611 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
613         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
615 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
617         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
618         powerpc-*-openbsd* and sparc64-*-openbsd*.
619         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
620         * Makefile.in: Regenerate.
621         * emulparams/hppaobsd.sh: New file.
623 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
625         * ldlang.c (print_wild_statement): Fix output formatting.
627 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
629         * ldlang.c: (strip_excluded_output_sections): New function.
630         (lang_process): Call it.
631         (lang_size_sections_1): Revert 2002-06-10 change.
633 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
635         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
636         Run "make dep-am".
637         * Makefile.in: Regenerate.
639 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
641         * ldfile.c (ldfile_try_open_bfd): Formatting.
643         * ldmisc.c (demangle): Move so that it doesn't intrude between
644         vfinfo comment and body.  Add comment.
646 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
648         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
650 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
652         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
653         * ldlang.c (entry_sym): Likewise.
654         (ldlang_undef_chain_list_type): Likewise.
655         (lang_finish): Adjust references to entry_symbol.
656         (lang_add_entry): Likewise.
657         (lang_gc_sections): Use link_info.gc_sym_list.
658         (lang_process): Set link_info.gc_sym_list.
659         * ldlex.l: Include bfdlink.h.
660         * ldmain.c (main): Init link_info.gc_sym_list.
661         * emultempl/aix.em: Adjust references to entry_symbol.
662         * emultempl/armcoff.em: Likewise.
663         * emultempl/armelf.em: Likewise.
664         * emultempl/pe.em: Likewise.
665         * emultempl/ppc64elf.em (ppc_after_open): New function.
666         (LDEMUL_AFTER_OPEN): Define.
667         * emulparams/elf64ppc.sh: KEEP .opd sections.
669 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
671         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
672         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
673         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
674         (EEPROM_START_ADDR): Define.
675         (EEPROM_MEMORY): Define.
676         * emulparams/m68hc12elf.sh: Likewise.
677         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
678         section to put soft registers in .page0.
679         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
681 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
683         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
684         section.  Add ${RELOCATING-0}.
686 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
688         * emulparams/shelf.sh (STACK_ADDR): Don't define.
689         (OTHER_SECTIONS): Define.
690         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
691         (OTHER_SECTIONS): Undef.
693 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
695         * ldmisc.c (demangle): Restore dots stripped from sym name.
697 2002-06-25  H.J. Lu <hjl@gnu.org>
699         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
700         * Makefile.in: Regenerated.
702 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
704         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
705         the size of attached object files, to allow make the object files
706         available via FTP or HTTP and to mention that the mail will be
707         sent to a mailing list.
709 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
711         * ld/configure.host (romp): Drop support.
713 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
715         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
716         section flags for SEC_DATA, rather than for SEC_CODE being unset.
718 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
720         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
721         format specifier used to print BFD name.
723 2002-06-18  Dave Brolley  <brolley@redhat.com>
725         From Catherine Moore, Michael Meissner, Jim Blandy:
726         * emulparams/elf32frv.sh: New file.
727         * configure.tgt: Support frv-*-*.
728         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
729         (eelf32frv.c): New target.
731 2002-06-17  Tom Rix  <trix@redhat.com>
733         * emultempl/elf32.em: gld*_get_script:  Check for
734         GENERATE_COMBRELOC_SCRIPT.
735         * scripttempl/elfd10v.sc : Fix STACK and INSN.
736         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
738 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
740         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
742 2002-06-12  H.J. Lu <hjl@gnu.org>
744         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
745         false if xvec doesn't match.
747 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
749         * ldlang.c (lang_size_sections_1): Skip removed output sections.
751 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
753         * ldexp.c: Replace CONST with const.
754         * ldfile.c: Likewise.
755         * ldfile.h: Likewise.
756         * ldlex.l: Likewise.
757         * mri.c: Likewise.
758         * pe-dll.h: Likewise.
760 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
762         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
764 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
766         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
767         to -1 == implicit enable.
768         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
769         initialize link_info.pei386_auto_import to -1 == implicit
770         enable.
771         (gld_${EMULATION_NAME}_parse_args): When processing
772         --enable-auto-import and --disable-auto-import options, use
773         '1' and '0' instead of 'true' and 'false'.
774         (pe_find_data_imports): Only issue message about auto-import
775         when the feature is implicitly enabled.  Downgrade message to
776         informational instead of warning.
778 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
780         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
782 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
784         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
785         HOSTING_CRT0 and HOSTING_LIBS.
787 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
789         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
791 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
793         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
794         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
796 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
798         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
799         SEC_EXCLUDE sections when doing a relocatable link.
801 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
803         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
804         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
805         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
806         (eshlelf64_nbsd.c): New rules.
807         * Makefile.in: Regenerate.
808         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
809         (sh64-*-netbsd*): New targets.
810         * emulparams/shelf32_nbsd.sh: New file.
811         * emulparams/shelf64_nbsd.sh: New file.
812         * emulparams/shlelf32_nbsd.sh: New file.
813         * emulparams/shlelf64_nbsd.sh: New file.
815 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
817         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
819 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
821         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
822         C++ constructors/destructors, loosely based on the m68hc11 port.
824 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
826         * Makefile.in: Regenerate.
827         * aclocal.m4: Regenerate.
828         * config.in: Regenerate.
829         * configure: Regenerate.
831 2002-05-31  Graeme Peterson  <gp@qnx.com>
833         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
834         (ei386nto.c): Add rule.
835         * Makefile.in: Regenerate.
836         * configure.tgt: Add i[3456]86-*-nto-qnx*.
837         * emulparams/i386nto.sh: New file.
839 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
841         * NEWS: Add entry for VAX ELF support.
843 2002-05-29  Matt Thomas  <matt@3am-software.com>
844             Jason Thorpe  <thorpej@wasabisystems.com>
846         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
847         (eelf32vax.c)
848         (evaxnbsd.c): New rules.
849         * Makefile.in: Regenerate.
850         * configure.tgt (vax-*-netbsdelf*)
851         (vax-*-netbsdaout*)
852         (vax-*-netbsd*): New targets.
853         * emulparams/elf32vax.sh: New file.
854         * emulparams/vaxnbsd.sh: New file.
856 2002-05-29  Adam Nemet  <anemet@lnxw.com>
858         * emultempl/armelf.em (arm_elf_after_open): Don't determine
859         bfd_for_interwork, instead add glue sections to each input bfd.
860         (bfd_for_interwork): New global.
861         (arm_elf_set_bfd_for_interworking): New function.
862         (arm_elf_before_allocation): Use it.
864 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
866         * Makefile.am: Add DLX make target.
867         * configure.tgt: Add DLX configuration.
868         * Makefile.in: Regenerate.
869         * emulparams/elf32_dlx.sh: New file
870         * scripttempl/dlx.sc: New file
872 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
874         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
875         * Makefile.in: Regenerate.
876         * emulparams/elf_chaos.sh: Use elf_chaos script.
877         * scripttempl/elf_chaos.sc: New file.
879 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
881         * ldlang.c (lang_size_sections_1): Move check for conflicting load
882         addresses and regions from here...
883         (lang_get_regions): ...to this new function.
884         (lang_leave_output_section_statement): Use lang_get_regions.
885         (lang_leave_overlay): Likewise.
886         * mri.c (mri_draw_tree): Pass null as last argument to
887         lang_leave_output_section_statement.
888         * emultempl/elf32.em (gld*_place_orphan): Likewise.
889         * emultempl/mmo.em (mmo_place_orphan): Likewise.
890         * emultempl/pe.em (gld*_place_orphan): Likewise.
892 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
894         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
896 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
898         * ldemul.c: Fix formatting.
899         * ldfile.c: Likewise.
900         * pe-dll.c: Likewise.
901         * pe-dll.h: Likewise.
903 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
905         * ldlang.c (lang_process): Formatting, grammar.
907         * ldlex.l: Use #include "" instead of <> for local header files.
909 2002-05-24  TAMURA Kent <kent@netbsd.org>
911         * configure.tgt: Add a target for i386-netbsdpe.
913 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
915         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
916         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
917         output section if necessary.  Handle .tbss.
918         (lang_size_sections): Clear _raw_size for .tbss section
919         (it allocates space in PT_TLS segment only).
920         * ldwrite.c (build_link_order): Build link order for .tbss too.
922 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
924         * configure.in: Correct spelling of AC_PREREQ.
926 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
928         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
929         default.
930         (autofilter_objlist): Add crtbegin.o, crtend.o.
932 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
934         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
935         (longopts): Add new option --exclude-libs.
936         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
937         (gld_${EMULATION_NAME}_parse_args): Use it.
938         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
939         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
940         from whole archives.
941         (pe_dll_add_excludes): Set excludes->type.
942         (auto_export): Add new variable libname and set to archive basename if
943         abfd.  Use it when filtering default and user-specified libarary
944         excludes.  Let string "ALL" mean all libs when filtering user-specified
945         libs.
946         * ld.texinfo: Document --exclude-libs.
948 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
950         * ldemul.c (ldemul_new_vers_pattern): New function.
951         * ldemul.h (ldemul_new_vers_pattern): Declare.
952         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
953         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
954         * emultempl/ppc64elf.em (dotsyms): New static var.
955         (gld${EMULATION_NAME}_new_vers_pattern): New function.
956         (LDEMUL_NEW_VERS_PATTERN): Define.
957         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
958         (PARSE_AND_LIST_LONGOPTS): Likewise.
959         (PARSE_AND_LIST_ARGS_CASES): Handle them.
960         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
961         initialiser.
962         * emultempl/armcoff.em: Likewise.
963         * emultempl/armelf_oabi.em: Likewise.
964         * emultempl/beos.em: Likewise.
965         * emultempl/elf32.em: Likewise.
966         * emultempl/generic.em: Likewise.
967         * emultempl/gld960.em: Likewise.
968         * emultempl/gld960c.em: Likewise.
969         * emultempl/linux.em: Likewise.
970         * emultempl/lnk960.em: Likewise.
971         * emultempl/m68kcoff.em: Likewise.
972         * emultempl/mipsecoff.em: Likewise.
973         * emultempl/pe.em: Likewise.
974         * emultempl/sunos.em: Likewise.
975         * emultempl/ticoff.em: Likewise.
976         * emultempl/vanilla.em: Likewise.
978 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
980         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
981         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
982         (LIB_SEARCH_DIRS): No need to use "tr".
983         (COMPILE_IN): Only set for native targets.
984         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
985         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
986         * configure.tgt (powerpc*): Set tdir_*.
987         (powerpcle*): Correct targ_extra_emuls.
988         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
989         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
991 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
993         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
994         calling lang_add_entry.
996 2002-05-21  H.J. Lu  (hjl@gnu.org)
998         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
999         "-z muldefs".
1000         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1002         * ld.texinfo: Updated for --allow-multiple-definition and
1003         "-z muldefs".
1005         * ldmain.c (main): Initialize the allow_multiple_definition
1006         field to false.
1008         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1009         (ld_options): Add --allow-multiple-definition.
1010         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1012 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
1014         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1015         (earmelfb_nbsd.c): New rule.
1016         * Makefile.in: Regenerate.
1017         * configure.tgt (armeb-*-netbsdelf*): New target.
1018         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1019         (arm-*-netbsd*): Likewise.
1020         * emulparams/armelfb_nbsd.sh: New file.
1022 2002-05-18  Tom Rix  <trix@redhat.com>
1024         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1025         support.
1027 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1029         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1030         * Makefile.in: Regenerate.
1031         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1033 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1035         * emulparams/avr1.sh: New file.
1036         * emulparams/avr2.sh: New file.
1037         * emulparams/avr3.sh: New file.
1038         * emulparams/avr4.sh: New file.
1039         * emulparams/avr5.sh: New file.
1040         * scripttempl/avr.sc: New file.
1042 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
1044         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1045         (lang_place_orphans): Abort if just_syms_flag.
1047 2002-05-10  Tom Rix  <trix@redhat.com>
1049         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1050         architecture and machine information in the output bfd.
1051         (gld*_before_parse): Remove old arch and machine code.
1052         (choose_target): Rename to gld*_choose_target.
1053         (rtld): Change type to int.
1054         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1055         objects in XCOFF archives.
1056         * ldfile.h: Update copyright date.
1058 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
1060         * ldmain.c (main): Enable -z combreloc by default.
1062 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
1064         * Makefile.am: Honour DESTDIR.
1065         * Makefile.in: Regenerate.
1067 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
1069         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1070         (lang_enter_overlay): Remove the last two parameters.
1071         (lang_leave_overlay): Take them here instead.
1072         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1073         (section): Pass LMA and crossref flag to lang_leave_overlay rather
1074         than lang_enter_overlay.
1075         * ldlang.c (lang_memory_region_lookup): Return null for null names.
1076         (lang_output_section_statement_lookup): Initialize update_dot_tree.
1077         (lang_size_sections_1): Evaluate it.
1078         (lang_leave_output_section_statement): Rework LMA lookup.
1079         (overlay_lma, overlay_nocrossrefs): Remove.
1080         (lang_enter_overlay): Remove LMA and crossref arguments.
1081         (lang_enter_overlay_section): Don't set the LMA here.
1082         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
1083         assignment to the last section's update_dot_tree.  Unconditionally
1084         use the load and run-time regions specified in the OVERLAY statement.
1085         Likewise the first section's LMA.  Only set the other sections' LMAs
1086         when no load region is given.
1088 2002-05-06  Nick Clifton <nickc@redhat.com>
1090         * po/sv.po: New translation.
1092 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
1094         * emultempl/hppaelf.em (build_section_lists): New function.
1095         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1096         and build_section_lists.
1098 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
1100         * ld.h: Fix formatting.
1101         * ldexp.c: Likewise.
1102         * ldfile.c: Likewise.
1103         * ldlang.c: Likewise.
1104         * ldmain.c: Likewise.
1105         * lexsup.c: Likewise.
1106         * pe-dll.c: Likewise.
1108 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
1110         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1111         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
1112         (build_section_lists): Do output_section tests here.
1114 2002-04-30  Tom Rix  <trix@redhat.com>
1116         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1118 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
1120         Long branch stubs, multiple stub sections.
1121         * emultempl/ppc64elf.em: Include ldctor.h.
1122         (stub_file): New var.
1123         (group_size): New var.
1124         (ppc_create_output_section_statements): New function.
1125         (struct hook_stub_info): New.
1126         (hook_in_stub): New function.
1127         (ppc_add_stub_section): New function.
1128         (ppc_layout_sections_again): New function.
1129         (build_section_lists): New function.
1130         (gld${EMULATION_NAME}_finish): Rewrite.
1131         (real_func): New var.
1132         (ppc_for_each_input_file_wrapper): New function.
1133         (ppc_lang_for_each_input_file): New function.
1134         (lang_for_each_input_file): Define.
1135         (PARSE_AND_LIST_PROLOGUE): Define.
1136         (PARSE_AND_LIST_LONGOPTS): Define.
1137         (PARSE_AND_LIST_OPTIONS): Define.
1138         (PARSE_AND_LIST_ARGS_CASES): Define.
1139         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1141 2002-04-30  Tom Rix  <trix@redhat.com>
1143         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1144         -blibpath, -bnolibpath support.
1146 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
1148         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1149         (eelf32ppcwindiss.c): New target.
1150         * Makefile.in: Regenerated.
1151         * configure.tgt: Add support for powerpc-*-windiss.
1152         * emulparams/elf32ppcwindiss.sh: New file.
1154 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
1156         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1157         * ldexp.c (exp_print_token): Add "infix_p" argument.
1158         (exp_print_tree): Update accordingly.
1160 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
1162         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1163         * Makefile.in: Regenerate.
1164         * mpw-elfmips.c: Delete.
1165         * mpw-eppcmac.c: Delete.
1166         * mpw-esh.c: Delete.
1167         * mpw-idtmips.c: Delete.
1169 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
1171         * emulparams/shelf32.sh (MACHINE): Now sh5.
1173 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1175         * ldgram.y: Fix syntax warning.
1177 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
1179         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1180         to prevent "-n" from being taken as an abbreviation for
1181         "--no-pipeline-knowledge".
1183 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1185         * ldlang.c (lang_size_sections_1): Don't complain about
1186         SEC_NEVER_LOAD sections having no memory region specified.
1188         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1190 2002-04-07  matthew green  <mrg@redhat.com>
1192         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1194 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1196         * dep-in.sed: Cope with absolute paths.
1197         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1198         Run "make dep-am".
1199         * Makefile.in: Regenerate.
1201 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1203         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1205 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1207         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1208         is smaller than maximum, round dot up to common page boundary.
1210 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
1212         * configure.host: Set up for generic hosts first, then tweak as
1213         necessary in more specific targets.
1214         (HOSTING_LIBS): Include libgcc_eh.a if found.
1216 2002-03-23  Andreas Jaeger  <aj@suse.de>
1218         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1220 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
1222         * Makefile.am: Run "make dep-am".
1223         * Makefile.in: Regenerate.
1225 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
1227         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1229 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
1231         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1232         add the symbol to the linker hash table immediately.
1233         (lang_place_undefineds): Split symbol creation out..
1234         (insert_undefined): ..to here.
1236 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
1238         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1239         the contents of the buffer returned from basename function will are
1240         getting overwritten while still being used.
1242 2002-03-18  Jan Hubicka  <jh@suse.cz>
1243             Andreas Jaeger  <aj@suse.de>
1244             Andreas Schwab  <schwab@suse.de>
1246         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1247         * elf_x86_64.sh (ARCH): Set to i386:x86-64
1248         set libraries to default to lib64 paths.
1250 2002-03-18  Tom Rix  <trix@redhat.com>
1252         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1253         * configure.tgt : Same.
1254         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1255         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1256         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1257         emulation parameters for better -b32, -b64 support.
1258         * emulparms/aixrs6.sh : Same.
1259         * emulparms/ppcmacos.sh : Same.
1260         * emultempl/aix.em (choose_target) : Use new emulation parameters
1261         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1262         * Makefile.in : Regenerate.
1264 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
1266         * po/fr.po: Updated version.
1268 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
1270         * ldmain.c (main): Move .text readonly flag fudges from here..
1271         * ldlang.c (lang_process): ..to here.
1273 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
1275         * ldlang.c (lang_check): Remove the word size check added in last
1276         change.  Treat emitrelocations case as for relocatable links.
1278 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
1280         * po/fr.po: Updated version.
1282 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
1284         * ldlang.c (lang_check): Do relocatable link checks first, so that
1285         warn_mismatch can't override.  Check compatible and word size too.
1287 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
1289         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1291 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
1293         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1294         DATA_SEGMENT_ALIGN.
1296 2002-03-04  H.J. Lu <hjl@gnu.org>
1298         * scripttempl/elf.sc: Put .preinit_array, .init_array and
1299         .fini_array in the data segment.
1301 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
1303         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1305 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
1307         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1308         .init_array, and .fini_array.
1310 2002-02-20  Andreas Schwab  <schwab@suse.de>
1312         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1313         .IA64_unwind* in a relocatable link.
1315 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
1317         * NEWS: Mark 2.12 branch.
1319 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1321         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1322         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1324 2002-02-18  Tom Rix  <trix@redhat.com>
1326         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1327         (gld*_before_allocation): Same.
1328         (gld*_create_output_section_statements): Generate
1329         __rtinit if run time linking.  Add librtl.a to the link.
1330         (gld*_read_file): Clean.
1332 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1334         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1336 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
1338         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1339         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1340         and eelf64alpha_fbsd.
1341         * Makefile.in: Regenerate.
1342         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1343         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1344         use a FreeBSD-specific emulation rather than the psABI one.
1345         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1346         for all FreeBSD ELF systems.
1347         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1348         emulation.
1349         * emulparams/elf32ppc_fbsd.sh: Likewise.
1350         * emulparams/elf64_ia64_fbsd.sh: Likewise.
1351         * emulparams/elf64_sparc_fbsd.sh: Likewise.
1352         * emulparams/elf64alpha_fbsd.sh: Likewise.
1353         * emulparams/elf_i386_fbsd.sh: Likewise.
1354         * emulparams/elf_x86_64_fbsd.sh: Likewise.
1356 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
1358         * po/tr.po: Updated version.
1360 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1362         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1363         (FILL): Likewise.
1365 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
1367         * emultempl/mmo.em (mmo_after_open): Don't call
1368         _bfd_mmix_check_all_relocs when producing ELF output.
1370 2002-02-15  Richard Henderson  <rth@redhat.com>
1372         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1373         definition.  Emit a unop+nop pair.
1375 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
1377         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1378         for presence of .MMIX.reg_contents.linker_allocated before early
1379         exit.
1381         * NEWS: Mention support for MMIX.
1383 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
1385         Support arbitrary length fill patterns.
1386         * ld.texinfo (Output Section Fill): Describe fill expressions.
1387         (FILL): Refer to the above.
1388         * ldexp.h (etree_value_type): Add "str" field.
1389         (union etree_union): Add "str" to "value" struct.
1390         (exp_bigintop): Declare.
1391         (exp_get_fill): Declare.
1392         * ldexp.c: Include "safe-ctype.h".
1393         (exp_intop): Set value.str to NULL.
1394         (exp_bigintop): New function.
1395         (new_rel): Pass in "str", and set new.str from it.
1396         (new_rel_from_section): Set new.str to NULL.
1397         (fold_name): Adjust calls to new_rel.
1398         (exp_fold_tree): Likewise.
1399         (exp_get_fill): New function.
1400         * ldgram.y (struct big_int bigint, fill_type *fill): New.
1401         (INT): Returns a "bigint".  Adjust all code handling INTs.
1402         (fill_opt): Returns a "fill".
1403         (fill_exp): Split out of fill_opt, use for FILL.
1404         * ldlang.h (struct _fill_type): New.
1405         (fill_type): Move typedef to ldexp.h.
1406         (lang_output_section_statement_type): "fill" is now a pointer.
1407         (lang_fill_statement_type): Likewise.
1408         (lang_padding_statement_type): Likewise.
1409         (lang_add_fill): Now takes a "fill_type *" param.
1410         (lang_leave_output_section_statement): Likewise.
1411         (lang_do_assignments): Likewise.
1412         (lang_size_sections): Likewise.
1413         (lang_leave_overlay_section): Likewise.
1414         (lang_leave_overlay): Likewise.
1415         * ldlang.c: Include ldgram.h after ldexp.h.
1416         (lang_output_section_statement_lookup): Adjust for fill_type change.
1417         (print_fill_statement): Likewise.
1418         (print_padding_statement): Likewise.
1419         (insert_pad): Now takes a "fill_type *" arg.
1420         (size_input_section): Likewise.
1421         (lang_size_sections_1): Likewise.
1422         (lang_size_sections): Likewise.
1423         (lang_do_assignments): Likewise.
1424         (lang_add_fill): Likewise.
1425         (lang_leave_output_section_statement): Likewise.
1426         (lang_leave_overlay_section): Likewise.
1427         (lang_leave_overlay): Likewise.
1428         Adjust all callers of the above function.
1429         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
1430         starting with "0X" as well as "0x".  Return bigint.str for hex
1431         numbers starting with "0x" or "0X", zero bigint.str otherwise.
1432         Always use base 16 for numbers starting with "$".
1433         * ldmain.c: Include ldgram.h after ldexp.h.
1434         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1435         of bfd_fill_link_order.
1436         * pe-dll.c: Adjust lang_do_assignments calls.
1437         * emultempl/elf32.em: Likewise.
1438         * emultempl/hppaelf.em: Likewise.
1439         * emultempl/ppc64elf.em: Likewise.
1440         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1441         lang_add_assignment call.
1442         * emultempl/pe.em: Likewise.
1444 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
1446         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
1447         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
1448         the pattern in question is not a regexp.
1449         * ldlang.c:  Likewise.
1450         * ldlang.h:  Likewise.
1451         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
1453 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
1455         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1456         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1457         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1458         * ldexp.c (exp_data_seg): New variable.
1459         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1460         (fold_binary): Handle DATA_SEGMENT_ALIGN.
1461         (exp_fold_tree): Handle DATA_SEGMENT_END.
1462         Pass allocation_done when recursing instead of hardcoding
1463         lang_allocating_phase_enum.
1464         * ldexp.h (exp_data_seg): New.
1465         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1466         (lang_size_sections): New.
1467         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1468         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1469         if COMMONPAGESIZE is defined.
1470         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1471         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1472         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1473         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1474         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1475         libraries only.
1477 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
1479         * Makefile.in: Regenerate.
1481 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1483         * lexsup.c: Remove strtoul declaration.
1485 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1487         * ldmain.c: Add prototype for main ().
1488         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1489         * emultempl/lnk960.em (lnk960_choose_target): Function should
1490         take two arguments.
1492 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
1494         * ldlang.c (entry_section): New initialised variable.
1495         (lang_finish): Use it.
1496         * ldlang.h (entry_section): Declare.
1497         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1498         entry_section to ".opd".
1500 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
1502         * ld.texinfo (Options): Add back in -nostdlib documentation,
1503         which had been inadvertently removed.
1505 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
1507         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1508         register section vma to a sane value after emitting error.  Make
1509         fatal conditions cause program exit when emitting message.
1511 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
1513         * configure.tgt: Add or32-*-rtems target.
1515 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1517         Contribute sh64-elf.
1518         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1519         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1520         in OTHER_RELOCATABLE_SECTIONS.
1521         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1522         * emulparams/shelf32.sh (STACK_ADDR): Define.
1523         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1524         (OTHER_SECTIONS): this.  Removed stack settings.
1525         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1526         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1527         2001-03-12  DJ Delorie  <dj@redhat.com>
1528         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1529         relaxing if any shmedia or mixed sections are found.
1530         2001-03-07  DJ Delorie  <dj@redhat.com>
1531         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1532         einfo.  Gracefully decline to output to non-elf formats.
1533         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
1534         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1535         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1536         * emulparams/shelf32.sh: Ditto.
1537         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
1538         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1539         comment.
1540         2001-01-10  Ben Elliston  <bje@redhat.com>
1541         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1542         non-portable shell constructs. From Hans-Peter Nilsson.
1543         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
1544         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1545         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1546         dependencies to the shell script include chain.
1547         * Makefile.in: Regenerate.
1548         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
1549         * emultempl/sh64elf.em: Update and tweak comments.
1550         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1551         make a .cranges section SEC_IN_MEMORY.
1552         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1553         * emultempl/sh64elf.em
1554         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1555         .cranges section found to be necessary; continue and set stored
1556         section contents flags for sections with non-mixed contents.
1557         Use a struct sh64_section_data container and sh64_elf_section_data
1558         to store contents-type flags.
1559         Remove unused update of "isec".
1560         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1561         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
1562         access contents-type flags.  Assert that the associated container
1563         is initialized.  Use that container, not elf_gp_size, to hold size
1564         of linker-generated cranges contents.
1565         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1566         * emultempl/sh64elf.em
1567         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1568         there's already a .cranges section.  When section flag difference
1569         is found, don't NULL-check cranges a second time.  Tweak comments.
1570         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1571         merging, not max size, as size of ld-generated .cranges contents.
1572         Don't set ELF section flags in output section.  When checking for
1573         needed .cranges descriptors, don't use a variable; compare
1574         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
1575         comments.
1576         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1577         * emultempl/sh64elf.em: New file.
1578         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1579         * Makefile.in: Regenerate.
1580         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1581         (OTHER_RELOCATING_SECTIONS): Ditto.
1582         (EXTRA_EM_FILE): New, set to sh64elf if not set.
1583         * emulparams/shlelf32.sh: Stub out all settings except
1584         OUTPUT_FORMAT.  Source shelf32.sh.
1585         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1586         OTHER_RELOCATING_SECTIONS.
1587         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1588         * emulparams/shlelf64.sh: Stub out all settings except
1589         OUTPUT_FORMAT.  Source shelf64.sh.
1590         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
1591         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1592         .cranges section.
1593         (DATA_START_SYMBOLS): Define, provide ___data.
1594         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1595         for consecutive .data section.
1596         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1597         section after .data section.
1598         * emulparams/shlelf64.sh: Ditto.
1599         * emulparams/shelf32.sh: Ditto.
1600         (ALIGNMENT): Define to 8.
1601         * emulparams/shelf32.sh: Ditto.
1602         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
1603         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1604         built-in linker scripts.
1605         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1606         * emulparams/shlelf64.sh: New.
1607         * emulparams/shelf64.sh: New.
1608         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1609         targ_extra_emuls.
1610         * Makefile.am: Add support for shlelf64 and shelf64.
1611         * Makefile.in: Regenerate.
1612         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
1613         * configure.tgt (sh64-*-elf*): Add shelf as default.
1614         Add shlelf to targ_extra_emuls.
1615         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
1616         * emulparams/shelf32.sh: New file.
1617         * emulparams/shlelf32.sh: New file.
1618         * Makefile.am: Add support for shlelf32 and shelf32.
1619         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1620         * Makefile.in: Regenerate.
1622 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
1624         * ldlang.c (lang_reset_memory_regions): Rename from
1625         reset_memory_regions.  Change all callers.  Make public.
1626         * ldlang.h (lang_reset_memory_regions): Prototype.
1627         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1628         lang_reset_memory_regions before lang_size_sections.
1629         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1630         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1632 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
1634         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1635         arithmetic when checking for too many global registers.
1637 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
1639         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1640         (ehppanbsd.c): New rule.
1641         * Makefile.in: Regenerate.
1642         * configure.tgt (hppa*-*-netbsd*): New target.
1643         * emulparams/hppalinux.sh: Add comment to check other files
1644         that source this file it is modified, and list which
1645         files that do.
1646         * emulparams/hppanbsd.sh: New file.
1648 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
1650         * scripttempl/xstormy16.sc: Don't allocate extra space for the
1651         stack.
1653 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
1655         Support on-demand global register allocation from
1656         R_MMIX_BASE_PLUS_OFFSET relocs.
1657         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1658         mmix_set_reg_section_vma.  Call
1659         _bfd_mmix_finalize_linker_allocated_gregs.
1660         (mmix_before_allocation): New function.
1661         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1662         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1663         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1664         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1665         before .MMIX.reg_contents.
1666         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1667         (mmo_after_open): New function.
1668         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1669         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
1670         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1672 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
1674         * emulparams/or32.sh: New file.
1675         * emulparams/or32elf.sh: New file.
1676         * scripttempl/or32.sc: New file.
1677         * configure.tgt : Add support for or32.
1678         * configure: Regenerate
1679         * Makefile.am: Add support for or32.
1680         * Makefile.in: Regenerate.
1681         * NEWS: Mention support for or32.
1682         * po/ld.pot: Regenerate.
1684 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
1685             Mitch Lichtenberg  <mpl@broadcom.com>
1687         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1688         * emultempl/mipself.em: New file to handle MIPS ELF embedded
1689         reloc creation (ld --embedded-relocs).
1691 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
1693         * configure: Regenerated.
1695 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
1697         * Makefile.am (install): Depend on install-info.
1698         * Makefile.in: Regenerate.
1700 2002-01-26  Christian Rose  <menthos@menthos.com>
1702         * ldmain.c (main): Use full sentences to ease translation.
1704 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
1706         * po/fr.po: Updated version.
1708 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
1710         * po/es.po: Updated version.
1712 2002-01-25  Andreas Jaeger  <aj@suse.de>
1714         * ldlex.l (yy_input): Correct error check.
1716 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
1718         * ldmisc.c (demangle): Put back dots when string not demangled.
1720 2002-01-22  Richard Henderson  <rth@redhat.com>
1722         * emulparams/elf64alpha.sh (NOP): Use unop.
1724 2002-01-21  Andreas Jaeger  <aj@suse.de>
1726         * ldlex.l: Use fread instead of read.
1728 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
1730         * configure.tgt (ia64-*-netbsd*): New target.
1732 2002-01-21  H.J. Lu <hjl@gnu.org>
1734         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1735         0.
1736         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1738 2002-01-18  Andreas Jaeger  <aj@suse.de>
1740         * ldver.c (ldversion): Update year.
1742 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
1744         * po/ld.pot: Regenerate.
1746 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
1748         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1749         * Makefile.in: Regenerate.
1750         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1751         * emultempl/ppc64elf.em: New file.
1753 2002-01-15  DJ Delorie  <dj@redhat.com>
1755         * scripttempl/pe.sc: Add support for constructor priorities.
1757 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1759         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1760         * emulparams/avr23xx.sh: Likewise.
1761         * emulparams/avr4433.sh: Likewise.
1762         * emulparams/avr44x4.sh: Likewise.
1763         * emulparams/avr85xx.sh: Likewise.
1764         * emulparams/avrmega103.sh: Likewise.
1765         * emulparams/avrmega161.sh: Likewise.
1766         * emulparams/avrmega603.sh: Likewise.
1767         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1769 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
1771         * ldlang.c (walk_wild_section): Exclude object file if enclosing
1772         archive is excluded.
1774 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
1776         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1777         (eshelf_nbsd.c): New rule.
1778         (eshlelf_nbsd.c): New rule.
1779         * Makefile.in: Regenerate.
1780         * configure.tgt (sh*le-*-netbsdelf*): New target.
1781         (sh*-*-netbsdelf*): New target.
1782         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1783         * ld/emulparams/shelf_nbsd.sh: New emulation.
1784         * ld/emulparams/shlelf_nbsd.sh: New emulation.
1786 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
1788         * po/es.po: New file: Spanish translation.
1789         * configure.in (ALL_LINGUAS): Add es.
1790         * configure: Regenerate.
1792 2002-01-06  John Marshall  <jmarshall@acm.org>
1794         * ld.texinfo: Note that --emit-relocs is currently only
1795         implemented for ELF.
1797 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
1799         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1800         of bfd_section_list_remove and bfd_section_list_insert macros.
1801         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1802         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1804 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1806         * configure.tgt (x86_64-*-netbsd*): New target.
1808 2001-12-21  Tom Rix  <trix@redhat.com>
1810         (gld*_create_output_section_statements): New function.
1811         For -binitfini support.
1812         * emultempl/aix.em (gld*_before_parse): Fix comment.
1813         * emultempl/aix.em (gld*_parse_args): Fix comment.
1815 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
1817         * configure.tgt (mips*-dec-netbsd*): Delete alias for
1818         mips*el-*-netbsd*.
1819         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1821         * configure.tgt (arm-*-netbsdelf*): Add target.
1822         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1823         * emulparams/armelf_nbsd.sh: Added.
1824         * Makefile.am: Add rules for earmelf_nbsd.
1825         * Makefile.in: Regenerate.
1827 2001-12-19  Andreas Jaeger  <aj@suse.de>,
1828             Susanne Oberhauser <froh@suse.de>
1830         * configure.host: Add rules for x86_64-*linux-gnu.  Change
1831         s390x-linux entry to use gcc to report configuration, replace gcc
1832         with $CC in s390-linux
1834 2001-12-19  Andreas Jaeger  <aj@suse.de>
1836         * ld.texinfo (VERSION): Fix markup.
1838 2001-12-18  matthew green  <mrg@eterna.com.au>
1840         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1841         (m68kelfnbsd.c): New rule.
1842         * Makefile.in: Regenerate.
1843         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1844         (m68*-*-netbsd*4k*): .. this.
1845         (m68*-*-netbsdelf*): New target.
1846         (m68*-*-netbsd*): Also include ELF support.
1847         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1848         * emulparams/m68kelfnbsd.sh: New emulation.
1850 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1852         * ldgram.y (vers_node): Support anonymous version tags.
1853         * ldlang.c (lang_register_vers_node): Ensure anonymous version
1854         tag is not defined together with non-anonymous versions.
1855         * ld.texinfo: Document it.
1857 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
1859         * po/tr.po: New file: Turkish translation.
1860         * configure.in (ALL_LINGUAS): Add tr.
1861         * configure: Regenerate.
1863 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
1865         * Makefile.am: Add rules for eelf64alpha_nbsd.
1866         * Makefile.in: Regenerate.
1867         * configure.tgt (alpha*-*-netbsd*): Set
1868         targ_emul to elf64alpha_nbsd.
1869         * emulparams/elf64alpha_nbsd.sh: Added.
1871 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
1873         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1874         section_tail when fiddling with section list.
1875         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1876         broken into separate strings to make translation easier.
1877         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1878         fiddling with section list.
1879         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1881 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
1883         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1885 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
1887         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1889 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
1891         * emultempl/elf32.em (finish): Supply output_bfd
1892         to bfd_elf*_discard_info.
1893         (OPTION_EH_FRAME_HDR): Define.
1894         (longopts): Add --eh-frame-hdr.
1895         (parse_args): Handle it.
1896         (list_options): Add --eh-frame-hdr to help.
1897         * emultempl/hppaelf.em (finish): Supply output_bfd
1898         to bfd_elf*_discard_info.
1899         * scripttempl/elf.sc (.eh_frame_hdr): Add.
1901 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
1903         * lexsup.c (parse_args): Don't pass shortopts to second call to
1904         getopt functions.  Restore optind rather than decrementing before
1905         second call.  Remove errind as it now duplicates last_optind.
1907 2001-12-11  Christopher Faylor  <cgf@redhat.com>
1909         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1911 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
1912             Richard Henderson  <rth@redhat.com>
1914         * Makefile.am: Add support for xstormy16.
1915         * configure.tgt: Add support for xstormy16.
1916         * Makefile.in: Regenerate.
1917         * emulparams/elf32xstormy16.sh: New file.
1918         * scripttempl/xstormy16.sc: New file.
1920 2001-10-01  Christopher Faylor <cgf@cygnus.com>
1922         * Makefile.in (LIB_PATH): Make configurable.
1923         (GENSCRIPTS): Set LIB_PATH in environment.
1924         * configure.in: Substitute LIB_PATH.
1925         * configure: Regenerate.
1926         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1927         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1929 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
1931         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1932         describing the -N option so that it is easier to translate into
1933         foreign languages.
1935 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
1937         * emultempl/pe.em (..._list_options): Replace multiple fprintf
1938         statements describing a single option with a single, newline
1939         escaped fprintf.  This allows better translation into other
1940         languages.
1942         * ldmain.c (add_archive_element): Combine multiple strings
1943         into a single string to permit better translation into other
1944         languages.
1946 2001-12-05  Tom Rix  <trix@redhat.com>
1948         * Makefile.am: Remove eaixppc64.
1949         * Makefile.in: Regenerate.
1951 2001-12-04  Tom Rix  <trix@redhat.com>
1953         * emultempl/aix.em (choose_target): Change default target to
1954         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
1955         warning.
1956         (gld*_read_file):  Fix typo.
1957         (change_symbol_mode): Add prototype.
1958         (is_syscall): Same.
1960         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1961         * emulparams/aixrs6.sh : Same.
1962         * emulparams/ppcmacos.sh : Same.
1963         * emulparams/aixppc64.sh : Delete file.
1964         * emultempl/aix.em : Formatting changes.
1966 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
1968         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1969         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1970         __Sbss.
1971         (OTHER_END_SYMBOLS): Fix formatting.
1972         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1973         (OTHER_END_SYMBOLS): Fix formatting.
1975 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
1977         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1979 2001-12-02  Tom Rix  <trix@redhat.com>
1981         * configure.tgt : Remove eaixppc64 emulations.
1982         * Makefile.in : Remove eaixppc64.c
1983         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1984         (ldemul_default_target): Same.
1985         * emultempl/gld960.em (gld960_choose_target):  Same.
1986         * emultempl/gld960c.em (gld960_choose_target):  Same.
1987         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1988         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1989         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1990         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1991         * emultempl/aix.em (choose_target): New function.  Handle emulation of
1992         -b32 and -b64.
1994 2001-11-27  H.J. Lu <hjl@gnu.org>
1996         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1997         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1998         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1999         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2000         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2001         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2002         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2003         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2005         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2006         is not empty.
2007         (SDATA): Likewise.
2008         (REL_SDATA): Likewise.
2009         (REL_SBSS): Likewise.
2010         (REL_SDATA2): Likewise.
2011         (REL_SBSS2): Likewise.
2012         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2013         (SDATA2): Likewise.
2015 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2017         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2018         destructor in rom.
2019         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2021 2001-11-22  H.J. Lu  <hjl@gnu.org>
2023         * Makefile.in: Regenerated with automake based on automake
2024         1.4-8 in RedHat 7.1.
2026 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
2028         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2029         (config.status): Delete rule.
2030         Add extra dependencies to cover sourced emulparams files.
2031         * Makefile.in: Regenerate.
2033         * scripttempl/elf.sc: Order <section>, <section>.* and
2034         corresponding linkonce sections as seen in input files.
2035         Formatting fixes.  Zero vma of all sections if not relocating.
2036         (STACK): Define and insert if STACK_ADDR defined.
2037         (OTHER_RELOCATING_SECTIONS): Delete.
2038         (OTHER_END_SYMBOLS): Define.
2039         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2040         (OTHER_READWRITE_SECTIONS): Likewise.
2041         (OTHER_GOT_SECTIONS): Likewise.
2042         (OTHER_SDATA_SECTIONS): Likewise.
2043         (OTHER_BSS_SECTIONS): Likewise.
2044         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2045         (OTHER_READWRITE_SECTIONS): Likewise.
2046         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2047         (OTHER_READWRITE_SECTIONS): Likewise
2049         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2050         (STACK_ADDR): Define.
2051         * emulparams/armelf_oabi.sh: As for armelf.sh.
2052         * emulparams/elf32mcore.sh: As for armelf.sh.
2053         * emulparams/h8300elf.sh: As for armelf.sh.
2054         * emulparams/mn10200.sh: As for armelf.sh.
2055         * emulparams/shelf.sh: As for armelf.sh.
2057         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2058         (OTHER_END_SYMBOLS): Define.
2059         * emulparams/m32relf.sh: As for elf32fr30.sh.
2060         * emulparams/h8300helf.sh: As for elf32fr30.sh.
2061         * emulparams/h8300self.sh: As for elf32fr30.sh.
2063         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2064         defines with RELOCATING test.
2065         (OTHER_SDATA_SECTIONS): Likewise.
2066         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2067         (OTHER_END_SYMBOLS): ..this.
2068         * emulparams/crislinux.sh: As for criself.sh.
2070         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2071         if not relocating.
2072         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2073         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
2074         normal and linkonce sections as seen in input files.
2075         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2076         (TEXT_DYNAMIC): Likewise.
2077         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2078         (OTHER_SDATA_SECTIONS): Likewise.
2079         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2080         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2081         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2082         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2083         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2084         (OTHER_PLT_RELOC_SECTIONS): Likewise.
2085         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
2086         sections as seen in input files.
2087         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2088         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2089         if not relocating.
2090         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2091         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2092         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2093         (OTHER_SECTIONS): Instead, use this..
2094         (OTHER_END_SYMBOLS): ..and this.
2096         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2097         * emulparams/elf32bsmip.sh: Likewise.
2098         * emulparams/elf32btsmip.sh: Likewise.
2099         * emulparams/elf32ebmip.sh: Likewise.
2100         * emulparams/elf32lmip.sh: Likewise.
2101         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2102         * emulparams/elf32lsmip.sh: Likewise.
2103         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2104         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2105         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2106         * emulparams/elf64btsmip.sh: Likewise.
2107         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2108         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2109         * emulparams/elf32ppclinux.sh: Likewise.
2110         * emulparams/elf32ppcsim.sh: Likewise.
2111         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2112         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2113         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2114         * emulparams/h8300self.sh: Likewise.
2115         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2116         * emulparams/sh.sh: Comment.
2117         * emulparams/shl.sh: Source sh.sh, remove duplicates.
2118         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2119         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2121 2001-11-21  David Heine <dlheine@tensilica.com>
2122             Alan Modra  <amodra@bigpond.net.au>
2124         * ldlang.c (map_input_to_output_sections): Replace "break"
2125         accidentally removed with 2001-08-03 change.
2126         (lang_gc_sections_1): Likewise.
2128 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
2130         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2132 2001-11-20  Angela Marie Thomas <angela@redhat.com>
2134         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2135         of false when calling lang_size_sections.
2136         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2138 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
2140         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2141         function when LDEMUL_FINISH isn't set to the same name.  Don't
2142         call ${LDEMUL_FINISH}.
2143         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2144         * emultempl/armelf.em (arm_elf_finish): Call
2145         gld${EMULATION_NAME}_finish.
2146         * emultempl/hppaelf.em (hppaelf_finish): Rename to
2147         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
2148         hppaelf_layout_sections_again if necessary.
2149         (need_laying_out): New var.
2150         (hppaelf_layaout_sections_again): Rename to
2151         hppaelf_layout_sections_again.  Clear need_laying_out.
2152         (PARSE_AND_LIST_OPTIONS): Format text.
2154 2001-11-14  H.J. Lu  <hjl@gnu.org>
2156         * emultempl/armelf.em (arm_elf_finish): Renamed from
2157         gld${EMULATION_NAME}_finish.
2158         (LDEMUL_FINISH): Set to arm_elf_finish.
2160 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
2162         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2163         (struct ld_emulation_xfer_struct): Use it.
2165 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
2167         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2168         additional symbols referenced by newer crt0.o files from HP.
2170 2001-11-12  Anthony Green  <green@redhat.com>
2172         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2174 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
2176         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2177         * Makefile.in: Regenerate.
2179 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2181         * ld.texinfo: Use @command for commands, @option for options.
2182         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2183         the page man title.
2184         * Makefile.in: Rebuild.
2186 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
2188         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2189         Add support for targets.
2191 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
2193         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2194         * configure: Regernate.
2195         * po/fr.po: New file.
2196         * po/sv.po: New file.
2198 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
2200         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2201         as little endian default and to support big endian.
2203 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
2205         * ld.texinfo (Options): Document new option, -nostdlib.
2206         * lexsup.c (OPTION_NOSTDLIB): New definition.
2207         (ld_options): Add entry for "nostdlib".
2208         (parse_args): Handle OPTIONS_NOSTDLIB.
2209         * ldfile.c (ldfile_add_library_path): Don't add directories
2210         to the search path if they weren't specified on the command line
2211         and -nostdlib was specified.
2212         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2214 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
2216         * lexsup.c (parse_args): Prevent infinite parsing loop when
2217         "-rpath.a" is specified on the command line.
2218         Replace calls to fprintf with calls to einfo.
2220 2001-10-31  John Marshall  <jmarshall@acm.org>
2222         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2223         appear only once across all the linker scripts involved in a link
2224         invocation no longer applies.  Make the documentation reflect
2225         that.
2227 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
2229         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2230         targets.
2231         (sh-*-linux*): Added targ_extra_libpath.
2233 2001-10-31  David Heine  <dlheine@tensilica.com>
2235         * ldlang.c (lang_size_sections): Keep a valid output_offset field
2236         for padding statements.
2238 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
2240         * configure.tgt (mmix-*-*): New target.
2241         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2242         Add dependencies to match.
2243         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2244         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2245         scripttempl/mmo.sc: New files.
2246         * gen-doc.texi: @set MMIX.
2247         * ld.texinfo: Ditto.
2248         [MMIX] Add MMIX node.
2249         * Makefile.in: Regenerate.
2251 2001-10-29  Kazu Hirata  <kazu@hxi.com>
2253         * ldlang.c: Fix a comment typo.
2255 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
2257         * configure.host: Move alpha*-*-linux-gnu* entry to generic
2258         entries, and match *-*-linux*.
2260 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
2262         * ldgram.y (mri_script_command): Surround processing of INCLUDE
2263         with ldlex_script, ldlex_popstate.
2264         (ifile_p1): Likewise.
2265         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
2266         correct slot.
2267         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
2268         to 1.  Don't BEGIN(SCRIPT).
2269         (lex_redirect): Similarly.
2270         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2272 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
2274         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2275         __EH_FRAME_END__ and accept eh frames into data section.
2276         Add ctor and dtor sections.
2278 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2280         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2281         (auto-export): Fix indentation.
2283 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2285         * pe-dll.c (autofilter_objectlist):  Add startup objects
2286         for profiling.
2287         (auto-export): Constify char * p.
2288         Extract file basename and use strcmp rather than ststr
2289         for object lookup.
2291 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
2293         * ldmain.c (get_emulation): Improve comment about the handling
2294         of -mipsN options.
2296 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
2298         * po/POTFILES.in: Regenerate.
2300 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
2302         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2303         -z nocopyreloc and -z nocombreloc usage strings.
2305 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
2307         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2308         in usage.
2310 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
2312         * scripttempl/armaout.sc: Place .bss section after end of aligned
2313         data section to match behaviour of aout code in constructrion of
2314         header.
2316 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2318         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2319         startup files for mingw32 dlls to list.
2321 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
2323         * emultempl/elf32.em: Fix shell 'if' usage for portability.
2325 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
2327         * configure.tgt (targ): Add arm9e-*-elf.
2329 2001-10-05  H.J. Lu  <hjl@gnu.org>
2331         * genscripts.sh: Fix a typo in the last change.
2333 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
2335         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2336         -z nocombreloc in usage.
2338 2001-10-03  Jim Blandy  <jimb@redhat.com>
2340         * genscripts.sh: Include a comment at the top of each generated
2341         script, explaining its purpose.
2343 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
2345         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2346         * NEWS: Mention -z nocopyreloc.
2347         * ld.texinfo (Options): Describe nocopyreloc.
2349 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
2351         * configure: Regenerate.
2353 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
2355         * ldver.h (ld_program_version): Remove declaration.
2356         * lexsup.c (parse_args): Move printing of copyright message..
2357         * ldver.c (ldversion): .. to here.
2358         Use BFD_VERSION_STRING in place of BFD_VERSION.
2359         (ld_program_version): Remove.
2360         * Makefile.am (Makefile): Depend on bfd/configure.in.
2361         Run "make dep-am".
2362         * Makefile.in: Regenerate.
2364 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
2366         * Makefile.am: Update dependencies with "make dep-am".
2367         * Makefile.in: Regenerate.
2369 2001-09-29  John Reiser  <jreiser@BitWagon.com>
2371         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2372         * lexsup.c: Add --no-define-common commandline option.
2373         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2374         * ldlex.l: Likewise.
2375         * ld.h: Add command_line.inhibit_common_definition.
2376         * ldmain.c (main): Initialize.
2377         * ld.texinfo: Document.
2379 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
2381         * ldlang.c (section_already_linked): Remove assignment to kept_section.
2383 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
2385         * ldmisc.c (USE_STDARG): Remove.
2386         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2387         (einfo): Likewise.
2388         (minfo): Likewise.
2389         (lfinfo): Likewise.
2391         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2392         declarations.  Update copyright.
2394 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2396         * pe-dll.c: Remove obsoleted declaration of
2397         pe_get_data_import_dll_name.
2398         (pe_create_import_fixup): Fix thinko.
2400         * ld.texinfo(enable-auto-import): Clarify the explanation.
2402 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
2404         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2405         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2406         DLL_SUPPORT controlled code.
2408 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2410         * emultempl/pe.em(pe_data_import_dll): Make static.
2411         (pe_get_data_import_dll_name): New accessor function.
2412         * pe-dll.c(pe_create_import_fixup): call
2413         pe_get_data_import_dll_name() from pe.em, instead of
2414         directly accessing pe_data_import_dll variable from pe.em.
2416 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
2418         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2419         (def_file_add_directive): Use ISSPACE instead of isspace.
2420         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2421         isdigit/isxdigit/isalpha/isalnum.
2422         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2423         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2424         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2425         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2426         isalnum.
2427         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2428         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2429         isupper/tolower.
2430         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2431         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2432         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2433         (ctor_prio): Use ISDIGIT instead of isdigit.
2434         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2435         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2436         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2437         isupper/tolower.
2438         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2439         (stricpy): Use TOLOWER instead of isupper/tolower.
2440         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2441         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2442         (lex_warn_invalid): Use ISPRINT instead of isprint.
2443         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2444         (main): For gettext, also set the LC_CTYPE locate facet.
2445         (add_keepsyms_file): Use ISSPACE instead of isspace.
2446         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2447         (is_num, parse_args): Use ISDIGIT instead of isdigit.
2448         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2449         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2450         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2451         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2452         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2453         (quoteput): Use ISSPACE instead of isspace.
2454         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2455         instead of isalnum.
2457 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
2459         * deffilep.y (def_stash_module): Constify "name" param.
2461         * pe-dll.c: Replace CONST with const throughout.
2462         (quick_symbol): Constify "n1", "n2", "n3" params.
2463         (make_singleton_name_thunk): Constify "import" param.  Make
2464         "buffer_len" a size_t.
2465         (make_import_fixup_entry): Constify "name", "fixup_name",
2466         "dll_symname" params.
2467         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
2468         (pe_get32): Likewise.
2469         (pe_implied_import_dll): Likewise.
2471         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2472         (sort_by_section_name): Likewise.
2474         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2475         (make_import_fixup): Cast printf arg, rel->address to long rather
2476         than int.
2477         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2479 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
2481         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2482         defines BufferSize.  Increase buffer size by one.
2484 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
2486         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2488 2001-09-14  Kevin Lo <kevlo@openbsd.org>
2490         * configure.tgt: Add arm-openbsd target.
2492 2001-09-12  H.J. Lu  <hjl@gnu.org>
2494         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2495         eelf64lppc.o to ...
2496         (ALL_64_EMULATIONS): Here.
2497         * Makefile.in: Regenerated.
2499 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2501         * emultempl/pe.em(make_import_fixup): change signature to
2502         take asection as well as arelec; we need this for proper
2503         error reporting.  Only call pe_create_import_fixup() if
2504         there is no attempt to add a constant addend to the reloc;
2505         otherwise, report error condition.
2506         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2507         since final argument is a pointer to make_import_fixup().
2508         Change call to cb() to match make_import_fixup() signature.
2509         (make_import_fixup_mark): make buffer_len unsigned.
2510         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2512 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
2514         * ld.texinfo: add verbose documentation for auto-import
2515         direct-addressing workaround, to compliment the terse
2516         error message.
2518 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
2520         * scripttempl/v850.sc: Add gcc_except_table sections.
2522 2001-09-11  Jeffrey A Law  (law@cygnus.com)
2524         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2525         * emulparams/h8300self.sh: Similarly.
2527 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2529         * ld.texinfo (Options, --stack): Correct default value for stack
2530         reserve.
2532 2001-09-05  Tom Rix <trix@redhat.com>
2534         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2536 2001-09-03  Andreas Jaeger  <aj@suse.de>
2538         * emultempl/beos.em: Declare prototypes for comparions functions,
2539         adjust definitions.
2541 2001-09-02  Andreas Jaeger  <aj@suse.de>
2543         * emultempl/aix.em: Add missing prototype.
2544         * emultempl/lnk960.em: Likewise.
2545         * emultempl/vanilla.em: Likewise.
2546         * emultempl/armcoff.em: Likewise.
2547         * emultempl/armelf_oabi.em: Likewise.
2548         * emultempl/beos.em: Likewise.
2549         * emultempl/gld960c.em: Likewise.
2550         * emultempl/gld960.em: Likewise.
2552         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2553         for prototype declaration.
2555 2001-08-31  Eric Christopher  <echristo@redhat.com>
2556             Jason Eckhardt  <jle@redhat.com>
2558         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2560 2001-08-31  Andreas Jaeger  <aj@suse.de>
2562         * emultempl/pe.em: Add missing prototypes.
2563         (gld_${EMULATION_NAME}_after_open): Remove extra args to
2564         pe_find_data_imports.
2565         (pr_sym): Add unused attribute.
2567 2001-08-29  Joel Sherrill <joel@OARcorp.com>
2569         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2570         default from coff to elf.
2572 2001-08-29  Jeff Law <law@redhat.com>
2574         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
2575         ARCH specification.
2576         * emulparams/h8300self.sh: Similarly.
2578 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
2580         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2581         eh8300self.o .
2582         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2583         * configure.tgt (h8300-*-elf*): New case.
2584         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2585         * emulparams/h8300self.sh: New file.
2586         * Makefile.in: Regenerated.
2588 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
2590         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2591         with macro name.
2593 2001-08-27  Linus Nordberg  <linus@swox.com>
2594             Alan Modra  <amodra@bigpond.net.au>
2596         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2597         (eelf64ppc.c, eelf64lppc.c): Add make targets.
2598         Run "make dep-am"
2599         * Makefile.in: Regenerate.
2600         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
2601         entries to correct alphabetical position.
2602         * emulparams/elf64ppc.sh: New.
2603         * emulparams/elf64lppc.sh: New.
2605 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
2607         * ldmain.c (main): Declare BSIZE as static.
2609 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2611         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2612         into .rel.dyn resp. .rela.dyn if combreloc.
2613         (get_script): If .x linker script is equal to .xn, only put it
2614         once into the binary.
2615         Add .xc and .xsc scripts.
2616         (parse_args): Handle -z combreloc and -z nocombreloc.
2617         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2618         For .xc and .xsc scripts put all .rel* or .rela* input sections
2619         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2620         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2621         is elf.
2622         Strip trailing whitespace from script.
2623         Generate .xc and .xsc scripts if requested.
2624         * ldmain.c (main): Initialize link_info.combreloc and
2625         link_info.spare_dynamic_tags.
2626         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2627         (ld_options): Add --spare-dynamic-tags option.
2628         (parse_args): Likewise.
2629         * ld.texinfo: Document -z combreloc and -z nocombreloc.
2630         * ldint.texinfo: Document .xc and .xsc linker scripts.
2631         * NEWS: Add notes about -z combreloc and SHF_MERGE.
2633 2001-08-22  H.J. Lu  <hjl@gnu.org>
2635         * emulparams/elf32fr30.sh: Add a newline.
2637 2001-08-21  Andreas Jaeger  <aj@suse.de>
2639         * deffilep.y: Add missing prototypes.
2640         * pe-dll.c: Likewise.
2642 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
2644         * ldlang.c (insert_pad): Fix typos in last patch.
2646         * ldlang.c: When traversing lang_statement_union_type lists,
2647         consistently use "header.next" rather than "next".
2648         * mpw-eppcmac.c: Likewise.
2649         * emultempl/beos.em: Likewise.
2650         * emultempl/hppaelf.em: Likewise.
2651         * emultempl/pe.em: Likewise.
2652         * ldlang.h (union lang_statement_union): Remove "next" field.
2654         * ldlang.c (insert_pad): Use offsetof macro.
2655         (lang_size_sections): Always neuter padding statements.
2656         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2658         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2659         passed to lang_size_sections.
2660         (pe_exe_fill_sections): Likewise.
2661         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2662         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2664 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2666         * emultempl/aix.em: Formatting fixes.
2668 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2670         * ldlang.c (insert_pad): Make use of an existing pad statement if
2671         available.  Move code calculating alignment, adjusting section
2672         alignment power, and adjusting dot to ..
2673         (size_input_section): .. here.  Remove unused relax param.
2674         (lang_size_sections): Change boolean `relax' param to boolean *.
2675         Adjust call to size_input_section.  Make use of insert_pad to
2676         place pad after the assignment statement.  If relaxing, zap
2677         padding statements.
2678         (reset_memory_regions): Reset output_bfd section sizes too.
2679         (relax_again): Move to..
2680         (lang_process): ..here.  Adjust call to lang_size_sections, and
2681         remove duplicated code.
2682         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2684 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
2686         * ld.texinfo: Document that fill values now use the four least
2687         significant bytes.
2688         * emulparams/elf32fr30.sh (NOP): Update.
2689         * emulparams/elf32mcore.sh: Likewise.
2690         * emulparams/elf64_s390.sh: Likewise.
2691         * emulparams/elf_i386.sh: Likewise.
2692         * emulparams/elf_i386_be.sh: Likewise.
2693         * emulparams/elf_i386_chaos.sh: Likewise.
2694         * emulparams/elf_i386_ldso.sh: Likewise.
2695         * emulparams/elf_s390.sh: Likewise.
2696         * emulparams/elf_x86_64.sh: Likewise.
2697         * emulparams/i386moss.sh: Likewise.
2698         * emulparams/i386nw.sh: Likewise.
2699         * emulparams/m68kelf.sh: Likewise.
2700         * scripttempl/elf.sc: Update NOP comment.
2701         * scripttempl/elfi370.sc: Likewise.
2702         * scripttempl/elfm68hc11.sc: Likewise.
2703         * scripttempl/elfm68hc12.sc: Likewise.
2704         * scripttempl/nw.sc: Likewise.
2706 2001-08-15  Tom Rix <trix@redhat.com>
2708         * ldgram.y (saved_script_handle): Initialize to NULL.
2709         * ldmain.c (main): Change check on saved_script_handle.
2711 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
2713         * emultempl/elf32.em: Formatting fixes.
2714         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
2715         looking at sec->owner.
2716         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2717         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
2718         unused code, and reorganize orphan section placement code.
2720         * ldlang.c (wild_doit): Rename to lang_add_section.
2721         * ldlang.h: Here too.
2722         * mpw-elfmips.c: And here.
2723         * emultempl/beos.em: And here.
2724         * emultempl/elf32.em: And here.
2725         * emultempl/hppaelf.em: And here.
2726         * emultempl/pe.em: And here.
2728 2001-08-13  Richard Henderson  <rth@redhat.com>
2730         * emultempl/needrelax.em: New file.
2731         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2732         * Makefile.am (eelf64_ia64.c): Depend on it.
2733         * Makefile.in: Rebuild.
2735 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
2737         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2738         output_section is set non-NULL.
2740         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2741         `true' for SEC_EXCLUDE sections so that the generic code doesn't
2742         needlessly create an output_section_statement.  Treat a correctly
2743         named output_section_statement with NULL bfd_section as compatible.
2745 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
2747         * emultempl/generic.em: Support EXTRA_EM_FILE.
2748         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2749         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2750         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2751         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2752         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2753         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2754         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2755         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2756         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2757         LDEMUL_FIND_POTENTIAL_LIBRARIES.
2759 2001-08-12  Richard Henderson  <rth@redhat.com>
2761         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2762         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2763         scripttempl/v850.sc: Keep .jcr data.
2765 2001-08-12  H.J. Lu  <hjl@gnu.org>
2766             Andrew Haley  <aph@cambridge.redhat.com>
2767             Nick Clifton  <nickc@redhat.com>
2769         * ldgram.y (had_script): Change name to saved_script_handle.
2770         Change type to file handle.
2771         * ld.h (had_script): Rename and retype.
2772         * ldfile.c (ldfile_open_command_file): Save the file handle
2773         used in saved_script_handle.
2774         * lexsup.c (parse_args): Do not allow -c option to alter
2775         saved_script_handle.
2776         * ldmain.c (main): Print out the linker script used if
2777         --verbose is given.  Check saved_script_handle to obtain the
2778         external linker script used, or if NULL, dump the builtin
2779         script.
2780         * ld.texinfo: Document that --verbose now dumps the linker
2781         script used, regardless of whether it was an internal or an
2782         external script.
2784 2001-08-10  Andreas Jaeger  <aj@suse.de>
2786         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2787         to build warnings.
2788         * configure: Regenerate.
2790 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
2792         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2794         * scripttempl/elf.sc: Move non-text .dynamic section before
2795         .plt/.got/.sdata* group.
2796         (OTHER_GOT_SECTIONS): Move to immediately after .got.
2797         (OTHER_SDATA_SECTIONS): Add.
2798         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2799         OTHER_GOT_SECTIONS.
2800         * emulparams/crislinux.sh: Likewise.
2801         * emulparams/elf32b4300.sh: Likewise.
2802         * emulparams/elf32bmip.sh: Likewise.
2803         * emulparams/elf32bmipn32.sh: Likewise.
2804         * emulparams/elf32bsmip.sh: Likewise.
2805         * emulparams/elf32btsmip.sh: Likewise.
2806         * emulparams/elf32ebmip.sh: Likewise.
2807         * emulparams/elf32elmip.sh: Likewise.
2808         * emulparams/elf32l4300.sh: Likewise.
2809         * emulparams/elf32lmip.sh: Likewise.
2810         * emulparams/elf32lsmip.sh: Likewise.
2811         * emulparams/elf32ltsmip.sh: Likewise.
2812         * emulparams/elf64bmip.sh: Likewise.
2813         * emulparams/elf64btsmip.sh: Likewise.
2814         * emulparams/elf64ltsmip.sh: Likewise.
2816 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
2818         * genscripts.sh: Source the emulparams script before each output
2819         script is generated so that variables like `RELOCATING' may affect
2820         variables defined in the emulparams script.
2822 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
2824         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2825         order.
2827         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2828         ie. iterate over wild_statement.section_list.
2829         (gld${EMULATION_NAME}_place_orphan): Likewise.
2831 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2833         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2834         .fini[0-4] sections used by _exit
2835         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2836         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2837         * scripttempl/elfm68hc11.sc: Likewise.
2839 2001-08-03  H.J. Lu  <hjl@gnu.org>
2841         * emultempl/beos.em (init): Add the missing initialization.
2843 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
2845         * ld.texinfo (Input Section Basics): Clarify ordering of output
2846         sections.
2847         * ldlang.c (callback_t): Add wildcard_list param.
2848         (walk_wild_section): Remove "section" param.  Rewrite for
2849         lang_wild_statement_type change.  Remove unique_section_p test.
2850         (walk_wild_file): Remove "section" param.
2851         (walk_wild): Remove "section" and "file" params.
2852         (lang_gc_wild): Likewise.
2853         (wild): Likewise.  Modify for lang_wild_statement_type change.
2854         (wild_sort): Likewise.  Add "sec" param.
2855         (gc_section_callback): Likewise.
2856         (output_section_callback): Likewise.  Do unique_section_p test.
2857         (map_input_to_output_sections): Modify call to wild.
2858         (lang_gc_sections_1): Likewise.
2859         (print_wild_statement): Modify for lang_wild_statement_type
2860         change.
2861         (lang_add_wild): Replace filename, filenames_sorted param with
2862         filespec.  Replace section_name, sections_sorted,
2863         exclude_filename_list with section_list.
2864         * ldlang.h (lang_add_wild): Here too.
2865         (lang_wild_statement_type): Replace section_name, sections_sorted,
2866         and exclude_filename_list with section_list.
2867         * ldgram.y (current_file): Delete.
2868         (%union): Add wildcard_list.
2869         (file_NAME_list): Set type to wildcard_list.  Build a linked list
2870         rather than calling lang_add_wild for each entry.
2871         (input_section_spec_no_keep): Call lang_add_wild here instead.
2872         * ld.h (struct wildcard_list): Declare.
2873         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2875 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2877         * ldmain.c (main): initialize link_info.pei386_auto_import
2878         * pe-dll.c: new tables for auto-export filtering
2879         (auto_export): change API, pass abfd for contextual filtering.
2880         Loop thru tables of excluded symbols instead of comparing
2881         "by hand".
2883 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
2885         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2886         static variable current_sec (static struct sec *). Add
2887         forward declaration for add_bfd_to_link.
2888         (process_def_file): Don't export undefined symbols. Do not
2889         export symbols starting with  "_imp__".  Call auto_export()
2890         with new API.
2891         (pe_walk_relocs_of_symbol): New function.
2892         (generate_reloc): add optional extra debugging
2893         (pe_dll_generate_def_file): eliminate extraneous initial blank
2894         line in output
2895         (make_one): enlarge symtab to make room for __nm__ symbols
2896         (DATA auto-import support).
2897         (make_singleton_name_thunk): New function.
2898         (make_import_fixup_mark): New function.
2899         (make_import_fixup_entry): New function.
2900         (pe_create_import_fixup): New function.
2901         (add_bfd_to_link): Specify that 'name' argument is a CONST
2902         char *.
2903         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2904         declare new functions pe_walk_relocs_of_symbol and
2905         pe_create_import_fixup.
2906         * emultempl/pe.em: add new options --enable-auto-import,
2907         --disable-auto-import, and --enable-extra-pe-debug.
2908         (make_import_fixup): New function.
2909         (pe_find_data_imports): New function.
2910         (pr_sym): New function.
2911         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2912         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
2913         CODE.
2915 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2917         * ld.texinfo: add additional documentation for
2918         --export-all-symbols.  Document --out-implib,
2919         --enable-auto-image-base, --disable-auto-image-base,
2920         --dll-search-prefix, --enable-auto-import, and
2921         --disable-auto-import.
2922         * ldint.texinfo: Add detailed documentation on auto-import
2923         implementation.
2925 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
2927         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2928         example.
2930 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
2932         * Makefile.am: Update dependencies with "make dep-am".
2933         * Makefile.in: Regenerate
2935 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
2937         * ldcref.c (check_section_sym_xref): New function.
2938         (check_nocrossrefs): Call it.
2939         (check_nocrossref): Interate over h->refs here instead of..
2940         (check_refs): ..here.  Pass in the symbol name, section, and bfd
2941         rather than hash_entry pointers.
2942         (struct check_refs_info): Keep symbol name rather than hash entry.
2943         Remove "same".
2944         (check_reloc_refs): Tweak for above changes in check_refs_info.
2945         Only report references to section syms when symname is NULL to
2946         prevent duplicate messages for the same reloc.
2948 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2950         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2951         available.  Do not print NULL trees.
2952         (exp_print_token): Print unknown tokens with values > 126 as
2953         decimal values not ASCII characters.
2955         * ldlang.c (lang_leave_overlay): If a region is specified assign
2956         it to all sections inside the overlay unless they have been
2957         assigned to the own, non-default, memory region.
2959         * README: Add header for consistency with other README files.
2961 2001-07-14  H.J. Lu  <hjl@gnu.org>
2963         * emultempl/elf32.em (output_prev_sec_find): Never return
2964         bfd_abs_section_ptr, bfd_com_section_ptr nor
2965         bfd_und_section_ptr.
2967 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
2969         * Makefile.am (em32relf.c): Change dependency from generic.em to
2970         elf32.em.
2971         * Makefile.in: Regenerate.
2973 2001-07-14  matthew green  <mrg@eterna.com.au>
2975         * configure.tgt (i386-*-netbsdelf*): New target.
2976         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2978 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
2980         * emultempl/elf32.em (output_prev_sec_find): New.
2981         (place_orphan): Use it.
2983 2001-07-11  H.J. Lu  <hjl@gnu.org>
2985         * ldmain.c (main): Fix typos in the last change.
2987 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
2989         * ldmain.c (main): Disallow -F and -f without -shared.
2991 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
2993         * emultempl/pe.em (after_open): Check for the output_bfd not
2994         having any coff_data structure allocated to it.
2996 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
2998         * emultempl/elf32.em: Do not assuming that contents of the buffer
2999         returned from basename function will remain unchanged accross other
3000         function calls.
3002 2001-07-03  H.J. Lu  <hjl@gnu.org>
3004         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3005         2001-07-03. It creates dynamic entries even for static binaries.
3007 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
3009         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3010         (DYNAMIC): Use it to reserve few dynamic entries for
3011         post-linking tools.
3013 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
3015         * emulparams/hppa64linux.sh: New file.
3016         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3017         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3018         (ehppa64linux.c): Add rule to make it.
3019         Run "make dep-am".
3020         * Makefile.in: Regenerate.
3022 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
3024         * ld.texinfo (Options, -r): Mention restrictions when using
3025         different object formats.
3027 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
3029         * ldlang.c (lang_check): Emit fatal error if relocatable link
3030         between different object flavours with relocations in input.
3032 2001-06-19  H.J. Lu  <hjl@gnu.org>
3034         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3035         (--version-script): Mention the language support.
3037 2001-06-19  H.J. Lu <hjl@gnu.org>
3039         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3041 2001-06-18  H.J. Lu <hjl@gnu.org>
3043         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3044         (diststuff): Add $(MANS).
3045         * Makefile.in: Regenerated.
3047         * ld.1: Removed.
3049 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
3051         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3052         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3053         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3054         * ld.h (args_type): Remove member export_dynamic.  All users
3055         changed to use struct bfd_link_info member.
3057         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3058         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3059         * Makefile.in: Regenerate.
3061 2001-06-18  H.J. Lu  <hjl@gnu.org>
3063         * ldlang.c (init_os): Add the newline to the einfo call.
3064         (lang_check): Likewise.
3065         (lang_do_version_exports_section): Likewise.
3067 2001-06-15  H.J. Lu  <hjl@gnu.org>
3069         * lexsup.c (parse_args); Save optind to report unrecognized
3070         option.
3072 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
3074         * ldlang.c (lang_check): Emit fatal error if relocatable link
3075         between different object flavours.
3077         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3078         Set new link_info member export_dynamic.
3079         * ldmain.c (main): Initialize new link_info member export_dynamic.
3081 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
3083         * ldlang.c (walk_wild): Only call walk_wild_file if
3084         lookup_name returns something.
3085         (lookup_name): If load_symbols fails, return NULL.
3086         (load_symbols): Change to a boolean function.
3087         (open_input_bfds): If load_symbols fails then do not make the
3088         executable.
3090 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
3092         * ldlang.c (record_bfd_errors): Remove.
3094         * emultempl/aix.em: Fix copyright dates.
3096 2001-06-07  Andreas Jaeger  <aj@suse.de>
3098         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3099         (TEXT_START_ADDR): Likewise.
3101 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
3103         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3105 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3107         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3109 2001-05-31  H.J. Lu  <hjl@gnu.org>
3111         * ldlang.c (open_input_bfds): Don't change the bfd error
3112         handler whilst loading symbols.
3114 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
3116         * configure.tgt: Remove i370-mvs architecture, it is not currently
3117         supported.
3119 2001-05-25  H.J. Lu  <hjl@gnu.org>
3121         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3122         like emulparams/aixppc.sh.
3124 2001-05-25  H.J. Lu  <hjl@gnu.org>
3126         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3127         setting of output_filename after bfd_scan_arch.
3128         * emultempl/pe.em: Likewise.
3130 2001-05-25  H.J. Lu  <hjl@gnu.org>
3132         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3133         like emulparams/aixppc.sh.
3135         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3136         instead of ${srcdir}/emultempl/stringify.sed.
3138 2001-05-25  Timothy Wall  <twall@oculustech.com>
3140         * emulparams/elf64_aix.sh: Change settings to match IBM linker
3141         output.
3143 2001-05-25  Alan Modra  <amodra@one.net.au>
3145         * configure.host: Replace linuxoldld with linux*oldld.
3146         * configure.tgt: Likewise.
3148 2001-05-24  H.J. Lu  <hjl@gnu.org>
3150         * emultempl/stringify.sed: Removed again.
3152 2001-05-24  H.J. Lu  <hjl@gnu.org>
3154         * emultempl/aix.em (OUTPUT_ARCH): Defined.
3155         (gld${EMULATION_NAME}_before_parse): Initialize
3156         ldfile_output_architecture, ldfile_output_machine and
3157         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3158         * emultempl/beos.em: Likewise.
3159         * emultempl/elf32.em: Likewise.
3160         * emultempl/linux.em: Likewise.
3161         * emultempl/mipsecoff.em: Likewise.
3162         * emultempl/pe.em: Likewise.
3163         * emultempl/sunos.em: Likewise.
3165 2001-05-24 Tom Rix <trix@redhat.com>
3167         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3168         udate import file format.
3169         (change_symbol_mode) New, same
3170         (is_syscall) New, same
3171         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3172         * emulparams/aixppc64.sh : same
3173         * emulparams/aixrs6.sh : same
3174         * emulparams/ppcmacos.sh : same
3175         * emultempl/aix.em : use strtoull to parse options
3176         * Makefile.am : add eaixppc64 emulation for xcoff64
3177         * Makefile.in : same
3178         * configure.tgt : same
3180         * scripttempl/aix.sc : default text section offset to 0x10000000
3181         default data section offset to 0x20000000
3182         add .sv3264 and .sv64 pseudo sections
3183         loader and debug sections use the currect section offset.
3185         * emultempl/aix.em : Add xcoff64 support
3186         Add -binitfini support
3187         (gld${EMULATION_NAME}_before_parse) -binitfini
3188         (gld${EMULATION_NAME}_parse_args) same
3189         (gld${EMULATION_NAME}_before_allocation) format change for special
3190         sections
3192         * emulparams/aixppc64.sh : New file for xcoff64 support
3194 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
3196         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3197         variable to avoid non-portable shell construct.
3199 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3201         * ldmain.c (get_emulation): Add -mips5 command line argument.
3203 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
3205         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3206         (ELF_INTERPRETER_NAME): Define it.
3207         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3208         it.
3209         * configure.tgt (targ_emul, targ_extra_emuls)
3210         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3211         as primary, elf_i386 as extra.
3212         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3213         (eelf_i386_ldso.c): New rule.
3214         * Makefile.in: Rebuilt.
3216 2001-05-22  Nick Clifton  <nickc@redhat.com>
3218         * lexsup.c (ld_options):  Allow -I to be an alias for
3219         --dynamic-linker.  This is for Solaris compatability.
3220         * ld.texinfo: Document that -I can be used.
3221         * ld.1: Regenerate.
3223 2001-05-16  Alan Modra  <amodra@one.net.au>
3225         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3226         whether an input section is the first one assigned to an output
3227         section.
3228         Assorted formatting fixes.
3230 2001-05-14  DJ Delorie  <dj@delorie.com>
3232         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3233         * Makefile.in: Ditto.
3235 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3237         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3238         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3239         output sections.
3240         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3242 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3244         * ldlang.c (lang_process): Call bfd_merge_sections.
3246 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3248         * ldgram.y: Fix typo.
3250 2001-05-03  H.J. Lu  <hjl@gnu.org>
3252         * emultempl/elf32.em: Include "libiberty.h".
3253         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3254         basename of the bfd filename.
3255         (gld${EMULATION_NAME}_stat_needed): Likewise.
3256         (gld${EMULATION_NAME}_try_needed): Likewise.
3257         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3259 2001-05-02  H.J. Lu  <hjl@gnu.org>
3261         * emultempl/pe.em: Include <ctype.h>.
3263 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
3265         * emulparams/elf32openrisc.sh: New file.
3267         * Makefile.am: Add OpenRISC target.
3268         * Makefile.in: Regenerated.
3270         * configure.tgt: Add openrisc-*-* mapping.
3272 2001-05-02  Nick Clifton  <nickc@redhat.com>
3274         * emultempl/aix.em: Replace buystring with xstrdup.
3275         * emultempl/beos.em: Replace buystring with xstrdup.
3277 2001-05-02  H.J. Lu  <hjl@gnu.org>
3279         * ldfile.c: Include "libiberty.h".
3280         * ldlex.l: Likewise.
3282         * ldmisc.c (buystring): Removed.
3283         * ldmisc.h: Likewise.
3285         * ldfile.c: Replace buystring with xstrdup.
3286         * ldlang.c: Likewise.
3287         * ldlex.l: Likewise.
3288         * ldmain.c: Likewise.
3289         * ldmisc.c: Likewise.
3290         * lexsup.c: Likewise.
3291         * mpw-eppcmac.c: Likewise.
3293 2001-04-30  Andreas Jaeger  <aj@suse.de>
3295         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3297 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3299         * ldlang.c (load_symbols): Give emulation a chance
3300         to process unrecognized file before fatal error is
3301         reported, not after.
3303 2001-04-27  Sean McNeil <sean@mcneil.com>
3305         * configure.tgt: Add arm-vxworks target.
3306         * scripttempl/armcoff.sc: Support .text or .data as a section name
3307         prefix.
3308         Define _etext.
3310 2001-04-13  J.T. Conklin  <jtc@redback.com>
3312         * ld.texinfo: Document --fatal-warnings.
3313         * ld.1: Regenerate.
3315         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3316         warnings have been turned into errors.
3317         * lexsup.c (OPTION_WARN_FATAL): Define.
3318         (ld_options): Entry for --fatal-warnings.
3319         (parse_args): Handle OPTION_WARN_FATAL.
3320         * ld.h (ld_config_type): Add fatal_warnings field.
3322 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
3324         * ldmain.c (main): Default to discard_sec_merge.
3325         * lexsup.c (OPTION_DISCARD_NONE): Define.
3326         (ld_options): Add --discard-none.
3327         (parse_args): Handle OPTION_DISCARD_NONE.
3328         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3329         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3330         all its input sections match.
3332 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
3334         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3335         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3336         (eelf32ltsmip.c): New target.
3337         (eelf64btsmip.c): Likewise.
3338         (eelf64ltsmip.c): Likewise.
3339         * Makefile.in: Regenerated.
3341         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3342         target.
3343         (mips*-*-linux-gnu*): Likewise.
3345         * emulparams/elf32ltsmip.sh: New. Traditional little endian
3346         MIPS taget.
3347         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3348         target.
3349         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3350         endian target.
3352 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
3354         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3355         correct value of __Stext here.
3356         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3357         .startup section.
3359         * emulparams/crislinux.sh: Remove FIXME.
3361 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
3363         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3364         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3366 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
3368         * configure.tgt (cris-*-*): Change default emulation to criself.
3369         (cris-*-*aout*): New rule.
3371 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
3373         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3374         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3376 2001-03-26  Andreas Jaeger  <aj@suse.de>
3378         * ld.texinfo (Overview): Fix syntax in texi code.
3380 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3382         * ld.texinfo: Put @c man indications to generate the ld man page.
3383         When generating man, define all the variables.  Define SEEALSO
3384         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
3385         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3386         (ld.1): Generate from ld.texinfo.
3387         * Makefile.in: Regenerate.
3389 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
3391         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3392         and '-fdata-sections'. Set the VMA of STABS sections to zero.
3394 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3396         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3397         is an absolute path look only for this file and not along the path.
3399 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3401         * emultempl/elf32.em (OPTION_GROUP): New macro.
3402         Add new option Bgroup to longopts.
3403         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3404         (gld*_list_options): Add -Bgroup and -z defs.
3405         * ld.1: Document -Bgroup and -z defs.
3406         * ld.texinfo: Likewise.
3408 2001-03-07  Michael Meissner  <meissner@redhat.com>
3410         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3411         with sections created by -fdata-sections.
3412         (.dynbss,.bss): Ditto.
3414 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
3416         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3417         after_allocation_default, not gld..._before_allocation.
3419 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
3421         * configure.in (BFD_VERSION): New.
3422         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3423         * configure: Regenerate.
3424         * Makefile.am: Run "make dep-am"
3425         * Makefile.in: Regenerate.
3427 2001-02-26  Timothy Wall  <twall@cygnus.com>
3429         * emulparams/elf64_aix.sh: Add additional read-only sections;
3430         uncomment lines which are now required.
3432 2001-02-26  H.J. Lu  <hjl@gnu.org>
3434         * ldlang.c (open_input_bfds): Set the bfd error handler so
3435         that problems can be caught whilst loading symbols.
3436         (record_bfd_errors): New function: Report BFD errors and mark
3437         the executable output as being invalid.
3439 2001-02-22  Timothy Wall  <twall@cygnus.com>
3441         * configure.host: Add configuration for ia64-*-aix*.
3442         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3443         Add dependencies for eelf64_aix.c.
3444         * Makefile.in: Regenerate.
3445         * configure.tgt: Add ia64-*-aix* mapping.
3446         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3448 2001-02-20  H.J. Lu  <hjl@gnu.org>
3450         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3451         false if we found the file.
3453 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
3455         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3456         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3458 2001-02-18  lars brinkhoff  <lars@nocrew.org>
3460         * Makefile.am: Add PDP-11 target.
3461         * configure.tgt: Likewise.
3462         * emulparams/pdp11.sh: New file.
3464 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
3466         * configure.host: Add a generic FreeBSD configuration entry such that
3467         all [modern] FreeBSD systems on all platforms will look the same.
3469 2001-02-14  H.J. Lu  <hjl@gnu.org>
3471         * configure.tgt: Remove mention of earmelf_linux26.
3473 2001-02-13  Richard Henderson  <rth@redhat.com>
3475         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3477 2001-02-13  H.J. Lu  <hjl@gnu.org>
3479         * ldexp.h (node_type): Add etree_provided.
3480         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3481         type to etree_provided if defined by PROVIDE. Allow updating
3482         for etree_provided.
3483         (exp_print_tree): Handle etree_provided.
3484         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3485         etree_provided.
3487 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
3489         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3490         .IA_64.unwind.* pattern to unwind table section and
3491         .IA_64.unwind_info* pattern to unwind info section.
3493 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3495         * Makefile.am: Add linux target for S/390.
3496         * Makefile.in: Likewise.
3497         * configure.host: Likewise.
3498         * configure.tgt: Likewise.
3499         * emulparams/elf64_s390.sh: New file.
3500         * emulparams/elf_s390.sh: New file.
3502 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
3504         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3505         targ_extra_libpath.
3506         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3508 2001-02-06  Philip Blundell  <philb@gnu.org>
3510         * Makefile.am: Remove mention of earmelf_linux26.
3511         * Makefile.in: Regenerate.
3513 2001-02-04  Philip Blundell  <philb@gnu.org>
3515         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3516         * emulparams/armelf_linux26.sh: Delete.
3517         * configure.tgt: Remove mention of armelf_linux26 emulation.
3519 2001-02-01  Nick Clifton  <nickc@redhat.com>
3521         * ld.1: Replace occurances of -oformat with --oformat.
3523 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
3525         * ldlang.c (lang_leave_overlay): Don't set lma_region when
3526         load_base is specified.
3528 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
3530         * emultempl/elf32.em: Correct spelling in comments and listed
3531         options.
3533 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
3535         * ldlang.c (lang_leave_overlay): Only set lma_region from the
3536         default for the first section of a group of overlay sections.
3538 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
3540         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3541         * Makefile.in: Regenerate.
3542         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3543         Check for null tool_dir.
3545 2001-01-16  Jim Wilson  <wilson@redhat.com>
3547         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3548         and IA_64.unwind.info.
3550 2001-01-16  H.J. Lu  <hjl@gnu.org>
3552         * ldlang.c (lang_check): Merge the private data only if the
3553         input file has contents.
3555 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
3557         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3559         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3560         enabling search for libmilli.  On a relocatable link, make .text
3561         sections unique.
3562         (LDEMUL_AFTER_PARSE): Define.
3563         (hppaelf_finish): Correct spelling of relocatable in comments.
3565         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3566         rummage through the script for sections on the unique list.
3567         Correct length of strncmp for ".note".
3568         (gld${EMULATION_NAME}_check_needed): Rearrange function.
3570         * ldlang.c (unique_section_list): New var.
3571         (unique_section_p): New function.
3572         (walk_wild_section): Don't match sections on unique_section_list.
3573         (lang_add_unique): New function.
3574         Correct spelling of relocatable in comments.
3576         * ldlang.h (struct unique_sections): Declare.
3577         (unique_section_list): Declare.
3578         (unique_section_p): Declare.
3579         (lang_add_unique): Declare.
3581         * lexsup.c (ld_options): Allow --unique to take an optional arg.
3582         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3584         * ld.texinfo (--unique): Update.
3586 2001-01-13  Nick Clifton  <nickc@redhat.com>
3588         * lexsup.c (parse_args): Remove spurious white space.
3590 2001-01-12  Nick Clifton  <nickc@redhat.com>
3592         * lexsup.c (parse_args): Update copyright date.
3594 2001-01-12  Philip Blundell  <pb@futuretv.com>
3596         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3598 2001-01-10  Kazu Hirata  <kazu@hxi.com>
3600         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
3601         * scripttempl/h8300h.sc: Fix formatting.
3602         * scripttempl/h8300s.sc: Likewise.
3603         * scripttempl/h8500.sc: Likewise.
3604         * scripttempl/h8500b.sc: Likewise.
3605         * scripttempl/h8500c.sc: Likewise.
3606         * scripttempl/h8500m.sc: Likewise.
3607         * scripttempl/h8500s.sc: Likewise.
3609 2000-01-07  David O'Brien  <obrien@BSDi.com>
3611         * emultempl/elf32.em: Only perform Linux ld hints processing when
3612         targeting Linux.
3614 2001-01-07  Philip Blundell  <philb@gnu.org>
3616         * ld.texinfo (Bug Reporting): Update email address for reports.
3618 2000-12-31  Nick Clifton  <nickc@redhat.com>
3620         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3621         options by checking for a return value of '?' not -1.
3623 2000-12-28  Nick Clifton  <nickc@redhat.com>
3625         * lexsup.c (struct ld_option): Add new enum value:
3626         EXACTLY_TWO_DASHES.
3627         (ld_options[]): Change -omagic, -output and -oformat options
3628         to be EXACTLY_TWO_DASHES.
3629         (OUTPUT_COUNT): Use ARRAY_SIZE.
3630         (parse_args): Change parameter 'argc' to unsigned.
3631         Place EXACTLY_TWO_DASHES options into new really_longopts
3632         array.
3633         If getopt_long_only fails, try calling getopt_long using the
3634         really_longopts array.
3635         (help): Print a double dash for both EXACTLY_TWO_DASHES and
3636         TWO_DASHES options.
3638         * ldlex.h: Fix prototype of parse_args.
3640         * ld.texinfo: Document that long options starting with 'o'
3641         must be preceeded by two dashes.  Change example of a single
3642         dashed long option from -oformat to -trace-symbol.
3644 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3646         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3647         (longopts[]): New --no-default-excludes option.
3648         (gld_${EMULATION_NAME}_list_options): Document.
3649         (gld_${EMULATION_NAME}_parse_args): Handle.
3651 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3653         * ldlang.c (new_stat): Revert the last beautification with "innocent"
3654         whitespace, it breaks the K&R C preprocessor.
3656 2000-12-11  DJ Delorie  <dj@redhat.com>
3658         * ld.texinfo: Add notes about --whole-archive and gcc.
3660 2000-11-18  Fred Fish  <fnf@be.com>
3662         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3663         (ld_options): Entry for --allow-shlib-undefined.
3664         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3665         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3666         to false.
3667         * ld.texinfo: Document new command line switch.
3669 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
3671         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3672         .fixup is actually read/write.
3673         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3674         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3675         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3677 2000-12-11  Jan Hubicka  <jh@suse.cz>
3679         * NEWS: Add note about x86_64 architecture.
3681 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
3683         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3684         Set DWARF2 sections to a VMA of zero.
3686 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
3688         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3689         New targets.
3690         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3691         (sparc*-*-rtems*): Switched from a.out to ELF.
3693 2000-11-30  Jan Hubicka  <jh@suse.cz>
3695         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3696         (eelf_x86_64.c): New.
3697         * Makefile.in: Regenerate.
3698         * configure.tgt: Add support for x86_64-*-linux-gnu*.
3699         * emulparams/elf_x86_64.sh: New.
3701 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
3703         * emulparams/crislinux.sh (ENTRY): Change back to _start.
3704         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3706         * scripttempl/crisaout.sc: Change all RELOCATING not related to
3707         merging non-a.out sections into CONSTRUCTING.
3709 2000-11-28  Nick Clifton  <nickc@redhat.com>
3711         * ld.1 (COPYING): Mention that the GNU Free Documentation
3712         License is present in the sources, but not the output, and
3713         also available from the GNU website.
3714         (GNU Free Documentation License): Comment out this section.
3716 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
3718         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3719         does not use them.
3721 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
3723         * ld.1: Remove old date so it does not give the impression the manpage
3724         is way out of date.
3726 2000-11-24  Nick Clifton  <nickc@redhat.com>
3728         * configure.tgt (xscale-coff): Add target.
3729         (xscale-elf): Add target.
3731 2000-11-24  Fred Fish  <fnf@be.com>
3733         * ldmain.c (main): Remove redundant init of config.make_executable
3734         to true.
3736 2000-11-15  Richard Henderson  <rth@redhat.com>
3738         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3740 2000-11-14  Kazu Hirata  <kazu@hxi.com>
3742         * scripttempl/h8300.sc: Fix formatting.
3743         * scripttempl/h8300h.sc: Likewise.
3744         * scripttempl/h8300s.sc: Likewise.
3746 2000-11-14  Denis Chertykov  <denisc@overta.ru>
3748         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3750 2000-11-09  Philip Blundell  <pb@futuretv.com>
3752         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3753         around orphan sections whose names can be represented in C.
3755 2000-11-07  Jim Wilson  <wilson@redhat.com>
3757         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3758         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
3760 2000-11-06  Nick Clifton  <nickc@redhat.com>
3762         * ld.texinfo: Add GNU Free Documentation License.
3763         * ldint.texinfo: Add GNU Free Documentation License.
3764         * ld.1: Add GNU Free Documentation License.
3766 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
3768         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3769         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3771         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3772         Move 2000-11-02 Makefile.in changes to this file.
3773         * Makefile.in: Regenerate.
3775 2000-11-03  Nick Clifton  <nickc@redhat.com>
3777         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3778         constructors and destructors.
3779         * scripttempl/h8300h.sc: Ditto.
3780         * scripttempl/h8300s.sc: Ditto.
3781         * scripttempl/h8500.sc: Ditto.
3782         * scripttempl/h8500b.sc: Ditto.
3783         * scripttempl/h8500c.sc: Ditto.
3784         * scripttempl/h8500m.sc: Ditto.
3785         * scripttempl/h8500s.sc: Ditto.
3786         * scripttempl/v850.sc: Ditto.
3787         * scripttempl/w65.sc: Ditto.
3788         * scripttempl/z8000.sc: Ditto.
3790 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
3792         * Makefile.in (e_i386_chaos.c): New rule.
3793         (ALL_EMULATIONS): Added e_i386_chaos.o.
3794         * emulparams/elf_i386_chaos.sh: New file.
3795         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3797 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
3799         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3800         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3801         Fix sed invocation, so that it coped with '/' in Solaris 64bit
3802         library path suffix.
3803         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3805 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
3807         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3808         for consecutive sections.
3810 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
3812         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3813         options.
3814         * ld.texinfo: Added notes about this new option.
3816 2000-10-16  Nick Clifton  <nickc@redhat.com>
3818         * emultempl/pe.em (_after_open): Add tests of return values from
3819         bfd functions.  Emit appropriate error messages if necessary.
3821 2000-10-13  Nick Clifton  <nickc@redhat.com>
3823         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3824         local variables - they are not used, but leave in the call to
3825         bfd_canonicalize_symtab.
3826         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3827         pe_dll_search_prefix.
3829 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
3831         * emultempl/pe.em (pe_dll_search_prefix): New variable,
3832         (longopts): New --dll-search-prefix option.
3833         (gld_${EMULATION_NAME}_list_options): Document.
3834         (gld_${EMULATION_NAME}_parse_args): Handle.
3835         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3836         dynamically, search for a dll named '<prefix><basename>.dll'
3837         in preference to 'lib<basename>.dll' if --dll-search-prefix
3838         is specified.
3840 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3842         * ldlang.c (section_already_linked): Set kept_section instead of
3843         sec->comdat->sec.
3845 2000-10-10  Kazu Hirata  <kazu@hxi.com>
3847         * deffile.h: Fix formatting.
3848         * lexsup.c: Likewise.
3849         * mri.c: Likewise.
3851 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3853         * pe-dll.c (make_one): Do not generate code thunk for DATA
3854         exports.
3855         (process_def_file): deduce DATA flag for auto-export sumbols.
3857 2000-10-09  Kazu Hirata  <kazu@hxi.com>
3859         * ld.h: Fix formatting.
3860         * ldcref.c: Likewise.
3861         * ldctor.h: Likewise.
3862         * ldemul.c: Likewise.
3863         * ldemul.h: Likewise.
3864         * ldexp.c: Likewise.
3865         * ldexp.h: Likewise.
3866         * ldfile.c: Likewise.
3867         * ldfile.h: Likewise.
3868         * ldlang.c: Likewise.
3869         * ldlang.h: Likewise.
3870         * ldmain.c: Likewise.
3871         * pe-dll.c: Likewise.
3873         * pe-dll.c: Revert some formatting fixes.
3875 2000-10-08  Kazu Hirata  <kazu@hxi.com>
3877         * pe-dll.c: Fix formatting.
3879 2000-10-05  Kazu Hirata  <kazu@hxi.com>
3881         * ldlang.c: Fix formatting.
3883 2000-10-03  DJ Delorie  <dj@redhat.com>
3885         * pe-dll.c (fill_edata): initialize entire block
3886         (make_one): fill in correct section.
3888 2000-10-03  Kazu Hirata  <kazu@hxi.com>
3890         * ldexp.c: Fix formatting.
3892 2000-10-02  DJ Delorie  <dj@redhat.com>
3894         * emultempl/pe.em (gld_*_after_open): detect case where there two
3895         import libraries for same dll; rename one to ensure proper link
3896         order.
3898         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3899         typo
3900         (generate_edata): fix typo
3902 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
3904         * scripttempl/crisaout.sc (ENTRY): Now __start.
3905         (.text): Add default setting for __start.
3906         Remove CONSTRUCTORS handling.
3907         (/DISCARD/): Add .gnu.warning.*.
3908         * emulparams/crislinux.sh (ENTRY): Now __start.
3909         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3910         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3911         (ENTRY): Now __start.
3912         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3913         (EXECUTABLE_SYMBOLS): Add default setting for __start.
3915 2000-09-29  Kazu Hirata  <kazu@hxi.com>
3917         * deffile.h: Fix formatting.
3918         * ld.h: Likewise.
3919         * ldcref.c: Likewise.
3920         * ldctor.c: Likewise.
3921         * ldctor.h: Likewise.
3922         * ldemul.c: Likewise.
3923         * ldemul.h: Likewise.
3924         * ldexp.c: Likewise.
3925         * ldexp.h: Likewise.
3926         * ldfile.c: Likewise.
3927         * ldfile.h: Likewise.
3928         * ldlang.c: Likewise.
3929         * ldlang.h: Likewise.
3930         * lexsup.c: Likewise.
3931         * mri.c: Likewise.
3932         * pe-dll.c: Likewise.
3934 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3936         * pe-dll.c (process_def_file): Uninitialized data wasn't
3937         exported with --export-all-symbols switch.
3939 2000-09-28  DJ Delorie  <dj@redhat.com>
3941         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3942         noname work properly.
3944 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
3946         * ld.texinfo (HPPA ELF32): New section.
3948         * emultempl/hppaelf.em (group_size): New.
3949         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3950         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3951         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
3952         options to prevent abbreviations matching.
3953         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
3954         (PARSE_AND_LIST_ARGS_CASES): Handle it.
3956 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3958         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3959         on the m68*-*-elf target.  Make it support COFF input objects.
3961 2000-09-21  Kazu Hirata  <kazu@hxi.com>
3963         * ldmain.c: Fix formatting.
3964         * ldmisc.c: Likewise.
3965         * ldver.c: Likewise.
3966         * ldwrite.c: Likewise.
3968 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3970         * ldwrite.c (clone_section): Silence gcc warnings.
3972 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3974         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3975         out of memory failure.
3977         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3978         (clone_section): Handle out of memory failures.  Rename var to
3979         avoid c++ reserved word.
3981 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3983         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3984         stub_name param to stub_sec_name.
3985         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3987 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3989         * emultempl/m68kelf.em: New file.
3990         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3991         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3992         * Makefile.in: Regenerate.
3994 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3996         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3997         only as needed.
3999 2000-09-13  Nick Clifton  <nickc@redhat.com>
4001         * ldmain.c (multiple_definition): Disable relaxation if
4002         multiple symbol definitions are encountered - otherwise the
4003         linker could abort with an assertion failure.
4005 2000-09-10  Nick Clifton  <nickc@redhat.com>
4007         * mri.c: Fix formatting.
4009 2000-09-07  H.J. Lu  <hjl@gnu.org>
4011         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4012         * configure: Rebuild.
4014 2000-09-07  H.J. Lu  <hjl@gnu.org>
4016         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4017         * Makefile.in: Rebuild.
4019 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
4021         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4022         broken list handling.  Create __start_SECNAME and __stop_SECNAME
4023         when no place-holder.  Add some comments.  Test both SEC_CODE and
4024         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4025         Handle case where no output section statement created.
4027 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
4029         * configure.tgt (sh-*-linux*): Added.
4030         * Makefile.am: Added eshelf_linux and eshlelf_linux.
4031         * Makefile.in: Rebuilt.
4032         * emulparams/shelf_linux.sh: New file.
4033         * emulparams/shlelf_linux.sh: New file.
4035 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
4037         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4038         try shuffling sections when the orphan happens to be the place
4039         holder.  Keep count of unique section names generated so we speed
4040         the search for a new name.
4042 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
4044         * configure: Rebuilt with new libtool.m4.
4046 2000-09-05  Nick Clifton  <nickc@redhat.com>
4048         * Makefile.in: Regenerate.
4049         * aclocal.m4: Regenerate.
4050         * configure: Regenerate.
4051         * config.in: Regenerate.
4052         * po/ld.pot: Regenerate.
4054         * ldint.texinfo: Remove CVS revision marker - it foils local
4055         comparisons.
4057         * emultempl/ticoff.em: Remove extraneous comma.
4059 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
4061         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4062         to stub section flags.
4063         (hppa_for_each_input_file_wrapper): New.
4064         (hppa_lang_for_each_input_file): New.
4065         (lang_for_each_input_file): Define to call above.
4066         (multi_subspace): New.
4067         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4068         (PARSE_AND_LIST_PROLOGUE): Define.
4069         (PARSE_AND_LIST_LONGOPTS): Define.
4070         (PARSE_AND_LIST_OPTIONS): Define.
4071         (PARSE_AND_LIST_ARGS_CASES): Define.
4072         (hppaelf_finish): Call elf32_hppa_set_gp.
4073         (hppaelf_set_output_arch): Remove.
4074         (LDEMUL_SET_OUTPUT_ARCH): Remove.
4076         * emulparams/hppalinux.sh (ELFSIZE): Define.
4077         (MACHINE): Define.
4078         (OTHER_READONLY_SECTIONS): Define.
4079         (DATA_PLT): Define.
4080         (GENERATE_SHLIB_SCRIPT): Define.
4082         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
4083         to const throughout.  Change `void *' to `PTR' throughout.
4084         (lang_memory_default): Function is local to file, add `static'.
4086         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4087         (ehppalinux.c): Likewise.
4088         (earmelf.c): Likewise.
4089         (earmelf_linux.c): Likewise.
4090         (earmelf_linux26.c): Likewise.
4091         * Makefile.in: Regenerate.
4093         * ld.h (ld_config_type): Add unique_orphan_sections.
4094         * lexsup.c (OPTION_UNIQUE): Define.
4095         (ld_options): Add "--unique".
4096         (parse_args): Handle it.
4097         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4098         search for an existing output section if unique_orphan_sections is
4099         set.  Make use of bfd_get_unique_section_name rather than
4100         duplicating code here.
4101         * ld.texinfo: Describe --unique.
4103         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4104         optional arg to split-by-file.
4105         (parse_args): Handle them.
4106         * ld.texinfo: Update description of these options.
4107         * ldwrite.c (clone_section): Pass in the section name.  Replace
4108         local code with bfd_get_unique_section_name.
4109         (split_sections): Tidy code and comments.  Use a list traversal
4110         more appropriate to the list construction.  Handle cooked section
4111         sizes.  Split when split_by_reloc reached rather than exceeded.
4112         Track section size and split when split_by_file reached.  Fix
4113         link_order_tail (even though it's not used).
4114         (ldwrite): Modify condition for calling split_sections to suit
4115         changed split_by_reloc and split_by_file.
4116         * ldmain.c (main): Init config.split_by_reloc and
4117         config.split_by_file to -1.
4118         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4119         Change split_by_file to bfd_size_type.
4121 2000-09-02  Nick Clifton  <nickc@redhat.com>
4123         * configure.in: Increase version number to 2.10.91.
4124         * NEWS: Mention new ability to support removal of duplicate DWARF2
4125         debug information.
4126         * configure: Regenerate.
4127         * aclocal.m4: Regenerate.
4128         * config.in: Regenerate.
4130 2000-09-02  Daniel Berlin <dberlin@redhat.com>
4132         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4133         sections.
4134         * scripttempl/elf32avr.sc: Ditto.
4135         * scripttempl/elfd10v.sc: Ditto.
4136         * scripttempl/elfd30v.sc: Ditto.
4137         * scripttempl/elfi370.sc: Ditto.
4138         * scripttempl/elfm68hc11.sc: Ditto.
4139         * scripttempl/elfm68hc12.sc: Ditto.
4140         * scripttempl/elfi386beos.sc: Ditto.
4141         * scripttempl/v850.sc: Ditto.
4143 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
4145         * acinclude.m4: Include libtool and gettext macros from the
4146         top level.
4147         * aclocal.m4, configure: Rebuilt.
4149 2000-08-25  Nick Clifton  <nickc@redhat.com>
4151         * ldlang.c (open_output): When choosing the target for a
4152         particular endianness, do nothing if the target is not
4153         supported.
4155 2000-08-25  H.J. Lu  <hjl@gnu.org>
4157         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4158         check -rpath nor LD_RUN_PATH for cross link.
4159         * ld.texinfo: Document the change.
4161 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
4163         * NEWS: Mention support for CRIS.
4165 2000-08-23  H.J. Lu  <hjl@gnu.org>
4167         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4168         the current runpath list from bfd_elf_get_runpath_list ()
4169         before search.
4171 2000-08-22  H.J. Lu  <hjl@gnu.org>
4173         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4174         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4175         LD_LIBRARY_PATH for native linker. Display the needed DSO if
4176         trace_file_tries is non-zero.
4177         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4178         if trace_file_tries is non-zero.
4180         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4181         * NEWS: Mention it.
4183 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
4185         * NEWS: Mention i860 support.
4187 2000-08-14  Andreas Schwab  <schwab@suse.de>
4189         * scripttempl/elf.sc: Fix last change to use correct comment
4190         syntax.
4192 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
4194         * scripttempl/elf.sc: Add a comment giving the correspondence
4195         between sections, per-datum sections, and linkonce sections.  Make
4196         the comment true even for .bss, .sdata, .sdata2, .sbss, and
4197         .sbss2.
4199 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
4201         * emulparams/elf32_i860.sh: New file.
4202         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4203         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4204         (eelf32_i860.c): New rule.
4205         * Makefile.in: Regenerate.
4207 2000-08-10  Nick Clifton  <nickc@cygnus.com>
4209         * emulparams/mipspe.sh (ENTRY): Add definition.
4211 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
4213         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4214         in error message.
4216 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4218         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4219         the final size of .bss section.
4220         * scripttempl/elfm68hc12.sc: Likewise.
4222 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
4224         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4225         gld${EMULATION_NAME}_parse_args for consistency.  Combine
4226         lastoptind and prevoptind vars, and keep track of last optind.
4227         (gld_${EMULATION_NAME}_list_options): Rename to
4228         gld${EMULATION_NAME}_list_options.
4230 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
4232         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4233         (i586-sco-sysv5uw7.1.0).
4235 2000-07-27  H.J. Lu  <hjl@gnu.org>
4237         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4238         (PARSE_AND_LIST_PROLOGUE): New.
4239         (PARSE_AND_LIST_LONGOPTS): Likewise.
4240         (PARSE_AND_LIST_OPTIONS): Likewise.
4241         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4242         (PARSE_AND_LIST_EPILOGUE): Likewise.
4244 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
4246         * emultempl/armelf.em: Elide functions common to elf32.em,
4247         ie. most of the file.
4248         (arm_elf_after_open): New.  Do arm specific things then call
4249         gld${EMULATION_NAME}_after_open.
4250         (arm_elf_before_allocation): New.  Call
4251         gld${EMULATION_NAME}_before_allocation then do arm specifics.
4252         (PARSE_AND_LIST_PROLOGUE): Define.
4253         (PARSE_AND_LIST_SHORTOPTS): Define.
4254         (PARSE_AND_LIST_LONGOPTS): Define.
4255         (PARSE_AND_LIST_OPTIONS): Define.
4256         (PARSE_AND_LIST_ARGS_CASES): Define.
4257         (LDEMUL_AFTER_OPEN): Define.
4258         (LDEMUL_BEFORE_ALLOCATION): Define.
4259         (LDEMUL_BEFORE_PARSE): Define.
4260         (LDEMUL_FINISH): Define.
4262         * emultempl/hppaelf.em: Similarly zap most of this file.
4263         (hppaelf_add_stub_section): Prototype.
4264         (hppaelf_layaout_sections_again): Prototype.
4265         (hook_in_stub): Prototype.
4266         (LDEMUL_SET_OUTPUT_ARCH): Define.
4267         (LDEMUL_FINISH): Define.
4268         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4270         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4271         (EXTRA_EM_FILE): New.
4272         * emulparams/armelf_linux.sh: Likewise.
4273         * emulparams/armelf_linux26.sh: Likewise.
4274         * emulparams/hppalinux.sh: Likewise.
4275         * emulparams/hppaelf.sh: Likewise.
4276         (NOP): Define.
4278         * emultempl/elf32.em: Fix formatting.
4279         (EXTRA_EM_FILE): Source it.
4280         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4281         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4282         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4283         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4284         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4285         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4286         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4287         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4288         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
4289         allow functions in this file to be overridden.
4290         (PARSE_AND_LIST_SHORTOPTS): Handle it.
4292         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4294         * emultempl/elf32.em: Reorganize file.
4296 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
4298         * emulparams/elf64alpha.sh: Implement "-taso" emulation
4299         specific option to fit 64-bit executable in the lower
4300         31-bit address range.  This is done by changing start
4301         address of .interp (the very first section of executable)
4302         and then setting EF_ALPHA_32BIT elf header flag.
4304 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4306         * emultempl/m68kcoff.em: New file.
4307         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4308         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4309         generic.em.
4310         * Makefile.in: Regenerate.
4312 2000-07-20  H.J. Lu  <hjl@gnu.org>
4314         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4315         and "disable-new-dtags" to stop getopt from treating -d/-e as
4316         abbreviations for these options.
4318 2000-07-20  H.J. Lu  <hjl@gnu.org>
4320         * ld.texinfo: Add documentation for --disable-new-dtags and
4321         --enable-new-dtags.
4323         * ldmain.c (main): Initialize link_info.new_dtags to false.
4325         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4326         --disable-new-dtags and --enable-new-dtags.
4327         (gld_${EMULATION_NAME}_list_options): Likewise.
4329 2000-07-05  Kenneth Block  <krblock@computer.org>
4331         * lexsup.c: Add optional style to demangle switch
4332         * ld.texinfo: Document optional style to demangle switch.
4334 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
4336         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4337         ecrislinux.o.
4338         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4339         Regenerate dependencies.
4340         * Makefile.in: Rebuild.
4341         * configure.tgt (cris-*-*): New target.
4342         * emulparams/crisaout.sh, emulparams/criself.sh,
4343         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4344         * po/POTFILES.in, po/ld.pot: Regenerate.
4346 2000-07-20  H.J. Lu  <hjl@gnu.org>
4348         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4349         Print out ignored -z options.
4351 2000-07-19  H.J. Lu  <hjl@gnu.org>
4353         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4354         (PARSE_AND_LIST_PROLOGUE): New.
4355         (PARSE_AND_LIST_LONGOPTS): Likewise.
4356         (PARSE_AND_LIST_OPTIONS): Likewise.
4357         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4359         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4361         * lexsup.c (ld_options): Comment out 'z'.
4362         (parse_args): Likewise.
4364         * emultempl/elf32.em: Include "elf/common.h".
4365         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4366         options.
4367         (gld_${EMULATION_NAME}_list_options): Likewise.
4369         * ld.texinfo: Add documentation for the recognized -z options.
4371 2000-07-19  H.J. Lu  <hjl@gnu.org>
4373         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4374         bfd_elf_set_dt_needed_soname ().
4376 2000-07-18  DJ Delorie  <dj@cygnus.com>
4378         * pe-dll.c (pe_dll_id_target): check object target name also
4380 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
4382         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4383         ${INIT_END} if relocating.
4384         (.fini): Likewise ${FINI_START} and ${FINI_END}.
4386 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
4388         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4389         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4390         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4391         errors introduced by the old dynamic lib search order.
4393 2000-07-17  DJ Delorie  <dj@cygnus.com>
4395         * pe-dll.c (process_def_file): auto-export data items also
4396         (pe_process_import_defs): also see if _imp_ form needed
4398 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
4400         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4401         for dll import libraries
4403 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
4405         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4406         gcc 2.95.2 and later.
4408 2000-07-11  Kazu Hirata  <kazu@hxi.com>
4410         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4411         message.
4413 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4415         * ldemul.h (struct lang_input_statement_struct): Remove forward
4416         declaration.
4417         (struct search_dirs): Likewise.
4418         * ldfile.h (struct lang_input_statement_struct): Likewise.
4419         Protect file from multiple inclusion.
4420         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4421         declaration from macro to file scope.
4423         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4424         * ldgram.y: Likewise here.
4425         * ldlang.c: And here.
4426         * ldmain.c: And here.
4427         * mpw-elfmips.c: And here.
4428         * mpw-eppcmac.c: And here.
4429         * emultempl/aix.em: And here.
4430         * emultempl/armcoff.em: And here.
4431         * emultempl/armelf.em: And here.
4432         * emultempl/armelf_oabi.em: And here.
4433         * emultempl/beos.em: And here.
4434         * emultempl/elf32.em: And here.
4435         * emultempl/hppaelf.em: And here.
4436         * emultempl/linux.em: And here.
4437         * emultempl/lnk960.em: And here.
4438         * emultempl/pe.em: And here.
4439         * emultempl/sunos.em: And here.
4440         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4441         * mpw-idtmips.c: Ditto.
4442         * emultempl/generic.em: Ditto.
4443         * emultempl/gld960.em: Ditto.
4444         * emultempl/gld960c.em: Ditto.
4445         * emultempl/mipsecoff.em: Ditto.
4446         * emultempl/ticoff.em: Ditto.
4447         * emultempl/vanilla.em: Ditto.
4449         * pe-dll.c: Include ldfile.h
4450         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4452         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4453         arguments to bfd_elf32_size_dynamic_sections call.
4454         (gldelf32ebmip_place_orphan): Add missing arguments to
4455         lang_leave_output_section_statement call.
4457 2000-07-10  H.J. Lu  <hjl@gnu.org>
4459         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4460         DLL_SUPPORT.
4461         (strhash): Likewise.
4462         (compute_dll_image_base): Likewise.
4463         (pe_undef_found_sym): Likewise.
4464         (pe_undef_cdecl_match): Likewise.
4465         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4466         argument "arch" with ATTRIBUTE_UNUSED.
4468 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4470         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4472         From  Ryan Bradetich  <rbradetich@uswest.net>
4473         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4475 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
4477         Changes to create multiple linker stubs, positioned immediately
4478         before the section where they are required.
4479         * emultempl/hppaelf.em: Include elf32-hppa.h.
4480         (stub_sec, file_chain): Delete.
4481         (hppaelf_create_output_section_statements): Don't make a stub
4482         section here.
4483         (hook_stub_info): New struct.
4484         (hook_in_stub): New function.
4485         (hppaelf_add_stub_section): New function.
4486         (hppaelf_finish): Do nothing for relocateable links.  Modify the
4487         call to elf32_hppa_size_stubs.  Move code for updating section
4488         layout from here...
4489         (hppaelf_layaout_sections_again): ..to here, a new function.
4491         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4492         broken list handling.  Pass in a pointer to the list.
4493         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4494         for above changes.
4495         (hppaelf_before_parse): Prototype.
4496         (hppaelf_set_output_arch): Prototype.
4497         (hppaelf_create_output_section_statements): Prototype.
4498         (hppaelf_delete_padding_statements): Prototype.
4499         (hppaelf_finish): Prototype.
4501         Merge from elf32.em
4502         * emultempl/hppaelf.em: Include ctype.h.
4503         (struct orphan_save): New.
4504         (gld${EMULATION_NAME}_place_orphan): New.
4505         (output_rel_find): New.
4506         (hppaelf_get_script): Update from elf32.em.
4507         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4508         Change emulation_name field to "${EMULATION_NAME}".  Add
4509         gld${EMULATION_NAME}_place_orphan.
4511         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
4512         ehppalinux.o, sort it.  Regenerate dependencies.
4513         (ehppalinux.c): Depend on hppaelf.em
4514         * Makefile.in: Regenerate.
4516         * configure.tgt: targ_emul=hppalinux for hppa*linux
4518         * emulparams/hppalinux.sh: New.
4519         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4521 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
4523         * lexsup.c (parse_args): Copy section name.
4525 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
4527         * emultempl/pe.em: institute the following search order for
4528         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4529         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
4530         static lib (libfoo.a) if none of the above are found.
4532 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
4534         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4535         (longopts): New --{enable,disable}-auto-image-base options.
4536         (gld_${EMULATION_NAME}_list_options): Document.
4537         (gld_${EMULATION_NAME}_parse): Handle.
4538         (strhash): New static function.
4539         (compute_dll_image_base): New static function.
4540         (gld_${EMULATION_NAME}_set_symbols): Use.
4542 2000-07-05  DJ Delorie  <dj@redhat.com>
4544         * MAINTAINERS: new
4546 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
4548         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4549         * emulparams/elf32btsmip.sh: New file.
4550         * Makefile.am: Add traditional mips target.
4551         * Makefile.in: Rebuild.
4553 2000-07-01  H.J. Lu  <hjl@gnu.org>
4555         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4556         automake to use YLWRAP.
4557         * Makefile.in: Rebuild.
4559 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
4561         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
4562         (CLEANFILES): Add DEPA.
4563         * Makefile.in: Regenerate.
4565 2000-06-30  Timothy Wall  <twall@ppc>
4567         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4568         the page in the upper octet of the address.
4570 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
4572         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4574 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
4576         * NEWS: arm-elf does --gc-sections too.
4578 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
4580         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4581         find one.
4582         * Makefile.in: Regenerate.
4584 2000-06-21  H.J. Lu  <hjl@gnu.org>
4586         * Makefile.am: Rebuild dependency.
4587         * Makefile.in: Rebuild.
4589 2000-06-20  H.J. Lu  <hjl@gnu.org>
4591         * Makefile.am: Rebuild dependency.
4592         * Makefile.in: Rebuild.
4594 2000-06-20  Timothy Wall  <twall@cygnus.com>
4596         * scripttempl/tic54xcoff.sc: New.
4597         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4598         * gen-doc.texi: Add flag for TI COFF.
4599         * ld.texinfo: Add documentation for TI COFF handling switches.
4600         * emultempl/ticoff.em: New. TI COFF handling.
4601         * configure.tgt: Add tic54x target.
4602         * Makefile.am: Add tic54x target.
4603         * Makefile.in: Ditto.
4605 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
4607         * ldmain.c (set_scripts_dir): Correct pointer comparison when
4608         checking for backslashes.
4610 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
4612         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4614 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
4616         * NEWS: Update list of targets supporting --gc-sections.
4618         * scripttempl/elf.sc: KEEP .eh_frame contents.
4619         * scripttempl/elfd30v.sc: Same here.
4621 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4623         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4624         and m68hc11 (elf).
4625         * Makefile.in: Rebuild.
4626         * configure.tgt: Recognize m68hc12 and m68hc11.
4627         * scripttempl/elfm68hc12.sc: New file.
4628         * emulparams/m68hc12elfb: New emulation.
4629         * emulparams/m68hc12elf: New emulation.
4630         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
4631         (includes a memory.x script to define the ROM and RAM banks).
4632         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4633         New configuration files for support of Motorola 68hc11
4635 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
4637         * ldmain.c (main): Only change SEC_READONLY for final link.
4639 2000-06-13  H.J. Lu  <hjl@gnu.org>
4641         * configure: Regenerate.
4643 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4645         * configure.in (VERSION): Update to show this is the CVS mainline.
4647 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4649         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4650         input objects to be ECOFF.
4651         (check_sections): einfo takes %B, not %P, to print a BFD name.
4653 2000-06-05  Michael Matz <matz@ifh.de>
4655         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4656         version scripts.
4658         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4660 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
4662         * emulparams/avr1200.sh (STACK): Define as 0.
4663         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4664         * emulparams/avr4433.sh (STACK): Likewise.
4665         * emulparams/avr44x4.sh (STACK): Likewise.
4666         * emulparams/avr85xx.sh (STACK): Likewise.
4667         * emulparams/avrmega103.sh (STACK): Likewise.
4668         * emulparams/avrmega161.sh (STACK): Likewise.
4669         * emulparams/avrmega603.sh (STACK): Likewise.
4670         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4671         (__stack): Define from ${STACK} for main().
4673 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4675         * Makefile.am: Update dependencies with "make dep-am"
4676         * Makefile.in: Regenerate.
4678 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
4680         * ldmain.c: Include filenames.h.
4681         (set_scripts_dir): Support backslashes in program name.
4683 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
4685         * ldmain.c (main): When deciding if ".text" section should be
4686         read-only, don't forget to reset SEC_READONLY because it
4687         could be already set.
4689 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
4691         * ld.1: Add documentation for new command line option:
4692                 --section-start <sectionname>=<sectionorg>
4693         This is a generic version of -Ttext etc. which accepts
4694         any section name as a parameter instead of just text/data/
4695         bss.
4696         * ld.texinfo: More docs.
4697         * NEWS: More docs.
4698         * lexsup.c: (parse_args): Recognize new command line option.
4699         (ld_options): Add new option.
4701 2000-05-18  H.J. Lu  <hjl@gnu.org>
4703         * lexsup.c (parse_args): `i' == `r', not `q'.
4705 2000-05-18  Jeffrey A Law  (law@cygnus.com)
4707         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4709 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
4710               Rick Gorton          <gorton@scrugs.lkg.dec.com>
4712         Add support for '-q' == '--emit-relocs' switch.
4713         * ldmain.c (main): Default to false.
4714         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4715         * NEWS: Describe the emitrelocations switch.
4716         * ld.texinfo: Describe the emitrelocations switch.
4718 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
4720         * emultempl/pe.em (_open_dynamic_archive): New function: Search
4721         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4722         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4723         link options.
4725 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
4727         * lexsup.c (parse_args): Update the year in the copyright notice.
4729 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
4731         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4732         Replace defines with those from intl/libgettext.h to quieten gcc
4733         warnings.
4735 2000-05-10  H.J. Lu  <hjl@gnu.org>
4737         * ldlang.c (open_input_bfds): Don't load the same file within
4738         a group again if the whole archive has been loaded already.
4740 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
4742         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4743         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4744         strtoul.
4746 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4748         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4750         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4751         host "ia64-*-linux-gnu*".
4753 2000-04-29  Andreas Jaeger  <aj@suse.de>
4755         * ld.h: Correctly check GCC version.
4757 2000-04-25  Jeffrey A Law  (law@cygnus.com)
4759         * Makefile.am: Add PA64 support.  Add missing dependencies for
4760         PA32 elf support.
4761         * Makefile.in: Rebuilt.
4762         * configure.tgt: Add PA64 support (currently disabled).
4764 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
4766         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4767         (output_rel_find): New function.
4768         (hold_section, hold_use): Delete.
4769         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4770         hold_interp): Make local to place_orphan.
4771         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4772         rather than place_section to find possible previous use of orphan.
4773         Similarly find the place-holder output sections.  Use returned
4774         value from lang_enter_output_section_statement rather than calling
4775         lang_output_section_statement_lookup.
4776         * emultempl/armelf.em: Same here.
4777         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4779         * ldlang.c (lang_enter_output_section_statement): Return output
4780         section statement.
4781         * ldlang.h (lang_enter_output_section_statement): Change
4782         declaration too.
4784         * ldlang.h (lang_output_section_statement): Export it.
4785         * ldlang.c (lang_output_section_statement): Ditto.
4787 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4789         * ld.texinfo (Output Section Data): Add note that section data
4790         commands cannot appear outside of section directives.
4792 2000-04-2  Matthew Green  <mrg@cygnus.com>
4794         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4796 2000-04-21  Richard Henderson  <rth@cygnus.com>
4797             David Mosberger  <davidm@hpl.hp.com>
4799         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4800         (eelf64_ia64.c): New rule.
4801         * Makefile.in: Rebuild.
4802         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4803         * emulparams/elf64_ia64.sh: New file.
4805 2000-04-21  Richard Henderson  <rth@cygnus.com>
4807         * scripttempl/elfd30v.sc: Place .gcc_except_table.
4809 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
4811         * dep-in.sed: Match space at start of file name, not at end.
4813 2000-04-18  H.J. Lu  <hjl@gnu.org>
4815         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4816         lang_leave_output_section_statement () after calling
4817         lang_enter_output_section_statement ().
4818         * emultempl/armelf.em: Likewise.
4820 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
4822         * emultempl/elf32.em (struct orphan_save): Add section field.
4823         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4824         better order, and place first orphan section as we did before the
4825         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
4826         Don't call make_bfd_section here, let wild_doit do the job for us.
4827         Don't build a statement list when we'll only throw it away.
4828         * emultempl/armelf.em: Ditto.
4829         * emultempl/pe.em: Similarly.
4831 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4833         * scripttempl/elfppc.sc: Remove.
4834         * emulparams/elf32ppc.sh: Use elf.sc.
4835         * emulparams/elf32lppc.sh: Use elf.sc.
4836         * emulparams/elf32ppclinux.sh: Use elf.sc.
4837         * emulparams/elf32ppcsim.sh: New file.
4838         * emulparams/elf32lppcsim.sh: New file.
4839         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
4840         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4841         * Makefile.in: Regenerate.
4842         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4844 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
4846         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4847         ~SEC_ALLOC sections too.  Init start address of debug sections.
4848         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4849         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4850         Also set all relocateable section start addresses.
4852 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
4854         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4855         Add new BSS_PLT variable for when .plt need not be contained in
4856         the file.  Move _etext so that it is also after .fini, and provide
4857         both etext and _etext with a leading underscore.  Mark the start
4858         and end of .sbss.
4860 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
4862         * emultempl/elf32.em (struct orphan_save): New.
4863         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4864         hold_interp): Make them struct orphan_save.
4865         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4866         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4867         the end of the relevant section list.  Also add associated section
4868         statements to the end of any previous orphan statements.
4869         * emultempl/armelf.em: Similarly.
4870         * emultempl/pe.em: Similarly.
4872 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
4874         * ld.texinfo (Simple Example): Remove extraneous paragraph.
4876 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
4878         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4879         --enable-build-warnings option.
4880         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4881         * Makefile.in, configure: Re-generate.
4883 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
4885         * po/ld.pot: Regenerate.
4887         * lexsup.c (help): Restore translated part of bug string.
4889         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4890         (DEP): Quote when passing vars to sub-make.  Add warning message
4891         to end.
4892         (DEP1): Rewrite for "gcc -MM".
4893         (CLEANFILES): Add DEP2.
4894         Update dependencies.
4895         * Makefile.in: Regenerate.
4897 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
4899         * ld.h: #include "bin-bugs.h"
4900         * lexsup.c (help): Use REPORT_BUGS_TO.
4902 2000-03-27  Denis Chertykov  <denisc@overta.ru>
4904         * configure.tgt (avr-*-*): New target support.
4905         * Makefile.am: Likewise.
4906         * scripttempl/elf32avr.sc: New script file.
4907         * emulparams/avr1200.sh: New file.
4908         * emulparams/avr23xx.sh: New file.
4909         * emulparams/avr4433.sh New file.
4910         * emulparams/avr44x4.sh New file.
4911         * emulparams/avr85xx.sh New file.
4912         * emulparams/avrmega103.sh New file.
4913         * emulparams/avrmega161.sh New file.
4914         * emulparams/avrmega603.sh New file.
4915         * Makefile.in: Regenerate.
4917 2000-03-09  Andreas Jaeger  <aj@suse.de>
4919         * Makefile.am (check-DEJAGNU): Also unset LANG.
4920         * Makefile.in: Rebuild.
4922 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
4924         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4925         archive.
4927 2000-03-02  H.J. Lu  <hjl@gnu.org>
4929         * emulparams/elf32mcore.sh: Include "getopt.h".
4931 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
4933         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4935 2000-03-01  H.J. Lu  <hjl@gnu.org>
4937         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4938         * emulparams/shpe.sh: Likewise.
4940 2000-03-01  Nick Clifton  <nickc@cygnus.com>
4942         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4943         to unused parameters.
4945         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4946         functions only used by DLL code.
4947         (_place_orphan): Initialise 'dollar'.
4949 2000-03-01  H.J. Lu  <hjl@gnu.org>
4951         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4952         indicate if the undefined symbol is a fatal error or not.
4953         Don't delete the output file if "fatal" is false.
4955 2000-02-29  H.J. Lu  <hjl@gnu.org>
4957         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4958         Set LC_COLLATE and LC_ALL to null and export them. It is for
4959         sort which expects the C locale.
4960         Add $(LIBS) to all $(HOSTING_LIBS).
4961         * Makefile.in: Rebuild.
4963 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
4965         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4966         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4967         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4968         (ld_emulation_xfer_struct): Add missing NULL initialiser for
4969         find_potential_libraries.
4971 2000-02-28  Jim Blandy  <jimb@redhat.com>
4973         * ldgram.y (exclude_name_list): Don't require a comma to separate
4974         list entries; the lexer considers commas to be valid part of a
4975         filename, so in something like `foo, bar' the comma is considered
4976         part of the first filename, `foo,'.
4977         * ld.texinfo: Update section on EXCLUDE_FILE lists.
4979 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
4981         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4982         host "i[3456]86-*-freebsdelf*".
4984 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
4986         * scripttempl/i386go32.sc: Move misplaced semicolons.
4988 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
4990         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4991         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4992         (eelf64hppa.c, ehppaelf.c): Remove targets.
4993         * Makefile.in: Rebuild.
4995 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4997         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4998         GNU/Linux/sparc, but keep the default as 32.
5000         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
5001         it default if sparcv9 or sparc64.
5003 2000-02-24  Nick Clifton  <nickc@cygnus.com>
5005         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5006         * Makefile.in: Regenerate.
5007         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5009         * ldemul.h (ld_emulation_xfer_struct): Add new field:
5010         find_potential_libraries.
5011         * ldemul.c (ldemul_find_potential_libraries): New function.
5013         * ldfile.c (ldfile_open_file_search): Allow function to be
5014         exported.
5015         (ldfile_open_file): Call ldemul_find_potential_libraries.
5016         * ldfile.h: Add prototype for ldfile_open_file_search.
5018         * pe-dll.c: Add support for ARM, MIPS and SH targets.
5020         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
5021         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
5023         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5024         (gld_X_find_potential_libraries): New function.  Search for
5025         libraries called "*.lib".
5027         * scripttempl/pe.sc: Add .pdata section.
5029 2000-02-23  Richard Henderson  <rth@cygnus.com>
5031         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5032         Add and use memory regions.
5034 2000-02-23  Linas Vepstas (linas@linas.org)
5036         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5038         * Makefile.am: Add support for Linux/IBM 370.
5039         * configure.tgt: Likewise.
5041         * Makefile.in: Regenerate.
5043 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
5045         * ldlang.c (print_input_section, print_data_statement,
5046         print_reloc_statement, print_padding_statement, insert_pad,
5047         size_input_section, lang_check_section_addresses,
5048         lang_size_sections, lang_do_assignments, lang_set_startof,
5049         lang_one_common): Change `opb' to unsigned.
5050         (lang_do_assignments): Also change `size' to unsigned.
5052 2000-02-16  Richard Henderson  <rth@cygnus.com>
5054         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5056 2000-02-16  Timothy Wall  <twall@cygnus.com>
5058         * mri.c (mri_draw_tree): Add default LMA region argument to call
5059         to lang_leave_output_section_statement.
5060         * ldlang.h: Update prototypes with LMA region arguments.
5061         * ldlang.c (lang_size_sections): Encapsulate region bounds
5062         checking in os_check_region call.
5063         (os_check_region): New function.
5064         (lang_output_section_statement_lookup): Initialize lma_region.
5065         (lang_leave_output_section_statement): Add LMA region argument.
5066         (lang_leave_overlay): Ditto.
5067         * ldgram.y: Handle LMA region syntax.
5068         * ld.texinfo (Output Section Description): Describe LMA region usage.
5069         * emultempl/armelf.em (gld$place_orphan): Add default value for
5070         lma region in call to lang_leave_output_section_statement.
5071         * emultempl/elf32.em (gld$place_orphan): Add default value for
5072         lma region in call to lang_leave_output_section_statement.
5073         * emultempl/pe.em (gld$place_orphan): Add default value for
5074         lma region in call to lang_leave_output_section_statement.
5077 2000-02-04  Timothy Wall  <twall@redhat.com>
5079         * ldlang.c (lang_check_section_addresses): Use bytes instead of
5080         octets when calculating section end addresses.
5082 2000-02-04  Timothy Wall  <twall@redhat.com>
5084         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5086 2000-02-03  Timothy Wall <twall@redhat.com>
5088         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5089         octet count.
5090         * ldlang.c (print_input_section, print_data_statement,
5091         print_reloc_statement, print_padding_statement): Print target
5092         address values and section sizes as bytes, not octets.
5093         (insert_pad) Calculate padding size in octets, and adjust "dot"
5094         by bytes.
5095         (size_input_section) Always adjust "dot" by bytes, not octets.
5096         (lang_check_section_addresses, lang_do_assignments) Adjust
5097         "dot" by bytes, not octets.  Use the larger of the directive size
5098         or octets_per_byte for the number of octets actually allocated in
5099         the output section.
5100         (lang_set_startof) Make sure STARTOF returns a target address.
5101         (lang_one_common) Record size changes in octets.
5102         (lang_abs_symbol_at_end_of) Section end symbol's value is
5103         recorded in target bytes.
5104         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5105         to be clear about behavior when an octet is smaller than one byte.
5107 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
5109         * ldcref.c (output_cref): Don't pass message strings to printf
5110         as format arg.
5111         Update copyright.
5113         * ldmisc.c (vfinfo): Same here.
5114         Update copyright.
5116 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
5118         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5119         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5120         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5121         Add missing NULL initialisers, and comments.
5123 2000-01-21  Nick Clifton  <nickc@cygnus.com>
5125         * ldlang.c (lang_size_sections): Fix typo in comment.
5127 2000-01-18  H.J. Lu  <hjl@gnu.org>
5129         * ldlang.c (lang_size_sections): Also update the current
5130         address of a region if the SEC_NEVER_LOAD bit is not set.
5132 2000-01-10  Philip Blundell  <pb@futuretv.com>
5134         * configure.tgt (arm*-*-conix*): New target.
5136 2000-01-07  Nick Clifton  <nickc@cygnus.com>
5138         * ld.texinfo (Options): Remind users to preceed linker command
5139         line switches with -Wl, (or whatever is appropriate) if it is
5140         being invoked by a comnpiler driver program.
5141         Fix description of the behaviour of the -n command line switch.
5143 2000-01-05  Catherine Moore  <clm@cygnus.com>
5145         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
5146         (name_list): New.
5147         * ld.texinfo (EXCLUDE_FILE): Update documentation.
5148         * ldgram.y (wildcard_spec): Support a list of excluded_files.
5149         (exclude_name_list): New.
5150         ldlang.c (walk_wild_section): Support list of excluded files.
5151         (print_wild_statement): Likewise.
5152         (lang_add_wild): Likewise.
5153         * ldlang.h (lang_wild_statement_type): Likewise.
5154         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5156 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
5158         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5159         (process_def_file): Use.
5160         (pe_dll_compat_implib): New variable.
5161         (make_one): Use.
5163         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5164         pe_dll_compat_implib.
5166         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5167         compat-implib options.
5168         (gld_${EMULATION_NAME}_list_options): List new options.
5169         (gld_${EMULATION_NAME}_parse_args): Handle.
5171         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5172         dll.
5174         * deffilep.y (opt_name): Allow "." in name.
5176 For older changes see ChangeLog-9899
5178 Local Variables:
5179 mode: change-log
5180 left-margin: 8
5181 fill-column: 74
5182 version-control: never
5183 End: