Adds support for fastcall symbols as used on Microsoft Windows platforms
[binutils.git] / ld / ChangeLog
blob3470f70d217cc03625935c8f55628de99bcb1580
1 2002-11-07  Danny Smith  <dannysmith@users.sourceforge.net>
3         * deffilep.y (def_lex): Handle '@' as first character of an ID.
4         * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
5         (make_one): Don't prefix decorated fastcall symbols with '_'.
6         (pe_process_import_defs): Likewise.
7         * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
8         symbols to cdecl names or vise-versa.
10 2002-10-13  Eric Kohl  <ekohl@rz-online.de> 
12         * pe-dll.c (process_def_file): Handle fastcall symbols when
13         generating undecorated aliases.  Don't prefix decorated fastcall
14         symbols with '_'.
15         (fill_exported_offsets): Don't prefix decorated fastcall symbols
16         with '_'.
18 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
20         * emultempl/aix.em: Use include <> for generated headers.
21         * emultempl/beos.em: Likewise.
22         * emultempl/elf32.em: Likewise.
23         * emultempl/pe.em: Likewise.
24         * ldctor.c: Likewise.
25         * ldexp.c: Likewise.
26         * ldfile.c: Likewise.
27         * ldlang.c: Likewise.
28         * ldlex.c: Likewise.
29         * ldlex.l: Likewise.
30         * ldmain.c: Likewise.
31         * ldmisc.c: Likewise.
32         * ldwrite.c: Likewise.
33         * lexsup.c: Likewise.
34         * mri.c: Likewise.
35         * pe-dll.c: Likewise.
37 2002-10-23  Jakub Jelinek  <jakub@redhat.com>
39         * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
40         sections into .rel{,a}.dyn.
42 2002-10-23  Nick Clifton  <nickc@redhat.com>
44         * lexsup.c (OPTION_NO_OMAGIC): Define.
45         (ld_options): Add "no-omagic" option.
46         (parse_args): Parse --no-omagic.
47         * ld.texinfo: Document --no-omagic.
48         * NEWS: Mention new option.
50 2002-10-21  Danny Smith  <dannysmith@users.sourceforeg.net>
52         * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
53         __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
55 2002-10-22  Alexandre Oliva  <aoliva@redhat.com>
57         * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
58         emulation name.  Set LIB_PATH only for native tools, and
59         search the ABI-specific versions of NATIVE_LIB_DIRS before the
60         .../lib variants, not instead of them.  Mostly copied from...
61         * emulparams/elf32ppc.sh: ... here.  Fixed typo.
62         * emulparams/elf64bmip-defs.sh: Backed out.
63         * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
64         * emulparams/elf64btsmip.sh: Likewise.
65         (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
66         TEXT_DYNAMIC): Removed.
68 2002-10-17  Alexandre Oliva  <aoliva@redhat.com>
70         * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
71         (GENERATE_SHLIB_SCRIPT): Set to yes.
72         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
73         * emulparams/elf32bmipn32.sh: here.
74         (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
75         * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
76         * emulparams/elf64bmip-defs.sh: New file.  Extend
77         elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
78         * emulparams/elf64bmip.sh: Bring in definitions from
79         elf64bmip-defs.sh.
80         (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
81         settings.
82         (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
83         * emulparams/elf64btsmip.sh: Bring in definitions from
84         elf64bmip-defs.sh.
85         (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
86         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
88 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
90         * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
91         (s390-*-linux*): Add elf64_s390 emulation if want64.
92         * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
93         genscript.sh changes.
94         * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
95         * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
97 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
99         * ldlang.c (load_symbols): Revert last change.
101 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
103         * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
104         just_syms_flag.
105         (lang_reasonable_defaults): Don't compare against false.
106         (size_input_section): Likewise.
107         (lang_size_sections_1): Likewise.
108         (lang_do_assignments): Likewise.
109         (lang_add_output): Likewise.
111         * Makefile.am: Run "make dep-am".
112         * Makefile.in: Regenerate.
113         * ldver.c: #include "bfdver.h".
115 2002-10-13  Stephane Carrez  <stcarrez@nerim.fr>
117         * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
118         .finiN section.
119         * scripttempl/elfm68hc12.sc: Likewise.
121 2002-10-11  Alan Modra  <amodra@bigpond.net.au>
123         * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
125         * ldgram.y (memory_spec): Provide empty action.
126         (section <NAME>): Likewise.
128 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
130         * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
131         they have OUTPUT_FORMAT not matching actual output format.
132         * ldlang.c (lang_get_output_target): New function.
133         (open_output): Use it.
134         * ldlang.h (lang_get_output_target): New prototype.
136 2002-10-10  Alan Modra  <amodra@bigpond.net.au>
138         * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
139         when orphan is .rel, .rela when orphan is .rela.
140         (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
141         first.  Remove outsecname var.
143 2002-10-09  Richard Shann <richard.shann@superh.com>
144             Stephen Clarke <stephen.clarke@superh.com>
146         * Makefile.am: Add eshelf32_linux.o and
147         eshlelf32_linux.o, new emulations for sh64 Linux.
148         * Makefile.in: Regenerate.
149         * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
150         * emulparams/shelf32_linux.sh: New file.
151         * emulparams/shlelf32_linux.sh: New file.
153 2002-10-08  H.J. Lu <hjl@gnu.org>
155         * ldlang.c (lang_file_exist): Removed.
156         (new_afile): Revert the last change.
157         * ldlang.h (lang_file_exist): Removed.
158         * lexsup.c (parse_args): Revert the last change.
160 2002-10-07  Ralf Habacker  <Ralf.Habacker@freenet.de>
162         * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
163         auto-import symbols.
164         (make_one): Create _nm_<symbol> for data only.
166 2002-10-05  Elias Athanasopoulos  <eathan@otenet.gr>
168         * ldlang.c (lang_file_exist): New function.
169         (new_afile): Abort if the filename to be added matches the linker
170         output filename.
171         * ldlang.h: Add prototype for lang_file_exist.
172         * lexsup.c (parse_args): Abort if the output filename matches
173         one of the input filenames.
175 2002-10-02  Alan Modra  <amodra@bigpond.net.au>
177         * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
179 2002-09-30  Alan Modra  <amodra@bigpond.net.au>
181         * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
182         * scripttempl/elfm68hc11.sc: Likewise.
183         * scripttempl/elfm68hc12.sc: Likewise.
185         * emultempl/elf32.em (output_rel_find): Always place orphan loadable
186         reloc sections just before .rel.plt/.rela.plt.
187         (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
188         Only put loadable reloc sections in hold_rel.
190 2002-09-29  H.J. Lu <hjl@gnu.org>
192         * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
194 2002-09-25  Daniel Jacobowitz  <drow@mvista.com>
196         From "Anita Kulkarni" <AnitaK@kpit.com>
197         * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
198         sections.
200 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
202         * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
203         TARGET_PAGE_SIZE.
204         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
205         SEGMENT_SIZE alignment.
206         * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
207         (SEGMENT_SIZE): Define.
209         * ldexp.c (fold_unary): New.  Split out from exp_fold_tree.
210         (fold_binary): Correct abs - non-abs case.
211         (fold_trinary): New.  Split out from exp_fold_tree.
213 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
215         * emulparams/elf64ppc.sh (DATA_ADDR): Define.
216         * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
217         for start of .data, instead align up to 256M boundary.
218         * scripttempl/aix.sc: Likewise.
220 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
222         * scripttempl/i386go32.sc: Handle bss unique sections.
224 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
226         * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
228 2002-09-17  Stan Cox  <scox@redhat.com>
230         * emulparams/elf32bmipn32-defs.sh: New file.
231         * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
232         * emulparams/elf32btsmipn32.sh: Likewise.
233         * emulparams/elf64bmip.sh: Likewise.
234         * emulparams/elf64btsmip.sh: Likewise.
236 2002-09-16  Bruno Haible  <bruno@clisp.org>
238         * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
239         elf32-i386-freebsd.
240         * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
241         elf64-alpha-freebsd.
243 2002-09-11  Nick Clifton  <nickc@redhat.com>
245         * NEWS: New TI port supports both C4x and C3x series of DSPs.
247         * po/tr.po: Updated Turkish translation.
249 2002-09-06  Jeffrey A Law  (law@redhat.com)
251         * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
253 2002-09-02  Nick Clifton  <nickc@redhat.com>
255         * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
256         __ep.
257         * emulparams/v850.sh (TEMPLATE_NAME): Define.
259 2002-08-30  Nick Clifton  <nickc@redhat.com>
261         * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
262         used.  Change INSN to start at 0x01000000 and extend for
263         256K (ignoring holes).  Start the STACK on a word aligned
264         boundary.
265         (.rodata): Start it at the READONLY_START_ADDR.
267 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
269         * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
271 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
273         * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
274         added makefile targets for this file.
275         * Makefile.in: Regenerate.
276         * configure.tgt: Added tic4x-coff and c4x-coff emulations.
277         * NEWS: Mention new port.
279 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
281         * emulparams/tic3xcoff.sh: New file.
282         * emulparams/tic4xcoff.sh: New file.
283         * scripttempl/tic3xcoff.sc: New file.
284         * scripttempl/tic4xcoff.sc: New file.
286 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
288         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
289         strtoul and strtoull with bfd_scan_vma.
290         (gld${EMULATION_NAME}_read_file): Likewise.
292 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
294         * configure.tgt: Remove h8[35]00-*-hms*.  Add h8500-*-rtems*.
296 2002-08-27  Egor Duda  <deo@logos-m.ru>
298         * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
299         Add symbols for application to access them.
301 2002-08-27  Nick Clifton  <nickc@redhat.com>
303         * emultempl/armelf.em:  Revert this patch, it is not needed.
305         2002-08-22  Adam Nemet  <anemet@lnxw.com>
307 2002-08-20 Dan Kegel <dank@kegel.com>
309         * configure.in: added --with-lib-path argument to ld's configure
310         to set LIB_PATH.
311         * ld/NEWS: Document new switch.
312         * ld/README: Mention new switch.
313         * configure: Regenerate.
314         * Makefile.in: Regenerate.
316         Based on this patch:
317         2001-04-25  Christopher Faylor <cgf@cygnus.com>
319         * Makefile.in (LIB_PATH): Make configurable.
320         (GENSCRIPTS): Set LIB_PATH in environment.
321         * configure.in: Substitute LIB_PATH.
323 2002-08-22  Adam Nemet  <anemet@lnxw.com>
325         * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
326         (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
327         depending on the type of the function.
328         (arm_elf_convert_thumb_symbol_to_address): New function.
330 2002-08-22  Graeme Peterson  <gp@qnx.com>
332         * Makefile.am: Add esh{l}elf_nto.o files.
333         * Makefile.in: Regenerate.
334         * configure.tgt: Add support for sh-**-nto* targets.
335         * emulparams/shelf_nto.sh: New file.
336         * emulparams/shlelf_nto.sh: New file.
338 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
340         * ldlang.c (offsetof): Define if not defined.
342 2002-08-14  H.J. Lu <hjl@gnu.org>
344         * configure.tgt: Always enable 64bit emulations for 32bit
345         Linux/mips.
347 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
349         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
350         (MAXPAGESIZE): Set to 1.
352         * ld.h (ALIGN_N): Delete.
353         * ldexp.h (align_n): Declare.
354         * ldexp.c (align_n): New function.
355         (fold_binary): Use align_n instead of ALIGN_N.
356         (exp_fold_tree): Likewise.
357         * ldlang.c (lang_size_sections_1): Likewise.
358         (lang_one_common): Likewise.
359         * ld.texinfo (ALIGN): Remove power of 2 restriction.
361 2002-07-31  Graeme Peterson  <gp@qnx.com>
363         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
364         * Makefile.am: Add eelf32{l}ppcnto.o files.
365         * Makefile.in: Regenerate.
366         * emulparams/elf32lppcnto.sh: New file.
367         * emulparams/elf32ppcnto.sh: New file.
369 2002-08-07  H.J. Lu <hjl@gnu.org>
371         * ld.texinfo: Document --no-undefined-version.
373         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
374         `script.' fields to 0.
376         * ldmain.c (main): Initialize the allow_undefined_version to
377         true.
379         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
380         (ld_options): Add --no-undefined-version.
381         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
383 2002-08-07  Nick Clifton  <nickc@redhat.com>
385         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
386         an interworking bfd if there are input bfds. (107501)
388 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
390         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
391         2002-05-10 change.
393 2002-08-01  Nick Clifton  <nickc@redhat.com>
395         * emulparams/armelf.sh: Revert previous delta.
396         * scripttempl/elf.sc: Revert previous delta.
398 2002-07-31  H.J. Lu <hjl@gnu.org>
400         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
401         --enable-64-bit-bfd.
403 2002-07-31  H.J. Lu <hjl@gnu.org>
405         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
406         64bit BFD is selected.
408 2002-07-31  H.J. Lu <hjl@gnu.org>
410         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
411         if 64bit BFD is selected.
413 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
415         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
416         link_info.common_skip_ar_aymbols.
417         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
419         * ldmain.c (main): Initialize new field
420         link_info.common_skip_ar_aymbols.
422 2002-07-31  Adam Nemet  <anemet@lnxw.com>
424         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
425         to .plt.thumb.
426         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
427         used.
429 2002-07-31  Nick Clifton  <nickc@redhat.com>
431         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
432         of the PDP-11 and 2.11BSD a.out support.
434 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
436         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
437         for n32 ABI support.
438         * Makefile.in: Regenerate.
439         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
440         n32 ABI emulations for these 64 bit targets.
441         * emulparams/elf32bmipn32.sh: Expand comment.
442         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
443         n32 ABI.
444         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
446 2002-07-30  Graeme Peterson  <gp@qnx.com>
448         * configure.tgt: Add support for arm-*-nto target.
449         * Makefile.am: Add earmnto.o file.
450         * Makefile.in: Regenerate.
451         * NEWS: Mention port of ARM support to QNX.
452         * emulparams/armnto.sh: New file.
454 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
456         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
457         for relocatable link.
458         (lang_size_sections_1): Don't make .tbss zero size for relocatable
459         link.
461 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
463         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
464         (STACK_ADDR): New.
466 2002-07-25  Nick Clifton  <nickc@redhat.com>
468         * po/sv.po: Updated Swedish translation.
469         * po/es.po: Updated Spanish translation.
470         * po/fr.po: Updated French translation.
472 2002-07-24  Nick Clifton  <nickc@redhat.com>
474         * po/sv.po: Updated Swedish translation.
475         * po/es.po: Updated Spanish translation.
477 2002-07-23  Nick Clifton  <nickc@redhat.com>
479         * po/fr.po: Updated French translation.
481 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
483         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
484         bomb on /DISCARD/ input section.
485         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
486         * emultempl/mmo.em (mmo_place_orphan): Likewise.
488 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
490         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
491         output section.
493 2002-07-16  Denis Chertykov  <denisc@overta.ru>
494             Nick Clifton  <nickc@redhat.com>
495             Frank Ch. Eigler  <fche@redhat.com>
496             John Healy  <jhealy@redhat.com>
498         * configure.tgt: Add support for ip2k-elf.
499         * Makefile.am: Add support for ip2k-elf.
500         * Makefile.in: Regenerate.
501         * emulparams/elf32ip2k.sh: New file.
502         * scripttempl/ip2k.sc: New file
503         * NEWS: Mention support for new port.
505 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
507         * NEWS: Add 'Changes in 2.13'.
509 2002-07-14  H.J. Lu <hjl@gnu.org>
511         * ld.texinfo: Document a .symver takes precedence over a
512         version script.
514 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
516         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
517         (COMMONPAGESIZE): Define.
519 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
521         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
523 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
525         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
526         powerpc-*-openbsd* and sparc64-*-openbsd*.
527         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
528         * Makefile.in: Regenerate.
529         * emulparams/hppaobsd.sh: New file.
531 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
533         * ldlang.c (print_wild_statement): Fix output formatting.
535 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
537         * ldlang.c: (strip_excluded_output_sections): New function.
538         (lang_process): Call it.
539         (lang_size_sections_1): Revert 2002-06-10 change.
541 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
543         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
544         Run "make dep-am".
545         * Makefile.in: Regenerate.
547 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
549         * ldfile.c (ldfile_try_open_bfd): Formatting.
551         * ldmisc.c (demangle): Move so that it doesn't intrude between
552         vfinfo comment and body.  Add comment.
554 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
556         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
558 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
560         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
561         * ldlang.c (entry_sym): Likewise.
562         (ldlang_undef_chain_list_type): Likewise.
563         (lang_finish): Adjust references to entry_symbol.
564         (lang_add_entry): Likewise.
565         (lang_gc_sections): Use link_info.gc_sym_list.
566         (lang_process): Set link_info.gc_sym_list.
567         * ldlex.l: Include bfdlink.h.
568         * ldmain.c (main): Init link_info.gc_sym_list.
569         * emultempl/aix.em: Adjust references to entry_symbol.
570         * emultempl/armcoff.em: Likewise.
571         * emultempl/armelf.em: Likewise.
572         * emultempl/pe.em: Likewise.
573         * emultempl/ppc64elf.em (ppc_after_open): New function.
574         (LDEMUL_AFTER_OPEN): Define.
575         * emulparams/elf64ppc.sh: KEEP .opd sections.
577 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
579         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
580         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
581         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
582         (EEPROM_START_ADDR): Define.
583         (EEPROM_MEMORY): Define.
584         * emulparams/m68hc12elf.sh: Likewise.
585         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
586         section to put soft registers in .page0.
587         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
589 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
591         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
592         section.  Add ${RELOCATING-0}.
594 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
596         * emulparams/shelf.sh (STACK_ADDR): Don't define.
597         (OTHER_SECTIONS): Define.
598         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
599         (OTHER_SECTIONS): Undef.
601 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
603         * ldmisc.c (demangle): Restore dots stripped from sym name.
605 2002-06-25  H.J. Lu <hjl@gnu.org>
607         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
608         * Makefile.in: Regenerated.
610 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
612         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
613         the size of attached object files, to allow make the object files
614         available via FTP or HTTP and to mention that the mail will be
615         sent to a mailing list.
617 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
619         * ld/configure.host (romp): Drop support.
621 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
623         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
624         section flags for SEC_DATA, rather than for SEC_CODE being unset.
626 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
628         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
629         format specifier used to print BFD name.
631 2002-06-18  Dave Brolley  <brolley@redhat.com>
633         From Catherine Moore, Michael Meissner, Jim Blandy:
634         * emulparams/elf32frv.sh: New file.
635         * configure.tgt: Support frv-*-*.
636         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
637         (eelf32frv.c): New target.
639 2002-06-17  Tom Rix  <trix@redhat.com>
641         * emultempl/elf32.em: gld*_get_script:  Check for
642         GENERATE_COMBRELOC_SCRIPT.
643         * scripttempl/elfd10v.sc : Fix STACK and INSN.
644         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
646 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
648         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
650 2002-06-12  H.J. Lu <hjl@gnu.org>
652         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
653         false if xvec doesn't match.
655 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
657         * ldlang.c (lang_size_sections_1): Skip removed output sections.
659 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
661         * ldexp.c: Replace CONST with const.
662         * ldfile.c: Likewise.
663         * ldfile.h: Likewise.
664         * ldlex.l: Likewise.
665         * mri.c: Likewise.
666         * pe-dll.h: Likewise.
668 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
670         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
672 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
674         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
675         to -1 == implicit enable.
676         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
677         initialize link_info.pei386_auto_import to -1 == implicit
678         enable.
679         (gld_${EMULATION_NAME}_parse_args): When processing
680         --enable-auto-import and --disable-auto-import options, use
681         '1' and '0' instead of 'true' and 'false'.
682         (pe_find_data_imports): Only issue message about auto-import
683         when the feature is implicitly enabled.  Downgrade message to
684         informational instead of warning.
686 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
688         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
690 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
692         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
693         HOSTING_CRT0 and HOSTING_LIBS.
695 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
697         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
699 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
701         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
702         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
704 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
706         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
707         SEC_EXCLUDE sections when doing a relocatable link.
709 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
711         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
712         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
713         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
714         (eshlelf64_nbsd.c): New rules.
715         * Makefile.in: Regenerate.
716         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
717         (sh64-*-netbsd*): New targets.
718         * emulparams/shelf32_nbsd.sh: New file.
719         * emulparams/shelf64_nbsd.sh: New file.
720         * emulparams/shlelf32_nbsd.sh: New file.
721         * emulparams/shlelf64_nbsd.sh: New file.
723 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
725         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
727 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
729         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
730         C++ constructors/destructors, loosely based on the m68hc11 port.
732 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
734         * Makefile.in: Regenerate.
735         * aclocal.m4: Regenerate.
736         * config.in: Regenerate.
737         * configure: Regenerate.
739 2002-05-31  Graeme Peterson  <gp@qnx.com>
741         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
742         (ei386nto.c): Add rule.
743         * Makefile.in: Regenerate.
744         * configure.tgt: Add i[3456]86-*-nto-qnx*.
745         * emulparams/i386nto.sh: New file.
747 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
749         * NEWS: Add entry for VAX ELF support.
751 2002-05-29  Matt Thomas  <matt@3am-software.com>
752             Jason Thorpe  <thorpej@wasabisystems.com>
754         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
755         (eelf32vax.c)
756         (evaxnbsd.c): New rules.
757         * Makefile.in: Regenerate.
758         * configure.tgt (vax-*-netbsdelf*)
759         (vax-*-netbsdaout*)
760         (vax-*-netbsd*): New targets.
761         * emulparams/elf32vax.sh: New file.
762         * emulparams/vaxnbsd.sh: New file.
764 2002-05-29  Adam Nemet  <anemet@lnxw.com>
766         * emultempl/armelf.em (arm_elf_after_open): Don't determine
767         bfd_for_interwork, instead add glue sections to each input bfd.
768         (bfd_for_interwork): New global.
769         (arm_elf_set_bfd_for_interworking): New function.
770         (arm_elf_before_allocation): Use it.
772 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
774         * Makefile.am: Add DLX make target.
775         * configure.tgt: Add DLX configuration.
776         * Makefile.in: Regenerate.
777         * emulparams/elf32_dlx.sh: New file
778         * scripttempl/dlx.sc: New file
780 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
782         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
783         * Makefile.in: Regenerate.
784         * emulparams/elf_chaos.sh: Use elf_chaos script.
785         * scripttempl/elf_chaos.sc: New file.
787 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
789         * ldlang.c (lang_size_sections_1): Move check for conflicting load
790         addresses and regions from here...
791         (lang_get_regions): ...to this new function.
792         (lang_leave_output_section_statement): Use lang_get_regions.
793         (lang_leave_overlay): Likewise.
794         * mri.c (mri_draw_tree): Pass null as last argument to
795         lang_leave_output_section_statement.
796         * emultempl/elf32.em (gld*_place_orphan): Likewise.
797         * emultempl/mmo.em (mmo_place_orphan): Likewise.
798         * emultempl/pe.em (gld*_place_orphan): Likewise.
800 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
802         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
804 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
806         * ldemul.c: Fix formatting.
807         * ldfile.c: Likewise.
808         * pe-dll.c: Likewise.
809         * pe-dll.h: Likewise.
811 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
813         * ldlang.c (lang_process): Formatting, grammar.
815         * ldlex.l: Use #include "" instead of <> for local header files.
817 2002-05-24  TAMURA Kent <kent@netbsd.org>
819         * configure.tgt: Add a target for i386-netbsdpe.
821 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
823         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
824         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
825         output section if necessary.  Handle .tbss.
826         (lang_size_sections): Clear _raw_size for .tbss section
827         (it allocates space in PT_TLS segment only).
828         * ldwrite.c (build_link_order): Build link order for .tbss too.
830 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
832         * configure.in: Correct spelling of AC_PREREQ.
834 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
836         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
837         default.
838         (autofilter_objlist): Add crtbegin.o, crtend.o.
840 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
842         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
843         (longopts): Add new option --exclude-libs.
844         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
845         (gld_${EMULATION_NAME}_parse_args): Use it.
846         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
847         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
848         from whole archives.
849         (pe_dll_add_excludes): Set excludes->type.
850         (auto_export): Add new variable libname and set to archive basename if
851         abfd.  Use it when filtering default and user-specified libarary
852         excludes.  Let string "ALL" mean all libs when filtering user-specified
853         libs.
854         * ld.texinfo: Document --exclude-libs.
856 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
858         * ldemul.c (ldemul_new_vers_pattern): New function.
859         * ldemul.h (ldemul_new_vers_pattern): Declare.
860         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
861         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
862         * emultempl/ppc64elf.em (dotsyms): New static var.
863         (gld${EMULATION_NAME}_new_vers_pattern): New function.
864         (LDEMUL_NEW_VERS_PATTERN): Define.
865         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
866         (PARSE_AND_LIST_LONGOPTS): Likewise.
867         (PARSE_AND_LIST_ARGS_CASES): Handle them.
868         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
869         initialiser.
870         * emultempl/armcoff.em: Likewise.
871         * emultempl/armelf_oabi.em: Likewise.
872         * emultempl/beos.em: Likewise.
873         * emultempl/elf32.em: Likewise.
874         * emultempl/generic.em: Likewise.
875         * emultempl/gld960.em: Likewise.
876         * emultempl/gld960c.em: Likewise.
877         * emultempl/linux.em: Likewise.
878         * emultempl/lnk960.em: Likewise.
879         * emultempl/m68kcoff.em: Likewise.
880         * emultempl/mipsecoff.em: Likewise.
881         * emultempl/pe.em: Likewise.
882         * emultempl/sunos.em: Likewise.
883         * emultempl/ticoff.em: Likewise.
884         * emultempl/vanilla.em: Likewise.
886 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
888         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
889         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
890         (LIB_SEARCH_DIRS): No need to use "tr".
891         (COMPILE_IN): Only set for native targets.
892         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
893         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
894         * configure.tgt (powerpc*): Set tdir_*.
895         (powerpcle*): Correct targ_extra_emuls.
896         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
897         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
899 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
901         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
902         calling lang_add_entry.
904 2002-05-21  H.J. Lu  (hjl@gnu.org)
906         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
907         "-z muldefs".
908         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
910         * ld.texinfo: Updated for --allow-multiple-definition and
911         "-z muldefs".
913         * ldmain.c (main): Initialize the allow_multiple_definition
914         field to false.
916         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
917         (ld_options): Add --allow-multiple-definition.
918         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
920 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
922         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
923         (earmelfb_nbsd.c): New rule.
924         * Makefile.in: Regenerate.
925         * configure.tgt (armeb-*-netbsdelf*): New target.
926         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
927         (arm-*-netbsd*): Likewise.
928         * emulparams/armelfb_nbsd.sh: New file.
930 2002-05-18  Tom Rix  <trix@redhat.com>
932         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
933         support.
935 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
937         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
938         * Makefile.in: Regenerate.
939         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
941 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
943         * emulparams/avr1.sh: New file.
944         * emulparams/avr2.sh: New file.
945         * emulparams/avr3.sh: New file.
946         * emulparams/avr4.sh: New file.
947         * emulparams/avr5.sh: New file.
948         * scripttempl/avr.sc: New file.
950 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
952         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
953         (lang_place_orphans): Abort if just_syms_flag.
955 2002-05-10  Tom Rix  <trix@redhat.com>
957         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
958         architecture and machine information in the output bfd.
959         (gld*_before_parse): Remove old arch and machine code.
960         (choose_target): Rename to gld*_choose_target.
961         (rtld): Change type to int.
962         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
963         objects in XCOFF archives.
964         * ldfile.h: Update copyright date.
966 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
968         * ldmain.c (main): Enable -z combreloc by default.
970 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
972         * Makefile.am: Honour DESTDIR.
973         * Makefile.in: Regenerate.
975 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
977         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
978         (lang_enter_overlay): Remove the last two parameters.
979         (lang_leave_overlay): Take them here instead.
980         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
981         (section): Pass LMA and crossref flag to lang_leave_overlay rather
982         than lang_enter_overlay.
983         * ldlang.c (lang_memory_region_lookup): Return null for null names.
984         (lang_output_section_statement_lookup): Initialize update_dot_tree.
985         (lang_size_sections_1): Evaluate it.
986         (lang_leave_output_section_statement): Rework LMA lookup.
987         (overlay_lma, overlay_nocrossrefs): Remove.
988         (lang_enter_overlay): Remove LMA and crossref arguments.
989         (lang_enter_overlay_section): Don't set the LMA here.
990         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
991         assignment to the last section's update_dot_tree.  Unconditionally
992         use the load and run-time regions specified in the OVERLAY statement.
993         Likewise the first section's LMA.  Only set the other sections' LMAs
994         when no load region is given.
996 2002-05-06  Nick Clifton <nickc@redhat.com>
998         * po/sv.po: New translation.
1000 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
1002         * emultempl/hppaelf.em (build_section_lists): New function.
1003         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1004         and build_section_lists.
1006 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
1008         * ld.h: Fix formatting.
1009         * ldexp.c: Likewise.
1010         * ldfile.c: Likewise.
1011         * ldlang.c: Likewise.
1012         * ldmain.c: Likewise.
1013         * lexsup.c: Likewise.
1014         * pe-dll.c: Likewise.
1016 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
1018         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1019         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
1020         (build_section_lists): Do output_section tests here.
1022 2002-04-30  Tom Rix  <trix@redhat.com>
1024         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1026 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
1028         Long branch stubs, multiple stub sections.
1029         * emultempl/ppc64elf.em: Include ldctor.h.
1030         (stub_file): New var.
1031         (group_size): New var.
1032         (ppc_create_output_section_statements): New function.
1033         (struct hook_stub_info): New.
1034         (hook_in_stub): New function.
1035         (ppc_add_stub_section): New function.
1036         (ppc_layout_sections_again): New function.
1037         (build_section_lists): New function.
1038         (gld${EMULATION_NAME}_finish): Rewrite.
1039         (real_func): New var.
1040         (ppc_for_each_input_file_wrapper): New function.
1041         (ppc_lang_for_each_input_file): New function.
1042         (lang_for_each_input_file): Define.
1043         (PARSE_AND_LIST_PROLOGUE): Define.
1044         (PARSE_AND_LIST_LONGOPTS): Define.
1045         (PARSE_AND_LIST_OPTIONS): Define.
1046         (PARSE_AND_LIST_ARGS_CASES): Define.
1047         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1049 2002-04-30  Tom Rix  <trix@redhat.com>
1051         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1052         -blibpath, -bnolibpath support.
1054 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
1056         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1057         (eelf32ppcwindiss.c): New target.
1058         * Makefile.in: Regenerated.
1059         * configure.tgt: Add support for powerpc-*-windiss.
1060         * emulparams/elf32ppcwindiss.sh: New file.
1062 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
1064         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1065         * ldexp.c (exp_print_token): Add "infix_p" argument.
1066         (exp_print_tree): Update accordingly.
1068 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
1070         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1071         * Makefile.in: Regenerate.
1072         * mpw-elfmips.c: Delete.
1073         * mpw-eppcmac.c: Delete.
1074         * mpw-esh.c: Delete.
1075         * mpw-idtmips.c: Delete.
1077 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
1079         * emulparams/shelf32.sh (MACHINE): Now sh5.
1081 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1083         * ldgram.y: Fix syntax warning.
1085 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
1087         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1088         to prevent "-n" from being taken as an abbreviation for
1089         "--no-pipeline-knowledge".
1091 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1093         * ldlang.c (lang_size_sections_1): Don't complain about
1094         SEC_NEVER_LOAD sections having no memory region specified.
1096         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1098 2002-04-07  matthew green  <mrg@redhat.com>
1100         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1102 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1104         * dep-in.sed: Cope with absolute paths.
1105         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1106         Run "make dep-am".
1107         * Makefile.in: Regenerate.
1109 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1111         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1113 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1115         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1116         is smaller than maximum, round dot up to common page boundary.
1118 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
1120         * configure.host: Set up for generic hosts first, then tweak as
1121         necessary in more specific targets.
1122         (HOSTING_LIBS): Include libgcc_eh.a if found.
1124 2002-03-23  Andreas Jaeger  <aj@suse.de>
1126         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1128 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
1130         * Makefile.am: Run "make dep-am".
1131         * Makefile.in: Regenerate.
1133 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
1135         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1137 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
1139         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1140         add the symbol to the linker hash table immediately.
1141         (lang_place_undefineds): Split symbol creation out..
1142         (insert_undefined): ..to here.
1144 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
1146         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1147         the contents of the buffer returned from basename function will are
1148         getting overwritten while still being used.
1150 2002-03-18  Jan Hubicka  <jh@suse.cz>
1151             Andreas Jaeger  <aj@suse.de>
1152             Andreas Schwab  <schwab@suse.de>
1154         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1155         * elf_x86_64.sh (ARCH): Set to i386:x86-64
1156         set libraries to default to lib64 paths.
1158 2002-03-18  Tom Rix  <trix@redhat.com>
1160         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1161         * configure.tgt : Same.
1162         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1163         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1164         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1165         emulation parameters for better -b32, -b64 support.
1166         * emulparms/aixrs6.sh : Same.
1167         * emulparms/ppcmacos.sh : Same.
1168         * emultempl/aix.em (choose_target) : Use new emulation parameters
1169         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1170         * Makefile.in : Regenerate.
1172 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
1174         * po/fr.po: Updated version.
1176 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
1178         * ldmain.c (main): Move .text readonly flag fudges from here..
1179         * ldlang.c (lang_process): ..to here.
1181 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
1183         * ldlang.c (lang_check): Remove the word size check added in last
1184         change.  Treat emitrelocations case as for relocatable links.
1186 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
1188         * po/fr.po: Updated version.
1190 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
1192         * ldlang.c (lang_check): Do relocatable link checks first, so that
1193         warn_mismatch can't override.  Check compatible and word size too.
1195 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
1197         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1199 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
1201         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1202         DATA_SEGMENT_ALIGN.
1204 2002-03-04  H.J. Lu <hjl@gnu.org>
1206         * scripttempl/elf.sc: Put .preinit_array, .init_array and
1207         .fini_array in the data segment.
1209 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
1211         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1213 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
1215         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1216         .init_array, and .fini_array.
1218 2002-02-20  Andreas Schwab  <schwab@suse.de>
1220         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1221         .IA64_unwind* in a relocatable link.
1223 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
1225         * NEWS: Mark 2.12 branch.
1227 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1229         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1230         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1232 2002-02-18  Tom Rix  <trix@redhat.com>
1234         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1235         (gld*_before_allocation): Same.
1236         (gld*_create_output_section_statements): Generate
1237         __rtinit if run time linking.  Add librtl.a to the link.
1238         (gld*_read_file): Clean.
1240 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1242         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1244 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
1246         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1247         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1248         and eelf64alpha_fbsd.
1249         * Makefile.in: Regenerate.
1250         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1251         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1252         use a FreeBSD-specific emulation rather than the psABI one.
1253         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1254         for all FreeBSD ELF systems.
1255         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1256         emulation.
1257         * emulparams/elf32ppc_fbsd.sh: Likewise.
1258         * emulparams/elf64_ia64_fbsd.sh: Likewise.
1259         * emulparams/elf64_sparc_fbsd.sh: Likewise.
1260         * emulparams/elf64alpha_fbsd.sh: Likewise.
1261         * emulparams/elf_i386_fbsd.sh: Likewise.
1262         * emulparams/elf_x86_64_fbsd.sh: Likewise.
1264 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
1266         * po/tr.po: Updated version.
1268 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1270         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1271         (FILL): Likewise.
1273 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
1275         * emultempl/mmo.em (mmo_after_open): Don't call
1276         _bfd_mmix_check_all_relocs when producing ELF output.
1278 2002-02-15  Richard Henderson  <rth@redhat.com>
1280         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1281         definition.  Emit a unop+nop pair.
1283 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
1285         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1286         for presence of .MMIX.reg_contents.linker_allocated before early
1287         exit.
1289         * NEWS: Mention support for MMIX.
1291 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
1293         Support arbitrary length fill patterns.
1294         * ld.texinfo (Output Section Fill): Describe fill expressions.
1295         (FILL): Refer to the above.
1296         * ldexp.h (etree_value_type): Add "str" field.
1297         (union etree_union): Add "str" to "value" struct.
1298         (exp_bigintop): Declare.
1299         (exp_get_fill): Declare.
1300         * ldexp.c: Include "safe-ctype.h".
1301         (exp_intop): Set value.str to NULL.
1302         (exp_bigintop): New function.
1303         (new_rel): Pass in "str", and set new.str from it.
1304         (new_rel_from_section): Set new.str to NULL.
1305         (fold_name): Adjust calls to new_rel.
1306         (exp_fold_tree): Likewise.
1307         (exp_get_fill): New function.
1308         * ldgram.y (struct big_int bigint, fill_type *fill): New.
1309         (INT): Returns a "bigint".  Adjust all code handling INTs.
1310         (fill_opt): Returns a "fill".
1311         (fill_exp): Split out of fill_opt, use for FILL.
1312         * ldlang.h (struct _fill_type): New.
1313         (fill_type): Move typedef to ldexp.h.
1314         (lang_output_section_statement_type): "fill" is now a pointer.
1315         (lang_fill_statement_type): Likewise.
1316         (lang_padding_statement_type): Likewise.
1317         (lang_add_fill): Now takes a "fill_type *" param.
1318         (lang_leave_output_section_statement): Likewise.
1319         (lang_do_assignments): Likewise.
1320         (lang_size_sections): Likewise.
1321         (lang_leave_overlay_section): Likewise.
1322         (lang_leave_overlay): Likewise.
1323         * ldlang.c: Include ldgram.h after ldexp.h.
1324         (lang_output_section_statement_lookup): Adjust for fill_type change.
1325         (print_fill_statement): Likewise.
1326         (print_padding_statement): Likewise.
1327         (insert_pad): Now takes a "fill_type *" arg.
1328         (size_input_section): Likewise.
1329         (lang_size_sections_1): Likewise.
1330         (lang_size_sections): Likewise.
1331         (lang_do_assignments): Likewise.
1332         (lang_add_fill): Likewise.
1333         (lang_leave_output_section_statement): Likewise.
1334         (lang_leave_overlay_section): Likewise.
1335         (lang_leave_overlay): Likewise.
1336         Adjust all callers of the above function.
1337         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
1338         starting with "0X" as well as "0x".  Return bigint.str for hex
1339         numbers starting with "0x" or "0X", zero bigint.str otherwise.
1340         Always use base 16 for numbers starting with "$".
1341         * ldmain.c: Include ldgram.h after ldexp.h.
1342         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1343         of bfd_fill_link_order.
1344         * pe-dll.c: Adjust lang_do_assignments calls.
1345         * emultempl/elf32.em: Likewise.
1346         * emultempl/hppaelf.em: Likewise.
1347         * emultempl/ppc64elf.em: Likewise.
1348         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1349         lang_add_assignment call.
1350         * emultempl/pe.em: Likewise.
1352 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
1354         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
1355         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
1356         the pattern in question is not a regexp.
1357         * ldlang.c:  Likewise.
1358         * ldlang.h:  Likewise.
1359         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
1361 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
1363         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1364         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1365         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1366         * ldexp.c (exp_data_seg): New variable.
1367         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1368         (fold_binary): Handle DATA_SEGMENT_ALIGN.
1369         (exp_fold_tree): Handle DATA_SEGMENT_END.
1370         Pass allocation_done when recursing instead of hardcoding
1371         lang_allocating_phase_enum.
1372         * ldexp.h (exp_data_seg): New.
1373         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1374         (lang_size_sections): New.
1375         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1376         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1377         if COMMONPAGESIZE is defined.
1378         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1379         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1380         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1381         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1382         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1383         libraries only.
1385 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
1387         * Makefile.in: Regenerate.
1389 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1391         * lexsup.c: Remove strtoul declaration.
1393 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1395         * ldmain.c: Add prototype for main ().
1396         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1397         * emultempl/lnk960.em (lnk960_choose_target): Function should
1398         take two arguments.
1400 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
1402         * ldlang.c (entry_section): New initialised variable.
1403         (lang_finish): Use it.
1404         * ldlang.h (entry_section): Declare.
1405         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1406         entry_section to ".opd".
1408 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
1410         * ld.texinfo (Options): Add back in -nostdlib documentation,
1411         which had been inadvertently removed.
1413 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
1415         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1416         register section vma to a sane value after emitting error.  Make
1417         fatal conditions cause program exit when emitting message.
1419 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
1421         * configure.tgt: Add or32-*-rtems target.
1423 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1425         Contribute sh64-elf.
1426         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1427         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1428         in OTHER_RELOCATABLE_SECTIONS.
1429         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1430         * emulparams/shelf32.sh (STACK_ADDR): Define.
1431         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1432         (OTHER_SECTIONS): this.  Removed stack settings.
1433         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1434         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1435         2001-03-12  DJ Delorie  <dj@redhat.com>
1436         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1437         relaxing if any shmedia or mixed sections are found.
1438         2001-03-07  DJ Delorie  <dj@redhat.com>
1439         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1440         einfo.  Gracefully decline to output to non-elf formats.
1441         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
1442         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1443         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1444         * emulparams/shelf32.sh: Ditto.
1445         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
1446         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1447         comment.
1448         2001-01-10  Ben Elliston  <bje@redhat.com>
1449         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1450         non-portable shell constructs. From Hans-Peter Nilsson.
1451         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
1452         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1453         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1454         dependencies to the shell script include chain.
1455         * Makefile.in: Regenerate.
1456         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
1457         * emultempl/sh64elf.em: Update and tweak comments.
1458         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1459         make a .cranges section SEC_IN_MEMORY.
1460         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1461         * emultempl/sh64elf.em
1462         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1463         .cranges section found to be necessary; continue and set stored
1464         section contents flags for sections with non-mixed contents.
1465         Use a struct sh64_section_data container and sh64_elf_section_data
1466         to store contents-type flags.
1467         Remove unused update of "isec".
1468         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1469         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
1470         access contents-type flags.  Assert that the associated container
1471         is initialized.  Use that container, not elf_gp_size, to hold size
1472         of linker-generated cranges contents.
1473         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1474         * emultempl/sh64elf.em
1475         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1476         there's already a .cranges section.  When section flag difference
1477         is found, don't NULL-check cranges a second time.  Tweak comments.
1478         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1479         merging, not max size, as size of ld-generated .cranges contents.
1480         Don't set ELF section flags in output section.  When checking for
1481         needed .cranges descriptors, don't use a variable; compare
1482         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
1483         comments.
1484         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1485         * emultempl/sh64elf.em: New file.
1486         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1487         * Makefile.in: Regenerate.
1488         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1489         (OTHER_RELOCATING_SECTIONS): Ditto.
1490         (EXTRA_EM_FILE): New, set to sh64elf if not set.
1491         * emulparams/shlelf32.sh: Stub out all settings except
1492         OUTPUT_FORMAT.  Source shelf32.sh.
1493         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1494         OTHER_RELOCATING_SECTIONS.
1495         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1496         * emulparams/shlelf64.sh: Stub out all settings except
1497         OUTPUT_FORMAT.  Source shelf64.sh.
1498         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
1499         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1500         .cranges section.
1501         (DATA_START_SYMBOLS): Define, provide ___data.
1502         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1503         for consecutive .data section.
1504         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1505         section after .data section.
1506         * emulparams/shlelf64.sh: Ditto.
1507         * emulparams/shelf32.sh: Ditto.
1508         (ALIGNMENT): Define to 8.
1509         * emulparams/shelf32.sh: Ditto.
1510         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
1511         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1512         built-in linker scripts.
1513         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1514         * emulparams/shlelf64.sh: New.
1515         * emulparams/shelf64.sh: New.
1516         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1517         targ_extra_emuls.
1518         * Makefile.am: Add support for shlelf64 and shelf64.
1519         * Makefile.in: Regenerate.
1520         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
1521         * configure.tgt (sh64-*-elf*): Add shelf as default.
1522         Add shlelf to targ_extra_emuls.
1523         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
1524         * emulparams/shelf32.sh: New file.
1525         * emulparams/shlelf32.sh: New file.
1526         * Makefile.am: Add support for shlelf32 and shelf32.
1527         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1528         * Makefile.in: Regenerate.
1530 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
1532         * ldlang.c (lang_reset_memory_regions): Rename from
1533         reset_memory_regions.  Change all callers.  Make public.
1534         * ldlang.h (lang_reset_memory_regions): Prototype.
1535         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1536         lang_reset_memory_regions before lang_size_sections.
1537         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1538         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1540 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
1542         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1543         arithmetic when checking for too many global registers.
1545 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
1547         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1548         (ehppanbsd.c): New rule.
1549         * Makefile.in: Regenerate.
1550         * configure.tgt (hppa*-*-netbsd*): New target.
1551         * emulparams/hppalinux.sh: Add comment to check other files
1552         that source this file it is modified, and list which
1553         files that do.
1554         * emulparams/hppanbsd.sh: New file.
1556 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
1558         * scripttempl/xstormy16.sc: Don't allocate extra space for the
1559         stack.
1561 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
1563         Support on-demand global register allocation from
1564         R_MMIX_BASE_PLUS_OFFSET relocs.
1565         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1566         mmix_set_reg_section_vma.  Call
1567         _bfd_mmix_finalize_linker_allocated_gregs.
1568         (mmix_before_allocation): New function.
1569         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1570         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1571         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1572         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1573         before .MMIX.reg_contents.
1574         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1575         (mmo_after_open): New function.
1576         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1577         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
1578         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1580 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
1582         * emulparams/or32.sh: New file.
1583         * emulparams/or32elf.sh: New file.
1584         * scripttempl/or32.sc: New file.
1585         * configure.tgt : Add support for or32.
1586         * configure: Regenerate
1587         * Makefile.am: Add support for or32.
1588         * Makefile.in: Regenerate.
1589         * NEWS: Mention support for or32.
1590         * po/ld.pot: Regenerate.
1592 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
1593             Mitch Lichtenberg  <mpl@broadcom.com>
1595         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1596         * emultempl/mipself.em: New file to handle MIPS ELF embedded
1597         reloc creation (ld --embedded-relocs).
1599 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
1601         * configure: Regenerated.
1603 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
1605         * Makefile.am (install): Depend on install-info.
1606         * Makefile.in: Regenerate.
1608 2002-01-26  Christian Rose  <menthos@menthos.com>
1610         * ldmain.c (main): Use full sentences to ease translation.
1612 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
1614         * po/fr.po: Updated version.
1616 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
1618         * po/es.po: Updated version.
1620 2002-01-25  Andreas Jaeger  <aj@suse.de>
1622         * ldlex.l (yy_input): Correct error check.
1624 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
1626         * ldmisc.c (demangle): Put back dots when string not demangled.
1628 2002-01-22  Richard Henderson  <rth@redhat.com>
1630         * emulparams/elf64alpha.sh (NOP): Use unop.
1632 2002-01-21  Andreas Jaeger  <aj@suse.de>
1634         * ldlex.l: Use fread instead of read.
1636 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
1638         * configure.tgt (ia64-*-netbsd*): New target.
1640 2002-01-21  H.J. Lu <hjl@gnu.org>
1642         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1643         0.
1644         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1646 2002-01-18  Andreas Jaeger  <aj@suse.de>
1648         * ldver.c (ldversion): Update year.
1650 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
1652         * po/ld.pot: Regenerate.
1654 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
1656         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1657         * Makefile.in: Regenerate.
1658         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1659         * emultempl/ppc64elf.em: New file.
1661 2002-01-15  DJ Delorie  <dj@redhat.com>
1663         * scripttempl/pe.sc: Add support for constructor priorities.
1665 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1667         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1668         * emulparams/avr23xx.sh: Likewise.
1669         * emulparams/avr4433.sh: Likewise.
1670         * emulparams/avr44x4.sh: Likewise.
1671         * emulparams/avr85xx.sh: Likewise.
1672         * emulparams/avrmega103.sh: Likewise.
1673         * emulparams/avrmega161.sh: Likewise.
1674         * emulparams/avrmega603.sh: Likewise.
1675         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1677 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
1679         * ldlang.c (walk_wild_section): Exclude object file if enclosing
1680         archive is excluded.
1682 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
1684         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1685         (eshelf_nbsd.c): New rule.
1686         (eshlelf_nbsd.c): New rule.
1687         * Makefile.in: Regenerate.
1688         * configure.tgt (sh*le-*-netbsdelf*): New target.
1689         (sh*-*-netbsdelf*): New target.
1690         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1691         * ld/emulparams/shelf_nbsd.sh: New emulation.
1692         * ld/emulparams/shlelf_nbsd.sh: New emulation.
1694 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
1696         * po/es.po: New file: Spanish translation.
1697         * configure.in (ALL_LINGUAS): Add es.
1698         * configure: Regenerate.
1700 2002-01-06  John Marshall  <jmarshall@acm.org>
1702         * ld.texinfo: Note that --emit-relocs is currently only
1703         implemented for ELF.
1705 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
1707         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1708         of bfd_section_list_remove and bfd_section_list_insert macros.
1709         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1710         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1712 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1714         * configure.tgt (x86_64-*-netbsd*): New target.
1716 2001-12-21  Tom Rix  <trix@redhat.com>
1718         (gld*_create_output_section_statements): New function.
1719         For -binitfini support.
1720         * emultempl/aix.em (gld*_before_parse): Fix comment.
1721         * emultempl/aix.em (gld*_parse_args): Fix comment.
1723 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
1725         * configure.tgt (mips*-dec-netbsd*): Delete alias for
1726         mips*el-*-netbsd*.
1727         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1729         * configure.tgt (arm-*-netbsdelf*): Add target.
1730         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1731         * emulparams/armelf_nbsd.sh: Added.
1732         * Makefile.am: Add rules for earmelf_nbsd.
1733         * Makefile.in: Regenerate.
1735 2001-12-19  Andreas Jaeger  <aj@suse.de>,
1736             Susanne Oberhauser <froh@suse.de>
1738         * configure.host: Add rules for x86_64-*linux-gnu.  Change
1739         s390x-linux entry to use gcc to report configuration, replace gcc
1740         with $CC in s390-linux
1742 2001-12-19  Andreas Jaeger  <aj@suse.de>
1744         * ld.texinfo (VERSION): Fix markup.
1746 2001-12-18  matthew green  <mrg@eterna.com.au>
1748         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1749         (m68kelfnbsd.c): New rule.
1750         * Makefile.in: Regenerate.
1751         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1752         (m68*-*-netbsd*4k*): .. this.
1753         (m68*-*-netbsdelf*): New target.
1754         (m68*-*-netbsd*): Also include ELF support.
1755         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1756         * emulparams/m68kelfnbsd.sh: New emulation.
1758 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1760         * ldgram.y (vers_node): Support anonymous version tags.
1761         * ldlang.c (lang_register_vers_node): Ensure anonymous version
1762         tag is not defined together with non-anonymous versions.
1763         * ld.texinfo: Document it.
1765 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
1767         * po/tr.po: New file: Turkish translation.
1768         * configure.in (ALL_LINGUAS): Add tr.
1769         * configure: Regenerate.
1771 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
1773         * Makefile.am: Add rules for eelf64alpha_nbsd.
1774         * Makefile.in: Regenerate.
1775         * configure.tgt (alpha*-*-netbsd*): Set
1776         targ_emul to elf64alpha_nbsd.
1777         * emulparams/elf64alpha_nbsd.sh: Added.
1779 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
1781         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1782         section_tail when fiddling with section list.
1783         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1784         broken into separate strings to make translation easier.
1785         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1786         fiddling with section list.
1787         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1789 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
1791         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1793 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
1795         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1797 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
1799         * emultempl/elf32.em (finish): Supply output_bfd
1800         to bfd_elf*_discard_info.
1801         (OPTION_EH_FRAME_HDR): Define.
1802         (longopts): Add --eh-frame-hdr.
1803         (parse_args): Handle it.
1804         (list_options): Add --eh-frame-hdr to help.
1805         * emultempl/hppaelf.em (finish): Supply output_bfd
1806         to bfd_elf*_discard_info.
1807         * scripttempl/elf.sc (.eh_frame_hdr): Add.
1809 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
1811         * lexsup.c (parse_args): Don't pass shortopts to second call to
1812         getopt functions.  Restore optind rather than decrementing before
1813         second call.  Remove errind as it now duplicates last_optind.
1815 2001-12-11  Christopher Faylor  <cgf@redhat.com>
1817         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1819 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
1820             Richard Henderson  <rth@redhat.com>
1822         * Makefile.am: Add support for xstormy16.
1823         * configure.tgt: Add support for xstormy16.
1824         * Makefile.in: Regenerate.
1825         * emulparams/elf32xstormy16.sh: New file.
1826         * scripttempl/xstormy16.sc: New file.
1828 2001-10-01  Christopher Faylor <cgf@cygnus.com>
1830         * Makefile.in (LIB_PATH): Make configurable.
1831         (GENSCRIPTS): Set LIB_PATH in environment.
1832         * configure.in: Substitute LIB_PATH.
1833         * configure: Regenerate.
1834         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1835         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1837 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
1839         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1840         describing the -N option so that it is easier to translate into
1841         foreign languages.
1843 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
1845         * emultempl/pe.em (..._list_options): Replace multiple fprintf
1846         statements describing a single option with a single, newline
1847         escaped fprintf.  This allows better translation into other
1848         languages.
1850         * ldmain.c (add_archive_element): Combine multiple strings
1851         into a single string to permit better translation into other
1852         languages.
1854 2001-12-05  Tom Rix  <trix@redhat.com>
1856         * Makefile.am: Remove eaixppc64.
1857         * Makefile.in: Regenerate.
1859 2001-12-04  Tom Rix  <trix@redhat.com>
1861         * emultempl/aix.em (choose_target): Change default target to
1862         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
1863         warning.
1864         (gld*_read_file):  Fix typo.
1865         (change_symbol_mode): Add prototype.
1866         (is_syscall): Same.
1868         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1869         * emulparams/aixrs6.sh : Same.
1870         * emulparams/ppcmacos.sh : Same.
1871         * emulparams/aixppc64.sh : Delete file.
1872         * emultempl/aix.em : Formatting changes.
1874 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
1876         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1877         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1878         __Sbss.
1879         (OTHER_END_SYMBOLS): Fix formatting.
1880         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1881         (OTHER_END_SYMBOLS): Fix formatting.
1883 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
1885         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1887 2001-12-02  Tom Rix  <trix@redhat.com>
1889         * configure.tgt : Remove eaixppc64 emulations.
1890         * Makefile.in : Remove eaixppc64.c
1891         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1892         (ldemul_default_target): Same.
1893         * emultempl/gld960.em (gld960_choose_target):  Same.
1894         * emultempl/gld960c.em (gld960_choose_target):  Same.
1895         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1896         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1897         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1898         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1899         * emultempl/aix.em (choose_target): New function.  Handle emulation of
1900         -b32 and -b64.
1902 2001-11-27  H.J. Lu <hjl@gnu.org>
1904         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1905         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1906         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1907         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1908         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1909         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1910         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1911         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1913         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1914         is not empty.
1915         (SDATA): Likewise.
1916         (REL_SDATA): Likewise.
1917         (REL_SBSS): Likewise.
1918         (REL_SDATA2): Likewise.
1919         (REL_SBSS2): Likewise.
1920         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1921         (SDATA2): Likewise.
1923 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1925         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1926         destructor in rom.
1927         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1929 2001-11-22  H.J. Lu  <hjl@gnu.org>
1931         * Makefile.in: Regenerated with automake based on automake
1932         1.4-8 in RedHat 7.1.
1934 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
1936         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1937         (config.status): Delete rule.
1938         Add extra dependencies to cover sourced emulparams files.
1939         * Makefile.in: Regenerate.
1941         * scripttempl/elf.sc: Order <section>, <section>.* and
1942         corresponding linkonce sections as seen in input files.
1943         Formatting fixes.  Zero vma of all sections if not relocating.
1944         (STACK): Define and insert if STACK_ADDR defined.
1945         (OTHER_RELOCATING_SECTIONS): Delete.
1946         (OTHER_END_SYMBOLS): Define.
1947         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1948         (OTHER_READWRITE_SECTIONS): Likewise.
1949         (OTHER_GOT_SECTIONS): Likewise.
1950         (OTHER_SDATA_SECTIONS): Likewise.
1951         (OTHER_BSS_SECTIONS): Likewise.
1952         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1953         (OTHER_READWRITE_SECTIONS): Likewise.
1954         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1955         (OTHER_READWRITE_SECTIONS): Likewise
1957         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1958         (STACK_ADDR): Define.
1959         * emulparams/armelf_oabi.sh: As for armelf.sh.
1960         * emulparams/elf32mcore.sh: As for armelf.sh.
1961         * emulparams/h8300elf.sh: As for armelf.sh.
1962         * emulparams/mn10200.sh: As for armelf.sh.
1963         * emulparams/shelf.sh: As for armelf.sh.
1965         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1966         (OTHER_END_SYMBOLS): Define.
1967         * emulparams/m32relf.sh: As for elf32fr30.sh.
1968         * emulparams/h8300helf.sh: As for elf32fr30.sh.
1969         * emulparams/h8300self.sh: As for elf32fr30.sh.
1971         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1972         defines with RELOCATING test.
1973         (OTHER_SDATA_SECTIONS): Likewise.
1974         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1975         (OTHER_END_SYMBOLS): ..this.
1976         * emulparams/crislinux.sh: As for criself.sh.
1978         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1979         if not relocating.
1980         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1981         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
1982         normal and linkonce sections as seen in input files.
1983         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1984         (TEXT_DYNAMIC): Likewise.
1985         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1986         (OTHER_SDATA_SECTIONS): Likewise.
1987         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1988         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1989         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1990         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1991         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1992         (OTHER_PLT_RELOC_SECTIONS): Likewise.
1993         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
1994         sections as seen in input files.
1995         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1996         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1997         if not relocating.
1998         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1999         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2000         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2001         (OTHER_SECTIONS): Instead, use this..
2002         (OTHER_END_SYMBOLS): ..and this.
2004         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2005         * emulparams/elf32bsmip.sh: Likewise.
2006         * emulparams/elf32btsmip.sh: Likewise.
2007         * emulparams/elf32ebmip.sh: Likewise.
2008         * emulparams/elf32lmip.sh: Likewise.
2009         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2010         * emulparams/elf32lsmip.sh: Likewise.
2011         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2012         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2013         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2014         * emulparams/elf64btsmip.sh: Likewise.
2015         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2016         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2017         * emulparams/elf32ppclinux.sh: Likewise.
2018         * emulparams/elf32ppcsim.sh: Likewise.
2019         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2020         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2021         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2022         * emulparams/h8300self.sh: Likewise.
2023         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2024         * emulparams/sh.sh: Comment.
2025         * emulparams/shl.sh: Source sh.sh, remove duplicates.
2026         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2027         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2029 2001-11-21  David Heine <dlheine@tensilica.com>
2030             Alan Modra  <amodra@bigpond.net.au>
2032         * ldlang.c (map_input_to_output_sections): Replace "break"
2033         accidentally removed with 2001-08-03 change.
2034         (lang_gc_sections_1): Likewise.
2036 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
2038         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2040 2001-11-20  Angela Marie Thomas <angela@redhat.com>
2042         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2043         of false when calling lang_size_sections.
2044         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2046 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
2048         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2049         function when LDEMUL_FINISH isn't set to the same name.  Don't
2050         call ${LDEMUL_FINISH}.
2051         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2052         * emultempl/armelf.em (arm_elf_finish): Call
2053         gld${EMULATION_NAME}_finish.
2054         * emultempl/hppaelf.em (hppaelf_finish): Rename to
2055         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
2056         hppaelf_layout_sections_again if necessary.
2057         (need_laying_out): New var.
2058         (hppaelf_layaout_sections_again): Rename to
2059         hppaelf_layout_sections_again.  Clear need_laying_out.
2060         (PARSE_AND_LIST_OPTIONS): Format text.
2062 2001-11-14  H.J. Lu  <hjl@gnu.org>
2064         * emultempl/armelf.em (arm_elf_finish): Renamed from
2065         gld${EMULATION_NAME}_finish.
2066         (LDEMUL_FINISH): Set to arm_elf_finish.
2068 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
2070         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2071         (struct ld_emulation_xfer_struct): Use it.
2073 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
2075         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2076         additional symbols referenced by newer crt0.o files from HP.
2078 2001-11-12  Anthony Green  <green@redhat.com>
2080         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2082 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
2084         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2085         * Makefile.in: Regenerate.
2087 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2089         * ld.texinfo: Use @command for commands, @option for options.
2090         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2091         the page man title.
2092         * Makefile.in: Rebuild.
2094 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
2096         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2097         Add support for targets.
2099 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
2101         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2102         * configure: Regernate.
2103         * po/fr.po: New file.
2104         * po/sv.po: New file.
2106 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
2108         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2109         as little endian default and to support big endian.
2111 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
2113         * ld.texinfo (Options): Document new option, -nostdlib.
2114         * lexsup.c (OPTION_NOSTDLIB): New definition.
2115         (ld_options): Add entry for "nostdlib".
2116         (parse_args): Handle OPTIONS_NOSTDLIB.
2117         * ldfile.c (ldfile_add_library_path): Don't add directories
2118         to the search path if they weren't specified on the command line
2119         and -nostdlib was specified.
2120         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2122 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
2124         * lexsup.c (parse_args): Prevent infinite parsing loop when
2125         "-rpath.a" is specified on the command line.
2126         Replace calls to fprintf with calls to einfo.
2128 2001-10-31  John Marshall  <jmarshall@acm.org>
2130         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2131         appear only once across all the linker scripts involved in a link
2132         invocation no longer applies.  Make the documentation reflect
2133         that.
2135 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
2137         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2138         targets.
2139         (sh-*-linux*): Added targ_extra_libpath.
2141 2001-10-31  David Heine  <dlheine@tensilica.com>
2143         * ldlang.c (lang_size_sections): Keep a valid output_offset field
2144         for padding statements.
2146 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
2148         * configure.tgt (mmix-*-*): New target.
2149         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2150         Add dependencies to match.
2151         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2152         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2153         scripttempl/mmo.sc: New files.
2154         * gen-doc.texi: @set MMIX.
2155         * ld.texinfo: Ditto.
2156         [MMIX] Add MMIX node.
2157         * Makefile.in: Regenerate.
2159 2001-10-29  Kazu Hirata  <kazu@hxi.com>
2161         * ldlang.c: Fix a comment typo.
2163 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
2165         * configure.host: Move alpha*-*-linux-gnu* entry to generic
2166         entries, and match *-*-linux*.
2168 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
2170         * ldgram.y (mri_script_command): Surround processing of INCLUDE
2171         with ldlex_script, ldlex_popstate.
2172         (ifile_p1): Likewise.
2173         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
2174         correct slot.
2175         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
2176         to 1.  Don't BEGIN(SCRIPT).
2177         (lex_redirect): Similarly.
2178         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2180 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
2182         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2183         __EH_FRAME_END__ and accept eh frames into data section.
2184         Add ctor and dtor sections.
2186 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2188         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2189         (auto-export): Fix indentation.
2191 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2193         * pe-dll.c (autofilter_objectlist):  Add startup objects
2194         for profiling.
2195         (auto-export): Constify char * p.
2196         Extract file basename and use strcmp rather than ststr
2197         for object lookup.
2199 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
2201         * ldmain.c (get_emulation): Improve comment about the handling
2202         of -mipsN options.
2204 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
2206         * po/POTFILES.in: Regenerate.
2208 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
2210         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2211         -z nocopyreloc and -z nocombreloc usage strings.
2213 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
2215         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2216         in usage.
2218 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
2220         * scripttempl/armaout.sc: Place .bss section after end of aligned
2221         data section to match behaviour of aout code in constructrion of
2222         header.
2224 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2226         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2227         startup files for mingw32 dlls to list.
2229 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
2231         * emultempl/elf32.em: Fix shell 'if' usage for portability.
2233 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
2235         * configure.tgt (targ): Add arm9e-*-elf.
2237 2001-10-05  H.J. Lu  <hjl@gnu.org>
2239         * genscripts.sh: Fix a typo in the last change.
2241 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
2243         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2244         -z nocombreloc in usage.
2246 2001-10-03  Jim Blandy  <jimb@redhat.com>
2248         * genscripts.sh: Include a comment at the top of each generated
2249         script, explaining its purpose.
2251 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
2253         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2254         * NEWS: Mention -z nocopyreloc.
2255         * ld.texinfo (Options): Describe nocopyreloc.
2257 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
2259         * configure: Regenerate.
2261 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
2263         * ldver.h (ld_program_version): Remove declaration.
2264         * lexsup.c (parse_args): Move printing of copyright message..
2265         * ldver.c (ldversion): .. to here.
2266         Use BFD_VERSION_STRING in place of BFD_VERSION.
2267         (ld_program_version): Remove.
2268         * Makefile.am (Makefile): Depend on bfd/configure.in.
2269         Run "make dep-am".
2270         * Makefile.in: Regenerate.
2272 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
2274         * Makefile.am: Update dependencies with "make dep-am".
2275         * Makefile.in: Regenerate.
2277 2001-09-29  John Reiser  <jreiser@BitWagon.com>
2279         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2280         * lexsup.c: Add --no-define-common commandline option.
2281         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2282         * ldlex.l: Likewise.
2283         * ld.h: Add command_line.inhibit_common_definition.
2284         * ldmain.c (main): Initialize.
2285         * ld.texinfo: Document.
2287 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
2289         * ldlang.c (section_already_linked): Remove assignment to kept_section.
2291 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
2293         * ldmisc.c (USE_STDARG): Remove.
2294         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2295         (einfo): Likewise.
2296         (minfo): Likewise.
2297         (lfinfo): Likewise.
2299         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2300         declarations.  Update copyright.
2302 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2304         * pe-dll.c: Remove obsoleted declaration of
2305         pe_get_data_import_dll_name.
2306         (pe_create_import_fixup): Fix thinko.
2308         * ld.texinfo(enable-auto-import): Clarify the explanation.
2310 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
2312         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2313         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2314         DLL_SUPPORT controlled code.
2316 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2318         * emultempl/pe.em(pe_data_import_dll): Make static.
2319         (pe_get_data_import_dll_name): New accessor function.
2320         * pe-dll.c(pe_create_import_fixup): call
2321         pe_get_data_import_dll_name() from pe.em, instead of
2322         directly accessing pe_data_import_dll variable from pe.em.
2324 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
2326         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2327         (def_file_add_directive): Use ISSPACE instead of isspace.
2328         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2329         isdigit/isxdigit/isalpha/isalnum.
2330         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2331         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2332         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2333         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2334         isalnum.
2335         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2336         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2337         isupper/tolower.
2338         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2339         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2340         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2341         (ctor_prio): Use ISDIGIT instead of isdigit.
2342         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2343         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2344         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2345         isupper/tolower.
2346         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2347         (stricpy): Use TOLOWER instead of isupper/tolower.
2348         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2349         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2350         (lex_warn_invalid): Use ISPRINT instead of isprint.
2351         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2352         (main): For gettext, also set the LC_CTYPE locate facet.
2353         (add_keepsyms_file): Use ISSPACE instead of isspace.
2354         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2355         (is_num, parse_args): Use ISDIGIT instead of isdigit.
2356         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2357         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2358         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2359         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2360         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2361         (quoteput): Use ISSPACE instead of isspace.
2362         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2363         instead of isalnum.
2365 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
2367         * deffilep.y (def_stash_module): Constify "name" param.
2369         * pe-dll.c: Replace CONST with const throughout.
2370         (quick_symbol): Constify "n1", "n2", "n3" params.
2371         (make_singleton_name_thunk): Constify "import" param.  Make
2372         "buffer_len" a size_t.
2373         (make_import_fixup_entry): Constify "name", "fixup_name",
2374         "dll_symname" params.
2375         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
2376         (pe_get32): Likewise.
2377         (pe_implied_import_dll): Likewise.
2379         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2380         (sort_by_section_name): Likewise.
2382         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2383         (make_import_fixup): Cast printf arg, rel->address to long rather
2384         than int.
2385         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2387 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
2389         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2390         defines BufferSize.  Increase buffer size by one.
2392 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
2394         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2396 2001-09-14  Kevin Lo <kevlo@openbsd.org>
2398         * configure.tgt: Add arm-openbsd target.
2400 2001-09-12  H.J. Lu  <hjl@gnu.org>
2402         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2403         eelf64lppc.o to ...
2404         (ALL_64_EMULATIONS): Here.
2405         * Makefile.in: Regenerated.
2407 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2409         * emultempl/pe.em(make_import_fixup): change signature to
2410         take asection as well as arelec; we need this for proper
2411         error reporting.  Only call pe_create_import_fixup() if
2412         there is no attempt to add a constant addend to the reloc;
2413         otherwise, report error condition.
2414         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2415         since final argument is a pointer to make_import_fixup().
2416         Change call to cb() to match make_import_fixup() signature.
2417         (make_import_fixup_mark): make buffer_len unsigned.
2418         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2420 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
2422         * ld.texinfo: add verbose documentation for auto-import
2423         direct-addressing workaround, to compliment the terse
2424         error message.
2426 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
2428         * scripttempl/v850.sc: Add gcc_except_table sections.
2430 2001-09-11  Jeffrey A Law  (law@cygnus.com)
2432         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2433         * emulparams/h8300self.sh: Similarly.
2435 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2437         * ld.texinfo (Options, --stack): Correct default value for stack
2438         reserve.
2440 2001-09-05  Tom Rix <trix@redhat.com>
2442         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2444 2001-09-03  Andreas Jaeger  <aj@suse.de>
2446         * emultempl/beos.em: Declare prototypes for comparions functions,
2447         adjust definitions.
2449 2001-09-02  Andreas Jaeger  <aj@suse.de>
2451         * emultempl/aix.em: Add missing prototype.
2452         * emultempl/lnk960.em: Likewise.
2453         * emultempl/vanilla.em: Likewise.
2454         * emultempl/armcoff.em: Likewise.
2455         * emultempl/armelf_oabi.em: Likewise.
2456         * emultempl/beos.em: Likewise.
2457         * emultempl/gld960c.em: Likewise.
2458         * emultempl/gld960.em: Likewise.
2460         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2461         for prototype declaration.
2463 2001-08-31  Eric Christopher  <echristo@redhat.com>
2464             Jason Eckhardt  <jle@redhat.com>
2466         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2468 2001-08-31  Andreas Jaeger  <aj@suse.de>
2470         * emultempl/pe.em: Add missing prototypes.
2471         (gld_${EMULATION_NAME}_after_open): Remove extra args to
2472         pe_find_data_imports.
2473         (pr_sym): Add unused attribute.
2475 2001-08-29  Joel Sherrill <joel@OARcorp.com>
2477         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2478         default from coff to elf.
2480 2001-08-29  Jeff Law <law@redhat.com>
2482         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
2483         ARCH specification.
2484         * emulparams/h8300self.sh: Similarly.
2486 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
2488         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2489         eh8300self.o .
2490         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2491         * configure.tgt (h8300-*-elf*): New case.
2492         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2493         * emulparams/h8300self.sh: New file.
2494         * Makefile.in: Regenerated.
2496 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
2498         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2499         with macro name.
2501 2001-08-27  Linus Nordberg  <linus@swox.com>
2502             Alan Modra  <amodra@bigpond.net.au>
2504         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2505         (eelf64ppc.c, eelf64lppc.c): Add make targets.
2506         Run "make dep-am"
2507         * Makefile.in: Regenerate.
2508         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
2509         entries to correct alphabetical position.
2510         * emulparams/elf64ppc.sh: New.
2511         * emulparams/elf64lppc.sh: New.
2513 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
2515         * ldmain.c (main): Declare BSIZE as static.
2517 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2519         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2520         into .rel.dyn resp. .rela.dyn if combreloc.
2521         (get_script): If .x linker script is equal to .xn, only put it
2522         once into the binary.
2523         Add .xc and .xsc scripts.
2524         (parse_args): Handle -z combreloc and -z nocombreloc.
2525         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2526         For .xc and .xsc scripts put all .rel* or .rela* input sections
2527         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2528         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2529         is elf.
2530         Strip trailing whitespace from script.
2531         Generate .xc and .xsc scripts if requested.
2532         * ldmain.c (main): Initialize link_info.combreloc and
2533         link_info.spare_dynamic_tags.
2534         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2535         (ld_options): Add --spare-dynamic-tags option.
2536         (parse_args): Likewise.
2537         * ld.texinfo: Document -z combreloc and -z nocombreloc.
2538         * ldint.texinfo: Document .xc and .xsc linker scripts.
2539         * NEWS: Add notes about -z combreloc and SHF_MERGE.
2541 2001-08-22  H.J. Lu  <hjl@gnu.org>
2543         * emulparams/elf32fr30.sh: Add a newline.
2545 2001-08-21  Andreas Jaeger  <aj@suse.de>
2547         * deffilep.y: Add missing prototypes.
2548         * pe-dll.c: Likewise.
2550 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
2552         * ldlang.c (insert_pad): Fix typos in last patch.
2554         * ldlang.c: When traversing lang_statement_union_type lists,
2555         consistently use "header.next" rather than "next".
2556         * mpw-eppcmac.c: Likewise.
2557         * emultempl/beos.em: Likewise.
2558         * emultempl/hppaelf.em: Likewise.
2559         * emultempl/pe.em: Likewise.
2560         * ldlang.h (union lang_statement_union): Remove "next" field.
2562         * ldlang.c (insert_pad): Use offsetof macro.
2563         (lang_size_sections): Always neuter padding statements.
2564         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2566         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2567         passed to lang_size_sections.
2568         (pe_exe_fill_sections): Likewise.
2569         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2570         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2572 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2574         * emultempl/aix.em: Formatting fixes.
2576 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2578         * ldlang.c (insert_pad): Make use of an existing pad statement if
2579         available.  Move code calculating alignment, adjusting section
2580         alignment power, and adjusting dot to ..
2581         (size_input_section): .. here.  Remove unused relax param.
2582         (lang_size_sections): Change boolean `relax' param to boolean *.
2583         Adjust call to size_input_section.  Make use of insert_pad to
2584         place pad after the assignment statement.  If relaxing, zap
2585         padding statements.
2586         (reset_memory_regions): Reset output_bfd section sizes too.
2587         (relax_again): Move to..
2588         (lang_process): ..here.  Adjust call to lang_size_sections, and
2589         remove duplicated code.
2590         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2592 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
2594         * ld.texinfo: Document that fill values now use the four least
2595         significant bytes.
2596         * emulparams/elf32fr30.sh (NOP): Update.
2597         * emulparams/elf32mcore.sh: Likewise.
2598         * emulparams/elf64_s390.sh: Likewise.
2599         * emulparams/elf_i386.sh: Likewise.
2600         * emulparams/elf_i386_be.sh: Likewise.
2601         * emulparams/elf_i386_chaos.sh: Likewise.
2602         * emulparams/elf_i386_ldso.sh: Likewise.
2603         * emulparams/elf_s390.sh: Likewise.
2604         * emulparams/elf_x86_64.sh: Likewise.
2605         * emulparams/i386moss.sh: Likewise.
2606         * emulparams/i386nw.sh: Likewise.
2607         * emulparams/m68kelf.sh: Likewise.
2608         * scripttempl/elf.sc: Update NOP comment.
2609         * scripttempl/elfi370.sc: Likewise.
2610         * scripttempl/elfm68hc11.sc: Likewise.
2611         * scripttempl/elfm68hc12.sc: Likewise.
2612         * scripttempl/nw.sc: Likewise.
2614 2001-08-15  Tom Rix <trix@redhat.com>
2616         * ldgram.y (saved_script_handle): Initialize to NULL.
2617         * ldmain.c (main): Change check on saved_script_handle.
2619 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
2621         * emultempl/elf32.em: Formatting fixes.
2622         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
2623         looking at sec->owner.
2624         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2625         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
2626         unused code, and reorganize orphan section placement code.
2628         * ldlang.c (wild_doit): Rename to lang_add_section.
2629         * ldlang.h: Here too.
2630         * mpw-elfmips.c: And here.
2631         * emultempl/beos.em: And here.
2632         * emultempl/elf32.em: And here.
2633         * emultempl/hppaelf.em: And here.
2634         * emultempl/pe.em: And here.
2636 2001-08-13  Richard Henderson  <rth@redhat.com>
2638         * emultempl/needrelax.em: New file.
2639         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2640         * Makefile.am (eelf64_ia64.c): Depend on it.
2641         * Makefile.in: Rebuild.
2643 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
2645         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2646         output_section is set non-NULL.
2648         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2649         `true' for SEC_EXCLUDE sections so that the generic code doesn't
2650         needlessly create an output_section_statement.  Treat a correctly
2651         named output_section_statement with NULL bfd_section as compatible.
2653 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
2655         * emultempl/generic.em: Support EXTRA_EM_FILE.
2656         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2657         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2658         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2659         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2660         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2661         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2662         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2663         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2664         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2665         LDEMUL_FIND_POTENTIAL_LIBRARIES.
2667 2001-08-12  Richard Henderson  <rth@redhat.com>
2669         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2670         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2671         scripttempl/v850.sc: Keep .jcr data.
2673 2001-08-12  H.J. Lu  <hjl@gnu.org>
2674             Andrew Haley  <aph@cambridge.redhat.com>
2675             Nick Clifton  <nickc@redhat.com>
2677         * ldgram.y (had_script): Change name to saved_script_handle.
2678         Change type to file handle.
2679         * ld.h (had_script): Rename and retype.
2680         * ldfile.c (ldfile_open_command_file): Save the file handle
2681         used in saved_script_handle.
2682         * lexsup.c (parse_args): Do not allow -c option to alter
2683         saved_script_handle.
2684         * ldmain.c (main): Print out the linker script used if
2685         --verbose is given.  Check saved_script_handle to obtain the
2686         external linker script used, or if NULL, dump the builtin
2687         script.
2688         * ld.texinfo: Document that --verbose now dumps the linker
2689         script used, regardless of whether it was an internal or an
2690         external script.
2692 2001-08-10  Andreas Jaeger  <aj@suse.de>
2694         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2695         to build warnings.
2696         * configure: Regenerate.
2698 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
2700         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2702         * scripttempl/elf.sc: Move non-text .dynamic section before
2703         .plt/.got/.sdata* group.
2704         (OTHER_GOT_SECTIONS): Move to immediately after .got.
2705         (OTHER_SDATA_SECTIONS): Add.
2706         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2707         OTHER_GOT_SECTIONS.
2708         * emulparams/crislinux.sh: Likewise.
2709         * emulparams/elf32b4300.sh: Likewise.
2710         * emulparams/elf32bmip.sh: Likewise.
2711         * emulparams/elf32bmipn32.sh: Likewise.
2712         * emulparams/elf32bsmip.sh: Likewise.
2713         * emulparams/elf32btsmip.sh: Likewise.
2714         * emulparams/elf32ebmip.sh: Likewise.
2715         * emulparams/elf32elmip.sh: Likewise.
2716         * emulparams/elf32l4300.sh: Likewise.
2717         * emulparams/elf32lmip.sh: Likewise.
2718         * emulparams/elf32lsmip.sh: Likewise.
2719         * emulparams/elf32ltsmip.sh: Likewise.
2720         * emulparams/elf64bmip.sh: Likewise.
2721         * emulparams/elf64btsmip.sh: Likewise.
2722         * emulparams/elf64ltsmip.sh: Likewise.
2724 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
2726         * genscripts.sh: Source the emulparams script before each output
2727         script is generated so that variables like `RELOCATING' may affect
2728         variables defined in the emulparams script.
2730 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
2732         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2733         order.
2735         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2736         ie. iterate over wild_statement.section_list.
2737         (gld${EMULATION_NAME}_place_orphan): Likewise.
2739 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2741         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2742         .fini[0-4] sections used by _exit
2743         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2744         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2745         * scripttempl/elfm68hc11.sc: Likewise.
2747 2001-08-03  H.J. Lu  <hjl@gnu.org>
2749         * emultempl/beos.em (init): Add the missing initialization.
2751 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
2753         * ld.texinfo (Input Section Basics): Clarify ordering of output
2754         sections.
2755         * ldlang.c (callback_t): Add wildcard_list param.
2756         (walk_wild_section): Remove "section" param.  Rewrite for
2757         lang_wild_statement_type change.  Remove unique_section_p test.
2758         (walk_wild_file): Remove "section" param.
2759         (walk_wild): Remove "section" and "file" params.
2760         (lang_gc_wild): Likewise.
2761         (wild): Likewise.  Modify for lang_wild_statement_type change.
2762         (wild_sort): Likewise.  Add "sec" param.
2763         (gc_section_callback): Likewise.
2764         (output_section_callback): Likewise.  Do unique_section_p test.
2765         (map_input_to_output_sections): Modify call to wild.
2766         (lang_gc_sections_1): Likewise.
2767         (print_wild_statement): Modify for lang_wild_statement_type
2768         change.
2769         (lang_add_wild): Replace filename, filenames_sorted param with
2770         filespec.  Replace section_name, sections_sorted,
2771         exclude_filename_list with section_list.
2772         * ldlang.h (lang_add_wild): Here too.
2773         (lang_wild_statement_type): Replace section_name, sections_sorted,
2774         and exclude_filename_list with section_list.
2775         * ldgram.y (current_file): Delete.
2776         (%union): Add wildcard_list.
2777         (file_NAME_list): Set type to wildcard_list.  Build a linked list
2778         rather than calling lang_add_wild for each entry.
2779         (input_section_spec_no_keep): Call lang_add_wild here instead.
2780         * ld.h (struct wildcard_list): Declare.
2781         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2783 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2785         * ldmain.c (main): initialize link_info.pei386_auto_import
2786         * pe-dll.c: new tables for auto-export filtering
2787         (auto_export): change API, pass abfd for contextual filtering.
2788         Loop thru tables of excluded symbols instead of comparing
2789         "by hand".
2791 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
2793         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2794         static variable current_sec (static struct sec *). Add
2795         forward declaration for add_bfd_to_link.
2796         (process_def_file): Don't export undefined symbols. Do not
2797         export symbols starting with  "_imp__".  Call auto_export()
2798         with new API.
2799         (pe_walk_relocs_of_symbol): New function.
2800         (generate_reloc): add optional extra debugging
2801         (pe_dll_generate_def_file): eliminate extraneous initial blank
2802         line in output
2803         (make_one): enlarge symtab to make room for __nm__ symbols
2804         (DATA auto-import support).
2805         (make_singleton_name_thunk): New function.
2806         (make_import_fixup_mark): New function.
2807         (make_import_fixup_entry): New function.
2808         (pe_create_import_fixup): New function.
2809         (add_bfd_to_link): Specify that 'name' argument is a CONST
2810         char *.
2811         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2812         declare new functions pe_walk_relocs_of_symbol and
2813         pe_create_import_fixup.
2814         * emultempl/pe.em: add new options --enable-auto-import,
2815         --disable-auto-import, and --enable-extra-pe-debug.
2816         (make_import_fixup): New function.
2817         (pe_find_data_imports): New function.
2818         (pr_sym): New function.
2819         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2820         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
2821         CODE.
2823 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2825         * ld.texinfo: add additional documentation for
2826         --export-all-symbols.  Document --out-implib,
2827         --enable-auto-image-base, --disable-auto-image-base,
2828         --dll-search-prefix, --enable-auto-import, and
2829         --disable-auto-import.
2830         * ldint.texinfo: Add detailed documentation on auto-import
2831         implementation.
2833 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
2835         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2836         example.
2838 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
2840         * Makefile.am: Update dependencies with "make dep-am".
2841         * Makefile.in: Regenerate
2843 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
2845         * ldcref.c (check_section_sym_xref): New function.
2846         (check_nocrossrefs): Call it.
2847         (check_nocrossref): Interate over h->refs here instead of..
2848         (check_refs): ..here.  Pass in the symbol name, section, and bfd
2849         rather than hash_entry pointers.
2850         (struct check_refs_info): Keep symbol name rather than hash entry.
2851         Remove "same".
2852         (check_reloc_refs): Tweak for above changes in check_refs_info.
2853         Only report references to section syms when symname is NULL to
2854         prevent duplicate messages for the same reloc.
2856 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2858         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2859         available.  Do not print NULL trees.
2860         (exp_print_token): Print unknown tokens with values > 126 as
2861         decimal values not ASCII characters.
2863         * ldlang.c (lang_leave_overlay): If a region is specified assign
2864         it to all sections inside the overlay unless they have been
2865         assigned to the own, non-default, memory region.
2867         * README: Add header for consistency with other README files.
2869 2001-07-14  H.J. Lu  <hjl@gnu.org>
2871         * emultempl/elf32.em (output_prev_sec_find): Never return
2872         bfd_abs_section_ptr, bfd_com_section_ptr nor
2873         bfd_und_section_ptr.
2875 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
2877         * Makefile.am (em32relf.c): Change dependency from generic.em to
2878         elf32.em.
2879         * Makefile.in: Regenerate.
2881 2001-07-14  matthew green  <mrg@eterna.com.au>
2883         * configure.tgt (i386-*-netbsdelf*): New target.
2884         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2886 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
2888         * emultempl/elf32.em (output_prev_sec_find): New.
2889         (place_orphan): Use it.
2891 2001-07-11  H.J. Lu  <hjl@gnu.org>
2893         * ldmain.c (main): Fix typos in the last change.
2895 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
2897         * ldmain.c (main): Disallow -F and -f without -shared.
2899 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
2901         * emultempl/pe.em (after_open): Check for the output_bfd not
2902         having any coff_data structure allocated to it.
2904 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
2906         * emultempl/elf32.em: Do not assuming that contents of the buffer
2907         returned from basename function will remain unchanged accross other
2908         function calls.
2910 2001-07-03  H.J. Lu  <hjl@gnu.org>
2912         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2913         2001-07-03. It creates dynamic entries even for static binaries.
2915 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
2917         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2918         (DYNAMIC): Use it to reserve few dynamic entries for
2919         post-linking tools.
2921 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
2923         * emulparams/hppa64linux.sh: New file.
2924         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2925         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2926         (ehppa64linux.c): Add rule to make it.
2927         Run "make dep-am".
2928         * Makefile.in: Regenerate.
2930 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
2932         * ld.texinfo (Options, -r): Mention restrictions when using
2933         different object formats.
2935 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
2937         * ldlang.c (lang_check): Emit fatal error if relocatable link
2938         between different object flavours with relocations in input.
2940 2001-06-19  H.J. Lu  <hjl@gnu.org>
2942         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2943         (--version-script): Mention the language support.
2945 2001-06-19  H.J. Lu <hjl@gnu.org>
2947         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2949 2001-06-18  H.J. Lu <hjl@gnu.org>
2951         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2952         (diststuff): Add $(MANS).
2953         * Makefile.in: Regenerated.
2955         * ld.1: Removed.
2957 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
2959         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2960         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2961         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2962         * ld.h (args_type): Remove member export_dynamic.  All users
2963         changed to use struct bfd_link_info member.
2965         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2966         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2967         * Makefile.in: Regenerate.
2969 2001-06-18  H.J. Lu  <hjl@gnu.org>
2971         * ldlang.c (init_os): Add the newline to the einfo call.
2972         (lang_check): Likewise.
2973         (lang_do_version_exports_section): Likewise.
2975 2001-06-15  H.J. Lu  <hjl@gnu.org>
2977         * lexsup.c (parse_args); Save optind to report unrecognized
2978         option.
2980 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
2982         * ldlang.c (lang_check): Emit fatal error if relocatable link
2983         between different object flavours.
2985         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2986         Set new link_info member export_dynamic.
2987         * ldmain.c (main): Initialize new link_info member export_dynamic.
2989 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
2991         * ldlang.c (walk_wild): Only call walk_wild_file if
2992         lookup_name returns something.
2993         (lookup_name): If load_symbols fails, return NULL.
2994         (load_symbols): Change to a boolean function.
2995         (open_input_bfds): If load_symbols fails then do not make the
2996         executable.
2998 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
3000         * ldlang.c (record_bfd_errors): Remove.
3002         * emultempl/aix.em: Fix copyright dates.
3004 2001-06-07  Andreas Jaeger  <aj@suse.de>
3006         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3007         (TEXT_START_ADDR): Likewise.
3009 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
3011         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3013 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3015         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3017 2001-05-31  H.J. Lu  <hjl@gnu.org>
3019         * ldlang.c (open_input_bfds): Don't change the bfd error
3020         handler whilst loading symbols.
3022 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
3024         * configure.tgt: Remove i370-mvs architecture, it is not currently
3025         supported.
3027 2001-05-25  H.J. Lu  <hjl@gnu.org>
3029         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3030         like emulparams/aixppc.sh.
3032 2001-05-25  H.J. Lu  <hjl@gnu.org>
3034         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3035         setting of output_filename after bfd_scan_arch.
3036         * emultempl/pe.em: Likewise.
3038 2001-05-25  H.J. Lu  <hjl@gnu.org>
3040         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3041         like emulparams/aixppc.sh.
3043         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3044         instead of ${srcdir}/emultempl/stringify.sed.
3046 2001-05-25  Timothy Wall  <twall@oculustech.com>
3048         * emulparams/elf64_aix.sh: Change settings to match IBM linker
3049         output.
3051 2001-05-25  Alan Modra  <amodra@one.net.au>
3053         * configure.host: Replace linuxoldld with linux*oldld.
3054         * configure.tgt: Likewise.
3056 2001-05-24  H.J. Lu  <hjl@gnu.org>
3058         * emultempl/stringify.sed: Removed again.
3060 2001-05-24  H.J. Lu  <hjl@gnu.org>
3062         * emultempl/aix.em (OUTPUT_ARCH): Defined.
3063         (gld${EMULATION_NAME}_before_parse): Initialize
3064         ldfile_output_architecture, ldfile_output_machine and
3065         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3066         * emultempl/beos.em: Likewise.
3067         * emultempl/elf32.em: Likewise.
3068         * emultempl/linux.em: Likewise.
3069         * emultempl/mipsecoff.em: Likewise.
3070         * emultempl/pe.em: Likewise.
3071         * emultempl/sunos.em: Likewise.
3073 2001-05-24 Tom Rix <trix@redhat.com>
3075         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3076         udate import file format.
3077         (change_symbol_mode) New, same
3078         (is_syscall) New, same
3079         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3080         * emulparams/aixppc64.sh : same
3081         * emulparams/aixrs6.sh : same
3082         * emulparams/ppcmacos.sh : same
3083         * emultempl/aix.em : use strtoull to parse options
3084         * Makefile.am : add eaixppc64 emulation for xcoff64
3085         * Makefile.in : same
3086         * configure.tgt : same
3088         * scripttempl/aix.sc : default text section offset to 0x10000000
3089         default data section offset to 0x20000000
3090         add .sv3264 and .sv64 pseudo sections
3091         loader and debug sections use the currect section offset.
3093         * emultempl/aix.em : Add xcoff64 support
3094         Add -binitfini support
3095         (gld${EMULATION_NAME}_before_parse) -binitfini
3096         (gld${EMULATION_NAME}_parse_args) same
3097         (gld${EMULATION_NAME}_before_allocation) format change for special
3098         sections
3100         * emulparams/aixppc64.sh : New file for xcoff64 support
3102 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
3104         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3105         variable to avoid non-portable shell construct.
3107 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3109         * ldmain.c (get_emulation): Add -mips5 command line argument.
3111 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
3113         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3114         (ELF_INTERPRETER_NAME): Define it.
3115         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3116         it.
3117         * configure.tgt (targ_emul, targ_extra_emuls)
3118         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3119         as primary, elf_i386 as extra.
3120         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3121         (eelf_i386_ldso.c): New rule.
3122         * Makefile.in: Rebuilt.
3124 2001-05-22  Nick Clifton  <nickc@redhat.com>
3126         * lexsup.c (ld_options):  Allow -I to be an alias for
3127         --dynamic-linker.  This is for Solaris compatability.
3128         * ld.texinfo: Document that -I can be used.
3129         * ld.1: Regenerate.
3131 2001-05-16  Alan Modra  <amodra@one.net.au>
3133         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3134         whether an input section is the first one assigned to an output
3135         section.
3136         Assorted formatting fixes.
3138 2001-05-14  DJ Delorie  <dj@delorie.com>
3140         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3141         * Makefile.in: Ditto.
3143 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3145         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3146         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3147         output sections.
3148         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3150 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3152         * ldlang.c (lang_process): Call bfd_merge_sections.
3154 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3156         * ldgram.y: Fix typo.
3158 2001-05-03  H.J. Lu  <hjl@gnu.org>
3160         * emultempl/elf32.em: Include "libiberty.h".
3161         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3162         basename of the bfd filename.
3163         (gld${EMULATION_NAME}_stat_needed): Likewise.
3164         (gld${EMULATION_NAME}_try_needed): Likewise.
3165         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3167 2001-05-02  H.J. Lu  <hjl@gnu.org>
3169         * emultempl/pe.em: Include <ctype.h>.
3171 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
3173         * emulparams/elf32openrisc.sh: New file.
3175         * Makefile.am: Add OpenRISC target.
3176         * Makefile.in: Regenerated.
3178         * configure.tgt: Add openrisc-*-* mapping.
3180 2001-05-02  Nick Clifton  <nickc@redhat.com>
3182         * emultempl/aix.em: Replace buystring with xstrdup.
3183         * emultempl/beos.em: Replace buystring with xstrdup.
3185 2001-05-02  H.J. Lu  <hjl@gnu.org>
3187         * ldfile.c: Include "libiberty.h".
3188         * ldlex.l: Likewise.
3190         * ldmisc.c (buystring): Removed.
3191         * ldmisc.h: Likewise.
3193         * ldfile.c: Replace buystring with xstrdup.
3194         * ldlang.c: Likewise.
3195         * ldlex.l: Likewise.
3196         * ldmain.c: Likewise.
3197         * ldmisc.c: Likewise.
3198         * lexsup.c: Likewise.
3199         * mpw-eppcmac.c: Likewise.
3201 2001-04-30  Andreas Jaeger  <aj@suse.de>
3203         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3205 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3207         * ldlang.c (load_symbols): Give emulation a chance
3208         to process unrecognized file before fatal error is
3209         reported, not after.
3211 2001-04-27  Sean McNeil <sean@mcneil.com>
3213         * configure.tgt: Add arm-vxworks target.
3214         * scripttempl/armcoff.sc: Support .text or .data as a section name
3215         prefix.
3216         Define _etext.
3218 2001-04-13  J.T. Conklin  <jtc@redback.com>
3220         * ld.texinfo: Document --fatal-warnings.
3221         * ld.1: Regenerate.
3223         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3224         warnings have been turned into errors.
3225         * lexsup.c (OPTION_WARN_FATAL): Define.
3226         (ld_options): Entry for --fatal-warnings.
3227         (parse_args): Handle OPTION_WARN_FATAL.
3228         * ld.h (ld_config_type): Add fatal_warnings field.
3230 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
3232         * ldmain.c (main): Default to discard_sec_merge.
3233         * lexsup.c (OPTION_DISCARD_NONE): Define.
3234         (ld_options): Add --discard-none.
3235         (parse_args): Handle OPTION_DISCARD_NONE.
3236         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3237         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3238         all its input sections match.
3240 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
3242         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3243         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3244         (eelf32ltsmip.c): New target.
3245         (eelf64btsmip.c): Likewise.
3246         (eelf64ltsmip.c): Likewise.
3247         * Makefile.in: Regenerated.
3249         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3250         target.
3251         (mips*-*-linux-gnu*): Likewise.
3253         * emulparams/elf32ltsmip.sh: New. Traditional little endian
3254         MIPS taget.
3255         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3256         target.
3257         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3258         endian target.
3260 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
3262         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3263         correct value of __Stext here.
3264         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3265         .startup section.
3267         * emulparams/crislinux.sh: Remove FIXME.
3269 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
3271         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3272         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3274 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
3276         * configure.tgt (cris-*-*): Change default emulation to criself.
3277         (cris-*-*aout*): New rule.
3279 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
3281         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3282         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3284 2001-03-26  Andreas Jaeger  <aj@suse.de>
3286         * ld.texinfo (Overview): Fix syntax in texi code.
3288 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3290         * ld.texinfo: Put @c man indications to generate the ld man page.
3291         When generating man, define all the variables.  Define SEEALSO
3292         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
3293         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3294         (ld.1): Generate from ld.texinfo.
3295         * Makefile.in: Regenerate.
3297 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
3299         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3300         and '-fdata-sections'. Set the VMA of STABS sections to zero.
3302 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3304         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3305         is an absolute path look only for this file and not along the path.
3307 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3309         * emultempl/elf32.em (OPTION_GROUP): New macro.
3310         Add new option Bgroup to longopts.
3311         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3312         (gld*_list_options): Add -Bgroup and -z defs.
3313         * ld.1: Document -Bgroup and -z defs.
3314         * ld.texinfo: Likewise.
3316 2001-03-07  Michael Meissner  <meissner@redhat.com>
3318         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3319         with sections created by -fdata-sections.
3320         (.dynbss,.bss): Ditto.
3322 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
3324         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3325         after_allocation_default, not gld..._before_allocation.
3327 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
3329         * configure.in (BFD_VERSION): New.
3330         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3331         * configure: Regenerate.
3332         * Makefile.am: Run "make dep-am"
3333         * Makefile.in: Regenerate.
3335 2001-02-26  Timothy Wall  <twall@cygnus.com>
3337         * emulparams/elf64_aix.sh: Add additional read-only sections;
3338         uncomment lines which are now required.
3340 2001-02-26  H.J. Lu  <hjl@gnu.org>
3342         * ldlang.c (open_input_bfds): Set the bfd error handler so
3343         that problems can be caught whilst loading symbols.
3344         (record_bfd_errors): New function: Report BFD errors and mark
3345         the executable output as being invalid.
3347 2001-02-22  Timothy Wall  <twall@cygnus.com>
3349         * configure.host: Add configuration for ia64-*-aix*.
3350         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3351         Add dependencies for eelf64_aix.c.
3352         * Makefile.in: Regenerate.
3353         * configure.tgt: Add ia64-*-aix* mapping.
3354         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3355         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
3356         AIX-specific test.
3358 2001-02-20  H.J. Lu  <hjl@gnu.org>
3360         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3361         false if we found the file.
3363 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
3365         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3366         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3368 2001-02-18  lars brinkhoff  <lars@nocrew.org>
3370         * Makefile.am: Add PDP-11 target.
3371         * configure.tgt: Likewise.
3372         * emulparams/pdp11.sh: New file.
3374 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
3376         * configure.host: Add a generic FreeBSD configuration entry such that
3377         all [modern] FreeBSD systems on all platforms will look the same.
3379 2001-02-14  H.J. Lu  <hjl@gnu.org>
3381         * configure.tgt: Remove mention of earmelf_linux26.
3383 2001-02-13  Richard Henderson  <rth@redhat.com>
3385         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3387 2001-02-13  H.J. Lu  <hjl@gnu.org>
3389         * ldexp.h (node_type): Add etree_provided.
3390         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3391         type to etree_provided if defined by PROVIDE. Allow updating
3392         for etree_provided.
3393         (exp_print_tree): Handle etree_provided.
3394         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3395         etree_provided.
3397 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
3399         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3400         .IA_64.unwind.* pattern to unwind table section and
3401         .IA_64.unwind_info* pattern to unwind info section.
3403 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3405         * Makefile.am: Add linux target for S/390.
3406         * Makefile.in: Likewise.
3407         * configure.host: Likewise.
3408         * configure.tgt: Likewise.
3409         * emulparams/elf64_s390.sh: New file.
3410         * emulparams/elf_s390.sh: New file.
3412 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
3414         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3415         targ_extra_libpath.
3416         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3418 2001-02-06  Philip Blundell  <philb@gnu.org>
3420         * Makefile.am: Remove mention of earmelf_linux26.
3421         * Makefile.in: Regenerate.
3423 2001-02-04  Philip Blundell  <philb@gnu.org>
3425         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3426         * emulparams/armelf_linux26.sh: Delete.
3427         * configure.tgt: Remove mention of armelf_linux26 emulation.
3429 2001-02-01  Nick Clifton  <nickc@redhat.com>
3431         * ld.1: Replace occurances of -oformat with --oformat.
3433 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
3435         * ldlang.c (lang_leave_overlay): Don't set lma_region when
3436         load_base is specified.
3438 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
3440         * emultempl/elf32.em: Correct spelling in comments and listed
3441         options.
3443 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
3445         * ldlang.c (lang_leave_overlay): Only set lma_region from the
3446         default for the first section of a group of overlay sections.
3448 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
3450         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3451         * Makefile.in: Regenerate.
3452         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3453         Check for null tool_dir.
3455 2001-01-16  Jim Wilson  <wilson@redhat.com>
3457         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3458         and IA_64.unwind.info.
3460 2001-01-16  H.J. Lu  <hjl@gnu.org>
3462         * ldlang.c (lang_check): Merge the private data only if the
3463         input file has contents.
3465 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
3467         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3469         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3470         enabling search for libmilli.  On a relocatable link, make .text
3471         sections unique.
3472         (LDEMUL_AFTER_PARSE): Define.
3473         (hppaelf_finish): Correct spelling of relocatable in comments.
3475         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3476         rummage through the script for sections on the unique list.
3477         Correct length of strncmp for ".note".
3478         (gld${EMULATION_NAME}_check_needed): Rearrange function.
3480         * ldlang.c (unique_section_list): New var.
3481         (unique_section_p): New function.
3482         (walk_wild_section): Don't match sections on unique_section_list.
3483         (lang_add_unique): New function.
3484         Correct spelling of relocatable in comments.
3486         * ldlang.h (struct unique_sections): Declare.
3487         (unique_section_list): Declare.
3488         (unique_section_p): Declare.
3489         (lang_add_unique): Declare.
3491         * lexsup.c (ld_options): Allow --unique to take an optional arg.
3492         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3494         * ld.texinfo (--unique): Update.
3496 2001-01-13  Nick Clifton  <nickc@redhat.com>
3498         * lexsup.c (parse_args): Remove spurious white space.
3500 2001-01-12  Nick Clifton  <nickc@redhat.com>
3502         * lexsup.c (parse_args): Update copyright date.
3504 2001-01-12  Philip Blundell  <pb@futuretv.com>
3506         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3508 2001-01-10  Kazu Hirata  <kazu@hxi.com>
3510         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
3511         * scripttempl/h8300h.sc: Fix formatting.
3512         * scripttempl/h8300s.sc: Likewise.
3513         * scripttempl/h8500.sc: Likewise.
3514         * scripttempl/h8500b.sc: Likewise.
3515         * scripttempl/h8500c.sc: Likewise.
3516         * scripttempl/h8500m.sc: Likewise.
3517         * scripttempl/h8500s.sc: Likewise.
3519 2000-01-07  David O'Brien  <obrien@BSDi.com>
3521         * emultempl/elf32.em: Only perform Linux ld hints processing when
3522         targeting Linux.
3524 2001-01-07  Philip Blundell  <philb@gnu.org>
3526         * ld.texinfo (Bug Reporting): Update email address for reports.
3528 2000-12-31  Nick Clifton  <nickc@redhat.com>
3530         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3531         options by checking for a return value of '?' not -1.
3533 2000-12-28  Nick Clifton  <nickc@redhat.com>
3535         * lexsup.c (struct ld_option): Add new enum value:
3536         EXACTLY_TWO_DASHES.
3537         (ld_options[]): Change -omagic, -output and -oformat options
3538         to be EXACTLY_TWO_DASHES.
3539         (OUTPUT_COUNT): Use ARRAY_SIZE.
3540         (parse_args): Change parameter 'argc' to unsigned.
3541         Place EXACTLY_TWO_DASHES options into new really_longopts
3542         array.
3543         If getopt_long_only fails, try calling getopt_long using the
3544         really_longopts array.
3545         (help): Print a double dash for both EXACTLY_TWO_DASHES and
3546         TWO_DASHES options.
3548         * ldlex.h: Fix prototype of parse_args.
3550         * ld.texinfo: Document that long options starting with 'o'
3551         must be preceeded by two dashes.  Change example of a single
3552         dashed long option from -oformat to -trace-symbol.
3554 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3556         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3557         (longopts[]): New --no-default-excludes option.
3558         (gld_${EMULATION_NAME}_list_options): Document.
3559         (gld_${EMULATION_NAME}_parse_args): Handle.
3561 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3563         * ldlang.c (new_stat): Revert the last beautification with "innocent"
3564         whitespace, it breaks the K&R C preprocessor.
3566 2000-12-11  DJ Delorie  <dj@redhat.com>
3568         * ld.texinfo: Add notes about --whole-archive and gcc.
3570 2000-11-18  Fred Fish  <fnf@be.com>
3572         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3573         (ld_options): Entry for --allow-shlib-undefined.
3574         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3575         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3576         to false.
3577         * ld.texinfo: Document new command line switch.
3579 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
3581         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3582         .fixup is actually read/write.
3583         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3584         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3585         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3587 2000-12-11  Jan Hubicka  <jh@suse.cz>
3589         * NEWS: Add note about x86_64 architecture.
3591 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
3593         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3594         Set DWARF2 sections to a VMA of zero.
3596 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
3598         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3599         New targets.
3600         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3601         (sparc*-*-rtems*): Switched from a.out to ELF.
3603 2000-11-30  Jan Hubicka  <jh@suse.cz>
3605         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3606         (eelf_x86_64.c): New.
3607         * Makefile.in: Regenerate.
3608         * configure.tgt: Add support for x86_64-*-linux-gnu*.
3609         * emulparams/elf_x86_64.sh: New.
3611 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
3613         * emulparams/crislinux.sh (ENTRY): Change back to _start.
3614         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3616         * scripttempl/crisaout.sc: Change all RELOCATING not related to
3617         merging non-a.out sections into CONSTRUCTING.
3619 2000-11-28  Nick Clifton  <nickc@redhat.com>
3621         * ld.1 (COPYING): Mention that the GNU Free Documentation
3622         License is present in the sources, but not the output, and
3623         also available from the GNU website.
3624         (GNU Free Documentation License): Comment out this section.
3626 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
3628         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3629         does not use them.
3631 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
3633         * ld.1: Remove old date so it does not give the impression the manpage
3634         is way out of date.
3636 2000-11-24  Nick Clifton  <nickc@redhat.com>
3638         * configure.tgt (xscale-coff): Add target.
3639         (xscale-elf): Add target.
3641 2000-11-24  Fred Fish  <fnf@be.com>
3643         * ldmain.c (main): Remove redundant init of config.make_executable
3644         to true.
3646 2000-11-15  Richard Henderson  <rth@redhat.com>
3648         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3650 2000-11-14  Kazu Hirata  <kazu@hxi.com>
3652         * scripttempl/h8300.sc: Fix formatting.
3653         * scripttempl/h8300h.sc: Likewise.
3654         * scripttempl/h8300s.sc: Likewise.
3656 2000-11-14  Denis Chertykov  <denisc@overta.ru>
3658         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3660 2000-11-09  Philip Blundell  <pb@futuretv.com>
3662         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3663         around orphan sections whose names can be represented in C.
3665 2000-11-07  Jim Wilson  <wilson@redhat.com>
3667         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3668         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
3670 2000-11-06  Nick Clifton  <nickc@redhat.com>
3672         * ld.texinfo: Add GNU Free Documentation License.
3673         * ldint.texinfo: Add GNU Free Documentation License.
3674         * ld.1: Add GNU Free Documentation License.
3676 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
3678         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3679         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3681         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3682         Move 2000-11-02 Makefile.in changes to this file.
3683         * Makefile.in: Regenerate.
3685 2000-11-03  Nick Clifton  <nickc@redhat.com>
3687         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3688         constructors and destructors.
3689         * scripttempl/h8300h.sc: Ditto.
3690         * scripttempl/h8300s.sc: Ditto.
3691         * scripttempl/h8500.sc: Ditto.
3692         * scripttempl/h8500b.sc: Ditto.
3693         * scripttempl/h8500c.sc: Ditto.
3694         * scripttempl/h8500m.sc: Ditto.
3695         * scripttempl/h8500s.sc: Ditto.
3696         * scripttempl/v850.sc: Ditto.
3697         * scripttempl/w65.sc: Ditto.
3698         * scripttempl/z8000.sc: Ditto.
3700 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
3702         * Makefile.in (e_i386_chaos.c): New rule.
3703         (ALL_EMULATIONS): Added e_i386_chaos.o.
3704         * emulparams/elf_i386_chaos.sh: New file.
3705         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3707 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
3709         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3710         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3711         Fix sed invocation, so that it coped with '/' in Solaris 64bit
3712         library path suffix.
3713         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3715 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
3717         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3718         for consecutive sections.
3720 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
3722         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3723         options.
3724         * ld.texinfo: Added notes about this new option.
3726 2000-10-16  Nick Clifton  <nickc@redhat.com>
3728         * emultempl/pe.em (_after_open): Add tests of return values from
3729         bfd functions.  Emit appropriate error messages if necessary.
3731 2000-10-13  Nick Clifton  <nickc@redhat.com>
3733         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3734         local variables - they are not used, but leave in the call to
3735         bfd_canonicalize_symtab.
3736         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3737         pe_dll_search_prefix.
3739 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
3741         * emultempl/pe.em (pe_dll_search_prefix): New variable,
3742         (longopts): New --dll-search-prefix option.
3743         (gld_${EMULATION_NAME}_list_options): Document.
3744         (gld_${EMULATION_NAME}_parse_args): Handle.
3745         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3746         dynamically, search for a dll named '<prefix><basename>.dll'
3747         in preference to 'lib<basename>.dll' if --dll-search-prefix
3748         is specified.
3750 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3752         * ldlang.c (section_already_linked): Set kept_section instead of
3753         sec->comdat->sec.
3755 2000-10-10  Kazu Hirata  <kazu@hxi.com>
3757         * deffile.h: Fix formatting.
3758         * lexsup.c: Likewise.
3759         * mri.c: Likewise.
3761 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3763         * pe-dll.c (make_one): Do not generate code thunk for DATA
3764         exports.
3765         (process_def_file): deduce DATA flag for auto-export sumbols.
3767 2000-10-09  Kazu Hirata  <kazu@hxi.com>
3769         * ld.h: Fix formatting.
3770         * ldcref.c: Likewise.
3771         * ldctor.h: Likewise.
3772         * ldemul.c: Likewise.
3773         * ldemul.h: Likewise.
3774         * ldexp.c: Likewise.
3775         * ldexp.h: Likewise.
3776         * ldfile.c: Likewise.
3777         * ldfile.h: Likewise.
3778         * ldlang.c: Likewise.
3779         * ldlang.h: Likewise.
3780         * ldmain.c: Likewise.
3781         * pe-dll.c: Likewise.
3783         * pe-dll.c: Revert some formatting fixes.
3785 2000-10-08  Kazu Hirata  <kazu@hxi.com>
3787         * pe-dll.c: Fix formatting.
3789 2000-10-05  Kazu Hirata  <kazu@hxi.com>
3791         * ldlang.c: Fix formatting.
3793 2000-10-03  DJ Delorie  <dj@redhat.com>
3795         * pe-dll.c (fill_edata): initialize entire block
3796         (make_one): fill in correct section.
3798 2000-10-03  Kazu Hirata  <kazu@hxi.com>
3800         * ldexp.c: Fix formatting.
3802 2000-10-02  DJ Delorie  <dj@redhat.com>
3804         * emultempl/pe.em (gld_*_after_open): detect case where there two
3805         import libraries for same dll; rename one to ensure proper link
3806         order.
3808         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3809         typo
3810         (generate_edata): fix typo
3812 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
3814         * scripttempl/crisaout.sc (ENTRY): Now __start.
3815         (.text): Add default setting for __start.
3816         Remove CONSTRUCTORS handling.
3817         (/DISCARD/): Add .gnu.warning.*.
3818         * emulparams/crislinux.sh (ENTRY): Now __start.
3819         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3820         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3821         (ENTRY): Now __start.
3822         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3823         (EXECUTABLE_SYMBOLS): Add default setting for __start.
3825 2000-09-29  Kazu Hirata  <kazu@hxi.com>
3827         * deffile.h: Fix formatting.
3828         * ld.h: Likewise.
3829         * ldcref.c: Likewise.
3830         * ldctor.c: Likewise.
3831         * ldctor.h: Likewise.
3832         * ldemul.c: Likewise.
3833         * ldemul.h: Likewise.
3834         * ldexp.c: Likewise.
3835         * ldexp.h: Likewise.
3836         * ldfile.c: Likewise.
3837         * ldfile.h: Likewise.
3838         * ldlang.c: Likewise.
3839         * ldlang.h: Likewise.
3840         * lexsup.c: Likewise.
3841         * mri.c: Likewise.
3842         * pe-dll.c: Likewise.
3844 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3846         * pe-dll.c (process_def_file): Uninitialized data wasn't
3847         exported with --export-all-symbols switch.
3849 2000-09-28  DJ Delorie  <dj@redhat.com>
3851         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3852         noname work properly.
3854 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
3856         * ld.texinfo (HPPA ELF32): New section.
3858         * emultempl/hppaelf.em (group_size): New.
3859         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3860         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3861         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
3862         options to prevent abbreviations matching.
3863         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
3864         (PARSE_AND_LIST_ARGS_CASES): Handle it.
3866 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3868         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3869         on the m68*-*-elf target.  Make it support COFF input objects.
3871 2000-09-21  Kazu Hirata  <kazu@hxi.com>
3873         * ldmain.c: Fix formatting.
3874         * ldmisc.c: Likewise.
3875         * ldver.c: Likewise.
3876         * ldwrite.c: Likewise.
3878 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3880         * ldwrite.c (clone_section): Silence gcc warnings.
3882 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3884         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3885         out of memory failure.
3887         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3888         (clone_section): Handle out of memory failures.  Rename var to
3889         avoid c++ reserved word.
3891 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3893         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3894         stub_name param to stub_sec_name.
3895         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3897 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3899         * emultempl/m68kelf.em: New file.
3900         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3901         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3902         * Makefile.in: Regenerate.
3904 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3906         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3907         only as needed.
3909 2000-09-13  Nick Clifton  <nickc@redhat.com>
3911         * ldmain.c (multiple_definition): Disable relaxation if
3912         multiple symbol definitions are encountered - otherwise the
3913         linker could abort with an assertion failure.
3915 2000-09-10  Nick Clifton  <nickc@redhat.com>
3917         * mri.c: Fix formatting.
3919 2000-09-07  H.J. Lu  <hjl@gnu.org>
3921         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3922         * configure: Rebuild.
3924 2000-09-07  H.J. Lu  <hjl@gnu.org>
3926         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3927         * Makefile.in: Rebuild.
3929 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
3931         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3932         broken list handling.  Create __start_SECNAME and __stop_SECNAME
3933         when no place-holder.  Add some comments.  Test both SEC_CODE and
3934         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3935         Handle case where no output section statement created.
3937 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
3939         * configure.tgt (sh-*-linux*): Added.
3940         * Makefile.am: Added eshelf_linux and eshlelf_linux.
3941         * Makefile.in: Rebuilt.
3942         * emulparams/shelf_linux.sh: New file.
3943         * emulparams/shlelf_linux.sh: New file.
3945 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
3947         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3948         try shuffling sections when the orphan happens to be the place
3949         holder.  Keep count of unique section names generated so we speed
3950         the search for a new name.
3952 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
3954         * configure: Rebuilt with new libtool.m4.
3956 2000-09-05  Nick Clifton  <nickc@redhat.com>
3958         * Makefile.in: Regenerate.
3959         * aclocal.m4: Regenerate.
3960         * configure: Regenerate.
3961         * config.in: Regenerate.
3962         * po/ld.pot: Regenerate.
3964         * ldint.texinfo: Remove CVS revision marker - it foils local
3965         comparisons.
3967         * emultempl/ticoff.em: Remove extraneous comma.
3969 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
3971         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3972         to stub section flags.
3973         (hppa_for_each_input_file_wrapper): New.
3974         (hppa_lang_for_each_input_file): New.
3975         (lang_for_each_input_file): Define to call above.
3976         (multi_subspace): New.
3977         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3978         (PARSE_AND_LIST_PROLOGUE): Define.
3979         (PARSE_AND_LIST_LONGOPTS): Define.
3980         (PARSE_AND_LIST_OPTIONS): Define.
3981         (PARSE_AND_LIST_ARGS_CASES): Define.
3982         (hppaelf_finish): Call elf32_hppa_set_gp.
3983         (hppaelf_set_output_arch): Remove.
3984         (LDEMUL_SET_OUTPUT_ARCH): Remove.
3986         * emulparams/hppalinux.sh (ELFSIZE): Define.
3987         (MACHINE): Define.
3988         (OTHER_READONLY_SECTIONS): Define.
3989         (DATA_PLT): Define.
3990         (GENERATE_SHLIB_SCRIPT): Define.
3992         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
3993         to const throughout.  Change `void *' to `PTR' throughout.
3994         (lang_memory_default): Function is local to file, add `static'.
3996         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3997         (ehppalinux.c): Likewise.
3998         (earmelf.c): Likewise.
3999         (earmelf_linux.c): Likewise.
4000         (earmelf_linux26.c): Likewise.
4001         * Makefile.in: Regenerate.
4003         * ld.h (ld_config_type): Add unique_orphan_sections.
4004         * lexsup.c (OPTION_UNIQUE): Define.
4005         (ld_options): Add "--unique".
4006         (parse_args): Handle it.
4007         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4008         search for an existing output section if unique_orphan_sections is
4009         set.  Make use of bfd_get_unique_section_name rather than
4010         duplicating code here.
4011         * ld.texinfo: Describe --unique.
4013         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4014         optional arg to split-by-file.
4015         (parse_args): Handle them.
4016         * ld.texinfo: Update description of these options.
4017         * ldwrite.c (clone_section): Pass in the section name.  Replace
4018         local code with bfd_get_unique_section_name.
4019         (split_sections): Tidy code and comments.  Use a list traversal
4020         more appropriate to the list construction.  Handle cooked section
4021         sizes.  Split when split_by_reloc reached rather than exceeded.
4022         Track section size and split when split_by_file reached.  Fix
4023         link_order_tail (even though it's not used).
4024         (ldwrite): Modify condition for calling split_sections to suit
4025         changed split_by_reloc and split_by_file.
4026         * ldmain.c (main): Init config.split_by_reloc and
4027         config.split_by_file to -1.
4028         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4029         Change split_by_file to bfd_size_type.
4031 2000-09-02  Nick Clifton  <nickc@redhat.com>
4033         * configure.in: Increase version number to 2.10.91.
4034         * NEWS: Mention new ability to support removal of duplicate DWARF2
4035         debug information.
4036         * configure: Regenerate.
4037         * aclocal.m4: Regenerate.
4038         * config.in: Regenerate.
4040 2000-09-02  Daniel Berlin <dberlin@redhat.com>
4042         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4043         sections.
4044         * scripttempl/elf32avr.sc: Ditto.
4045         * scripttempl/elfd10v.sc: Ditto.
4046         * scripttempl/elfd30v.sc: Ditto.
4047         * scripttempl/elfi370.sc: Ditto.
4048         * scripttempl/elfm68hc11.sc: Ditto.
4049         * scripttempl/elfm68hc12.sc: Ditto.
4050         * scripttempl/elfi386beos.sc: Ditto.
4051         * scripttempl/v850.sc: Ditto.
4053 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
4055         * acinclude.m4: Include libtool and gettext macros from the
4056         top level.
4057         * aclocal.m4, configure: Rebuilt.
4059 2000-08-25  Nick Clifton  <nickc@redhat.com>
4061         * ldlang.c (open_output): When choosing the target for a
4062         particular endianness, do nothing if the target is not
4063         supported.
4065 2000-08-25  H.J. Lu  <hjl@gnu.org>
4067         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4068         check -rpath nor LD_RUN_PATH for cross link.
4069         * ld.texinfo: Document the change.
4071 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
4073         * NEWS: Mention support for CRIS.
4075 2000-08-23  H.J. Lu  <hjl@gnu.org>
4077         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4078         the current runpath list from bfd_elf_get_runpath_list ()
4079         before search.
4081 2000-08-22  H.J. Lu  <hjl@gnu.org>
4083         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4084         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4085         LD_LIBRARY_PATH for native linker. Display the needed DSO if
4086         trace_file_tries is non-zero.
4087         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4088         if trace_file_tries is non-zero.
4090         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4091         * NEWS: Mention it.
4093 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
4095         * NEWS: Mention i860 support.
4097 2000-08-14  Andreas Schwab  <schwab@suse.de>
4099         * scripttempl/elf.sc: Fix last change to use correct comment
4100         syntax.
4102 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
4104         * scripttempl/elf.sc: Add a comment giving the correspondence
4105         between sections, per-datum sections, and linkonce sections.  Make
4106         the comment true even for .bss, .sdata, .sdata2, .sbss, and
4107         .sbss2.
4109 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
4111         * emulparams/elf32_i860.sh: New file.
4112         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4113         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4114         (eelf32_i860.c): New rule.
4115         * Makefile.in: Regenerate.
4117 2000-08-10  Nick Clifton  <nickc@cygnus.com>
4119         * emulparams/mipspe.sh (ENTRY): Add definition.
4121 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
4123         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4124         in error message.
4126 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4128         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4129         the final size of .bss section.
4130         * scripttempl/elfm68hc12.sc: Likewise.
4132 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
4134         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4135         gld${EMULATION_NAME}_parse_args for consistency.  Combine
4136         lastoptind and prevoptind vars, and keep track of last optind.
4137         (gld_${EMULATION_NAME}_list_options): Rename to
4138         gld${EMULATION_NAME}_list_options.
4140 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
4142         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4143         (i586-sco-sysv5uw7.1.0).
4145 2000-07-27  H.J. Lu  <hjl@gnu.org>
4147         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4148         (PARSE_AND_LIST_PROLOGUE): New.
4149         (PARSE_AND_LIST_LONGOPTS): Likewise.
4150         (PARSE_AND_LIST_OPTIONS): Likewise.
4151         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4152         (PARSE_AND_LIST_EPILOGUE): Likewise.
4154 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
4156         * emultempl/armelf.em: Elide functions common to elf32.em,
4157         ie. most of the file.
4158         (arm_elf_after_open): New.  Do arm specific things then call
4159         gld${EMULATION_NAME}_after_open.
4160         (arm_elf_before_allocation): New.  Call
4161         gld${EMULATION_NAME}_before_allocation then do arm specifics.
4162         (PARSE_AND_LIST_PROLOGUE): Define.
4163         (PARSE_AND_LIST_SHORTOPTS): Define.
4164         (PARSE_AND_LIST_LONGOPTS): Define.
4165         (PARSE_AND_LIST_OPTIONS): Define.
4166         (PARSE_AND_LIST_ARGS_CASES): Define.
4167         (LDEMUL_AFTER_OPEN): Define.
4168         (LDEMUL_BEFORE_ALLOCATION): Define.
4169         (LDEMUL_BEFORE_PARSE): Define.
4170         (LDEMUL_FINISH): Define.
4172         * emultempl/hppaelf.em: Similarly zap most of this file.
4173         (hppaelf_add_stub_section): Prototype.
4174         (hppaelf_layaout_sections_again): Prototype.
4175         (hook_in_stub): Prototype.
4176         (LDEMUL_SET_OUTPUT_ARCH): Define.
4177         (LDEMUL_FINISH): Define.
4178         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4180         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4181         (EXTRA_EM_FILE): New.
4182         * emulparams/armelf_linux.sh: Likewise.
4183         * emulparams/armelf_linux26.sh: Likewise.
4184         * emulparams/hppalinux.sh: Likewise.
4185         * emulparams/hppaelf.sh: Likewise.
4186         (NOP): Define.
4188         * emultempl/elf32.em: Fix formatting.
4189         (EXTRA_EM_FILE): Source it.
4190         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4191         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4192         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4193         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4194         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4195         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4196         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4197         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4198         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
4199         allow functions in this file to be overridden.
4200         (PARSE_AND_LIST_SHORTOPTS): Handle it.
4202         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4204         * emultempl/elf32.em: Reorganize file.
4206 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
4208         * emulparams/elf64alpha.sh: Implement "-taso" emulation
4209         specific option to fit 64-bit executable in the lower
4210         31-bit address range.  This is done by changing start
4211         address of .interp (the very first section of executable)
4212         and then setting EF_ALPHA_32BIT elf header flag.
4214 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4216         * emultempl/m68kcoff.em: New file.
4217         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4218         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4219         generic.em.
4220         * Makefile.in: Regenerate.
4222 2000-07-20  H.J. Lu  <hjl@gnu.org>
4224         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4225         and "disable-new-dtags" to stop getopt from treating -d/-e as
4226         abbreviations for these options.
4228 2000-07-20  H.J. Lu  <hjl@gnu.org>
4230         * ld.texinfo: Add documentation for --disable-new-dtags and
4231         --enable-new-dtags.
4233         * ldmain.c (main): Initialize link_info.new_dtags to false.
4235         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4236         --disable-new-dtags and --enable-new-dtags.
4237         (gld_${EMULATION_NAME}_list_options): Likewise.
4239 2000-07-05  Kenneth Block  <krblock@computer.org>
4241         * lexsup.c: Add optional style to demangle switch
4242         * ld.texinfo: Document optional style to demangle switch.
4244 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
4246         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4247         ecrislinux.o.
4248         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4249         Regenerate dependencies.
4250         * Makefile.in: Rebuild.
4251         * configure.tgt (cris-*-*): New target.
4252         * emulparams/crisaout.sh, emulparams/criself.sh,
4253         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4254         * po/POTFILES.in, po/ld.pot: Regenerate.
4256 2000-07-20  H.J. Lu  <hjl@gnu.org>
4258         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4259         Print out ignored -z options.
4261 2000-07-19  H.J. Lu  <hjl@gnu.org>
4263         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4264         (PARSE_AND_LIST_PROLOGUE): New.
4265         (PARSE_AND_LIST_LONGOPTS): Likewise.
4266         (PARSE_AND_LIST_OPTIONS): Likewise.
4267         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4269         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4271         * lexsup.c (ld_options): Comment out 'z'.
4272         (parse_args): Likewise.
4274         * emultempl/elf32.em: Include "elf/common.h".
4275         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4276         options.
4277         (gld_${EMULATION_NAME}_list_options): Likewise.
4279         * ld.texinfo: Add documentation for the recognized -z options.
4281 2000-07-19  H.J. Lu  <hjl@gnu.org>
4283         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4284         bfd_elf_set_dt_needed_soname ().
4286 2000-07-18  DJ Delorie  <dj@cygnus.com>
4288         * pe-dll.c (pe_dll_id_target): check object target name also
4290 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
4292         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4293         ${INIT_END} if relocating.
4294         (.fini): Likewise ${FINI_START} and ${FINI_END}.
4296 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
4298         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4299         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4300         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4301         errors introduced by the old dynamic lib search order.
4303 2000-07-17  DJ Delorie  <dj@cygnus.com>
4305         * pe-dll.c (process_def_file): auto-export data items also
4306         (pe_process_import_defs): also see if _imp_ form needed
4308 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
4310         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4311         for dll import libraries
4313 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
4315         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4316         gcc 2.95.2 and later.
4318 2000-07-11  Kazu Hirata  <kazu@hxi.com>
4320         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4321         message.
4323 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4325         * ldemul.h (struct lang_input_statement_struct): Remove forward
4326         declaration.
4327         (struct search_dirs): Likewise.
4328         * ldfile.h (struct lang_input_statement_struct): Likewise.
4329         Protect file from multiple inclusion.
4330         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4331         declaration from macro to file scope.
4333         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4334         * ldgram.y: Likewise here.
4335         * ldlang.c: And here.
4336         * ldmain.c: And here.
4337         * mpw-elfmips.c: And here.
4338         * mpw-eppcmac.c: And here.
4339         * emultempl/aix.em: And here.
4340         * emultempl/armcoff.em: And here.
4341         * emultempl/armelf.em: And here.
4342         * emultempl/armelf_oabi.em: And here.
4343         * emultempl/beos.em: And here.
4344         * emultempl/elf32.em: And here.
4345         * emultempl/hppaelf.em: And here.
4346         * emultempl/linux.em: And here.
4347         * emultempl/lnk960.em: And here.
4348         * emultempl/pe.em: And here.
4349         * emultempl/sunos.em: And here.
4350         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4351         * mpw-idtmips.c: Ditto.
4352         * emultempl/generic.em: Ditto.
4353         * emultempl/gld960.em: Ditto.
4354         * emultempl/gld960c.em: Ditto.
4355         * emultempl/mipsecoff.em: Ditto.
4356         * emultempl/ticoff.em: Ditto.
4357         * emultempl/vanilla.em: Ditto.
4359         * pe-dll.c: Include ldfile.h
4360         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4362         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4363         arguments to bfd_elf32_size_dynamic_sections call.
4364         (gldelf32ebmip_place_orphan): Add missing arguments to
4365         lang_leave_output_section_statement call.
4367 2000-07-10  H.J. Lu  <hjl@gnu.org>
4369         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4370         DLL_SUPPORT.
4371         (strhash): Likewise.
4372         (compute_dll_image_base): Likewise.
4373         (pe_undef_found_sym): Likewise.
4374         (pe_undef_cdecl_match): Likewise.
4375         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4376         argument "arch" with ATTRIBUTE_UNUSED.
4378 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4380         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4382         From  Ryan Bradetich  <rbradetich@uswest.net>
4383         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4385 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
4387         Changes to create multiple linker stubs, positioned immediately
4388         before the section where they are required.
4389         * emultempl/hppaelf.em: Include elf32-hppa.h.
4390         (stub_sec, file_chain): Delete.
4391         (hppaelf_create_output_section_statements): Don't make a stub
4392         section here.
4393         (hook_stub_info): New struct.
4394         (hook_in_stub): New function.
4395         (hppaelf_add_stub_section): New function.
4396         (hppaelf_finish): Do nothing for relocateable links.  Modify the
4397         call to elf32_hppa_size_stubs.  Move code for updating section
4398         layout from here...
4399         (hppaelf_layaout_sections_again): ..to here, a new function.
4401         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4402         broken list handling.  Pass in a pointer to the list.
4403         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4404         for above changes.
4405         (hppaelf_before_parse): Prototype.
4406         (hppaelf_set_output_arch): Prototype.
4407         (hppaelf_create_output_section_statements): Prototype.
4408         (hppaelf_delete_padding_statements): Prototype.
4409         (hppaelf_finish): Prototype.
4411         Merge from elf32.em
4412         * emultempl/hppaelf.em: Include ctype.h.
4413         (struct orphan_save): New.
4414         (gld${EMULATION_NAME}_place_orphan): New.
4415         (output_rel_find): New.
4416         (hppaelf_get_script): Update from elf32.em.
4417         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4418         Change emulation_name field to "${EMULATION_NAME}".  Add
4419         gld${EMULATION_NAME}_place_orphan.
4421         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
4422         ehppalinux.o, sort it.  Regenerate dependencies.
4423         (ehppalinux.c): Depend on hppaelf.em
4424         * Makefile.in: Regenerate.
4426         * configure.tgt: targ_emul=hppalinux for hppa*linux
4428         * emulparams/hppalinux.sh: New.
4429         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4431 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
4433         * lexsup.c (parse_args): Copy section name.
4435 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
4437         * emultempl/pe.em: institute the following search order for
4438         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4439         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
4440         static lib (libfoo.a) if none of the above are found.
4442 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
4444         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4445         (longopts): New --{enable,disable}-auto-image-base options.
4446         (gld_${EMULATION_NAME}_list_options): Document.
4447         (gld_${EMULATION_NAME}_parse): Handle.
4448         (strhash): New static function.
4449         (compute_dll_image_base): New static function.
4450         (gld_${EMULATION_NAME}_set_symbols): Use.
4452 2000-07-05  DJ Delorie  <dj@redhat.com>
4454         * MAINTAINERS: new
4456 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
4458         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4459         * emulparams/elf32btsmip.sh: New file.
4460         * Makefile.am: Add traditional mips target.
4461         * Makefile.in: Rebuild.
4463 2000-07-01  H.J. Lu  <hjl@gnu.org>
4465         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4466         automake to use YLWRAP.
4467         * Makefile.in: Rebuild.
4469 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
4471         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
4472         (CLEANFILES): Add DEPA.
4473         * Makefile.in: Regenerate.
4475 2000-06-30  Timothy Wall  <twall@ppc>
4477         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4478         the page in the upper octet of the address.
4480 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
4482         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4484 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
4486         * NEWS: arm-elf does --gc-sections too.
4488 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
4490         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4491         find one.
4492         * Makefile.in: Regenerate.
4494 2000-06-21  H.J. Lu  <hjl@gnu.org>
4496         * Makefile.am: Rebuild dependency.
4497         * Makefile.in: Rebuild.
4499 2000-06-20  H.J. Lu  <hjl@gnu.org>
4501         * Makefile.am: Rebuild dependency.
4502         * Makefile.in: Rebuild.
4504 2000-06-20  Timothy Wall  <twall@cygnus.com>
4506         * scripttempl/tic54xcoff.sc: New.
4507         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4508         * gen-doc.texi: Add flag for TI COFF.
4509         * ld.texinfo: Add documentation for TI COFF handling switches.
4510         * emultempl/ticoff.em: New. TI COFF handling.
4511         * configure.tgt: Add tic54x target.
4512         * Makefile.am: Add tic54x target.
4513         * Makefile.in: Ditto.
4515 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
4517         * ldmain.c (set_scripts_dir): Correct pointer comparison when
4518         checking for backslashes.
4520 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
4522         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4524 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
4526         * NEWS: Update list of targets supporting --gc-sections.
4528         * scripttempl/elf.sc: KEEP .eh_frame contents.
4529         * scripttempl/elfd30v.sc: Same here.
4531 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4533         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4534         and m68hc11 (elf).
4535         * Makefile.in: Rebuild.
4536         * configure.tgt: Recognize m68hc12 and m68hc11.
4537         * scripttempl/elfm68hc12.sc: New file.
4538         * emulparams/m68hc12elfb: New emulation.
4539         * emulparams/m68hc12elf: New emulation.
4540         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
4541         (includes a memory.x script to define the ROM and RAM banks).
4542         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4543         New configuration files for support of Motorola 68hc11
4545 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
4547         * ldmain.c (main): Only change SEC_READONLY for final link.
4549 2000-06-13  H.J. Lu  <hjl@gnu.org>
4551         * configure: Regenerate.
4553 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4555         * configure.in (VERSION): Update to show this is the CVS mainline.
4557 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4559         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4560         input objects to be ECOFF.
4561         (check_sections): einfo takes %B, not %P, to print a BFD name.
4563 2000-06-05  Michael Matz <matz@ifh.de>
4565         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4566         version scripts.
4568         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4570 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
4572         * emulparams/avr1200.sh (STACK): Define as 0.
4573         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4574         * emulparams/avr4433.sh (STACK): Likewise.
4575         * emulparams/avr44x4.sh (STACK): Likewise.
4576         * emulparams/avr85xx.sh (STACK): Likewise.
4577         * emulparams/avrmega103.sh (STACK): Likewise.
4578         * emulparams/avrmega161.sh (STACK): Likewise.
4579         * emulparams/avrmega603.sh (STACK): Likewise.
4580         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4581         (__stack): Define from ${STACK} for main().
4583 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4585         * Makefile.am: Update dependencies with "make dep-am"
4586         * Makefile.in: Regenerate.
4588 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
4590         * ldmain.c: Include filenames.h.
4591         (set_scripts_dir): Support backslashes in program name.
4593 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
4595         * ldmain.c (main): When deciding if ".text" section should be
4596         read-only, don't forget to reset SEC_READONLY because it
4597         could be already set.
4599 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
4601         * ld.1: Add documentation for new command line option:
4602                 --section-start <sectionname>=<sectionorg>
4603         This is a generic version of -Ttext etc. which accepts
4604         any section name as a parameter instead of just text/data/
4605         bss.
4606         * ld.texinfo: More docs.
4607         * NEWS: More docs.
4608         * lexsup.c: (parse_args): Recognize new command line option.
4609         (ld_options): Add new option.
4611 2000-05-18  H.J. Lu  <hjl@gnu.org>
4613         * lexsup.c (parse_args): `i' == `r', not `q'.
4615 2000-05-18  Jeffrey A Law  (law@cygnus.com)
4617         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4619 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
4620               Rick Gorton          <gorton@scrugs.lkg.dec.com>
4622         Add support for '-q' == '--emit-relocs' switch.
4623         * ldmain.c (main): Default to false.
4624         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4625         * NEWS: Describe the emitrelocations switch.
4626         * ld.texinfo: Describe the emitrelocations switch.
4628 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
4630         * emultempl/pe.em (_open_dynamic_archive): New function: Search
4631         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4632         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4633         link options.
4635 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
4637         * lexsup.c (parse_args): Update the year in the copyright notice.
4639 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
4641         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4642         Replace defines with those from intl/libgettext.h to quieten gcc
4643         warnings.
4645 2000-05-10  H.J. Lu  <hjl@gnu.org>
4647         * ldlang.c (open_input_bfds): Don't load the same file within
4648         a group again if the whole archive has been loaded already.
4650 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
4652         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4653         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4654         strtoul.
4656 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4658         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4660         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4661         host "ia64-*-linux-gnu*".
4663 2000-04-29  Andreas Jaeger  <aj@suse.de>
4665         * ld.h: Correctly check GCC version.
4667 2000-04-25  Jeffrey A Law  (law@cygnus.com)
4669         * Makefile.am: Add PA64 support.  Add missing dependencies for
4670         PA32 elf support.
4671         * Makefile.in: Rebuilt.
4672         * configure.tgt: Add PA64 support (currently disabled).
4674 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
4676         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4677         (output_rel_find): New function.
4678         (hold_section, hold_use): Delete.
4679         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4680         hold_interp): Make local to place_orphan.
4681         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4682         rather than place_section to find possible previous use of orphan.
4683         Similarly find the place-holder output sections.  Use returned
4684         value from lang_enter_output_section_statement rather than calling
4685         lang_output_section_statement_lookup.
4686         * emultempl/armelf.em: Same here.
4687         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4689         * ldlang.c (lang_enter_output_section_statement): Return output
4690         section statement.
4691         * ldlang.h (lang_enter_output_section_statement): Change
4692         declaration too.
4694         * ldlang.h (lang_output_section_statement): Export it.
4695         * ldlang.c (lang_output_section_statement): Ditto.
4697 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4699         * ld.texinfo (Output Section Data): Add note that section data
4700         commands cannot appear outside of section directives.
4702 2000-04-2  Matthew Green  <mrg@cygnus.com>
4704         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4706 2000-04-21  Richard Henderson  <rth@cygnus.com>
4707             David Mosberger  <davidm@hpl.hp.com>
4709         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4710         (eelf64_ia64.c): New rule.
4711         * Makefile.in: Rebuild.
4712         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4713         * emulparams/elf64_ia64.sh: New file.
4715 2000-04-21  Richard Henderson  <rth@cygnus.com>
4717         * scripttempl/elfd30v.sc: Place .gcc_except_table.
4719 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
4721         * dep-in.sed: Match space at start of file name, not at end.
4723 2000-04-18  H.J. Lu  <hjl@gnu.org>
4725         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4726         lang_leave_output_section_statement () after calling
4727         lang_enter_output_section_statement ().
4728         * emultempl/armelf.em: Likewise.
4730 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
4732         * emultempl/elf32.em (struct orphan_save): Add section field.
4733         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4734         better order, and place first orphan section as we did before the
4735         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
4736         Don't call make_bfd_section here, let wild_doit do the job for us.
4737         Don't build a statement list when we'll only throw it away.
4738         * emultempl/armelf.em: Ditto.
4739         * emultempl/pe.em: Similarly.
4741 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4743         * scripttempl/elfppc.sc: Remove.
4744         * emulparams/elf32ppc.sh: Use elf.sc.
4745         * emulparams/elf32lppc.sh: Use elf.sc.
4746         * emulparams/elf32ppclinux.sh: Use elf.sc.
4747         * emulparams/elf32ppcsim.sh: New file.
4748         * emulparams/elf32lppcsim.sh: New file.
4749         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
4750         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4751         * Makefile.in: Regenerate.
4752         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4754 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
4756         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4757         ~SEC_ALLOC sections too.  Init start address of debug sections.
4758         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4759         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4760         Also set all relocateable section start addresses.
4762 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
4764         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4765         Add new BSS_PLT variable for when .plt need not be contained in
4766         the file.  Move _etext so that it is also after .fini, and provide
4767         both etext and _etext with a leading underscore.  Mark the start
4768         and end of .sbss.
4770 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
4772         * emultempl/elf32.em (struct orphan_save): New.
4773         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4774         hold_interp): Make them struct orphan_save.
4775         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4776         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4777         the end of the relevant section list.  Also add associated section
4778         statements to the end of any previous orphan statements.
4779         * emultempl/armelf.em: Similarly.
4780         * emultempl/pe.em: Similarly.
4782 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
4784         * ld.texinfo (Simple Example): Remove extraneous paragraph.
4786 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
4788         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4789         --enable-build-warnings option.
4790         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4791         * Makefile.in, configure: Re-generate.
4793 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
4795         * po/ld.pot: Regenerate.
4797         * lexsup.c (help): Restore translated part of bug string.
4799         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4800         (DEP): Quote when passing vars to sub-make.  Add warning message
4801         to end.
4802         (DEP1): Rewrite for "gcc -MM".
4803         (CLEANFILES): Add DEP2.
4804         Update dependencies.
4805         * Makefile.in: Regenerate.
4807 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
4809         * ld.h: #include "bin-bugs.h"
4810         * lexsup.c (help): Use REPORT_BUGS_TO.
4812 2000-03-27  Denis Chertykov  <denisc@overta.ru>
4814         * configure.tgt (avr-*-*): New target support.
4815         * Makefile.am: Likewise.
4816         * scripttempl/elf32avr.sc: New script file.
4817         * emulparams/avr1200.sh: New file.
4818         * emulparams/avr23xx.sh: New file.
4819         * emulparams/avr4433.sh New file.
4820         * emulparams/avr44x4.sh New file.
4821         * emulparams/avr85xx.sh New file.
4822         * emulparams/avrmega103.sh New file.
4823         * emulparams/avrmega161.sh New file.
4824         * emulparams/avrmega603.sh New file.
4825         * Makefile.in: Regenerate.
4827 2000-03-09  Andreas Jaeger  <aj@suse.de>
4829         * Makefile.am (check-DEJAGNU): Also unset LANG.
4830         * Makefile.in: Rebuild.
4832 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
4834         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4835         archive.
4837 2000-03-02  H.J. Lu  <hjl@gnu.org>
4839         * emulparams/elf32mcore.sh: Include "getopt.h".
4841 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
4843         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4845 2000-03-01  H.J. Lu  <hjl@gnu.org>
4847         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4848         * emulparams/shpe.sh: Likewise.
4850 2000-03-01  Nick Clifton  <nickc@cygnus.com>
4852         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4853         to unused parameters.
4855         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4856         functions only used by DLL code.
4857         (_place_orphan): Initialise 'dollar'.
4859 2000-03-01  H.J. Lu  <hjl@gnu.org>
4861         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4862         indicate if the undefined symbol is a fatal error or not.
4863         Don't delete the output file if "fatal" is false.
4865 2000-02-29  H.J. Lu  <hjl@gnu.org>
4867         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4868         Set LC_COLLATE and LC_ALL to null and export them. It is for
4869         sort which expects the C locale.
4870         Add $(LIBS) to all $(HOSTING_LIBS).
4871         * Makefile.in: Rebuild.
4873 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
4875         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4876         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4877         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4878         (ld_emulation_xfer_struct): Add missing NULL initialiser for
4879         find_potential_libraries.
4881 2000-02-28  Jim Blandy  <jimb@redhat.com>
4883         * ldgram.y (exclude_name_list): Don't require a comma to separate
4884         list entries; the lexer considers commas to be valid part of a
4885         filename, so in something like `foo, bar' the comma is considered
4886         part of the first filename, `foo,'.
4887         * ld.texinfo: Update section on EXCLUDE_FILE lists.
4889 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
4891         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4892         host "i[3456]86-*-freebsdelf*".
4894 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
4896         * scripttempl/i386go32.sc: Move misplaced semicolons.
4898 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
4900         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4901         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4902         (eelf64hppa.c, ehppaelf.c): Remove targets.
4903         * Makefile.in: Rebuild.
4905 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4907         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4908         GNU/Linux/sparc, but keep the default as 32.
4910         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
4911         it default if sparcv9 or sparc64.
4913 2000-02-24  Nick Clifton  <nickc@cygnus.com>
4915         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4916         * Makefile.in: Regenerate.
4917         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4919         * ldemul.h (ld_emulation_xfer_struct): Add new field:
4920         find_potential_libraries.
4921         * ldemul.c (ldemul_find_potential_libraries): New function.
4923         * ldfile.c (ldfile_open_file_search): Allow function to be
4924         exported.
4925         (ldfile_open_file): Call ldemul_find_potential_libraries.
4926         * ldfile.h: Add prototype for ldfile_open_file_search.
4928         * pe-dll.c: Add support for ARM, MIPS and SH targets.
4930         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
4931         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
4933         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4934         (gld_X_find_potential_libraries): New function.  Search for
4935         libraries called "*.lib".
4937         * scripttempl/pe.sc: Add .pdata section.
4939 2000-02-23  Richard Henderson  <rth@cygnus.com>
4941         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4942         Add and use memory regions.
4944 2000-02-23  Linas Vepstas (linas@linas.org)
4946         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4948         * Makefile.am: Add support for Linux/IBM 370.
4949         * configure.tgt: Likewise.
4951         * Makefile.in: Regenerate.
4953 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
4955         * ldlang.c (print_input_section, print_data_statement,
4956         print_reloc_statement, print_padding_statement, insert_pad,
4957         size_input_section, lang_check_section_addresses,
4958         lang_size_sections, lang_do_assignments, lang_set_startof,
4959         lang_one_common): Change `opb' to unsigned.
4960         (lang_do_assignments): Also change `size' to unsigned.
4962 2000-02-16  Richard Henderson  <rth@cygnus.com>
4964         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4966 2000-02-16  Timothy Wall  <twall@cygnus.com>
4968         * mri.c (mri_draw_tree): Add default LMA region argument to call
4969         to lang_leave_output_section_statement.
4970         * ldlang.h: Update prototypes with LMA region arguments.
4971         * ldlang.c (lang_size_sections): Encapsulate region bounds
4972         checking in os_check_region call.
4973         (os_check_region): New function.
4974         (lang_output_section_statement_lookup): Initialize lma_region.
4975         (lang_leave_output_section_statement): Add LMA region argument.
4976         (lang_leave_overlay): Ditto.
4977         * ldgram.y: Handle LMA region syntax.
4978         * ld.texinfo (Output Section Description): Describe LMA region usage.
4979         * emultempl/armelf.em (gld$place_orphan): Add default value for
4980         lma region in call to lang_leave_output_section_statement.
4981         * emultempl/elf32.em (gld$place_orphan): Add default value for
4982         lma region in call to lang_leave_output_section_statement.
4983         * emultempl/pe.em (gld$place_orphan): Add default value for
4984         lma region in call to lang_leave_output_section_statement.
4987 2000-02-04  Timothy Wall  <twall@redhat.com>
4989         * ldlang.c (lang_check_section_addresses): Use bytes instead of
4990         octets when calculating section end addresses.
4992 2000-02-04  Timothy Wall  <twall@redhat.com>
4994         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4996 2000-02-03  Timothy Wall <twall@redhat.com>
4998         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4999         octet count.
5000         * ldlang.c (print_input_section, print_data_statement,
5001         print_reloc_statement, print_padding_statement): Print target
5002         address values and section sizes as bytes, not octets.
5003         (insert_pad) Calculate padding size in octets, and adjust "dot"
5004         by bytes.
5005         (size_input_section) Always adjust "dot" by bytes, not octets.
5006         (lang_check_section_addresses, lang_do_assignments) Adjust
5007         "dot" by bytes, not octets.  Use the larger of the directive size
5008         or octets_per_byte for the number of octets actually allocated in
5009         the output section.
5010         (lang_set_startof) Make sure STARTOF returns a target address.
5011         (lang_one_common) Record size changes in octets.
5012         (lang_abs_symbol_at_end_of) Section end symbol's value is
5013         recorded in target bytes.
5014         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5015         to be clear about behavior when an octet is smaller than one byte.
5017 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
5019         * ldcref.c (output_cref): Don't pass message strings to printf
5020         as format arg.
5021         Update copyright.
5023         * ldmisc.c (vfinfo): Same here.
5024         Update copyright.
5026 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
5028         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5029         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5030         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5031         Add missing NULL initialisers, and comments.
5033         * testsuite/ld-srec/sr3.cc (__rethrow): New.
5035 2000-01-21  Nick Clifton  <nickc@cygnus.com>
5037         * ldlang.c (lang_size_sections): Fix typo in comment.
5039 2000-01-18  H.J. Lu  <hjl@gnu.org>
5041         * ldlang.c (lang_size_sections): Also update the current
5042         address of a region if the SEC_NEVER_LOAD bit is not set.
5044 2000-01-10  Philip Blundell  <pb@futuretv.com>
5046         * configure.tgt (arm*-*-conix*): New target.
5048 2000-01-07  Nick Clifton  <nickc@cygnus.com>
5050         * ld.texinfo (Options): Remind users to preceed linker command
5051         line switches with -Wl, (or whatever is appropriate) if it is
5052         being invoked by a comnpiler driver program.
5053         Fix description of the behaviour of the -n command line switch.
5055 2000-01-05  Catherine Moore  <clm@cygnus.com>
5057         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
5058         (name_list): New.
5059         * ld.texinfo (EXCLUDE_FILE): Update documentation.
5060         * ldgram.y (wildcard_spec): Support a list of excluded_files.
5061         (exclude_name_list): New.
5062         ldlang.c (walk_wild_section): Support list of excluded files.
5063         (print_wild_statement): Likewise.
5064         (lang_add_wild): Likewise.
5065         * ldlang.h (lang_wild_statement_type): Likewise.
5066         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5068 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
5070         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5071         (process_def_file): Use.
5072         (pe_dll_compat_implib): New variable.
5073         (make_one): Use.
5075         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5076         pe_dll_compat_implib.
5078         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5079         compat-implib options.
5080         (gld_${EMULATION_NAME}_list_options): List new options.
5081         (gld_${EMULATION_NAME}_parse_args): Handle.
5083         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5084         dll.
5086         * deffilep.y (opt_name): Allow "." in name.
5088 For older changes see ChangeLog-9899
5090 Local Variables:
5091 mode: change-log
5092 left-margin: 8
5093 fill-column: 74
5094 version-control: never
5095 End: