* ldlang.c (load_symbols): Revert last change.
[binutils.git] / ld / ChangeLog
blob0fe7133e6cdbb64131ebbc48c55584ed4c0739b6
1 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
3         * ldlang.c (load_symbols): Revert last change.
5 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
7         * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
8         just_syms_flag.
9         (lang_reasonable_defaults): Don't compare against false.
10         (size_input_section): Likewise.
11         (lang_size_sections_1): Likewise.
12         (lang_do_assignments): Likewise.
13         (lang_add_output): Likewise.
15         * Makefile.am: Run "make dep-am".
16         * Makefile.in: Regenerate.
17         * ldver.c: #include "bfdver.h".
19 2002-10-13  Stephane Carrez  <stcarrez@nerim.fr>
21         * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
22         .finiN section.
23         * scripttempl/elfm68hc12.sc: Likewise.
25 2002-10-11  Alan Modra  <amodra@bigpond.net.au>
27         * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
29         * ldgram.y (memory_spec): Provide empty action.
30         (section <NAME>): Likewise.
32 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
34         * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
35         they have OUTPUT_FORMAT not matching actual output format.
36         * ldlang.c (lang_get_output_target): New function.
37         (open_output): Use it.
38         * ldlang.h (lang_get_output_target): New prototype.
40 2002-10-10  Alan Modra  <amodra@bigpond.net.au>
42         * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
43         when orphan is .rel, .rela when orphan is .rela.
44         (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
45         first.  Remove outsecname var.
47 2002-10-09  Richard Shann <richard.shann@superh.com>
48             Stephen Clarke <stephen.clarke@superh.com>
50         * Makefile.am: Add eshelf32_linux.o and
51         eshlelf32_linux.o, new emulations for sh64 Linux.
52         * Makefile.in: Regenerate.
53         * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
54         * emulparams/shelf32_linux.sh: New file.
55         * emulparams/shlelf32_linux.sh: New file.
57 2002-10-08  H.J. Lu <hjl@gnu.org>
59         * ldlang.c (lang_file_exist): Removed.
60         (new_afile): Revert the last change.
61         * ldlang.h (lang_file_exist): Removed.
62         * lexsup.c (parse_args): Revert the last change.
64 2002-10-07  Ralf Habacker  <Ralf.Habacker@freenet.de>
66         * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
67         auto-import symbols.
68         (make_one): Create _nm_<symbol> for data only.
70 2002-10-05  Elias Athanasopoulos  <eathan@otenet.gr>
72         * ldlang.c (lang_file_exist): New function.
73         (new_afile): Abort if the filename to be added matches the linker
74         output filename.
75         * ldlang.h: Add prototype for lang_file_exist.
76         * lexsup.c (parse_args): Abort if the output filename matches
77         one of the input filenames.
79 2002-10-02  Alan Modra  <amodra@bigpond.net.au>
81         * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
83 2002-09-30  Alan Modra  <amodra@bigpond.net.au>
85         * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
86         * scripttempl/elfm68hc11.sc: Likewise.
87         * scripttempl/elfm68hc12.sc: Likewise.
89         * emultempl/elf32.em (output_rel_find): Always place orphan loadable
90         reloc sections just before .rel.plt/.rela.plt.
91         (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
92         Only put loadable reloc sections in hold_rel.
94 2002-09-29  H.J. Lu <hjl@gnu.org>
96         * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
98 2002-09-25  Daniel Jacobowitz  <drow@mvista.com>
100         From "Anita Kulkarni" <AnitaK@kpit.com>
101         * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
102         sections.
104 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
106         * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
107         TARGET_PAGE_SIZE.
108         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
109         SEGMENT_SIZE alignment.
110         * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
111         (SEGMENT_SIZE): Define.
113         * ldexp.c (fold_unary): New.  Split out from exp_fold_tree.
114         (fold_binary): Correct abs - non-abs case.
115         (fold_trinary): New.  Split out from exp_fold_tree.
117 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
119         * emulparams/elf64ppc.sh (DATA_ADDR): Define.
120         * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
121         for start of .data, instead align up to 256M boundary.
122         * scripttempl/aix.sc: Likewise.
124 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
126         * scripttempl/i386go32.sc: Handle bss unique sections.
128 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
130         * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
132 2002-09-17  Stan Cox  <scox@redhat.com>
134         * emulparams/elf32bmipn32-defs.sh: New file.
135         * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
136         * emulparams/elf32btsmipn32.sh: Likewise.
137         * emulparams/elf64bmip.sh: Likewise.
138         * emulparams/elf64btsmip.sh: Likewise.
140 2002-09-16  Bruno Haible  <bruno@clisp.org>
142         * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
143         elf32-i386-freebsd.
144         * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
145         elf64-alpha-freebsd.
147 2002-09-11  Nick Clifton  <nickc@redhat.com>
149         * NEWS: New TI port supports both C4x and C3x series of DSPs.
151         * po/tr.po: Updated Turkish translation.
153 2002-09-06  Jeffrey A Law  (law@redhat.com)
155         * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
157 2002-09-02  Nick Clifton  <nickc@redhat.com>
159         * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
160         __ep.
161         * emulparams/v850.sh (TEMPLATE_NAME): Define.
163 2002-08-30  Nick Clifton  <nickc@redhat.com>
165         * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
166         used.  Change INSN to start at 0x01000000 and extend for
167         256K (ignoring holes).  Start the STACK on a word aligned
168         boundary.
169         (.rodata): Start it at the READONLY_START_ADDR.
171 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
173         * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
175 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
177         * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
178         added makefile targets for this file.
179         * Makefile.in: Regenerate.
180         * configure.tgt: Added tic4x-coff and c4x-coff emulations.
181         * NEWS: Mention new port.
183 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
185         * emulparams/tic3xcoff.sh: New file.
186         * emulparams/tic4xcoff.sh: New file.
187         * scripttempl/tic3xcoff.sc: New file.
188         * scripttempl/tic4xcoff.sc: New file.
190 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
192         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
193         strtoul and strtoull with bfd_scan_vma.
194         (gld${EMULATION_NAME}_read_file): Likewise.
196 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
198         * configure.tgt: Remove h8[35]00-*-hms*.  Add h8500-*-rtems*.
200 2002-08-27  Egor Duda  <deo@logos-m.ru>
202         * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
203         Add symbols for application to access them.
205 2002-08-27  Nick Clifton  <nickc@redhat.com>
207         * emultempl/armelf.em:  Revert this patch, it is not needed.
209         2002-08-22  Adam Nemet  <anemet@lnxw.com>
211 2002-08-20 Dan Kegel <dank@kegel.com>
213         * configure.in: added --with-lib-path argument to ld's configure
214         to set LIB_PATH.
215         * ld/NEWS: Document new switch.
216         * ld/README: Mention new switch.
217         * configure: Regenerate.
218         * Makefile.in: Regenerate.
220         Based on this patch:
221         2001-04-25  Christopher Faylor <cgf@cygnus.com>
223         * Makefile.in (LIB_PATH): Make configurable.
224         (GENSCRIPTS): Set LIB_PATH in environment.
225         * configure.in: Substitute LIB_PATH.
227 2002-08-22  Adam Nemet  <anemet@lnxw.com>
229         * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
230         (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
231         depending on the type of the function.
232         (arm_elf_convert_thumb_symbol_to_address): New function.
234 2002-08-22  Graeme Peterson  <gp@qnx.com>
236         * Makefile.am: Add esh{l}elf_nto.o files.
237         * Makefile.in: Regenerate.
238         * configure.tgt: Add support for sh-**-nto* targets.
239         * emulparams/shelf_nto.sh: New file.
240         * emulparams/shlelf_nto.sh: New file.
242 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
244         * ldlang.c (offsetof): Define if not defined.
246 2002-08-14  H.J. Lu <hjl@gnu.org>
248         * configure.tgt: Always enable 64bit emulations for 32bit
249         Linux/mips.
251 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
253         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
254         (MAXPAGESIZE): Set to 1.
256         * ld.h (ALIGN_N): Delete.
257         * ldexp.h (align_n): Declare.
258         * ldexp.c (align_n): New function.
259         (fold_binary): Use align_n instead of ALIGN_N.
260         (exp_fold_tree): Likewise.
261         * ldlang.c (lang_size_sections_1): Likewise.
262         (lang_one_common): Likewise.
263         * ld.texinfo (ALIGN): Remove power of 2 restriction.
265 2002-07-31  Graeme Peterson  <gp@qnx.com>
267         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
268         * Makefile.am: Add eelf32{l}ppcnto.o files.
269         * Makefile.in: Regenerate.
270         * emulparams/elf32lppcnto.sh: New file.
271         * emulparams/elf32ppcnto.sh: New file.
273 2002-08-07  H.J. Lu <hjl@gnu.org>
275         * ld.texinfo: Document --no-undefined-version.
277         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
278         `script.' fields to 0.
280         * ldmain.c (main): Initialize the allow_undefined_version to
281         true.
283         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
284         (ld_options): Add --no-undefined-version.
285         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
287 2002-08-07  Nick Clifton  <nickc@redhat.com>
289         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
290         an interworking bfd if there are input bfds. (107501)
292 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
294         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
295         2002-05-10 change.
297 2002-08-01  Nick Clifton  <nickc@redhat.com>
299         * emulparams/armelf.sh: Revert previous delta.
300         * scripttempl/elf.sc: Revert previous delta.
302 2002-07-31  H.J. Lu <hjl@gnu.org>
304         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
305         --enable-64-bit-bfd.
307 2002-07-31  H.J. Lu <hjl@gnu.org>
309         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
310         64bit BFD is selected.
312 2002-07-31  H.J. Lu <hjl@gnu.org>
314         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
315         if 64bit BFD is selected.
317 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
319         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
320         link_info.common_skip_ar_aymbols.
321         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
323         * ldmain.c (main): Initialize new field
324         link_info.common_skip_ar_aymbols.
326 2002-07-31  Adam Nemet  <anemet@lnxw.com>
328         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
329         to .plt.thumb.
330         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
331         used.
333 2002-07-31  Nick Clifton  <nickc@redhat.com>
335         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
336         of the PDP-11 and 2.11BSD a.out support.
338 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
340         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
341         for n32 ABI support.
342         * Makefile.in: Regenerate.
343         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
344         n32 ABI emulations for these 64 bit targets.
345         * emulparams/elf32bmipn32.sh: Expand comment.
346         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
347         n32 ABI.
348         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
350 2002-07-30  Graeme Peterson  <gp@qnx.com>
352         * configure.tgt: Add support for arm-*-nto target.
353         * Makefile.am: Add earmnto.o file.
354         * Makefile.in: Regenerate.
355         * NEWS: Mention port of ARM support to QNX.
356         * emulparams/armnto.sh: New file.
358 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
360         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
361         for relocatable link.
362         (lang_size_sections_1): Don't make .tbss zero size for relocatable
363         link.
365 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
367         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
368         (STACK_ADDR): New.
370 2002-07-25  Nick Clifton  <nickc@redhat.com>
372         * po/sv.po: Updated Swedish translation.
373         * po/es.po: Updated Spanish translation.
374         * po/fr.po: Updated French translation.
376 2002-07-24  Nick Clifton  <nickc@redhat.com>
378         * po/sv.po: Updated Swedish translation.
379         * po/es.po: Updated Spanish translation.
381 2002-07-23  Nick Clifton  <nickc@redhat.com>
383         * po/fr.po: Updated French translation.
385 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
387         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
388         bomb on /DISCARD/ input section.
389         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
390         * emultempl/mmo.em (mmo_place_orphan): Likewise.
392 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
394         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
395         output section.
397 2002-07-16  Denis Chertykov  <denisc@overta.ru>
398             Nick Clifton  <nickc@redhat.com>
399             Frank Ch. Eigler  <fche@redhat.com>
400             John Healy  <jhealy@redhat.com>
402         * configure.tgt: Add support for ip2k-elf.
403         * Makefile.am: Add support for ip2k-elf.
404         * Makefile.in: Regenerate.
405         * emulparams/elf32ip2k.sh: New file.
406         * scripttempl/ip2k.sc: New file
407         * NEWS: Mention support for new port.
409 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
411         * NEWS: Add 'Changes in 2.13'.
413 2002-07-14  H.J. Lu <hjl@gnu.org>
415         * ld.texinfo: Document a .symver takes precedence over a
416         version script.
418 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
420         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
421         (COMMONPAGESIZE): Define.
423 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
425         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
427 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
429         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
430         powerpc-*-openbsd* and sparc64-*-openbsd*.
431         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
432         * Makefile.in: Regenerate.
433         * emulparams/hppaobsd.sh: New file.
435 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
437         * ldlang.c (print_wild_statement): Fix output formatting.
439 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
441         * ldlang.c: (strip_excluded_output_sections): New function.
442         (lang_process): Call it.
443         (lang_size_sections_1): Revert 2002-06-10 change.
445 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
447         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
448         Run "make dep-am".
449         * Makefile.in: Regenerate.
451 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
453         * ldfile.c (ldfile_try_open_bfd): Formatting.
455         * ldmisc.c (demangle): Move so that it doesn't intrude between
456         vfinfo comment and body.  Add comment.
458 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
460         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
462 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
464         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
465         * ldlang.c (entry_sym): Likewise.
466         (ldlang_undef_chain_list_type): Likewise.
467         (lang_finish): Adjust references to entry_symbol.
468         (lang_add_entry): Likewise.
469         (lang_gc_sections): Use link_info.gc_sym_list.
470         (lang_process): Set link_info.gc_sym_list.
471         * ldlex.l: Include bfdlink.h.
472         * ldmain.c (main): Init link_info.gc_sym_list.
473         * emultempl/aix.em: Adjust references to entry_symbol.
474         * emultempl/armcoff.em: Likewise.
475         * emultempl/armelf.em: Likewise.
476         * emultempl/pe.em: Likewise.
477         * emultempl/ppc64elf.em (ppc_after_open): New function.
478         (LDEMUL_AFTER_OPEN): Define.
479         * emulparams/elf64ppc.sh: KEEP .opd sections.
481 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
483         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
484         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
485         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
486         (EEPROM_START_ADDR): Define.
487         (EEPROM_MEMORY): Define.
488         * emulparams/m68hc12elf.sh: Likewise.
489         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
490         section to put soft registers in .page0.
491         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
493 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
495         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
496         section.  Add ${RELOCATING-0}.
498 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
500         * emulparams/shelf.sh (STACK_ADDR): Don't define.
501         (OTHER_SECTIONS): Define.
502         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
503         (OTHER_SECTIONS): Undef.
505 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
507         * ldmisc.c (demangle): Restore dots stripped from sym name.
509 2002-06-25  H.J. Lu <hjl@gnu.org>
511         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
512         * Makefile.in: Regenerated.
514 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
516         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
517         the size of attached object files, to allow make the object files
518         available via FTP or HTTP and to mention that the mail will be
519         sent to a mailing list.
521 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
523         * ld/configure.host (romp): Drop support.
525 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
527         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
528         section flags for SEC_DATA, rather than for SEC_CODE being unset.
530 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
532         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
533         format specifier used to print BFD name.
535 2002-06-18  Dave Brolley  <brolley@redhat.com>
537         From Catherine Moore, Michael Meissner, Jim Blandy:
538         * emulparams/elf32frv.sh: New file.
539         * configure.tgt: Support frv-*-*.
540         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
541         (eelf32frv.c): New target.
543 2002-06-17  Tom Rix  <trix@redhat.com>
545         * emultempl/elf32.em: gld*_get_script:  Check for
546         GENERATE_COMBRELOC_SCRIPT.
547         * scripttempl/elfd10v.sc : Fix STACK and INSN.
548         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
550 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
552         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
554 2002-06-12  H.J. Lu <hjl@gnu.org>
556         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
557         false if xvec doesn't match.
559 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
561         * ldlang.c (lang_size_sections_1): Skip removed output sections.
563 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
565         * ldexp.c: Replace CONST with const.
566         * ldfile.c: Likewise.
567         * ldfile.h: Likewise.
568         * ldlex.l: Likewise.
569         * mri.c: Likewise.
570         * pe-dll.h: Likewise.
572 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
574         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
576 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
578         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
579         to -1 == implicit enable.
580         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
581         initialize link_info.pei386_auto_import to -1 == implicit
582         enable.
583         (gld_${EMULATION_NAME}_parse_args): When processing
584         --enable-auto-import and --disable-auto-import options, use
585         '1' and '0' instead of 'true' and 'false'.
586         (pe_find_data_imports): Only issue message about auto-import
587         when the feature is implicitly enabled.  Downgrade message to
588         informational instead of warning.
590 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
592         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
594 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
596         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
597         HOSTING_CRT0 and HOSTING_LIBS.
599 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
601         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
603 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
605         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
606         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
608 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
610         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
611         SEC_EXCLUDE sections when doing a relocatable link.
613 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
615         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
616         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
617         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
618         (eshlelf64_nbsd.c): New rules.
619         * Makefile.in: Regenerate.
620         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
621         (sh64-*-netbsd*): New targets.
622         * emulparams/shelf32_nbsd.sh: New file.
623         * emulparams/shelf64_nbsd.sh: New file.
624         * emulparams/shlelf32_nbsd.sh: New file.
625         * emulparams/shlelf64_nbsd.sh: New file.
627 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
629         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
631 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
633         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
634         C++ constructors/destructors, loosely based on the m68hc11 port.
636 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
638         * Makefile.in: Regenerate.
639         * aclocal.m4: Regenerate.
640         * config.in: Regenerate.
641         * configure: Regenerate.
643 2002-05-31  Graeme Peterson  <gp@qnx.com>
645         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
646         (ei386nto.c): Add rule.
647         * Makefile.in: Regenerate.
648         * configure.tgt: Add i[3456]86-*-nto-qnx*.
649         * emulparams/i386nto.sh: New file.
651 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
653         * NEWS: Add entry for VAX ELF support.
655 2002-05-29  Matt Thomas  <matt@3am-software.com>
656             Jason Thorpe  <thorpej@wasabisystems.com>
658         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
659         (eelf32vax.c)
660         (evaxnbsd.c): New rules.
661         * Makefile.in: Regenerate.
662         * configure.tgt (vax-*-netbsdelf*)
663         (vax-*-netbsdaout*)
664         (vax-*-netbsd*): New targets.
665         * emulparams/elf32vax.sh: New file.
666         * emulparams/vaxnbsd.sh: New file.
668 2002-05-29  Adam Nemet  <anemet@lnxw.com>
670         * emultempl/armelf.em (arm_elf_after_open): Don't determine
671         bfd_for_interwork, instead add glue sections to each input bfd.
672         (bfd_for_interwork): New global.
673         (arm_elf_set_bfd_for_interworking): New function.
674         (arm_elf_before_allocation): Use it.
676 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
678         * Makefile.am: Add DLX make target.
679         * configure.tgt: Add DLX configuration.
680         * Makefile.in: Regenerate.
681         * emulparams/elf32_dlx.sh: New file
682         * scripttempl/dlx.sc: New file
684 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
686         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
687         * Makefile.in: Regenerate.
688         * emulparams/elf_chaos.sh: Use elf_chaos script.
689         * scripttempl/elf_chaos.sc: New file.
691 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
693         * ldlang.c (lang_size_sections_1): Move check for conflicting load
694         addresses and regions from here...
695         (lang_get_regions): ...to this new function.
696         (lang_leave_output_section_statement): Use lang_get_regions.
697         (lang_leave_overlay): Likewise.
698         * mri.c (mri_draw_tree): Pass null as last argument to
699         lang_leave_output_section_statement.
700         * emultempl/elf32.em (gld*_place_orphan): Likewise.
701         * emultempl/mmo.em (mmo_place_orphan): Likewise.
702         * emultempl/pe.em (gld*_place_orphan): Likewise.
704 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
706         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
708 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
710         * ldemul.c: Fix formatting.
711         * ldfile.c: Likewise.
712         * pe-dll.c: Likewise.
713         * pe-dll.h: Likewise.
715 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
717         * ldlang.c (lang_process): Formatting, grammar.
719         * ldlex.l: Use #include "" instead of <> for local header files.
721 2002-05-24  TAMURA Kent <kent@netbsd.org>
723         * configure.tgt: Add a target for i386-netbsdpe.
725 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
727         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
728         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
729         output section if necessary.  Handle .tbss.
730         (lang_size_sections): Clear _raw_size for .tbss section
731         (it allocates space in PT_TLS segment only).
732         * ldwrite.c (build_link_order): Build link order for .tbss too.
734 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
736         * configure.in: Correct spelling of AC_PREREQ.
738 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
740         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
741         default.
742         (autofilter_objlist): Add crtbegin.o, crtend.o.
744 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
746         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
747         (longopts): Add new option --exclude-libs.
748         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
749         (gld_${EMULATION_NAME}_parse_args): Use it.
750         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
751         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
752         from whole archives.
753         (pe_dll_add_excludes): Set excludes->type.
754         (auto_export): Add new variable libname and set to archive basename if
755         abfd.  Use it when filtering default and user-specified libarary
756         excludes.  Let string "ALL" mean all libs when filtering user-specified
757         libs.
758         * ld.texinfo: Document --exclude-libs.
760 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
762         * ldemul.c (ldemul_new_vers_pattern): New function.
763         * ldemul.h (ldemul_new_vers_pattern): Declare.
764         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
765         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
766         * emultempl/ppc64elf.em (dotsyms): New static var.
767         (gld${EMULATION_NAME}_new_vers_pattern): New function.
768         (LDEMUL_NEW_VERS_PATTERN): Define.
769         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
770         (PARSE_AND_LIST_LONGOPTS): Likewise.
771         (PARSE_AND_LIST_ARGS_CASES): Handle them.
772         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
773         initialiser.
774         * emultempl/armcoff.em: Likewise.
775         * emultempl/armelf_oabi.em: Likewise.
776         * emultempl/beos.em: Likewise.
777         * emultempl/elf32.em: Likewise.
778         * emultempl/generic.em: Likewise.
779         * emultempl/gld960.em: Likewise.
780         * emultempl/gld960c.em: Likewise.
781         * emultempl/linux.em: Likewise.
782         * emultempl/lnk960.em: Likewise.
783         * emultempl/m68kcoff.em: Likewise.
784         * emultempl/mipsecoff.em: Likewise.
785         * emultempl/pe.em: Likewise.
786         * emultempl/sunos.em: Likewise.
787         * emultempl/ticoff.em: Likewise.
788         * emultempl/vanilla.em: Likewise.
790 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
792         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
793         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
794         (LIB_SEARCH_DIRS): No need to use "tr".
795         (COMPILE_IN): Only set for native targets.
796         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
797         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
798         * configure.tgt (powerpc*): Set tdir_*.
799         (powerpcle*): Correct targ_extra_emuls.
800         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
801         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
803 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
805         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
806         calling lang_add_entry.
808 2002-05-21  H.J. Lu  (hjl@gnu.org)
810         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
811         "-z muldefs".
812         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
814         * ld.texinfo: Updated for --allow-multiple-definition and
815         "-z muldefs".
817         * ldmain.c (main): Initialize the allow_multiple_definition
818         field to false.
820         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
821         (ld_options): Add --allow-multiple-definition.
822         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
824 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
826         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
827         (earmelfb_nbsd.c): New rule.
828         * Makefile.in: Regenerate.
829         * configure.tgt (armeb-*-netbsdelf*): New target.
830         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
831         (arm-*-netbsd*): Likewise.
832         * emulparams/armelfb_nbsd.sh: New file.
834 2002-05-18  Tom Rix  <trix@redhat.com>
836         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
837         support.
839 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
841         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
842         * Makefile.in: Regenerate.
843         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
845 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
847         * emulparams/avr1.sh: New file.
848         * emulparams/avr2.sh: New file.
849         * emulparams/avr3.sh: New file.
850         * emulparams/avr4.sh: New file.
851         * emulparams/avr5.sh: New file.
852         * scripttempl/avr.sc: New file.
854 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
856         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
857         (lang_place_orphans): Abort if just_syms_flag.
859 2002-05-10  Tom Rix  <trix@redhat.com>
861         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
862         architecture and machine information in the output bfd.
863         (gld*_before_parse): Remove old arch and machine code.
864         (choose_target): Rename to gld*_choose_target.
865         (rtld): Change type to int.
866         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
867         objects in XCOFF archives.
868         * ldfile.h: Update copyright date.
870 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
872         * ldmain.c (main): Enable -z combreloc by default.
874 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
876         * Makefile.am: Honour DESTDIR.
877         * Makefile.in: Regenerate.
879 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
881         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
882         (lang_enter_overlay): Remove the last two parameters.
883         (lang_leave_overlay): Take them here instead.
884         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
885         (section): Pass LMA and crossref flag to lang_leave_overlay rather
886         than lang_enter_overlay.
887         * ldlang.c (lang_memory_region_lookup): Return null for null names.
888         (lang_output_section_statement_lookup): Initialize update_dot_tree.
889         (lang_size_sections_1): Evaluate it.
890         (lang_leave_output_section_statement): Rework LMA lookup.
891         (overlay_lma, overlay_nocrossrefs): Remove.
892         (lang_enter_overlay): Remove LMA and crossref arguments.
893         (lang_enter_overlay_section): Don't set the LMA here.
894         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
895         assignment to the last section's update_dot_tree.  Unconditionally
896         use the load and run-time regions specified in the OVERLAY statement.
897         Likewise the first section's LMA.  Only set the other sections' LMAs
898         when no load region is given.
900 2002-05-06  Nick Clifton <nickc@redhat.com>
902         * po/sv.po: New translation.
904 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
906         * emultempl/hppaelf.em (build_section_lists): New function.
907         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
908         and build_section_lists.
910 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
912         * ld.h: Fix formatting.
913         * ldexp.c: Likewise.
914         * ldfile.c: Likewise.
915         * ldlang.c: Likewise.
916         * ldmain.c: Likewise.
917         * lexsup.c: Likewise.
918         * pe-dll.c: Likewise.
920 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
922         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
923         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
924         (build_section_lists): Do output_section tests here.
926 2002-04-30  Tom Rix  <trix@redhat.com>
928         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
930 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
932         Long branch stubs, multiple stub sections.
933         * emultempl/ppc64elf.em: Include ldctor.h.
934         (stub_file): New var.
935         (group_size): New var.
936         (ppc_create_output_section_statements): New function.
937         (struct hook_stub_info): New.
938         (hook_in_stub): New function.
939         (ppc_add_stub_section): New function.
940         (ppc_layout_sections_again): New function.
941         (build_section_lists): New function.
942         (gld${EMULATION_NAME}_finish): Rewrite.
943         (real_func): New var.
944         (ppc_for_each_input_file_wrapper): New function.
945         (ppc_lang_for_each_input_file): New function.
946         (lang_for_each_input_file): Define.
947         (PARSE_AND_LIST_PROLOGUE): Define.
948         (PARSE_AND_LIST_LONGOPTS): Define.
949         (PARSE_AND_LIST_OPTIONS): Define.
950         (PARSE_AND_LIST_ARGS_CASES): Define.
951         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
953 2002-04-30  Tom Rix  <trix@redhat.com>
955         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
956         -blibpath, -bnolibpath support.
958 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
960         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
961         (eelf32ppcwindiss.c): New target.
962         * Makefile.in: Regenerated.
963         * configure.tgt: Add support for powerpc-*-windiss.
964         * emulparams/elf32ppcwindiss.sh: New file.
966 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
968         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
969         * ldexp.c (exp_print_token): Add "infix_p" argument.
970         (exp_print_tree): Update accordingly.
972 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
974         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
975         * Makefile.in: Regenerate.
976         * mpw-elfmips.c: Delete.
977         * mpw-eppcmac.c: Delete.
978         * mpw-esh.c: Delete.
979         * mpw-idtmips.c: Delete.
981 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
983         * emulparams/shelf32.sh (MACHINE): Now sh5.
985 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
987         * ldgram.y: Fix syntax warning.
989 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
991         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
992         to prevent "-n" from being taken as an abbreviation for
993         "--no-pipeline-knowledge".
995 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
997         * ldlang.c (lang_size_sections_1): Don't complain about
998         SEC_NEVER_LOAD sections having no memory region specified.
1000         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1002 2002-04-07  matthew green  <mrg@redhat.com>
1004         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1006 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1008         * dep-in.sed: Cope with absolute paths.
1009         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1010         Run "make dep-am".
1011         * Makefile.in: Regenerate.
1013 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1015         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1017 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1019         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1020         is smaller than maximum, round dot up to common page boundary.
1022 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
1024         * configure.host: Set up for generic hosts first, then tweak as
1025         necessary in more specific targets.
1026         (HOSTING_LIBS): Include libgcc_eh.a if found.
1028 2002-03-23  Andreas Jaeger  <aj@suse.de>
1030         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1032 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
1034         * Makefile.am: Run "make dep-am".
1035         * Makefile.in: Regenerate.
1037 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
1039         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1041 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
1043         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1044         add the symbol to the linker hash table immediately.
1045         (lang_place_undefineds): Split symbol creation out..
1046         (insert_undefined): ..to here.
1048 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
1050         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1051         the contents of the buffer returned from basename function will are
1052         getting overwritten while still being used.
1054 2002-03-18  Jan Hubicka  <jh@suse.cz>
1055             Andreas Jaeger  <aj@suse.de>
1056             Andreas Schwab  <schwab@suse.de>
1058         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1059         * elf_x86_64.sh (ARCH): Set to i386:x86-64
1060         set libraries to default to lib64 paths.
1062 2002-03-18  Tom Rix  <trix@redhat.com>
1064         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1065         * configure.tgt : Same.
1066         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1067         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1068         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1069         emulation parameters for better -b32, -b64 support.
1070         * emulparms/aixrs6.sh : Same.
1071         * emulparms/ppcmacos.sh : Same.
1072         * emultempl/aix.em (choose_target) : Use new emulation parameters
1073         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1074         * Makefile.in : Regenerate.
1076 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
1078         * po/fr.po: Updated version.
1080 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
1082         * ldmain.c (main): Move .text readonly flag fudges from here..
1083         * ldlang.c (lang_process): ..to here.
1085 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
1087         * ldlang.c (lang_check): Remove the word size check added in last
1088         change.  Treat emitrelocations case as for relocatable links.
1090 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
1092         * po/fr.po: Updated version.
1094 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
1096         * ldlang.c (lang_check): Do relocatable link checks first, so that
1097         warn_mismatch can't override.  Check compatible and word size too.
1099 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
1101         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1103 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
1105         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1106         DATA_SEGMENT_ALIGN.
1108 2002-03-04  H.J. Lu <hjl@gnu.org>
1110         * scripttempl/elf.sc: Put .preinit_array, .init_array and
1111         .fini_array in the data segment.
1113 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
1115         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1117 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
1119         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1120         .init_array, and .fini_array.
1122 2002-02-20  Andreas Schwab  <schwab@suse.de>
1124         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1125         .IA64_unwind* in a relocatable link.
1127 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
1129         * NEWS: Mark 2.12 branch.
1131 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1133         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1134         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1136 2002-02-18  Tom Rix  <trix@redhat.com>
1138         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1139         (gld*_before_allocation): Same.
1140         (gld*_create_output_section_statements): Generate
1141         __rtinit if run time linking.  Add librtl.a to the link.
1142         (gld*_read_file): Clean.
1144 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1146         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1148 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
1150         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1151         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1152         and eelf64alpha_fbsd.
1153         * Makefile.in: Regenerate.
1154         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1155         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1156         use a FreeBSD-specific emulation rather than the psABI one.
1157         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1158         for all FreeBSD ELF systems.
1159         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1160         emulation.
1161         * emulparams/elf32ppc_fbsd.sh: Likewise.
1162         * emulparams/elf64_ia64_fbsd.sh: Likewise.
1163         * emulparams/elf64_sparc_fbsd.sh: Likewise.
1164         * emulparams/elf64alpha_fbsd.sh: Likewise.
1165         * emulparams/elf_i386_fbsd.sh: Likewise.
1166         * emulparams/elf_x86_64_fbsd.sh: Likewise.
1168 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
1170         * po/tr.po: Updated version.
1172 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1174         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1175         (FILL): Likewise.
1177 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
1179         * emultempl/mmo.em (mmo_after_open): Don't call
1180         _bfd_mmix_check_all_relocs when producing ELF output.
1182 2002-02-15  Richard Henderson  <rth@redhat.com>
1184         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1185         definition.  Emit a unop+nop pair.
1187 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
1189         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1190         for presence of .MMIX.reg_contents.linker_allocated before early
1191         exit.
1193         * NEWS: Mention support for MMIX.
1195 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
1197         Support arbitrary length fill patterns.
1198         * ld.texinfo (Output Section Fill): Describe fill expressions.
1199         (FILL): Refer to the above.
1200         * ldexp.h (etree_value_type): Add "str" field.
1201         (union etree_union): Add "str" to "value" struct.
1202         (exp_bigintop): Declare.
1203         (exp_get_fill): Declare.
1204         * ldexp.c: Include "safe-ctype.h".
1205         (exp_intop): Set value.str to NULL.
1206         (exp_bigintop): New function.
1207         (new_rel): Pass in "str", and set new.str from it.
1208         (new_rel_from_section): Set new.str to NULL.
1209         (fold_name): Adjust calls to new_rel.
1210         (exp_fold_tree): Likewise.
1211         (exp_get_fill): New function.
1212         * ldgram.y (struct big_int bigint, fill_type *fill): New.
1213         (INT): Returns a "bigint".  Adjust all code handling INTs.
1214         (fill_opt): Returns a "fill".
1215         (fill_exp): Split out of fill_opt, use for FILL.
1216         * ldlang.h (struct _fill_type): New.
1217         (fill_type): Move typedef to ldexp.h.
1218         (lang_output_section_statement_type): "fill" is now a pointer.
1219         (lang_fill_statement_type): Likewise.
1220         (lang_padding_statement_type): Likewise.
1221         (lang_add_fill): Now takes a "fill_type *" param.
1222         (lang_leave_output_section_statement): Likewise.
1223         (lang_do_assignments): Likewise.
1224         (lang_size_sections): Likewise.
1225         (lang_leave_overlay_section): Likewise.
1226         (lang_leave_overlay): Likewise.
1227         * ldlang.c: Include ldgram.h after ldexp.h.
1228         (lang_output_section_statement_lookup): Adjust for fill_type change.
1229         (print_fill_statement): Likewise.
1230         (print_padding_statement): Likewise.
1231         (insert_pad): Now takes a "fill_type *" arg.
1232         (size_input_section): Likewise.
1233         (lang_size_sections_1): Likewise.
1234         (lang_size_sections): Likewise.
1235         (lang_do_assignments): Likewise.
1236         (lang_add_fill): Likewise.
1237         (lang_leave_output_section_statement): Likewise.
1238         (lang_leave_overlay_section): Likewise.
1239         (lang_leave_overlay): Likewise.
1240         Adjust all callers of the above function.
1241         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
1242         starting with "0X" as well as "0x".  Return bigint.str for hex
1243         numbers starting with "0x" or "0X", zero bigint.str otherwise.
1244         Always use base 16 for numbers starting with "$".
1245         * ldmain.c: Include ldgram.h after ldexp.h.
1246         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1247         of bfd_fill_link_order.
1248         * pe-dll.c: Adjust lang_do_assignments calls.
1249         * emultempl/elf32.em: Likewise.
1250         * emultempl/hppaelf.em: Likewise.
1251         * emultempl/ppc64elf.em: Likewise.
1252         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1253         lang_add_assignment call.
1254         * emultempl/pe.em: Likewise.
1256 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
1258         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
1259         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
1260         the pattern in question is not a regexp.
1261         * ldlang.c:  Likewise.
1262         * ldlang.h:  Likewise.
1263         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
1265 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
1267         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1268         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1269         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1270         * ldexp.c (exp_data_seg): New variable.
1271         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1272         (fold_binary): Handle DATA_SEGMENT_ALIGN.
1273         (exp_fold_tree): Handle DATA_SEGMENT_END.
1274         Pass allocation_done when recursing instead of hardcoding
1275         lang_allocating_phase_enum.
1276         * ldexp.h (exp_data_seg): New.
1277         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1278         (lang_size_sections): New.
1279         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1280         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1281         if COMMONPAGESIZE is defined.
1282         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1283         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1284         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1285         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1286         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1287         libraries only.
1289 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
1291         * Makefile.in: Regenerate.
1293 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1295         * lexsup.c: Remove strtoul declaration.
1297 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1299         * ldmain.c: Add prototype for main ().
1300         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1301         * emultempl/lnk960.em (lnk960_choose_target): Function should
1302         take two arguments.
1304 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
1306         * ldlang.c (entry_section): New initialised variable.
1307         (lang_finish): Use it.
1308         * ldlang.h (entry_section): Declare.
1309         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1310         entry_section to ".opd".
1312 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
1314         * ld.texinfo (Options): Add back in -nostdlib documentation,
1315         which had been inadvertently removed.
1317 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
1319         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1320         register section vma to a sane value after emitting error.  Make
1321         fatal conditions cause program exit when emitting message.
1323 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
1325         * configure.tgt: Add or32-*-rtems target.
1327 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1329         Contribute sh64-elf.
1330         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1331         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1332         in OTHER_RELOCATABLE_SECTIONS.
1333         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1334         * emulparams/shelf32.sh (STACK_ADDR): Define.
1335         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1336         (OTHER_SECTIONS): this.  Removed stack settings.
1337         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1338         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1339         2001-03-12  DJ Delorie  <dj@redhat.com>
1340         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1341         relaxing if any shmedia or mixed sections are found.
1342         2001-03-07  DJ Delorie  <dj@redhat.com>
1343         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1344         einfo.  Gracefully decline to output to non-elf formats.
1345         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
1346         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1347         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1348         * emulparams/shelf32.sh: Ditto.
1349         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
1350         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1351         comment.
1352         2001-01-10  Ben Elliston  <bje@redhat.com>
1353         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1354         non-portable shell constructs. From Hans-Peter Nilsson.
1355         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
1356         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1357         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1358         dependencies to the shell script include chain.
1359         * Makefile.in: Regenerate.
1360         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
1361         * emultempl/sh64elf.em: Update and tweak comments.
1362         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1363         make a .cranges section SEC_IN_MEMORY.
1364         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1365         * emultempl/sh64elf.em
1366         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1367         .cranges section found to be necessary; continue and set stored
1368         section contents flags for sections with non-mixed contents.
1369         Use a struct sh64_section_data container and sh64_elf_section_data
1370         to store contents-type flags.
1371         Remove unused update of "isec".
1372         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1373         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
1374         access contents-type flags.  Assert that the associated container
1375         is initialized.  Use that container, not elf_gp_size, to hold size
1376         of linker-generated cranges contents.
1377         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1378         * emultempl/sh64elf.em
1379         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1380         there's already a .cranges section.  When section flag difference
1381         is found, don't NULL-check cranges a second time.  Tweak comments.
1382         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1383         merging, not max size, as size of ld-generated .cranges contents.
1384         Don't set ELF section flags in output section.  When checking for
1385         needed .cranges descriptors, don't use a variable; compare
1386         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
1387         comments.
1388         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1389         * emultempl/sh64elf.em: New file.
1390         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1391         * Makefile.in: Regenerate.
1392         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1393         (OTHER_RELOCATING_SECTIONS): Ditto.
1394         (EXTRA_EM_FILE): New, set to sh64elf if not set.
1395         * emulparams/shlelf32.sh: Stub out all settings except
1396         OUTPUT_FORMAT.  Source shelf32.sh.
1397         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1398         OTHER_RELOCATING_SECTIONS.
1399         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1400         * emulparams/shlelf64.sh: Stub out all settings except
1401         OUTPUT_FORMAT.  Source shelf64.sh.
1402         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
1403         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1404         .cranges section.
1405         (DATA_START_SYMBOLS): Define, provide ___data.
1406         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1407         for consecutive .data section.
1408         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1409         section after .data section.
1410         * emulparams/shlelf64.sh: Ditto.
1411         * emulparams/shelf32.sh: Ditto.
1412         (ALIGNMENT): Define to 8.
1413         * emulparams/shelf32.sh: Ditto.
1414         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
1415         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1416         built-in linker scripts.
1417         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1418         * emulparams/shlelf64.sh: New.
1419         * emulparams/shelf64.sh: New.
1420         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1421         targ_extra_emuls.
1422         * Makefile.am: Add support for shlelf64 and shelf64.
1423         * Makefile.in: Regenerate.
1424         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
1425         * configure.tgt (sh64-*-elf*): Add shelf as default.
1426         Add shlelf to targ_extra_emuls.
1427         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
1428         * emulparams/shelf32.sh: New file.
1429         * emulparams/shlelf32.sh: New file.
1430         * Makefile.am: Add support for shlelf32 and shelf32.
1431         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1432         * Makefile.in: Regenerate.
1434 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
1436         * ldlang.c (lang_reset_memory_regions): Rename from
1437         reset_memory_regions.  Change all callers.  Make public.
1438         * ldlang.h (lang_reset_memory_regions): Prototype.
1439         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1440         lang_reset_memory_regions before lang_size_sections.
1441         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1442         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1444 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
1446         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1447         arithmetic when checking for too many global registers.
1449 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
1451         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1452         (ehppanbsd.c): New rule.
1453         * Makefile.in: Regenerate.
1454         * configure.tgt (hppa*-*-netbsd*): New target.
1455         * emulparams/hppalinux.sh: Add comment to check other files
1456         that source this file it is modified, and list which
1457         files that do.
1458         * emulparams/hppanbsd.sh: New file.
1460 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
1462         * scripttempl/xstormy16.sc: Don't allocate extra space for the
1463         stack.
1465 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
1467         Support on-demand global register allocation from
1468         R_MMIX_BASE_PLUS_OFFSET relocs.
1469         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1470         mmix_set_reg_section_vma.  Call
1471         _bfd_mmix_finalize_linker_allocated_gregs.
1472         (mmix_before_allocation): New function.
1473         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1474         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1475         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1476         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1477         before .MMIX.reg_contents.
1478         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1479         (mmo_after_open): New function.
1480         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1481         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
1482         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1484 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
1486         * emulparams/or32.sh: New file.
1487         * emulparams/or32elf.sh: New file.
1488         * scripttempl/or32.sc: New file.
1489         * configure.tgt : Add support for or32.
1490         * configure: Regenerate
1491         * Makefile.am: Add support for or32.
1492         * Makefile.in: Regenerate.
1493         * NEWS: Mention support for or32.
1494         * po/ld.pot: Regenerate.
1496 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
1497             Mitch Lichtenberg  <mpl@broadcom.com>
1499         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1500         * emultempl/mipself.em: New file to handle MIPS ELF embedded
1501         reloc creation (ld --embedded-relocs).
1503 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
1505         * configure: Regenerated.
1507 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
1509         * Makefile.am (install): Depend on install-info.
1510         * Makefile.in: Regenerate.
1512 2002-01-26  Christian Rose  <menthos@menthos.com>
1514         * ldmain.c (main): Use full sentences to ease translation.
1516 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
1518         * po/fr.po: Updated version.
1520 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
1522         * po/es.po: Updated version.
1524 2002-01-25  Andreas Jaeger  <aj@suse.de>
1526         * ldlex.l (yy_input): Correct error check.
1528 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
1530         * ldmisc.c (demangle): Put back dots when string not demangled.
1532 2002-01-22  Richard Henderson  <rth@redhat.com>
1534         * emulparams/elf64alpha.sh (NOP): Use unop.
1536 2002-01-21  Andreas Jaeger  <aj@suse.de>
1538         * ldlex.l: Use fread instead of read.
1540 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
1542         * configure.tgt (ia64-*-netbsd*): New target.
1544 2002-01-21  H.J. Lu <hjl@gnu.org>
1546         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1547         0.
1548         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1550 2002-01-18  Andreas Jaeger  <aj@suse.de>
1552         * ldver.c (ldversion): Update year.
1554 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
1556         * po/ld.pot: Regenerate.
1558 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
1560         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1561         * Makefile.in: Regenerate.
1562         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1563         * emultempl/ppc64elf.em: New file.
1565 2002-01-15  DJ Delorie  <dj@redhat.com>
1567         * scripttempl/pe.sc: Add support for constructor priorities.
1569 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1571         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1572         * emulparams/avr23xx.sh: Likewise.
1573         * emulparams/avr4433.sh: Likewise.
1574         * emulparams/avr44x4.sh: Likewise.
1575         * emulparams/avr85xx.sh: Likewise.
1576         * emulparams/avrmega103.sh: Likewise.
1577         * emulparams/avrmega161.sh: Likewise.
1578         * emulparams/avrmega603.sh: Likewise.
1579         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1581 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
1583         * ldlang.c (walk_wild_section): Exclude object file if enclosing
1584         archive is excluded.
1586 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
1588         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1589         (eshelf_nbsd.c): New rule.
1590         (eshlelf_nbsd.c): New rule.
1591         * Makefile.in: Regenerate.
1592         * configure.tgt (sh*le-*-netbsdelf*): New target.
1593         (sh*-*-netbsdelf*): New target.
1594         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1595         * ld/emulparams/shelf_nbsd.sh: New emulation.
1596         * ld/emulparams/shlelf_nbsd.sh: New emulation.
1598 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
1600         * po/es.po: New file: Spanish translation.
1601         * configure.in (ALL_LINGUAS): Add es.
1602         * configure: Regenerate.
1604 2002-01-06  John Marshall  <jmarshall@acm.org>
1606         * ld.texinfo: Note that --emit-relocs is currently only
1607         implemented for ELF.
1609 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
1611         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1612         of bfd_section_list_remove and bfd_section_list_insert macros.
1613         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1614         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1616 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1618         * configure.tgt (x86_64-*-netbsd*): New target.
1620 2001-12-21  Tom Rix  <trix@redhat.com>
1622         (gld*_create_output_section_statements): New function.
1623         For -binitfini support.
1624         * emultempl/aix.em (gld*_before_parse): Fix comment.
1625         * emultempl/aix.em (gld*_parse_args): Fix comment.
1627 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
1629         * configure.tgt (mips*-dec-netbsd*): Delete alias for
1630         mips*el-*-netbsd*.
1631         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1633         * configure.tgt (arm-*-netbsdelf*): Add target.
1634         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1635         * emulparams/armelf_nbsd.sh: Added.
1636         * Makefile.am: Add rules for earmelf_nbsd.
1637         * Makefile.in: Regenerate.
1639 2001-12-19  Andreas Jaeger  <aj@suse.de>,
1640             Susanne Oberhauser <froh@suse.de>
1642         * configure.host: Add rules for x86_64-*linux-gnu.  Change
1643         s390x-linux entry to use gcc to report configuration, replace gcc
1644         with $CC in s390-linux
1646 2001-12-19  Andreas Jaeger  <aj@suse.de>
1648         * ld.texinfo (VERSION): Fix markup.
1650 2001-12-18  matthew green  <mrg@eterna.com.au>
1652         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1653         (m68kelfnbsd.c): New rule.
1654         * Makefile.in: Regenerate.
1655         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1656         (m68*-*-netbsd*4k*): .. this.
1657         (m68*-*-netbsdelf*): New target.
1658         (m68*-*-netbsd*): Also include ELF support.
1659         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1660         * emulparams/m68kelfnbsd.sh: New emulation.
1662 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1664         * ldgram.y (vers_node): Support anonymous version tags.
1665         * ldlang.c (lang_register_vers_node): Ensure anonymous version
1666         tag is not defined together with non-anonymous versions.
1667         * ld.texinfo: Document it.
1669 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
1671         * po/tr.po: New file: Turkish translation.
1672         * configure.in (ALL_LINGUAS): Add tr.
1673         * configure: Regenerate.
1675 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
1677         * Makefile.am: Add rules for eelf64alpha_nbsd.
1678         * Makefile.in: Regenerate.
1679         * configure.tgt (alpha*-*-netbsd*): Set
1680         targ_emul to elf64alpha_nbsd.
1681         * emulparams/elf64alpha_nbsd.sh: Added.
1683 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
1685         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1686         section_tail when fiddling with section list.
1687         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1688         broken into separate strings to make translation easier.
1689         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1690         fiddling with section list.
1691         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1693 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
1695         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1697 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
1699         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1701 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
1703         * emultempl/elf32.em (finish): Supply output_bfd
1704         to bfd_elf*_discard_info.
1705         (OPTION_EH_FRAME_HDR): Define.
1706         (longopts): Add --eh-frame-hdr.
1707         (parse_args): Handle it.
1708         (list_options): Add --eh-frame-hdr to help.
1709         * emultempl/hppaelf.em (finish): Supply output_bfd
1710         to bfd_elf*_discard_info.
1711         * scripttempl/elf.sc (.eh_frame_hdr): Add.
1713 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
1715         * lexsup.c (parse_args): Don't pass shortopts to second call to
1716         getopt functions.  Restore optind rather than decrementing before
1717         second call.  Remove errind as it now duplicates last_optind.
1719 2001-12-11  Christopher Faylor  <cgf@redhat.com>
1721         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1723 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
1724             Richard Henderson  <rth@redhat.com>
1726         * Makefile.am: Add support for xstormy16.
1727         * configure.tgt: Add support for xstormy16.
1728         * Makefile.in: Regenerate.
1729         * emulparams/elf32xstormy16.sh: New file.
1730         * scripttempl/xstormy16.sc: New file.
1732 2001-10-01  Christopher Faylor <cgf@cygnus.com>
1734         * Makefile.in (LIB_PATH): Make configurable.
1735         (GENSCRIPTS): Set LIB_PATH in environment.
1736         * configure.in: Substitute LIB_PATH.
1737         * configure: Regenerate.
1738         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1739         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1741 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
1743         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1744         describing the -N option so that it is easier to translate into
1745         foreign languages.
1747 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
1749         * emultempl/pe.em (..._list_options): Replace multiple fprintf
1750         statements describing a single option with a single, newline
1751         escaped fprintf.  This allows better translation into other
1752         languages.
1754         * ldmain.c (add_archive_element): Combine multiple strings
1755         into a single string to permit better translation into other
1756         languages.
1758 2001-12-05  Tom Rix  <trix@redhat.com>
1760         * Makefile.am: Remove eaixppc64.
1761         * Makefile.in: Regenerate.
1763 2001-12-04  Tom Rix  <trix@redhat.com>
1765         * emultempl/aix.em (choose_target): Change default target to
1766         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
1767         warning.
1768         (gld*_read_file):  Fix typo.
1769         (change_symbol_mode): Add prototype.
1770         (is_syscall): Same.
1772         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1773         * emulparams/aixrs6.sh : Same.
1774         * emulparams/ppcmacos.sh : Same.
1775         * emulparams/aixppc64.sh : Delete file.
1776         * emultempl/aix.em : Formatting changes.
1778 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
1780         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1781         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1782         __Sbss.
1783         (OTHER_END_SYMBOLS): Fix formatting.
1784         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1785         (OTHER_END_SYMBOLS): Fix formatting.
1787 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
1789         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1791 2001-12-02  Tom Rix  <trix@redhat.com>
1793         * configure.tgt : Remove eaixppc64 emulations.
1794         * Makefile.in : Remove eaixppc64.c
1795         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1796         (ldemul_default_target): Same.
1797         * emultempl/gld960.em (gld960_choose_target):  Same.
1798         * emultempl/gld960c.em (gld960_choose_target):  Same.
1799         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1800         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1801         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1802         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1803         * emultempl/aix.em (choose_target): New function.  Handle emulation of
1804         -b32 and -b64.
1806 2001-11-27  H.J. Lu <hjl@gnu.org>
1808         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1809         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1810         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1811         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1812         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1813         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1814         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1815         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1817         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1818         is not empty.
1819         (SDATA): Likewise.
1820         (REL_SDATA): Likewise.
1821         (REL_SBSS): Likewise.
1822         (REL_SDATA2): Likewise.
1823         (REL_SBSS2): Likewise.
1824         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1825         (SDATA2): Likewise.
1827 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1829         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1830         destructor in rom.
1831         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1833 2001-11-22  H.J. Lu  <hjl@gnu.org>
1835         * Makefile.in: Regenerated with automake based on automake
1836         1.4-8 in RedHat 7.1.
1838 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
1840         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1841         (config.status): Delete rule.
1842         Add extra dependencies to cover sourced emulparams files.
1843         * Makefile.in: Regenerate.
1845         * scripttempl/elf.sc: Order <section>, <section>.* and
1846         corresponding linkonce sections as seen in input files.
1847         Formatting fixes.  Zero vma of all sections if not relocating.
1848         (STACK): Define and insert if STACK_ADDR defined.
1849         (OTHER_RELOCATING_SECTIONS): Delete.
1850         (OTHER_END_SYMBOLS): Define.
1851         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1852         (OTHER_READWRITE_SECTIONS): Likewise.
1853         (OTHER_GOT_SECTIONS): Likewise.
1854         (OTHER_SDATA_SECTIONS): Likewise.
1855         (OTHER_BSS_SECTIONS): Likewise.
1856         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1857         (OTHER_READWRITE_SECTIONS): Likewise.
1858         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1859         (OTHER_READWRITE_SECTIONS): Likewise
1861         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1862         (STACK_ADDR): Define.
1863         * emulparams/armelf_oabi.sh: As for armelf.sh.
1864         * emulparams/elf32mcore.sh: As for armelf.sh.
1865         * emulparams/h8300elf.sh: As for armelf.sh.
1866         * emulparams/mn10200.sh: As for armelf.sh.
1867         * emulparams/shelf.sh: As for armelf.sh.
1869         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1870         (OTHER_END_SYMBOLS): Define.
1871         * emulparams/m32relf.sh: As for elf32fr30.sh.
1872         * emulparams/h8300helf.sh: As for elf32fr30.sh.
1873         * emulparams/h8300self.sh: As for elf32fr30.sh.
1875         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1876         defines with RELOCATING test.
1877         (OTHER_SDATA_SECTIONS): Likewise.
1878         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1879         (OTHER_END_SYMBOLS): ..this.
1880         * emulparams/crislinux.sh: As for criself.sh.
1882         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1883         if not relocating.
1884         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1885         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
1886         normal and linkonce sections as seen in input files.
1887         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1888         (TEXT_DYNAMIC): Likewise.
1889         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1890         (OTHER_SDATA_SECTIONS): Likewise.
1891         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1892         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1893         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1894         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1895         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1896         (OTHER_PLT_RELOC_SECTIONS): Likewise.
1897         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
1898         sections as seen in input files.
1899         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1900         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1901         if not relocating.
1902         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1903         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1904         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1905         (OTHER_SECTIONS): Instead, use this..
1906         (OTHER_END_SYMBOLS): ..and this.
1908         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1909         * emulparams/elf32bsmip.sh: Likewise.
1910         * emulparams/elf32btsmip.sh: Likewise.
1911         * emulparams/elf32ebmip.sh: Likewise.
1912         * emulparams/elf32lmip.sh: Likewise.
1913         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1914         * emulparams/elf32lsmip.sh: Likewise.
1915         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1916         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1917         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1918         * emulparams/elf64btsmip.sh: Likewise.
1919         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1920         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1921         * emulparams/elf32ppclinux.sh: Likewise.
1922         * emulparams/elf32ppcsim.sh: Likewise.
1923         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1924         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1925         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1926         * emulparams/h8300self.sh: Likewise.
1927         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1928         * emulparams/sh.sh: Comment.
1929         * emulparams/shl.sh: Source sh.sh, remove duplicates.
1930         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1931         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1933 2001-11-21  David Heine <dlheine@tensilica.com>
1934             Alan Modra  <amodra@bigpond.net.au>
1936         * ldlang.c (map_input_to_output_sections): Replace "break"
1937         accidentally removed with 2001-08-03 change.
1938         (lang_gc_sections_1): Likewise.
1940 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
1942         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1944 2001-11-20  Angela Marie Thomas <angela@redhat.com>
1946         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1947         of false when calling lang_size_sections.
1948         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1950 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
1952         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1953         function when LDEMUL_FINISH isn't set to the same name.  Don't
1954         call ${LDEMUL_FINISH}.
1955         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1956         * emultempl/armelf.em (arm_elf_finish): Call
1957         gld${EMULATION_NAME}_finish.
1958         * emultempl/hppaelf.em (hppaelf_finish): Rename to
1959         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
1960         hppaelf_layout_sections_again if necessary.
1961         (need_laying_out): New var.
1962         (hppaelf_layaout_sections_again): Rename to
1963         hppaelf_layout_sections_again.  Clear need_laying_out.
1964         (PARSE_AND_LIST_OPTIONS): Format text.
1966 2001-11-14  H.J. Lu  <hjl@gnu.org>
1968         * emultempl/armelf.em (arm_elf_finish): Renamed from
1969         gld${EMULATION_NAME}_finish.
1970         (LDEMUL_FINISH): Set to arm_elf_finish.
1972 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
1974         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1975         (struct ld_emulation_xfer_struct): Use it.
1977 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
1979         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1980         additional symbols referenced by newer crt0.o files from HP.
1982 2001-11-12  Anthony Green  <green@redhat.com>
1984         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1986 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
1988         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1989         * Makefile.in: Regenerate.
1991 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1993         * ld.texinfo: Use @command for commands, @option for options.
1994         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1995         the page man title.
1996         * Makefile.in: Rebuild.
1998 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
2000         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2001         Add support for targets.
2003 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
2005         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2006         * configure: Regernate.
2007         * po/fr.po: New file.
2008         * po/sv.po: New file.
2010 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
2012         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2013         as little endian default and to support big endian.
2015 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
2017         * ld.texinfo (Options): Document new option, -nostdlib.
2018         * lexsup.c (OPTION_NOSTDLIB): New definition.
2019         (ld_options): Add entry for "nostdlib".
2020         (parse_args): Handle OPTIONS_NOSTDLIB.
2021         * ldfile.c (ldfile_add_library_path): Don't add directories
2022         to the search path if they weren't specified on the command line
2023         and -nostdlib was specified.
2024         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2026 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
2028         * lexsup.c (parse_args): Prevent infinite parsing loop when
2029         "-rpath.a" is specified on the command line.
2030         Replace calls to fprintf with calls to einfo.
2032 2001-10-31  John Marshall  <jmarshall@acm.org>
2034         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2035         appear only once across all the linker scripts involved in a link
2036         invocation no longer applies.  Make the documentation reflect
2037         that.
2039 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
2041         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2042         targets.
2043         (sh-*-linux*): Added targ_extra_libpath.
2045 2001-10-31  David Heine  <dlheine@tensilica.com>
2047         * ldlang.c (lang_size_sections): Keep a valid output_offset field
2048         for padding statements.
2050 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
2052         * configure.tgt (mmix-*-*): New target.
2053         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2054         Add dependencies to match.
2055         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2056         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2057         scripttempl/mmo.sc: New files.
2058         * gen-doc.texi: @set MMIX.
2059         * ld.texinfo: Ditto.
2060         [MMIX] Add MMIX node.
2061         * Makefile.in: Regenerate.
2063 2001-10-29  Kazu Hirata  <kazu@hxi.com>
2065         * ldlang.c: Fix a comment typo.
2067 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
2069         * configure.host: Move alpha*-*-linux-gnu* entry to generic
2070         entries, and match *-*-linux*.
2072 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
2074         * ldgram.y (mri_script_command): Surround processing of INCLUDE
2075         with ldlex_script, ldlex_popstate.
2076         (ifile_p1): Likewise.
2077         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
2078         correct slot.
2079         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
2080         to 1.  Don't BEGIN(SCRIPT).
2081         (lex_redirect): Similarly.
2082         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2084 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
2086         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2087         __EH_FRAME_END__ and accept eh frames into data section.
2088         Add ctor and dtor sections.
2090 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2092         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2093         (auto-export): Fix indentation.
2095 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2097         * pe-dll.c (autofilter_objectlist):  Add startup objects
2098         for profiling.
2099         (auto-export): Constify char * p.
2100         Extract file basename and use strcmp rather than ststr
2101         for object lookup.
2103 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
2105         * ldmain.c (get_emulation): Improve comment about the handling
2106         of -mipsN options.
2108 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
2110         * po/POTFILES.in: Regenerate.
2112 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
2114         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2115         -z nocopyreloc and -z nocombreloc usage strings.
2117 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
2119         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2120         in usage.
2122 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
2124         * scripttempl/armaout.sc: Place .bss section after end of aligned
2125         data section to match behaviour of aout code in constructrion of
2126         header.
2128 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2130         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2131         startup files for mingw32 dlls to list.
2133 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
2135         * emultempl/elf32.em: Fix shell 'if' usage for portability.
2137 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
2139         * configure.tgt (targ): Add arm9e-*-elf.
2141 2001-10-05  H.J. Lu  <hjl@gnu.org>
2143         * genscripts.sh: Fix a typo in the last change.
2145 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
2147         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2148         -z nocombreloc in usage.
2150 2001-10-03  Jim Blandy  <jimb@redhat.com>
2152         * genscripts.sh: Include a comment at the top of each generated
2153         script, explaining its purpose.
2155 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
2157         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2158         * NEWS: Mention -z nocopyreloc.
2159         * ld.texinfo (Options): Describe nocopyreloc.
2161 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
2163         * configure: Regenerate.
2165 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
2167         * ldver.h (ld_program_version): Remove declaration.
2168         * lexsup.c (parse_args): Move printing of copyright message..
2169         * ldver.c (ldversion): .. to here.
2170         Use BFD_VERSION_STRING in place of BFD_VERSION.
2171         (ld_program_version): Remove.
2172         * Makefile.am (Makefile): Depend on bfd/configure.in.
2173         Run "make dep-am".
2174         * Makefile.in: Regenerate.
2176 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
2178         * Makefile.am: Update dependencies with "make dep-am".
2179         * Makefile.in: Regenerate.
2181 2001-09-29  John Reiser  <jreiser@BitWagon.com>
2183         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2184         * lexsup.c: Add --no-define-common commandline option.
2185         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2186         * ldlex.l: Likewise.
2187         * ld.h: Add command_line.inhibit_common_definition.
2188         * ldmain.c (main): Initialize.
2189         * ld.texinfo: Document.
2191 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
2193         * ldlang.c (section_already_linked): Remove assignment to kept_section.
2195 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
2197         * ldmisc.c (USE_STDARG): Remove.
2198         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2199         (einfo): Likewise.
2200         (minfo): Likewise.
2201         (lfinfo): Likewise.
2203         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2204         declarations.  Update copyright.
2206 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2208         * pe-dll.c: Remove obsoleted declaration of
2209         pe_get_data_import_dll_name.
2210         (pe_create_import_fixup): Fix thinko.
2212         * ld.texinfo(enable-auto-import): Clarify the explanation.
2214 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
2216         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2217         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2218         DLL_SUPPORT controlled code.
2220 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2222         * emultempl/pe.em(pe_data_import_dll): Make static.
2223         (pe_get_data_import_dll_name): New accessor function.
2224         * pe-dll.c(pe_create_import_fixup): call
2225         pe_get_data_import_dll_name() from pe.em, instead of
2226         directly accessing pe_data_import_dll variable from pe.em.
2228 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
2230         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2231         (def_file_add_directive): Use ISSPACE instead of isspace.
2232         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2233         isdigit/isxdigit/isalpha/isalnum.
2234         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2235         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2236         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2237         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2238         isalnum.
2239         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2240         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2241         isupper/tolower.
2242         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2243         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2244         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2245         (ctor_prio): Use ISDIGIT instead of isdigit.
2246         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2247         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2248         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2249         isupper/tolower.
2250         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2251         (stricpy): Use TOLOWER instead of isupper/tolower.
2252         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2253         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2254         (lex_warn_invalid): Use ISPRINT instead of isprint.
2255         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2256         (main): For gettext, also set the LC_CTYPE locate facet.
2257         (add_keepsyms_file): Use ISSPACE instead of isspace.
2258         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2259         (is_num, parse_args): Use ISDIGIT instead of isdigit.
2260         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2261         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2262         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2263         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2264         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2265         (quoteput): Use ISSPACE instead of isspace.
2266         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2267         instead of isalnum.
2269 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
2271         * deffilep.y (def_stash_module): Constify "name" param.
2273         * pe-dll.c: Replace CONST with const throughout.
2274         (quick_symbol): Constify "n1", "n2", "n3" params.
2275         (make_singleton_name_thunk): Constify "import" param.  Make
2276         "buffer_len" a size_t.
2277         (make_import_fixup_entry): Constify "name", "fixup_name",
2278         "dll_symname" params.
2279         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
2280         (pe_get32): Likewise.
2281         (pe_implied_import_dll): Likewise.
2283         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2284         (sort_by_section_name): Likewise.
2286         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2287         (make_import_fixup): Cast printf arg, rel->address to long rather
2288         than int.
2289         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2291 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
2293         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2294         defines BufferSize.  Increase buffer size by one.
2296 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
2298         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2300 2001-09-14  Kevin Lo <kevlo@openbsd.org>
2302         * configure.tgt: Add arm-openbsd target.
2304 2001-09-12  H.J. Lu  <hjl@gnu.org>
2306         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2307         eelf64lppc.o to ...
2308         (ALL_64_EMULATIONS): Here.
2309         * Makefile.in: Regenerated.
2311 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2313         * emultempl/pe.em(make_import_fixup): change signature to
2314         take asection as well as arelec; we need this for proper
2315         error reporting.  Only call pe_create_import_fixup() if
2316         there is no attempt to add a constant addend to the reloc;
2317         otherwise, report error condition.
2318         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2319         since final argument is a pointer to make_import_fixup().
2320         Change call to cb() to match make_import_fixup() signature.
2321         (make_import_fixup_mark): make buffer_len unsigned.
2322         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2324 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
2326         * ld.texinfo: add verbose documentation for auto-import
2327         direct-addressing workaround, to compliment the terse
2328         error message.
2330 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
2332         * scripttempl/v850.sc: Add gcc_except_table sections.
2334 2001-09-11  Jeffrey A Law  (law@cygnus.com)
2336         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2337         * emulparams/h8300self.sh: Similarly.
2339 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2341         * ld.texinfo (Options, --stack): Correct default value for stack
2342         reserve.
2344 2001-09-05  Tom Rix <trix@redhat.com>
2346         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2348 2001-09-03  Andreas Jaeger  <aj@suse.de>
2350         * emultempl/beos.em: Declare prototypes for comparions functions,
2351         adjust definitions.
2353 2001-09-02  Andreas Jaeger  <aj@suse.de>
2355         * emultempl/aix.em: Add missing prototype.
2356         * emultempl/lnk960.em: Likewise.
2357         * emultempl/vanilla.em: Likewise.
2358         * emultempl/armcoff.em: Likewise.
2359         * emultempl/armelf_oabi.em: Likewise.
2360         * emultempl/beos.em: Likewise.
2361         * emultempl/gld960c.em: Likewise.
2362         * emultempl/gld960.em: Likewise.
2364         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2365         for prototype declaration.
2367 2001-08-31  Eric Christopher  <echristo@redhat.com>
2368             Jason Eckhardt  <jle@redhat.com>
2370         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2372 2001-08-31  Andreas Jaeger  <aj@suse.de>
2374         * emultempl/pe.em: Add missing prototypes.
2375         (gld_${EMULATION_NAME}_after_open): Remove extra args to
2376         pe_find_data_imports.
2377         (pr_sym): Add unused attribute.
2379 2001-08-29  Joel Sherrill <joel@OARcorp.com>
2381         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2382         default from coff to elf.
2384 2001-08-29  Jeff Law <law@redhat.com>
2386         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
2387         ARCH specification.
2388         * emulparams/h8300self.sh: Similarly.
2390 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
2392         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2393         eh8300self.o .
2394         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2395         * configure.tgt (h8300-*-elf*): New case.
2396         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2397         * emulparams/h8300self.sh: New file.
2398         * Makefile.in: Regenerated.
2400 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
2402         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2403         with macro name.
2405 2001-08-27  Linus Nordberg  <linus@swox.com>
2406             Alan Modra  <amodra@bigpond.net.au>
2408         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2409         (eelf64ppc.c, eelf64lppc.c): Add make targets.
2410         Run "make dep-am"
2411         * Makefile.in: Regenerate.
2412         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
2413         entries to correct alphabetical position.
2414         * emulparams/elf64ppc.sh: New.
2415         * emulparams/elf64lppc.sh: New.
2417 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
2419         * ldmain.c (main): Declare BSIZE as static.
2421 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2423         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2424         into .rel.dyn resp. .rela.dyn if combreloc.
2425         (get_script): If .x linker script is equal to .xn, only put it
2426         once into the binary.
2427         Add .xc and .xsc scripts.
2428         (parse_args): Handle -z combreloc and -z nocombreloc.
2429         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2430         For .xc and .xsc scripts put all .rel* or .rela* input sections
2431         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2432         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2433         is elf.
2434         Strip trailing whitespace from script.
2435         Generate .xc and .xsc scripts if requested.
2436         * ldmain.c (main): Initialize link_info.combreloc and
2437         link_info.spare_dynamic_tags.
2438         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2439         (ld_options): Add --spare-dynamic-tags option.
2440         (parse_args): Likewise.
2441         * ld.texinfo: Document -z combreloc and -z nocombreloc.
2442         * ldint.texinfo: Document .xc and .xsc linker scripts.
2443         * NEWS: Add notes about -z combreloc and SHF_MERGE.
2445 2001-08-22  H.J. Lu  <hjl@gnu.org>
2447         * emulparams/elf32fr30.sh: Add a newline.
2449 2001-08-21  Andreas Jaeger  <aj@suse.de>
2451         * deffilep.y: Add missing prototypes.
2452         * pe-dll.c: Likewise.
2454 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
2456         * ldlang.c (insert_pad): Fix typos in last patch.
2458         * ldlang.c: When traversing lang_statement_union_type lists,
2459         consistently use "header.next" rather than "next".
2460         * mpw-eppcmac.c: Likewise.
2461         * emultempl/beos.em: Likewise.
2462         * emultempl/hppaelf.em: Likewise.
2463         * emultempl/pe.em: Likewise.
2464         * ldlang.h (union lang_statement_union): Remove "next" field.
2466         * ldlang.c (insert_pad): Use offsetof macro.
2467         (lang_size_sections): Always neuter padding statements.
2468         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2470         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2471         passed to lang_size_sections.
2472         (pe_exe_fill_sections): Likewise.
2473         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2474         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2476 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2478         * emultempl/aix.em: Formatting fixes.
2480 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2482         * ldlang.c (insert_pad): Make use of an existing pad statement if
2483         available.  Move code calculating alignment, adjusting section
2484         alignment power, and adjusting dot to ..
2485         (size_input_section): .. here.  Remove unused relax param.
2486         (lang_size_sections): Change boolean `relax' param to boolean *.
2487         Adjust call to size_input_section.  Make use of insert_pad to
2488         place pad after the assignment statement.  If relaxing, zap
2489         padding statements.
2490         (reset_memory_regions): Reset output_bfd section sizes too.
2491         (relax_again): Move to..
2492         (lang_process): ..here.  Adjust call to lang_size_sections, and
2493         remove duplicated code.
2494         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2496 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
2498         * ld.texinfo: Document that fill values now use the four least
2499         significant bytes.
2500         * emulparams/elf32fr30.sh (NOP): Update.
2501         * emulparams/elf32mcore.sh: Likewise.
2502         * emulparams/elf64_s390.sh: Likewise.
2503         * emulparams/elf_i386.sh: Likewise.
2504         * emulparams/elf_i386_be.sh: Likewise.
2505         * emulparams/elf_i386_chaos.sh: Likewise.
2506         * emulparams/elf_i386_ldso.sh: Likewise.
2507         * emulparams/elf_s390.sh: Likewise.
2508         * emulparams/elf_x86_64.sh: Likewise.
2509         * emulparams/i386moss.sh: Likewise.
2510         * emulparams/i386nw.sh: Likewise.
2511         * emulparams/m68kelf.sh: Likewise.
2512         * scripttempl/elf.sc: Update NOP comment.
2513         * scripttempl/elfi370.sc: Likewise.
2514         * scripttempl/elfm68hc11.sc: Likewise.
2515         * scripttempl/elfm68hc12.sc: Likewise.
2516         * scripttempl/nw.sc: Likewise.
2518 2001-08-15  Tom Rix <trix@redhat.com>
2520         * ldgram.y (saved_script_handle): Initialize to NULL.
2521         * ldmain.c (main): Change check on saved_script_handle.
2523 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
2525         * emultempl/elf32.em: Formatting fixes.
2526         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
2527         looking at sec->owner.
2528         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2529         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
2530         unused code, and reorganize orphan section placement code.
2532         * ldlang.c (wild_doit): Rename to lang_add_section.
2533         * ldlang.h: Here too.
2534         * mpw-elfmips.c: And here.
2535         * emultempl/beos.em: And here.
2536         * emultempl/elf32.em: And here.
2537         * emultempl/hppaelf.em: And here.
2538         * emultempl/pe.em: And here.
2540 2001-08-13  Richard Henderson  <rth@redhat.com>
2542         * emultempl/needrelax.em: New file.
2543         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2544         * Makefile.am (eelf64_ia64.c): Depend on it.
2545         * Makefile.in: Rebuild.
2547 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
2549         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2550         output_section is set non-NULL.
2552         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2553         `true' for SEC_EXCLUDE sections so that the generic code doesn't
2554         needlessly create an output_section_statement.  Treat a correctly
2555         named output_section_statement with NULL bfd_section as compatible.
2557 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
2559         * emultempl/generic.em: Support EXTRA_EM_FILE.
2560         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2561         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2562         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2563         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2564         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2565         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2566         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2567         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2568         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2569         LDEMUL_FIND_POTENTIAL_LIBRARIES.
2571 2001-08-12  Richard Henderson  <rth@redhat.com>
2573         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2574         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2575         scripttempl/v850.sc: Keep .jcr data.
2577 2001-08-12  H.J. Lu  <hjl@gnu.org>
2578             Andrew Haley  <aph@cambridge.redhat.com>
2579             Nick Clifton  <nickc@redhat.com>
2581         * ldgram.y (had_script): Change name to saved_script_handle.
2582         Change type to file handle.
2583         * ld.h (had_script): Rename and retype.
2584         * ldfile.c (ldfile_open_command_file): Save the file handle
2585         used in saved_script_handle.
2586         * lexsup.c (parse_args): Do not allow -c option to alter
2587         saved_script_handle.
2588         * ldmain.c (main): Print out the linker script used if
2589         --verbose is given.  Check saved_script_handle to obtain the
2590         external linker script used, or if NULL, dump the builtin
2591         script.
2592         * ld.texinfo: Document that --verbose now dumps the linker
2593         script used, regardless of whether it was an internal or an
2594         external script.
2596 2001-08-10  Andreas Jaeger  <aj@suse.de>
2598         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2599         to build warnings.
2600         * configure: Regenerate.
2602 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
2604         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2606         * scripttempl/elf.sc: Move non-text .dynamic section before
2607         .plt/.got/.sdata* group.
2608         (OTHER_GOT_SECTIONS): Move to immediately after .got.
2609         (OTHER_SDATA_SECTIONS): Add.
2610         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2611         OTHER_GOT_SECTIONS.
2612         * emulparams/crislinux.sh: Likewise.
2613         * emulparams/elf32b4300.sh: Likewise.
2614         * emulparams/elf32bmip.sh: Likewise.
2615         * emulparams/elf32bmipn32.sh: Likewise.
2616         * emulparams/elf32bsmip.sh: Likewise.
2617         * emulparams/elf32btsmip.sh: Likewise.
2618         * emulparams/elf32ebmip.sh: Likewise.
2619         * emulparams/elf32elmip.sh: Likewise.
2620         * emulparams/elf32l4300.sh: Likewise.
2621         * emulparams/elf32lmip.sh: Likewise.
2622         * emulparams/elf32lsmip.sh: Likewise.
2623         * emulparams/elf32ltsmip.sh: Likewise.
2624         * emulparams/elf64bmip.sh: Likewise.
2625         * emulparams/elf64btsmip.sh: Likewise.
2626         * emulparams/elf64ltsmip.sh: Likewise.
2628 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
2630         * genscripts.sh: Source the emulparams script before each output
2631         script is generated so that variables like `RELOCATING' may affect
2632         variables defined in the emulparams script.
2634 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
2636         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2637         order.
2639         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2640         ie. iterate over wild_statement.section_list.
2641         (gld${EMULATION_NAME}_place_orphan): Likewise.
2643 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2645         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2646         .fini[0-4] sections used by _exit
2647         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2648         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2649         * scripttempl/elfm68hc11.sc: Likewise.
2651 2001-08-03  H.J. Lu  <hjl@gnu.org>
2653         * emultempl/beos.em (init): Add the missing initialization.
2655 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
2657         * ld.texinfo (Input Section Basics): Clarify ordering of output
2658         sections.
2659         * ldlang.c (callback_t): Add wildcard_list param.
2660         (walk_wild_section): Remove "section" param.  Rewrite for
2661         lang_wild_statement_type change.  Remove unique_section_p test.
2662         (walk_wild_file): Remove "section" param.
2663         (walk_wild): Remove "section" and "file" params.
2664         (lang_gc_wild): Likewise.
2665         (wild): Likewise.  Modify for lang_wild_statement_type change.
2666         (wild_sort): Likewise.  Add "sec" param.
2667         (gc_section_callback): Likewise.
2668         (output_section_callback): Likewise.  Do unique_section_p test.
2669         (map_input_to_output_sections): Modify call to wild.
2670         (lang_gc_sections_1): Likewise.
2671         (print_wild_statement): Modify for lang_wild_statement_type
2672         change.
2673         (lang_add_wild): Replace filename, filenames_sorted param with
2674         filespec.  Replace section_name, sections_sorted,
2675         exclude_filename_list with section_list.
2676         * ldlang.h (lang_add_wild): Here too.
2677         (lang_wild_statement_type): Replace section_name, sections_sorted,
2678         and exclude_filename_list with section_list.
2679         * ldgram.y (current_file): Delete.
2680         (%union): Add wildcard_list.
2681         (file_NAME_list): Set type to wildcard_list.  Build a linked list
2682         rather than calling lang_add_wild for each entry.
2683         (input_section_spec_no_keep): Call lang_add_wild here instead.
2684         * ld.h (struct wildcard_list): Declare.
2685         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2687 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2689         * ldmain.c (main): initialize link_info.pei386_auto_import
2690         * pe-dll.c: new tables for auto-export filtering
2691         (auto_export): change API, pass abfd for contextual filtering.
2692         Loop thru tables of excluded symbols instead of comparing
2693         "by hand".
2695 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
2697         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2698         static variable current_sec (static struct sec *). Add
2699         forward declaration for add_bfd_to_link.
2700         (process_def_file): Don't export undefined symbols. Do not
2701         export symbols starting with  "_imp__".  Call auto_export()
2702         with new API.
2703         (pe_walk_relocs_of_symbol): New function.
2704         (generate_reloc): add optional extra debugging
2705         (pe_dll_generate_def_file): eliminate extraneous initial blank
2706         line in output
2707         (make_one): enlarge symtab to make room for __nm__ symbols
2708         (DATA auto-import support).
2709         (make_singleton_name_thunk): New function.
2710         (make_import_fixup_mark): New function.
2711         (make_import_fixup_entry): New function.
2712         (pe_create_import_fixup): New function.
2713         (add_bfd_to_link): Specify that 'name' argument is a CONST
2714         char *.
2715         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2716         declare new functions pe_walk_relocs_of_symbol and
2717         pe_create_import_fixup.
2718         * emultempl/pe.em: add new options --enable-auto-import,
2719         --disable-auto-import, and --enable-extra-pe-debug.
2720         (make_import_fixup): New function.
2721         (pe_find_data_imports): New function.
2722         (pr_sym): New function.
2723         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2724         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
2725         CODE.
2727 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2729         * ld.texinfo: add additional documentation for
2730         --export-all-symbols.  Document --out-implib,
2731         --enable-auto-image-base, --disable-auto-image-base,
2732         --dll-search-prefix, --enable-auto-import, and
2733         --disable-auto-import.
2734         * ldint.texinfo: Add detailed documentation on auto-import
2735         implementation.
2737 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
2739         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2740         example.
2742 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
2744         * Makefile.am: Update dependencies with "make dep-am".
2745         * Makefile.in: Regenerate
2747 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
2749         * ldcref.c (check_section_sym_xref): New function.
2750         (check_nocrossrefs): Call it.
2751         (check_nocrossref): Interate over h->refs here instead of..
2752         (check_refs): ..here.  Pass in the symbol name, section, and bfd
2753         rather than hash_entry pointers.
2754         (struct check_refs_info): Keep symbol name rather than hash entry.
2755         Remove "same".
2756         (check_reloc_refs): Tweak for above changes in check_refs_info.
2757         Only report references to section syms when symname is NULL to
2758         prevent duplicate messages for the same reloc.
2760 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2762         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2763         available.  Do not print NULL trees.
2764         (exp_print_token): Print unknown tokens with values > 126 as
2765         decimal values not ASCII characters.
2767         * ldlang.c (lang_leave_overlay): If a region is specified assign
2768         it to all sections inside the overlay unless they have been
2769         assigned to the own, non-default, memory region.
2771         * README: Add header for consistency with other README files.
2773 2001-07-14  H.J. Lu  <hjl@gnu.org>
2775         * emultempl/elf32.em (output_prev_sec_find): Never return
2776         bfd_abs_section_ptr, bfd_com_section_ptr nor
2777         bfd_und_section_ptr.
2779 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
2781         * Makefile.am (em32relf.c): Change dependency from generic.em to
2782         elf32.em.
2783         * Makefile.in: Regenerate.
2785 2001-07-14  matthew green  <mrg@eterna.com.au>
2787         * configure.tgt (i386-*-netbsdelf*): New target.
2788         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2790 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
2792         * emultempl/elf32.em (output_prev_sec_find): New.
2793         (place_orphan): Use it.
2795 2001-07-11  H.J. Lu  <hjl@gnu.org>
2797         * ldmain.c (main): Fix typos in the last change.
2799 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
2801         * ldmain.c (main): Disallow -F and -f without -shared.
2803 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
2805         * emultempl/pe.em (after_open): Check for the output_bfd not
2806         having any coff_data structure allocated to it.
2808 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
2810         * emultempl/elf32.em: Do not assuming that contents of the buffer
2811         returned from basename function will remain unchanged accross other
2812         function calls.
2814 2001-07-03  H.J. Lu  <hjl@gnu.org>
2816         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2817         2001-07-03. It creates dynamic entries even for static binaries.
2819 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
2821         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2822         (DYNAMIC): Use it to reserve few dynamic entries for
2823         post-linking tools.
2825 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
2827         * emulparams/hppa64linux.sh: New file.
2828         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2829         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2830         (ehppa64linux.c): Add rule to make it.
2831         Run "make dep-am".
2832         * Makefile.in: Regenerate.
2834 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
2836         * ld.texinfo (Options, -r): Mention restrictions when using
2837         different object formats.
2839 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
2841         * ldlang.c (lang_check): Emit fatal error if relocatable link
2842         between different object flavours with relocations in input.
2844 2001-06-19  H.J. Lu  <hjl@gnu.org>
2846         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2847         (--version-script): Mention the language support.
2849 2001-06-19  H.J. Lu <hjl@gnu.org>
2851         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2853 2001-06-18  H.J. Lu <hjl@gnu.org>
2855         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2856         (diststuff): Add $(MANS).
2857         * Makefile.in: Regenerated.
2859         * ld.1: Removed.
2861 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
2863         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2864         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2865         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2866         * ld.h (args_type): Remove member export_dynamic.  All users
2867         changed to use struct bfd_link_info member.
2869         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2870         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2871         * Makefile.in: Regenerate.
2873 2001-06-18  H.J. Lu  <hjl@gnu.org>
2875         * ldlang.c (init_os): Add the newline to the einfo call.
2876         (lang_check): Likewise.
2877         (lang_do_version_exports_section): Likewise.
2879 2001-06-15  H.J. Lu  <hjl@gnu.org>
2881         * lexsup.c (parse_args); Save optind to report unrecognized
2882         option.
2884 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
2886         * ldlang.c (lang_check): Emit fatal error if relocatable link
2887         between different object flavours.
2889         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2890         Set new link_info member export_dynamic.
2891         * ldmain.c (main): Initialize new link_info member export_dynamic.
2893 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
2895         * ldlang.c (walk_wild): Only call walk_wild_file if
2896         lookup_name returns something.
2897         (lookup_name): If load_symbols fails, return NULL.
2898         (load_symbols): Change to a boolean function.
2899         (open_input_bfds): If load_symbols fails then do not make the
2900         executable.
2902 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
2904         * ldlang.c (record_bfd_errors): Remove.
2906         * emultempl/aix.em: Fix copyright dates.
2908 2001-06-07  Andreas Jaeger  <aj@suse.de>
2910         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2911         (TEXT_START_ADDR): Likewise.
2913 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
2915         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2917 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2919         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2921 2001-05-31  H.J. Lu  <hjl@gnu.org>
2923         * ldlang.c (open_input_bfds): Don't change the bfd error
2924         handler whilst loading symbols.
2926 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
2928         * configure.tgt: Remove i370-mvs architecture, it is not currently
2929         supported.
2931 2001-05-25  H.J. Lu  <hjl@gnu.org>
2933         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2934         like emulparams/aixppc.sh.
2936 2001-05-25  H.J. Lu  <hjl@gnu.org>
2938         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2939         setting of output_filename after bfd_scan_arch.
2940         * emultempl/pe.em: Likewise.
2942 2001-05-25  H.J. Lu  <hjl@gnu.org>
2944         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2945         like emulparams/aixppc.sh.
2947         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2948         instead of ${srcdir}/emultempl/stringify.sed.
2950 2001-05-25  Timothy Wall  <twall@oculustech.com>
2952         * emulparams/elf64_aix.sh: Change settings to match IBM linker
2953         output.
2955 2001-05-25  Alan Modra  <amodra@one.net.au>
2957         * configure.host: Replace linuxoldld with linux*oldld.
2958         * configure.tgt: Likewise.
2960 2001-05-24  H.J. Lu  <hjl@gnu.org>
2962         * emultempl/stringify.sed: Removed again.
2964 2001-05-24  H.J. Lu  <hjl@gnu.org>
2966         * emultempl/aix.em (OUTPUT_ARCH): Defined.
2967         (gld${EMULATION_NAME}_before_parse): Initialize
2968         ldfile_output_architecture, ldfile_output_machine and
2969         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2970         * emultempl/beos.em: Likewise.
2971         * emultempl/elf32.em: Likewise.
2972         * emultempl/linux.em: Likewise.
2973         * emultempl/mipsecoff.em: Likewise.
2974         * emultempl/pe.em: Likewise.
2975         * emultempl/sunos.em: Likewise.
2977 2001-05-24 Tom Rix <trix@redhat.com>
2979         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2980         udate import file format.
2981         (change_symbol_mode) New, same
2982         (is_syscall) New, same
2983         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2984         * emulparams/aixppc64.sh : same
2985         * emulparams/aixrs6.sh : same
2986         * emulparams/ppcmacos.sh : same
2987         * emultempl/aix.em : use strtoull to parse options
2988         * Makefile.am : add eaixppc64 emulation for xcoff64
2989         * Makefile.in : same
2990         * configure.tgt : same
2992         * scripttempl/aix.sc : default text section offset to 0x10000000
2993         default data section offset to 0x20000000
2994         add .sv3264 and .sv64 pseudo sections
2995         loader and debug sections use the currect section offset.
2997         * emultempl/aix.em : Add xcoff64 support
2998         Add -binitfini support
2999         (gld${EMULATION_NAME}_before_parse) -binitfini
3000         (gld${EMULATION_NAME}_parse_args) same
3001         (gld${EMULATION_NAME}_before_allocation) format change for special
3002         sections
3004         * emulparams/aixppc64.sh : New file for xcoff64 support
3006 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
3008         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3009         variable to avoid non-portable shell construct.
3011 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3013         * ldmain.c (get_emulation): Add -mips5 command line argument.
3015 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
3017         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3018         (ELF_INTERPRETER_NAME): Define it.
3019         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3020         it.
3021         * configure.tgt (targ_emul, targ_extra_emuls)
3022         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3023         as primary, elf_i386 as extra.
3024         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3025         (eelf_i386_ldso.c): New rule.
3026         * Makefile.in: Rebuilt.
3028 2001-05-22  Nick Clifton  <nickc@redhat.com>
3030         * lexsup.c (ld_options):  Allow -I to be an alias for
3031         --dynamic-linker.  This is for Solaris compatability.
3032         * ld.texinfo: Document that -I can be used.
3033         * ld.1: Regenerate.
3035 2001-05-16  Alan Modra  <amodra@one.net.au>
3037         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3038         whether an input section is the first one assigned to an output
3039         section.
3040         Assorted formatting fixes.
3042 2001-05-14  DJ Delorie  <dj@delorie.com>
3044         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3045         * Makefile.in: Ditto.
3047 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3049         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3050         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3051         output sections.
3052         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3054 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3056         * ldlang.c (lang_process): Call bfd_merge_sections.
3058 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3060         * ldgram.y: Fix typo.
3062 2001-05-03  H.J. Lu  <hjl@gnu.org>
3064         * emultempl/elf32.em: Include "libiberty.h".
3065         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3066         basename of the bfd filename.
3067         (gld${EMULATION_NAME}_stat_needed): Likewise.
3068         (gld${EMULATION_NAME}_try_needed): Likewise.
3069         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3071 2001-05-02  H.J. Lu  <hjl@gnu.org>
3073         * emultempl/pe.em: Include <ctype.h>.
3075 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
3077         * emulparams/elf32openrisc.sh: New file.
3079         * Makefile.am: Add OpenRISC target.
3080         * Makefile.in: Regenerated.
3082         * configure.tgt: Add openrisc-*-* mapping.
3084 2001-05-02  Nick Clifton  <nickc@redhat.com>
3086         * emultempl/aix.em: Replace buystring with xstrdup.
3087         * emultempl/beos.em: Replace buystring with xstrdup.
3089 2001-05-02  H.J. Lu  <hjl@gnu.org>
3091         * ldfile.c: Include "libiberty.h".
3092         * ldlex.l: Likewise.
3094         * ldmisc.c (buystring): Removed.
3095         * ldmisc.h: Likewise.
3097         * ldfile.c: Replace buystring with xstrdup.
3098         * ldlang.c: Likewise.
3099         * ldlex.l: Likewise.
3100         * ldmain.c: Likewise.
3101         * ldmisc.c: Likewise.
3102         * lexsup.c: Likewise.
3103         * mpw-eppcmac.c: Likewise.
3105 2001-04-30  Andreas Jaeger  <aj@suse.de>
3107         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3109 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3111         * ldlang.c (load_symbols): Give emulation a chance
3112         to process unrecognized file before fatal error is
3113         reported, not after.
3115 2001-04-27  Sean McNeil <sean@mcneil.com>
3117         * configure.tgt: Add arm-vxworks target.
3118         * scripttempl/armcoff.sc: Support .text or .data as a section name
3119         prefix.
3120         Define _etext.
3122 2001-04-13  J.T. Conklin  <jtc@redback.com>
3124         * ld.texinfo: Document --fatal-warnings.
3125         * ld.1: Regenerate.
3127         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3128         warnings have been turned into errors.
3129         * lexsup.c (OPTION_WARN_FATAL): Define.
3130         (ld_options): Entry for --fatal-warnings.
3131         (parse_args): Handle OPTION_WARN_FATAL.
3132         * ld.h (ld_config_type): Add fatal_warnings field.
3134 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
3136         * ldmain.c (main): Default to discard_sec_merge.
3137         * lexsup.c (OPTION_DISCARD_NONE): Define.
3138         (ld_options): Add --discard-none.
3139         (parse_args): Handle OPTION_DISCARD_NONE.
3140         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3141         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3142         all its input sections match.
3144 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
3146         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3147         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3148         (eelf32ltsmip.c): New target.
3149         (eelf64btsmip.c): Likewise.
3150         (eelf64ltsmip.c): Likewise.
3151         * Makefile.in: Regenerated.
3153         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3154         target.
3155         (mips*-*-linux-gnu*): Likewise.
3157         * emulparams/elf32ltsmip.sh: New. Traditional little endian
3158         MIPS taget.
3159         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3160         target.
3161         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3162         endian target.
3164 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
3166         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3167         correct value of __Stext here.
3168         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3169         .startup section.
3171         * emulparams/crislinux.sh: Remove FIXME.
3173 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
3175         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3176         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3178 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
3180         * configure.tgt (cris-*-*): Change default emulation to criself.
3181         (cris-*-*aout*): New rule.
3183 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
3185         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3186         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3188 2001-03-26  Andreas Jaeger  <aj@suse.de>
3190         * ld.texinfo (Overview): Fix syntax in texi code.
3192 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3194         * ld.texinfo: Put @c man indications to generate the ld man page.
3195         When generating man, define all the variables.  Define SEEALSO
3196         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
3197         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3198         (ld.1): Generate from ld.texinfo.
3199         * Makefile.in: Regenerate.
3201 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
3203         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3204         and '-fdata-sections'. Set the VMA of STABS sections to zero.
3206 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3208         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3209         is an absolute path look only for this file and not along the path.
3211 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3213         * emultempl/elf32.em (OPTION_GROUP): New macro.
3214         Add new option Bgroup to longopts.
3215         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3216         (gld*_list_options): Add -Bgroup and -z defs.
3217         * ld.1: Document -Bgroup and -z defs.
3218         * ld.texinfo: Likewise.
3220 2001-03-07  Michael Meissner  <meissner@redhat.com>
3222         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3223         with sections created by -fdata-sections.
3224         (.dynbss,.bss): Ditto.
3226 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
3228         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3229         after_allocation_default, not gld..._before_allocation.
3231 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
3233         * configure.in (BFD_VERSION): New.
3234         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3235         * configure: Regenerate.
3236         * Makefile.am: Run "make dep-am"
3237         * Makefile.in: Regenerate.
3239 2001-02-26  Timothy Wall  <twall@cygnus.com>
3241         * emulparams/elf64_aix.sh: Add additional read-only sections;
3242         uncomment lines which are now required.
3244 2001-02-26  H.J. Lu  <hjl@gnu.org>
3246         * ldlang.c (open_input_bfds): Set the bfd error handler so
3247         that problems can be caught whilst loading symbols.
3248         (record_bfd_errors): New function: Report BFD errors and mark
3249         the executable output as being invalid.
3251 2001-02-22  Timothy Wall  <twall@cygnus.com>
3253         * configure.host: Add configuration for ia64-*-aix*.
3254         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3255         Add dependencies for eelf64_aix.c.
3256         * Makefile.in: Regenerate.
3257         * configure.tgt: Add ia64-*-aix* mapping.
3258         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3259         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
3260         AIX-specific test.
3262 2001-02-20  H.J. Lu  <hjl@gnu.org>
3264         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3265         false if we found the file.
3267 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
3269         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3270         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3272 2001-02-18  lars brinkhoff  <lars@nocrew.org>
3274         * Makefile.am: Add PDP-11 target.
3275         * configure.tgt: Likewise.
3276         * emulparams/pdp11.sh: New file.
3278 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
3280         * configure.host: Add a generic FreeBSD configuration entry such that
3281         all [modern] FreeBSD systems on all platforms will look the same.
3283 2001-02-14  H.J. Lu  <hjl@gnu.org>
3285         * configure.tgt: Remove mention of earmelf_linux26.
3287 2001-02-13  Richard Henderson  <rth@redhat.com>
3289         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3291 2001-02-13  H.J. Lu  <hjl@gnu.org>
3293         * ldexp.h (node_type): Add etree_provided.
3294         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3295         type to etree_provided if defined by PROVIDE. Allow updating
3296         for etree_provided.
3297         (exp_print_tree): Handle etree_provided.
3298         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3299         etree_provided.
3301 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
3303         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3304         .IA_64.unwind.* pattern to unwind table section and
3305         .IA_64.unwind_info* pattern to unwind info section.
3307 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3309         * Makefile.am: Add linux target for S/390.
3310         * Makefile.in: Likewise.
3311         * configure.host: Likewise.
3312         * configure.tgt: Likewise.
3313         * emulparams/elf64_s390.sh: New file.
3314         * emulparams/elf_s390.sh: New file.
3316 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
3318         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3319         targ_extra_libpath.
3320         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3322 2001-02-06  Philip Blundell  <philb@gnu.org>
3324         * Makefile.am: Remove mention of earmelf_linux26.
3325         * Makefile.in: Regenerate.
3327 2001-02-04  Philip Blundell  <philb@gnu.org>
3329         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3330         * emulparams/armelf_linux26.sh: Delete.
3331         * configure.tgt: Remove mention of armelf_linux26 emulation.
3333 2001-02-01  Nick Clifton  <nickc@redhat.com>
3335         * ld.1: Replace occurances of -oformat with --oformat.
3337 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
3339         * ldlang.c (lang_leave_overlay): Don't set lma_region when
3340         load_base is specified.
3342 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
3344         * emultempl/elf32.em: Correct spelling in comments and listed
3345         options.
3347 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
3349         * ldlang.c (lang_leave_overlay): Only set lma_region from the
3350         default for the first section of a group of overlay sections.
3352 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
3354         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3355         * Makefile.in: Regenerate.
3356         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3357         Check for null tool_dir.
3359 2001-01-16  Jim Wilson  <wilson@redhat.com>
3361         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3362         and IA_64.unwind.info.
3364 2001-01-16  H.J. Lu  <hjl@gnu.org>
3366         * ldlang.c (lang_check): Merge the private data only if the
3367         input file has contents.
3369 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
3371         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3373         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3374         enabling search for libmilli.  On a relocatable link, make .text
3375         sections unique.
3376         (LDEMUL_AFTER_PARSE): Define.
3377         (hppaelf_finish): Correct spelling of relocatable in comments.
3379         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3380         rummage through the script for sections on the unique list.
3381         Correct length of strncmp for ".note".
3382         (gld${EMULATION_NAME}_check_needed): Rearrange function.
3384         * ldlang.c (unique_section_list): New var.
3385         (unique_section_p): New function.
3386         (walk_wild_section): Don't match sections on unique_section_list.
3387         (lang_add_unique): New function.
3388         Correct spelling of relocatable in comments.
3390         * ldlang.h (struct unique_sections): Declare.
3391         (unique_section_list): Declare.
3392         (unique_section_p): Declare.
3393         (lang_add_unique): Declare.
3395         * lexsup.c (ld_options): Allow --unique to take an optional arg.
3396         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3398         * ld.texinfo (--unique): Update.
3400 2001-01-13  Nick Clifton  <nickc@redhat.com>
3402         * lexsup.c (parse_args): Remove spurious white space.
3404 2001-01-12  Nick Clifton  <nickc@redhat.com>
3406         * lexsup.c (parse_args): Update copyright date.
3408 2001-01-12  Philip Blundell  <pb@futuretv.com>
3410         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3412 2001-01-10  Kazu Hirata  <kazu@hxi.com>
3414         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
3415         * scripttempl/h8300h.sc: Fix formatting.
3416         * scripttempl/h8300s.sc: Likewise.
3417         * scripttempl/h8500.sc: Likewise.
3418         * scripttempl/h8500b.sc: Likewise.
3419         * scripttempl/h8500c.sc: Likewise.
3420         * scripttempl/h8500m.sc: Likewise.
3421         * scripttempl/h8500s.sc: Likewise.
3423 2000-01-07  David O'Brien  <obrien@BSDi.com>
3425         * emultempl/elf32.em: Only perform Linux ld hints processing when
3426         targeting Linux.
3428 2001-01-07  Philip Blundell  <philb@gnu.org>
3430         * ld.texinfo (Bug Reporting): Update email address for reports.
3432 2000-12-31  Nick Clifton  <nickc@redhat.com>
3434         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3435         options by checking for a return value of '?' not -1.
3437 2000-12-28  Nick Clifton  <nickc@redhat.com>
3439         * lexsup.c (struct ld_option): Add new enum value:
3440         EXACTLY_TWO_DASHES.
3441         (ld_options[]): Change -omagic, -output and -oformat options
3442         to be EXACTLY_TWO_DASHES.
3443         (OUTPUT_COUNT): Use ARRAY_SIZE.
3444         (parse_args): Change parameter 'argc' to unsigned.
3445         Place EXACTLY_TWO_DASHES options into new really_longopts
3446         array.
3447         If getopt_long_only fails, try calling getopt_long using the
3448         really_longopts array.
3449         (help): Print a double dash for both EXACTLY_TWO_DASHES and
3450         TWO_DASHES options.
3452         * ldlex.h: Fix prototype of parse_args.
3454         * ld.texinfo: Document that long options starting with 'o'
3455         must be preceeded by two dashes.  Change example of a single
3456         dashed long option from -oformat to -trace-symbol.
3458 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3460         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3461         (longopts[]): New --no-default-excludes option.
3462         (gld_${EMULATION_NAME}_list_options): Document.
3463         (gld_${EMULATION_NAME}_parse_args): Handle.
3465 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3467         * ldlang.c (new_stat): Revert the last beautification with "innocent"
3468         whitespace, it breaks the K&R C preprocessor.
3470 2000-12-11  DJ Delorie  <dj@redhat.com>
3472         * ld.texinfo: Add notes about --whole-archive and gcc.
3474 2000-11-18  Fred Fish  <fnf@be.com>
3476         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3477         (ld_options): Entry for --allow-shlib-undefined.
3478         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3479         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3480         to false.
3481         * ld.texinfo: Document new command line switch.
3483 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
3485         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3486         .fixup is actually read/write.
3487         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3488         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3489         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3491 2000-12-11  Jan Hubicka  <jh@suse.cz>
3493         * NEWS: Add note about x86_64 architecture.
3495 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
3497         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3498         Set DWARF2 sections to a VMA of zero.
3500 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
3502         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3503         New targets.
3504         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3505         (sparc*-*-rtems*): Switched from a.out to ELF.
3507 2000-11-30  Jan Hubicka  <jh@suse.cz>
3509         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3510         (eelf_x86_64.c): New.
3511         * Makefile.in: Regenerate.
3512         * configure.tgt: Add support for x86_64-*-linux-gnu*.
3513         * emulparams/elf_x86_64.sh: New.
3515 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
3517         * emulparams/crislinux.sh (ENTRY): Change back to _start.
3518         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3520         * scripttempl/crisaout.sc: Change all RELOCATING not related to
3521         merging non-a.out sections into CONSTRUCTING.
3523 2000-11-28  Nick Clifton  <nickc@redhat.com>
3525         * ld.1 (COPYING): Mention that the GNU Free Documentation
3526         License is present in the sources, but not the output, and
3527         also available from the GNU website.
3528         (GNU Free Documentation License): Comment out this section.
3530 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
3532         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3533         does not use them.
3535 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
3537         * ld.1: Remove old date so it does not give the impression the manpage
3538         is way out of date.
3540 2000-11-24  Nick Clifton  <nickc@redhat.com>
3542         * configure.tgt (xscale-coff): Add target.
3543         (xscale-elf): Add target.
3545 2000-11-24  Fred Fish  <fnf@be.com>
3547         * ldmain.c (main): Remove redundant init of config.make_executable
3548         to true.
3550 2000-11-15  Richard Henderson  <rth@redhat.com>
3552         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3554 2000-11-14  Kazu Hirata  <kazu@hxi.com>
3556         * scripttempl/h8300.sc: Fix formatting.
3557         * scripttempl/h8300h.sc: Likewise.
3558         * scripttempl/h8300s.sc: Likewise.
3560 2000-11-14  Denis Chertykov  <denisc@overta.ru>
3562         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3564 2000-11-09  Philip Blundell  <pb@futuretv.com>
3566         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3567         around orphan sections whose names can be represented in C.
3569 2000-11-07  Jim Wilson  <wilson@redhat.com>
3571         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3572         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
3574 2000-11-06  Nick Clifton  <nickc@redhat.com>
3576         * ld.texinfo: Add GNU Free Documentation License.
3577         * ldint.texinfo: Add GNU Free Documentation License.
3578         * ld.1: Add GNU Free Documentation License.
3580 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
3582         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3583         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3585         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3586         Move 2000-11-02 Makefile.in changes to this file.
3587         * Makefile.in: Regenerate.
3589 2000-11-03  Nick Clifton  <nickc@redhat.com>
3591         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3592         constructors and destructors.
3593         * scripttempl/h8300h.sc: Ditto.
3594         * scripttempl/h8300s.sc: Ditto.
3595         * scripttempl/h8500.sc: Ditto.
3596         * scripttempl/h8500b.sc: Ditto.
3597         * scripttempl/h8500c.sc: Ditto.
3598         * scripttempl/h8500m.sc: Ditto.
3599         * scripttempl/h8500s.sc: Ditto.
3600         * scripttempl/v850.sc: Ditto.
3601         * scripttempl/w65.sc: Ditto.
3602         * scripttempl/z8000.sc: Ditto.
3604 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
3606         * Makefile.in (e_i386_chaos.c): New rule.
3607         (ALL_EMULATIONS): Added e_i386_chaos.o.
3608         * emulparams/elf_i386_chaos.sh: New file.
3609         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3611 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
3613         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3614         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3615         Fix sed invocation, so that it coped with '/' in Solaris 64bit
3616         library path suffix.
3617         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3619 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
3621         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3622         for consecutive sections.
3624 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
3626         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3627         options.
3628         * ld.texinfo: Added notes about this new option.
3630 2000-10-16  Nick Clifton  <nickc@redhat.com>
3632         * emultempl/pe.em (_after_open): Add tests of return values from
3633         bfd functions.  Emit appropriate error messages if necessary.
3635 2000-10-13  Nick Clifton  <nickc@redhat.com>
3637         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3638         local variables - they are not used, but leave in the call to
3639         bfd_canonicalize_symtab.
3640         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3641         pe_dll_search_prefix.
3643 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
3645         * emultempl/pe.em (pe_dll_search_prefix): New variable,
3646         (longopts): New --dll-search-prefix option.
3647         (gld_${EMULATION_NAME}_list_options): Document.
3648         (gld_${EMULATION_NAME}_parse_args): Handle.
3649         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3650         dynamically, search for a dll named '<prefix><basename>.dll'
3651         in preference to 'lib<basename>.dll' if --dll-search-prefix
3652         is specified.
3654 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3656         * ldlang.c (section_already_linked): Set kept_section instead of
3657         sec->comdat->sec.
3659 2000-10-10  Kazu Hirata  <kazu@hxi.com>
3661         * deffile.h: Fix formatting.
3662         * lexsup.c: Likewise.
3663         * mri.c: Likewise.
3665 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3667         * pe-dll.c (make_one): Do not generate code thunk for DATA
3668         exports.
3669         (process_def_file): deduce DATA flag for auto-export sumbols.
3671 2000-10-09  Kazu Hirata  <kazu@hxi.com>
3673         * ld.h: Fix formatting.
3674         * ldcref.c: Likewise.
3675         * ldctor.h: Likewise.
3676         * ldemul.c: Likewise.
3677         * ldemul.h: Likewise.
3678         * ldexp.c: Likewise.
3679         * ldexp.h: Likewise.
3680         * ldfile.c: Likewise.
3681         * ldfile.h: Likewise.
3682         * ldlang.c: Likewise.
3683         * ldlang.h: Likewise.
3684         * ldmain.c: Likewise.
3685         * pe-dll.c: Likewise.
3687         * pe-dll.c: Revert some formatting fixes.
3689 2000-10-08  Kazu Hirata  <kazu@hxi.com>
3691         * pe-dll.c: Fix formatting.
3693 2000-10-05  Kazu Hirata  <kazu@hxi.com>
3695         * ldlang.c: Fix formatting.
3697 2000-10-03  DJ Delorie  <dj@redhat.com>
3699         * pe-dll.c (fill_edata): initialize entire block
3700         (make_one): fill in correct section.
3702 2000-10-03  Kazu Hirata  <kazu@hxi.com>
3704         * ldexp.c: Fix formatting.
3706 2000-10-02  DJ Delorie  <dj@redhat.com>
3708         * emultempl/pe.em (gld_*_after_open): detect case where there two
3709         import libraries for same dll; rename one to ensure proper link
3710         order.
3712         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3713         typo
3714         (generate_edata): fix typo
3716 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
3718         * scripttempl/crisaout.sc (ENTRY): Now __start.
3719         (.text): Add default setting for __start.
3720         Remove CONSTRUCTORS handling.
3721         (/DISCARD/): Add .gnu.warning.*.
3722         * emulparams/crislinux.sh (ENTRY): Now __start.
3723         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3724         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3725         (ENTRY): Now __start.
3726         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3727         (EXECUTABLE_SYMBOLS): Add default setting for __start.
3729 2000-09-29  Kazu Hirata  <kazu@hxi.com>
3731         * deffile.h: Fix formatting.
3732         * ld.h: Likewise.
3733         * ldcref.c: Likewise.
3734         * ldctor.c: Likewise.
3735         * ldctor.h: Likewise.
3736         * ldemul.c: Likewise.
3737         * ldemul.h: Likewise.
3738         * ldexp.c: Likewise.
3739         * ldexp.h: Likewise.
3740         * ldfile.c: Likewise.
3741         * ldfile.h: Likewise.
3742         * ldlang.c: Likewise.
3743         * ldlang.h: Likewise.
3744         * lexsup.c: Likewise.
3745         * mri.c: Likewise.
3746         * pe-dll.c: Likewise.
3748 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3750         * pe-dll.c (process_def_file): Uninitialized data wasn't
3751         exported with --export-all-symbols switch.
3753 2000-09-28  DJ Delorie  <dj@redhat.com>
3755         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3756         noname work properly.
3758 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
3760         * ld.texinfo (HPPA ELF32): New section.
3762         * emultempl/hppaelf.em (group_size): New.
3763         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3764         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3765         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
3766         options to prevent abbreviations matching.
3767         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
3768         (PARSE_AND_LIST_ARGS_CASES): Handle it.
3770 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3772         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3773         on the m68*-*-elf target.  Make it support COFF input objects.
3775 2000-09-21  Kazu Hirata  <kazu@hxi.com>
3777         * ldmain.c: Fix formatting.
3778         * ldmisc.c: Likewise.
3779         * ldver.c: Likewise.
3780         * ldwrite.c: Likewise.
3782 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3784         * ldwrite.c (clone_section): Silence gcc warnings.
3786 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3788         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3789         out of memory failure.
3791         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3792         (clone_section): Handle out of memory failures.  Rename var to
3793         avoid c++ reserved word.
3795 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3797         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3798         stub_name param to stub_sec_name.
3799         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3801 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3803         * emultempl/m68kelf.em: New file.
3804         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3805         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3806         * Makefile.in: Regenerate.
3808 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3810         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3811         only as needed.
3813 2000-09-13  Nick Clifton  <nickc@redhat.com>
3815         * ldmain.c (multiple_definition): Disable relaxation if
3816         multiple symbol definitions are encountered - otherwise the
3817         linker could abort with an assertion failure.
3819 2000-09-10  Nick Clifton  <nickc@redhat.com>
3821         * mri.c: Fix formatting.
3823 2000-09-07  H.J. Lu  <hjl@gnu.org>
3825         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3826         * configure: Rebuild.
3828 2000-09-07  H.J. Lu  <hjl@gnu.org>
3830         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3831         * Makefile.in: Rebuild.
3833 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
3835         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3836         broken list handling.  Create __start_SECNAME and __stop_SECNAME
3837         when no place-holder.  Add some comments.  Test both SEC_CODE and
3838         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3839         Handle case where no output section statement created.
3841 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
3843         * configure.tgt (sh-*-linux*): Added.
3844         * Makefile.am: Added eshelf_linux and eshlelf_linux.
3845         * Makefile.in: Rebuilt.
3846         * emulparams/shelf_linux.sh: New file.
3847         * emulparams/shlelf_linux.sh: New file.
3849 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
3851         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3852         try shuffling sections when the orphan happens to be the place
3853         holder.  Keep count of unique section names generated so we speed
3854         the search for a new name.
3856 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
3858         * configure: Rebuilt with new libtool.m4.
3860 2000-09-05  Nick Clifton  <nickc@redhat.com>
3862         * Makefile.in: Regenerate.
3863         * aclocal.m4: Regenerate.
3864         * configure: Regenerate.
3865         * config.in: Regenerate.
3866         * po/ld.pot: Regenerate.
3868         * ldint.texinfo: Remove CVS revision marker - it foils local
3869         comparisons.
3871         * emultempl/ticoff.em: Remove extraneous comma.
3873 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
3875         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3876         to stub section flags.
3877         (hppa_for_each_input_file_wrapper): New.
3878         (hppa_lang_for_each_input_file): New.
3879         (lang_for_each_input_file): Define to call above.
3880         (multi_subspace): New.
3881         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3882         (PARSE_AND_LIST_PROLOGUE): Define.
3883         (PARSE_AND_LIST_LONGOPTS): Define.
3884         (PARSE_AND_LIST_OPTIONS): Define.
3885         (PARSE_AND_LIST_ARGS_CASES): Define.
3886         (hppaelf_finish): Call elf32_hppa_set_gp.
3887         (hppaelf_set_output_arch): Remove.
3888         (LDEMUL_SET_OUTPUT_ARCH): Remove.
3890         * emulparams/hppalinux.sh (ELFSIZE): Define.
3891         (MACHINE): Define.
3892         (OTHER_READONLY_SECTIONS): Define.
3893         (DATA_PLT): Define.
3894         (GENERATE_SHLIB_SCRIPT): Define.
3896         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
3897         to const throughout.  Change `void *' to `PTR' throughout.
3898         (lang_memory_default): Function is local to file, add `static'.
3900         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3901         (ehppalinux.c): Likewise.
3902         (earmelf.c): Likewise.
3903         (earmelf_linux.c): Likewise.
3904         (earmelf_linux26.c): Likewise.
3905         * Makefile.in: Regenerate.
3907         * ld.h (ld_config_type): Add unique_orphan_sections.
3908         * lexsup.c (OPTION_UNIQUE): Define.
3909         (ld_options): Add "--unique".
3910         (parse_args): Handle it.
3911         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3912         search for an existing output section if unique_orphan_sections is
3913         set.  Make use of bfd_get_unique_section_name rather than
3914         duplicating code here.
3915         * ld.texinfo: Describe --unique.
3917         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3918         optional arg to split-by-file.
3919         (parse_args): Handle them.
3920         * ld.texinfo: Update description of these options.
3921         * ldwrite.c (clone_section): Pass in the section name.  Replace
3922         local code with bfd_get_unique_section_name.
3923         (split_sections): Tidy code and comments.  Use a list traversal
3924         more appropriate to the list construction.  Handle cooked section
3925         sizes.  Split when split_by_reloc reached rather than exceeded.
3926         Track section size and split when split_by_file reached.  Fix
3927         link_order_tail (even though it's not used).
3928         (ldwrite): Modify condition for calling split_sections to suit
3929         changed split_by_reloc and split_by_file.
3930         * ldmain.c (main): Init config.split_by_reloc and
3931         config.split_by_file to -1.
3932         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3933         Change split_by_file to bfd_size_type.
3935 2000-09-02  Nick Clifton  <nickc@redhat.com>
3937         * configure.in: Increase version number to 2.10.91.
3938         * NEWS: Mention new ability to support removal of duplicate DWARF2
3939         debug information.
3940         * configure: Regenerate.
3941         * aclocal.m4: Regenerate.
3942         * config.in: Regenerate.
3944 2000-09-02  Daniel Berlin <dberlin@redhat.com>
3946         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3947         sections.
3948         * scripttempl/elf32avr.sc: Ditto.
3949         * scripttempl/elfd10v.sc: Ditto.
3950         * scripttempl/elfd30v.sc: Ditto.
3951         * scripttempl/elfi370.sc: Ditto.
3952         * scripttempl/elfm68hc11.sc: Ditto.
3953         * scripttempl/elfm68hc12.sc: Ditto.
3954         * scripttempl/elfi386beos.sc: Ditto.
3955         * scripttempl/v850.sc: Ditto.
3957 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
3959         * acinclude.m4: Include libtool and gettext macros from the
3960         top level.
3961         * aclocal.m4, configure: Rebuilt.
3963 2000-08-25  Nick Clifton  <nickc@redhat.com>
3965         * ldlang.c (open_output): When choosing the target for a
3966         particular endianness, do nothing if the target is not
3967         supported.
3969 2000-08-25  H.J. Lu  <hjl@gnu.org>
3971         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3972         check -rpath nor LD_RUN_PATH for cross link.
3973         * ld.texinfo: Document the change.
3975 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
3977         * NEWS: Mention support for CRIS.
3979 2000-08-23  H.J. Lu  <hjl@gnu.org>
3981         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3982         the current runpath list from bfd_elf_get_runpath_list ()
3983         before search.
3985 2000-08-22  H.J. Lu  <hjl@gnu.org>
3987         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3988         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3989         LD_LIBRARY_PATH for native linker. Display the needed DSO if
3990         trace_file_tries is non-zero.
3991         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3992         if trace_file_tries is non-zero.
3994         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3995         * NEWS: Mention it.
3997 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
3999         * NEWS: Mention i860 support.
4001 2000-08-14  Andreas Schwab  <schwab@suse.de>
4003         * scripttempl/elf.sc: Fix last change to use correct comment
4004         syntax.
4006 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
4008         * scripttempl/elf.sc: Add a comment giving the correspondence
4009         between sections, per-datum sections, and linkonce sections.  Make
4010         the comment true even for .bss, .sdata, .sdata2, .sbss, and
4011         .sbss2.
4013 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
4015         * emulparams/elf32_i860.sh: New file.
4016         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4017         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4018         (eelf32_i860.c): New rule.
4019         * Makefile.in: Regenerate.
4021 2000-08-10  Nick Clifton  <nickc@cygnus.com>
4023         * emulparams/mipspe.sh (ENTRY): Add definition.
4025 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
4027         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4028         in error message.
4030 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4032         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4033         the final size of .bss section.
4034         * scripttempl/elfm68hc12.sc: Likewise.
4036 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
4038         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4039         gld${EMULATION_NAME}_parse_args for consistency.  Combine
4040         lastoptind and prevoptind vars, and keep track of last optind.
4041         (gld_${EMULATION_NAME}_list_options): Rename to
4042         gld${EMULATION_NAME}_list_options.
4044 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
4046         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4047         (i586-sco-sysv5uw7.1.0).
4049 2000-07-27  H.J. Lu  <hjl@gnu.org>
4051         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4052         (PARSE_AND_LIST_PROLOGUE): New.
4053         (PARSE_AND_LIST_LONGOPTS): Likewise.
4054         (PARSE_AND_LIST_OPTIONS): Likewise.
4055         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4056         (PARSE_AND_LIST_EPILOGUE): Likewise.
4058 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
4060         * emultempl/armelf.em: Elide functions common to elf32.em,
4061         ie. most of the file.
4062         (arm_elf_after_open): New.  Do arm specific things then call
4063         gld${EMULATION_NAME}_after_open.
4064         (arm_elf_before_allocation): New.  Call
4065         gld${EMULATION_NAME}_before_allocation then do arm specifics.
4066         (PARSE_AND_LIST_PROLOGUE): Define.
4067         (PARSE_AND_LIST_SHORTOPTS): Define.
4068         (PARSE_AND_LIST_LONGOPTS): Define.
4069         (PARSE_AND_LIST_OPTIONS): Define.
4070         (PARSE_AND_LIST_ARGS_CASES): Define.
4071         (LDEMUL_AFTER_OPEN): Define.
4072         (LDEMUL_BEFORE_ALLOCATION): Define.
4073         (LDEMUL_BEFORE_PARSE): Define.
4074         (LDEMUL_FINISH): Define.
4076         * emultempl/hppaelf.em: Similarly zap most of this file.
4077         (hppaelf_add_stub_section): Prototype.
4078         (hppaelf_layaout_sections_again): Prototype.
4079         (hook_in_stub): Prototype.
4080         (LDEMUL_SET_OUTPUT_ARCH): Define.
4081         (LDEMUL_FINISH): Define.
4082         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4084         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4085         (EXTRA_EM_FILE): New.
4086         * emulparams/armelf_linux.sh: Likewise.
4087         * emulparams/armelf_linux26.sh: Likewise.
4088         * emulparams/hppalinux.sh: Likewise.
4089         * emulparams/hppaelf.sh: Likewise.
4090         (NOP): Define.
4092         * emultempl/elf32.em: Fix formatting.
4093         (EXTRA_EM_FILE): Source it.
4094         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4095         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4096         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4097         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4098         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4099         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4100         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4101         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4102         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
4103         allow functions in this file to be overridden.
4104         (PARSE_AND_LIST_SHORTOPTS): Handle it.
4106         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4108         * emultempl/elf32.em: Reorganize file.
4110 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
4112         * emulparams/elf64alpha.sh: Implement "-taso" emulation
4113         specific option to fit 64-bit executable in the lower
4114         31-bit address range.  This is done by changing start
4115         address of .interp (the very first section of executable)
4116         and then setting EF_ALPHA_32BIT elf header flag.
4118 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4120         * emultempl/m68kcoff.em: New file.
4121         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4122         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4123         generic.em.
4124         * Makefile.in: Regenerate.
4126 2000-07-20  H.J. Lu  <hjl@gnu.org>
4128         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4129         and "disable-new-dtags" to stop getopt from treating -d/-e as
4130         abbreviations for these options.
4132 2000-07-20  H.J. Lu  <hjl@gnu.org>
4134         * ld.texinfo: Add documentation for --disable-new-dtags and
4135         --enable-new-dtags.
4137         * ldmain.c (main): Initialize link_info.new_dtags to false.
4139         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4140         --disable-new-dtags and --enable-new-dtags.
4141         (gld_${EMULATION_NAME}_list_options): Likewise.
4143 2000-07-05  Kenneth Block  <krblock@computer.org>
4145         * lexsup.c: Add optional style to demangle switch
4146         * ld.texinfo: Document optional style to demangle switch.
4148 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
4150         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4151         ecrislinux.o.
4152         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4153         Regenerate dependencies.
4154         * Makefile.in: Rebuild.
4155         * configure.tgt (cris-*-*): New target.
4156         * emulparams/crisaout.sh, emulparams/criself.sh,
4157         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4158         * po/POTFILES.in, po/ld.pot: Regenerate.
4160 2000-07-20  H.J. Lu  <hjl@gnu.org>
4162         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4163         Print out ignored -z options.
4165 2000-07-19  H.J. Lu  <hjl@gnu.org>
4167         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4168         (PARSE_AND_LIST_PROLOGUE): New.
4169         (PARSE_AND_LIST_LONGOPTS): Likewise.
4170         (PARSE_AND_LIST_OPTIONS): Likewise.
4171         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4173         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4175         * lexsup.c (ld_options): Comment out 'z'.
4176         (parse_args): Likewise.
4178         * emultempl/elf32.em: Include "elf/common.h".
4179         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4180         options.
4181         (gld_${EMULATION_NAME}_list_options): Likewise.
4183         * ld.texinfo: Add documentation for the recognized -z options.
4185 2000-07-19  H.J. Lu  <hjl@gnu.org>
4187         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4188         bfd_elf_set_dt_needed_soname ().
4190 2000-07-18  DJ Delorie  <dj@cygnus.com>
4192         * pe-dll.c (pe_dll_id_target): check object target name also
4194 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
4196         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4197         ${INIT_END} if relocating.
4198         (.fini): Likewise ${FINI_START} and ${FINI_END}.
4200 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
4202         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4203         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4204         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4205         errors introduced by the old dynamic lib search order.
4207 2000-07-17  DJ Delorie  <dj@cygnus.com>
4209         * pe-dll.c (process_def_file): auto-export data items also
4210         (pe_process_import_defs): also see if _imp_ form needed
4212 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
4214         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4215         for dll import libraries
4217 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
4219         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4220         gcc 2.95.2 and later.
4222 2000-07-11  Kazu Hirata  <kazu@hxi.com>
4224         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4225         message.
4227 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4229         * ldemul.h (struct lang_input_statement_struct): Remove forward
4230         declaration.
4231         (struct search_dirs): Likewise.
4232         * ldfile.h (struct lang_input_statement_struct): Likewise.
4233         Protect file from multiple inclusion.
4234         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4235         declaration from macro to file scope.
4237         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4238         * ldgram.y: Likewise here.
4239         * ldlang.c: And here.
4240         * ldmain.c: And here.
4241         * mpw-elfmips.c: And here.
4242         * mpw-eppcmac.c: And here.
4243         * emultempl/aix.em: And here.
4244         * emultempl/armcoff.em: And here.
4245         * emultempl/armelf.em: And here.
4246         * emultempl/armelf_oabi.em: And here.
4247         * emultempl/beos.em: And here.
4248         * emultempl/elf32.em: And here.
4249         * emultempl/hppaelf.em: And here.
4250         * emultempl/linux.em: And here.
4251         * emultempl/lnk960.em: And here.
4252         * emultempl/pe.em: And here.
4253         * emultempl/sunos.em: And here.
4254         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4255         * mpw-idtmips.c: Ditto.
4256         * emultempl/generic.em: Ditto.
4257         * emultempl/gld960.em: Ditto.
4258         * emultempl/gld960c.em: Ditto.
4259         * emultempl/mipsecoff.em: Ditto.
4260         * emultempl/ticoff.em: Ditto.
4261         * emultempl/vanilla.em: Ditto.
4263         * pe-dll.c: Include ldfile.h
4264         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4266         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4267         arguments to bfd_elf32_size_dynamic_sections call.
4268         (gldelf32ebmip_place_orphan): Add missing arguments to
4269         lang_leave_output_section_statement call.
4271 2000-07-10  H.J. Lu  <hjl@gnu.org>
4273         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4274         DLL_SUPPORT.
4275         (strhash): Likewise.
4276         (compute_dll_image_base): Likewise.
4277         (pe_undef_found_sym): Likewise.
4278         (pe_undef_cdecl_match): Likewise.
4279         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4280         argument "arch" with ATTRIBUTE_UNUSED.
4282 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4284         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4286         From  Ryan Bradetich  <rbradetich@uswest.net>
4287         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4289 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
4291         Changes to create multiple linker stubs, positioned immediately
4292         before the section where they are required.
4293         * emultempl/hppaelf.em: Include elf32-hppa.h.
4294         (stub_sec, file_chain): Delete.
4295         (hppaelf_create_output_section_statements): Don't make a stub
4296         section here.
4297         (hook_stub_info): New struct.
4298         (hook_in_stub): New function.
4299         (hppaelf_add_stub_section): New function.
4300         (hppaelf_finish): Do nothing for relocateable links.  Modify the
4301         call to elf32_hppa_size_stubs.  Move code for updating section
4302         layout from here...
4303         (hppaelf_layaout_sections_again): ..to here, a new function.
4305         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4306         broken list handling.  Pass in a pointer to the list.
4307         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4308         for above changes.
4309         (hppaelf_before_parse): Prototype.
4310         (hppaelf_set_output_arch): Prototype.
4311         (hppaelf_create_output_section_statements): Prototype.
4312         (hppaelf_delete_padding_statements): Prototype.
4313         (hppaelf_finish): Prototype.
4315         Merge from elf32.em
4316         * emultempl/hppaelf.em: Include ctype.h.
4317         (struct orphan_save): New.
4318         (gld${EMULATION_NAME}_place_orphan): New.
4319         (output_rel_find): New.
4320         (hppaelf_get_script): Update from elf32.em.
4321         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4322         Change emulation_name field to "${EMULATION_NAME}".  Add
4323         gld${EMULATION_NAME}_place_orphan.
4325         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
4326         ehppalinux.o, sort it.  Regenerate dependencies.
4327         (ehppalinux.c): Depend on hppaelf.em
4328         * Makefile.in: Regenerate.
4330         * configure.tgt: targ_emul=hppalinux for hppa*linux
4332         * emulparams/hppalinux.sh: New.
4333         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4335 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
4337         * lexsup.c (parse_args): Copy section name.
4339 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
4341         * emultempl/pe.em: institute the following search order for
4342         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4343         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
4344         static lib (libfoo.a) if none of the above are found.
4346 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
4348         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4349         (longopts): New --{enable,disable}-auto-image-base options.
4350         (gld_${EMULATION_NAME}_list_options): Document.
4351         (gld_${EMULATION_NAME}_parse): Handle.
4352         (strhash): New static function.
4353         (compute_dll_image_base): New static function.
4354         (gld_${EMULATION_NAME}_set_symbols): Use.
4356 2000-07-05  DJ Delorie  <dj@redhat.com>
4358         * MAINTAINERS: new
4360 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
4362         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4363         * emulparams/elf32btsmip.sh: New file.
4364         * Makefile.am: Add traditional mips target.
4365         * Makefile.in: Rebuild.
4367 2000-07-01  H.J. Lu  <hjl@gnu.org>
4369         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4370         automake to use YLWRAP.
4371         * Makefile.in: Rebuild.
4373 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
4375         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
4376         (CLEANFILES): Add DEPA.
4377         * Makefile.in: Regenerate.
4379 2000-06-30  Timothy Wall  <twall@ppc>
4381         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4382         the page in the upper octet of the address.
4384 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
4386         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4388 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
4390         * NEWS: arm-elf does --gc-sections too.
4392 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
4394         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4395         find one.
4396         * Makefile.in: Regenerate.
4398 2000-06-21  H.J. Lu  <hjl@gnu.org>
4400         * Makefile.am: Rebuild dependency.
4401         * Makefile.in: Rebuild.
4403 2000-06-20  H.J. Lu  <hjl@gnu.org>
4405         * Makefile.am: Rebuild dependency.
4406         * Makefile.in: Rebuild.
4408 2000-06-20  Timothy Wall  <twall@cygnus.com>
4410         * scripttempl/tic54xcoff.sc: New.
4411         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4412         * gen-doc.texi: Add flag for TI COFF.
4413         * ld.texinfo: Add documentation for TI COFF handling switches.
4414         * emultempl/ticoff.em: New. TI COFF handling.
4415         * configure.tgt: Add tic54x target.
4416         * Makefile.am: Add tic54x target.
4417         * Makefile.in: Ditto.
4419 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
4421         * ldmain.c (set_scripts_dir): Correct pointer comparison when
4422         checking for backslashes.
4424 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
4426         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4428 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
4430         * NEWS: Update list of targets supporting --gc-sections.
4432         * scripttempl/elf.sc: KEEP .eh_frame contents.
4433         * scripttempl/elfd30v.sc: Same here.
4435 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4437         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4438         and m68hc11 (elf).
4439         * Makefile.in: Rebuild.
4440         * configure.tgt: Recognize m68hc12 and m68hc11.
4441         * scripttempl/elfm68hc12.sc: New file.
4442         * emulparams/m68hc12elfb: New emulation.
4443         * emulparams/m68hc12elf: New emulation.
4444         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
4445         (includes a memory.x script to define the ROM and RAM banks).
4446         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4447         New configuration files for support of Motorola 68hc11
4449 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
4451         * ldmain.c (main): Only change SEC_READONLY for final link.
4453 2000-06-13  H.J. Lu  <hjl@gnu.org>
4455         * configure: Regenerate.
4457 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4459         * configure.in (VERSION): Update to show this is the CVS mainline.
4461 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4463         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4464         input objects to be ECOFF.
4465         (check_sections): einfo takes %B, not %P, to print a BFD name.
4467 2000-06-05  Michael Matz <matz@ifh.de>
4469         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4470         version scripts.
4472         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4474 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
4476         * emulparams/avr1200.sh (STACK): Define as 0.
4477         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4478         * emulparams/avr4433.sh (STACK): Likewise.
4479         * emulparams/avr44x4.sh (STACK): Likewise.
4480         * emulparams/avr85xx.sh (STACK): Likewise.
4481         * emulparams/avrmega103.sh (STACK): Likewise.
4482         * emulparams/avrmega161.sh (STACK): Likewise.
4483         * emulparams/avrmega603.sh (STACK): Likewise.
4484         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4485         (__stack): Define from ${STACK} for main().
4487 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4489         * Makefile.am: Update dependencies with "make dep-am"
4490         * Makefile.in: Regenerate.
4492 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
4494         * ldmain.c: Include filenames.h.
4495         (set_scripts_dir): Support backslashes in program name.
4497 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
4499         * ldmain.c (main): When deciding if ".text" section should be
4500         read-only, don't forget to reset SEC_READONLY because it
4501         could be already set.
4503 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
4505         * ld.1: Add documentation for new command line option:
4506                 --section-start <sectionname>=<sectionorg>
4507         This is a generic version of -Ttext etc. which accepts
4508         any section name as a parameter instead of just text/data/
4509         bss.
4510         * ld.texinfo: More docs.
4511         * NEWS: More docs.
4512         * lexsup.c: (parse_args): Recognize new command line option.
4513         (ld_options): Add new option.
4515 2000-05-18  H.J. Lu  <hjl@gnu.org>
4517         * lexsup.c (parse_args): `i' == `r', not `q'.
4519 2000-05-18  Jeffrey A Law  (law@cygnus.com)
4521         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4523 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
4524               Rick Gorton          <gorton@scrugs.lkg.dec.com>
4526         Add support for '-q' == '--emit-relocs' switch.
4527         * ldmain.c (main): Default to false.
4528         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4529         * NEWS: Describe the emitrelocations switch.
4530         * ld.texinfo: Describe the emitrelocations switch.
4532 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
4534         * emultempl/pe.em (_open_dynamic_archive): New function: Search
4535         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4536         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4537         link options.
4539 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
4541         * lexsup.c (parse_args): Update the year in the copyright notice.
4543 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
4545         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4546         Replace defines with those from intl/libgettext.h to quieten gcc
4547         warnings.
4549 2000-05-10  H.J. Lu  <hjl@gnu.org>
4551         * ldlang.c (open_input_bfds): Don't load the same file within
4552         a group again if the whole archive has been loaded already.
4554 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
4556         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4557         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4558         strtoul.
4560 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4562         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4564         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4565         host "ia64-*-linux-gnu*".
4567 2000-04-29  Andreas Jaeger  <aj@suse.de>
4569         * ld.h: Correctly check GCC version.
4571 2000-04-25  Jeffrey A Law  (law@cygnus.com)
4573         * Makefile.am: Add PA64 support.  Add missing dependencies for
4574         PA32 elf support.
4575         * Makefile.in: Rebuilt.
4576         * configure.tgt: Add PA64 support (currently disabled).
4578 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
4580         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4581         (output_rel_find): New function.
4582         (hold_section, hold_use): Delete.
4583         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4584         hold_interp): Make local to place_orphan.
4585         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4586         rather than place_section to find possible previous use of orphan.
4587         Similarly find the place-holder output sections.  Use returned
4588         value from lang_enter_output_section_statement rather than calling
4589         lang_output_section_statement_lookup.
4590         * emultempl/armelf.em: Same here.
4591         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4593         * ldlang.c (lang_enter_output_section_statement): Return output
4594         section statement.
4595         * ldlang.h (lang_enter_output_section_statement): Change
4596         declaration too.
4598         * ldlang.h (lang_output_section_statement): Export it.
4599         * ldlang.c (lang_output_section_statement): Ditto.
4601 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4603         * ld.texinfo (Output Section Data): Add note that section data
4604         commands cannot appear outside of section directives.
4606 2000-04-2  Matthew Green  <mrg@cygnus.com>
4608         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4610 2000-04-21  Richard Henderson  <rth@cygnus.com>
4611             David Mosberger  <davidm@hpl.hp.com>
4613         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4614         (eelf64_ia64.c): New rule.
4615         * Makefile.in: Rebuild.
4616         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4617         * emulparams/elf64_ia64.sh: New file.
4619 2000-04-21  Richard Henderson  <rth@cygnus.com>
4621         * scripttempl/elfd30v.sc: Place .gcc_except_table.
4623 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
4625         * dep-in.sed: Match space at start of file name, not at end.
4627 2000-04-18  H.J. Lu  <hjl@gnu.org>
4629         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4630         lang_leave_output_section_statement () after calling
4631         lang_enter_output_section_statement ().
4632         * emultempl/armelf.em: Likewise.
4634 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
4636         * emultempl/elf32.em (struct orphan_save): Add section field.
4637         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4638         better order, and place first orphan section as we did before the
4639         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
4640         Don't call make_bfd_section here, let wild_doit do the job for us.
4641         Don't build a statement list when we'll only throw it away.
4642         * emultempl/armelf.em: Ditto.
4643         * emultempl/pe.em: Similarly.
4645 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4647         * scripttempl/elfppc.sc: Remove.
4648         * emulparams/elf32ppc.sh: Use elf.sc.
4649         * emulparams/elf32lppc.sh: Use elf.sc.
4650         * emulparams/elf32ppclinux.sh: Use elf.sc.
4651         * emulparams/elf32ppcsim.sh: New file.
4652         * emulparams/elf32lppcsim.sh: New file.
4653         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
4654         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4655         * Makefile.in: Regenerate.
4656         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4658 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
4660         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4661         ~SEC_ALLOC sections too.  Init start address of debug sections.
4662         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4663         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4664         Also set all relocateable section start addresses.
4666 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
4668         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4669         Add new BSS_PLT variable for when .plt need not be contained in
4670         the file.  Move _etext so that it is also after .fini, and provide
4671         both etext and _etext with a leading underscore.  Mark the start
4672         and end of .sbss.
4674 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
4676         * emultempl/elf32.em (struct orphan_save): New.
4677         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4678         hold_interp): Make them struct orphan_save.
4679         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4680         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4681         the end of the relevant section list.  Also add associated section
4682         statements to the end of any previous orphan statements.
4683         * emultempl/armelf.em: Similarly.
4684         * emultempl/pe.em: Similarly.
4686 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
4688         * ld.texinfo (Simple Example): Remove extraneous paragraph.
4690 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
4692         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4693         --enable-build-warnings option.
4694         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4695         * Makefile.in, configure: Re-generate.
4697 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
4699         * po/ld.pot: Regenerate.
4701         * lexsup.c (help): Restore translated part of bug string.
4703         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4704         (DEP): Quote when passing vars to sub-make.  Add warning message
4705         to end.
4706         (DEP1): Rewrite for "gcc -MM".
4707         (CLEANFILES): Add DEP2.
4708         Update dependencies.
4709         * Makefile.in: Regenerate.
4711 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
4713         * ld.h: #include "bin-bugs.h"
4714         * lexsup.c (help): Use REPORT_BUGS_TO.
4716 2000-03-27  Denis Chertykov  <denisc@overta.ru>
4718         * configure.tgt (avr-*-*): New target support.
4719         * Makefile.am: Likewise.
4720         * scripttempl/elf32avr.sc: New script file.
4721         * emulparams/avr1200.sh: New file.
4722         * emulparams/avr23xx.sh: New file.
4723         * emulparams/avr4433.sh New file.
4724         * emulparams/avr44x4.sh New file.
4725         * emulparams/avr85xx.sh New file.
4726         * emulparams/avrmega103.sh New file.
4727         * emulparams/avrmega161.sh New file.
4728         * emulparams/avrmega603.sh New file.
4729         * Makefile.in: Regenerate.
4731 2000-03-09  Andreas Jaeger  <aj@suse.de>
4733         * Makefile.am (check-DEJAGNU): Also unset LANG.
4734         * Makefile.in: Rebuild.
4736 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
4738         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4739         archive.
4741 2000-03-02  H.J. Lu  <hjl@gnu.org>
4743         * emulparams/elf32mcore.sh: Include "getopt.h".
4745 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
4747         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4749 2000-03-01  H.J. Lu  <hjl@gnu.org>
4751         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4752         * emulparams/shpe.sh: Likewise.
4754 2000-03-01  Nick Clifton  <nickc@cygnus.com>
4756         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4757         to unused parameters.
4759         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4760         functions only used by DLL code.
4761         (_place_orphan): Initialise 'dollar'.
4763 2000-03-01  H.J. Lu  <hjl@gnu.org>
4765         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4766         indicate if the undefined symbol is a fatal error or not.
4767         Don't delete the output file if "fatal" is false.
4769 2000-02-29  H.J. Lu  <hjl@gnu.org>
4771         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4772         Set LC_COLLATE and LC_ALL to null and export them. It is for
4773         sort which expects the C locale.
4774         Add $(LIBS) to all $(HOSTING_LIBS).
4775         * Makefile.in: Rebuild.
4777 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
4779         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4780         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4781         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4782         (ld_emulation_xfer_struct): Add missing NULL initialiser for
4783         find_potential_libraries.
4785 2000-02-28  Jim Blandy  <jimb@redhat.com>
4787         * ldgram.y (exclude_name_list): Don't require a comma to separate
4788         list entries; the lexer considers commas to be valid part of a
4789         filename, so in something like `foo, bar' the comma is considered
4790         part of the first filename, `foo,'.
4791         * ld.texinfo: Update section on EXCLUDE_FILE lists.
4793 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
4795         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4796         host "i[3456]86-*-freebsdelf*".
4798 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
4800         * scripttempl/i386go32.sc: Move misplaced semicolons.
4802 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
4804         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4805         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4806         (eelf64hppa.c, ehppaelf.c): Remove targets.
4807         * Makefile.in: Rebuild.
4809 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4811         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4812         GNU/Linux/sparc, but keep the default as 32.
4814         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
4815         it default if sparcv9 or sparc64.
4817 2000-02-24  Nick Clifton  <nickc@cygnus.com>
4819         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4820         * Makefile.in: Regenerate.
4821         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4823         * ldemul.h (ld_emulation_xfer_struct): Add new field:
4824         find_potential_libraries.
4825         * ldemul.c (ldemul_find_potential_libraries): New function.
4827         * ldfile.c (ldfile_open_file_search): Allow function to be
4828         exported.
4829         (ldfile_open_file): Call ldemul_find_potential_libraries.
4830         * ldfile.h: Add prototype for ldfile_open_file_search.
4832         * pe-dll.c: Add support for ARM, MIPS and SH targets.
4834         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
4835         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
4837         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4838         (gld_X_find_potential_libraries): New function.  Search for
4839         libraries called "*.lib".
4841         * scripttempl/pe.sc: Add .pdata section.
4843 2000-02-23  Richard Henderson  <rth@cygnus.com>
4845         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4846         Add and use memory regions.
4848 2000-02-23  Linas Vepstas (linas@linas.org)
4850         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4852         * Makefile.am: Add support for Linux/IBM 370.
4853         * configure.tgt: Likewise.
4855         * Makefile.in: Regenerate.
4857 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
4859         * ldlang.c (print_input_section, print_data_statement,
4860         print_reloc_statement, print_padding_statement, insert_pad,
4861         size_input_section, lang_check_section_addresses,
4862         lang_size_sections, lang_do_assignments, lang_set_startof,
4863         lang_one_common): Change `opb' to unsigned.
4864         (lang_do_assignments): Also change `size' to unsigned.
4866 2000-02-16  Richard Henderson  <rth@cygnus.com>
4868         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4870 2000-02-16  Timothy Wall  <twall@cygnus.com>
4872         * mri.c (mri_draw_tree): Add default LMA region argument to call
4873         to lang_leave_output_section_statement.
4874         * ldlang.h: Update prototypes with LMA region arguments.
4875         * ldlang.c (lang_size_sections): Encapsulate region bounds
4876         checking in os_check_region call.
4877         (os_check_region): New function.
4878         (lang_output_section_statement_lookup): Initialize lma_region.
4879         (lang_leave_output_section_statement): Add LMA region argument.
4880         (lang_leave_overlay): Ditto.
4881         * ldgram.y: Handle LMA region syntax.
4882         * ld.texinfo (Output Section Description): Describe LMA region usage.
4883         * emultempl/armelf.em (gld$place_orphan): Add default value for
4884         lma region in call to lang_leave_output_section_statement.
4885         * emultempl/elf32.em (gld$place_orphan): Add default value for
4886         lma region in call to lang_leave_output_section_statement.
4887         * emultempl/pe.em (gld$place_orphan): Add default value for
4888         lma region in call to lang_leave_output_section_statement.
4891 2000-02-04  Timothy Wall  <twall@redhat.com>
4893         * ldlang.c (lang_check_section_addresses): Use bytes instead of
4894         octets when calculating section end addresses.
4896 2000-02-04  Timothy Wall  <twall@redhat.com>
4898         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4900 2000-02-03  Timothy Wall <twall@redhat.com>
4902         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4903         octet count.
4904         * ldlang.c (print_input_section, print_data_statement,
4905         print_reloc_statement, print_padding_statement): Print target
4906         address values and section sizes as bytes, not octets.
4907         (insert_pad) Calculate padding size in octets, and adjust "dot"
4908         by bytes.
4909         (size_input_section) Always adjust "dot" by bytes, not octets.
4910         (lang_check_section_addresses, lang_do_assignments) Adjust
4911         "dot" by bytes, not octets.  Use the larger of the directive size
4912         or octets_per_byte for the number of octets actually allocated in
4913         the output section.
4914         (lang_set_startof) Make sure STARTOF returns a target address.
4915         (lang_one_common) Record size changes in octets.
4916         (lang_abs_symbol_at_end_of) Section end symbol's value is
4917         recorded in target bytes.
4918         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4919         to be clear about behavior when an octet is smaller than one byte.
4921 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
4923         * ldcref.c (output_cref): Don't pass message strings to printf
4924         as format arg.
4925         Update copyright.
4927         * ldmisc.c (vfinfo): Same here.
4928         Update copyright.
4930 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
4932         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4933         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4934         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4935         Add missing NULL initialisers, and comments.
4937         * testsuite/ld-srec/sr3.cc (__rethrow): New.
4939 2000-01-21  Nick Clifton  <nickc@cygnus.com>
4941         * ldlang.c (lang_size_sections): Fix typo in comment.
4943 2000-01-18  H.J. Lu  <hjl@gnu.org>
4945         * ldlang.c (lang_size_sections): Also update the current
4946         address of a region if the SEC_NEVER_LOAD bit is not set.
4948 2000-01-10  Philip Blundell  <pb@futuretv.com>
4950         * configure.tgt (arm*-*-conix*): New target.
4952 2000-01-07  Nick Clifton  <nickc@cygnus.com>
4954         * ld.texinfo (Options): Remind users to preceed linker command
4955         line switches with -Wl, (or whatever is appropriate) if it is
4956         being invoked by a comnpiler driver program.
4957         Fix description of the behaviour of the -n command line switch.
4959 2000-01-05  Catherine Moore  <clm@cygnus.com>
4961         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
4962         (name_list): New.
4963         * ld.texinfo (EXCLUDE_FILE): Update documentation.
4964         * ldgram.y (wildcard_spec): Support a list of excluded_files.
4965         (exclude_name_list): New.
4966         ldlang.c (walk_wild_section): Support list of excluded files.
4967         (print_wild_statement): Likewise.
4968         (lang_add_wild): Likewise.
4969         * ldlang.h (lang_wild_statement_type): Likewise.
4970         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4972 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
4974         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4975         (process_def_file): Use.
4976         (pe_dll_compat_implib): New variable.
4977         (make_one): Use.
4979         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4980         pe_dll_compat_implib.
4982         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4983         compat-implib options.
4984         (gld_${EMULATION_NAME}_list_options): List new options.
4985         (gld_${EMULATION_NAME}_parse_args): Handle.
4987         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4988         dll.
4990         * deffilep.y (opt_name): Allow "." in name.
4992 For older changes see ChangeLog-9899
4994 Local Variables:
4995 mode: change-log
4996 left-margin: 8
4997 fill-column: 74
4998 version-control: never
4999 End: