* dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
[binutils.git] / ld / ChangeLog
blobeb6cf0ab51e982e5b8921f660cb298df87667f2e
1 2002-09-16  Bruno Haible  <bruno@clisp.org>
3         * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
4         elf32-i386-freebsd.
5         * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
6         elf64-alpha-freebsd.
8 2002-09-11  Nick Clifton  <nickc@redhat.com>
10         * NEWS: New TI port supports both C4x and C3x series of DSPs.
12         * po/tr.po: Updated Turkish translation.
14 2002-09-06  Jeffrey A Law  (law@redhat.com)
16         * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
18 2002-09-02  Nick Clifton  <nickc@redhat.com>
20         * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
21         __ep.
22         * emulparams/v850.sh (TEMPLATE_NAME): Define.
24 2002-08-30  Nick Clifton  <nickc@redhat.com>
26         * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
27         used.  Change INSN to start at 0x01000000 and extend for
28         256K (ignoring holes).  Start the STACK on a word aligned
29         boundary.
30         (.rodata): Start it at the READONLY_START_ADDR.
32 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
34         * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
36 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
38         * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
39         added makefile targets for this file.
40         * Makefile.in: Regenerate.
41         * configure.tgt: Added tic4x-coff and c4x-coff emulations.
42         * NEWS: Mention new port.
44 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
46         * emulparams/tic3xcoff.sh: New file.
47         * emulparams/tic4xcoff.sh: New file.
48         * scripttempl/tic3xcoff.sc: New file.
49         * scripttempl/tic4xcoff.sc: New file.
51 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
53         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
54         strtoul and strtoull with bfd_scan_vma.
55         (gld${EMULATION_NAME}_read_file): Likewise.
57 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
59         * configure.tgt: Remove h8[35]00-*-hms*.  Add h8500-*-rtems*.
61 2002-08-27  Egor Duda  <deo@logos-m.ru>
63         * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
64         Add symbols for application to access them.
66 2002-08-27  Nick Clifton  <nickc@redhat.com>
68         * emultempl/armelf.em:  Revert this patch, it is not needed.
69         
70         2002-08-22  Adam Nemet  <anemet@lnxw.com>
72 2002-08-20 Dan Kegel <dank@kegel.com>
73         
74         * configure.in: added --with-lib-path argument to ld's configure
75         to set LIB_PATH.
76         * ld/NEWS: Document new switch.
77         * ld/README: Mention new switch.
78         * configure: Regenerate.
79         * Makefile.in: Regenerate.
80         
81         Based on this patch:
82         2001-04-25  Christopher Faylor <cgf@cygnus.com>
84         * Makefile.in (LIB_PATH): Make configurable.
85         (GENSCRIPTS): Set LIB_PATH in environment.
86         * configure.in: Substitute LIB_PATH.
88 2002-08-22  Adam Nemet  <anemet@lnxw.com>
90         * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
91         (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
92         depending on the type of the function.
93         (arm_elf_convert_thumb_symbol_to_address): New function.
95 2002-08-22  Graeme Peterson  <gp@qnx.com>
97         * Makefile.am: Add esh{l}elf_nto.o files.
98         * Makefile.in: Regenerate.
99         * configure.tgt: Add support for sh-**-nto* targets.
100         * emulparams/shelf_nto.sh: New file.
101         * emulparams/shlelf_nto.sh: New file.
103 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
105         * ldlang.c (offsetof): Define if not defined.
107 2002-08-14  H.J. Lu <hjl@gnu.org>
109         * configure.tgt: Always enable 64bit emulations for 32bit
110         Linux/mips.
112 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
114         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
115         (MAXPAGESIZE): Set to 1.
117         * ld.h (ALIGN_N): Delete.
118         * ldexp.h (align_n): Declare.
119         * ldexp.c (align_n): New function.
120         (fold_binary): Use align_n instead of ALIGN_N.
121         (exp_fold_tree): Likewise.
122         * ldlang.c (lang_size_sections_1): Likewise.
123         (lang_one_common): Likewise.
124         * ld.texinfo (ALIGN): Remove power of 2 restriction.
126 2002-07-31  Graeme Peterson  <gp@qnx.com>
128         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
129         * Makefile.am: Add eelf32{l}ppcnto.o files.
130         * Makefile.in: Regenerate.
131         * emulparams/elf32lppcnto.sh: New file.
132         * emulparams/elf32ppcnto.sh: New file.
134 2002-08-07  H.J. Lu <hjl@gnu.org>
136         * ld.texinfo: Document --no-undefined-version.
138         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
139         `script.' fields to 0.
141         * ldmain.c (main): Initialize the allow_undefined_version to
142         true.
144         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
145         (ld_options): Add --no-undefined-version.
146         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
148 2002-08-07  Nick Clifton  <nickc@redhat.com>
150         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
151         an interworking bfd if there are input bfds. (107501)
153 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
155         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
156         2002-05-10 change.
158 2002-08-01  Nick Clifton  <nickc@redhat.com>
160         * emulparams/armelf.sh: Revert previous delta.
161         * scripttempl/elf.sc: Revert previous delta.
163 2002-07-31  H.J. Lu <hjl@gnu.org>
165         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
166         --enable-64-bit-bfd.
168 2002-07-31  H.J. Lu <hjl@gnu.org>
170         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
171         64bit BFD is selected.
173 2002-07-31  H.J. Lu <hjl@gnu.org>
175         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
176         if 64bit BFD is selected.
178 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
180         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
181         link_info.common_skip_ar_aymbols.
182         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
184         * ldmain.c (main): Initialize new field
185         link_info.common_skip_ar_aymbols.
187 2002-07-31  Adam Nemet  <anemet@lnxw.com>
189         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
190         to .plt.thumb.
191         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
192         used.
194 2002-07-31  Nick Clifton  <nickc@redhat.com>
196         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
197         of the PDP-11 and 2.11BSD a.out support.
199 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
201         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
202         for n32 ABI support.
203         * Makefile.in: Regenerate.
204         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
205         n32 ABI emulations for these 64 bit targets.
206         * emulparams/elf32bmipn32.sh: Expand comment.
207         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
208         n32 ABI.
209         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
211 2002-07-30  Graeme Peterson  <gp@qnx.com>
213         * configure.tgt: Add support for arm-*-nto target.
214         * Makefile.am: Add earmnto.o file.
215         * Makefile.in: Regenerate.
216         * NEWS: Mention port of ARM support to QNX.
217         * emulparams/armnto.sh: New file.
219 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
221         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
222         for relocatable link.
223         (lang_size_sections_1): Don't make .tbss zero size for relocatable
224         link.
226 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
228         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
229         (STACK_ADDR): New.
231 2002-07-25  Nick Clifton  <nickc@redhat.com>
233         * po/sv.po: Updated Swedish translation.
234         * po/es.po: Updated Spanish translation.
235         * po/fr.po: Updated French translation.
237 2002-07-24  Nick Clifton  <nickc@redhat.com>
239         * po/sv.po: Updated Swedish translation.
240         * po/es.po: Updated Spanish translation.
242 2002-07-23  Nick Clifton  <nickc@redhat.com>
244         * po/fr.po: Updated French translation.
246 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
248         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
249         bomb on /DISCARD/ input section.
250         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
251         * emultempl/mmo.em (mmo_place_orphan): Likewise.
253 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
255         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
256         output section.
258 2002-07-16  Denis Chertykov  <denisc@overta.ru>
259             Nick Clifton  <nickc@redhat.com>
260             Frank Ch. Eigler  <fche@redhat.com>
261             John Healy  <jhealy@redhat.com>
263         * configure.tgt: Add support for ip2k-elf.
264         * Makefile.am: Add support for ip2k-elf.
265         * Makefile.in: Regenerate.
266         * emulparams/elf32ip2k.sh: New file.
267         * scripttempl/ip2k.sc: New file
268         * NEWS: Mention support for new port.
270 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
272         * NEWS: Add 'Changes in 2.13'.
274 2002-07-14  H.J. Lu <hjl@gnu.org>
276         * ld.texinfo: Document a .symver takes precedence over a
277         version script.
279 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
281         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
282         (COMMONPAGESIZE): Define.
284 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
286         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
288 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
290         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
291         powerpc-*-openbsd* and sparc64-*-openbsd*.
292         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
293         * Makefile.in: Regenerate.
294         * emulparams/hppaobsd.sh: New file.
296 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
298         * ldlang.c (print_wild_statement): Fix output formatting.
300 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
302         * ldlang.c: (strip_excluded_output_sections): New function.
303         (lang_process): Call it.
304         (lang_size_sections_1): Revert 2002-06-10 change.
306 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
308         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
309         Run "make dep-am".
310         * Makefile.in: Regenerate.
312 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
314         * ldfile.c (ldfile_try_open_bfd): Formatting.
316         * ldmisc.c (demangle): Move so that it doesn't intrude between
317         vfinfo comment and body.  Add comment.
319 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
321         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
323 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
325         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
326         * ldlang.c (entry_sym): Likewise.
327         (ldlang_undef_chain_list_type): Likewise.
328         (lang_finish): Adjust references to entry_symbol.
329         (lang_add_entry): Likewise.
330         (lang_gc_sections): Use link_info.gc_sym_list.
331         (lang_process): Set link_info.gc_sym_list.
332         * ldlex.l: Include bfdlink.h.
333         * ldmain.c (main): Init link_info.gc_sym_list.
334         * emultempl/aix.em: Adjust references to entry_symbol.
335         * emultempl/armcoff.em: Likewise.
336         * emultempl/armelf.em: Likewise.
337         * emultempl/pe.em: Likewise.
338         * emultempl/ppc64elf.em (ppc_after_open): New function.
339         (LDEMUL_AFTER_OPEN): Define.
340         * emulparams/elf64ppc.sh: KEEP .opd sections.
342 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
344         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
345         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
346         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
347         (EEPROM_START_ADDR): Define.
348         (EEPROM_MEMORY): Define.
349         * emulparams/m68hc12elf.sh: Likewise.
350         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
351         section to put soft registers in .page0.
352         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
354 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
356         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
357         section.  Add ${RELOCATING-0}.
359 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
361         * emulparams/shelf.sh (STACK_ADDR): Don't define.
362         (OTHER_SECTIONS): Define.
363         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
364         (OTHER_SECTIONS): Undef.
366 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
368         * ldmisc.c (demangle): Restore dots stripped from sym name.
370 2002-06-25  H.J. Lu <hjl@gnu.org>
372         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
373         * Makefile.in: Regenerated.
375 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
377         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
378         the size of attached object files, to allow make the object files
379         available via FTP or HTTP and to mention that the mail will be
380         sent to a mailing list.
382 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
384         * ld/configure.host (romp): Drop support.
386 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
388         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
389         section flags for SEC_DATA, rather than for SEC_CODE being unset.
391 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
393         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
394         format specifier used to print BFD name.
396 2002-06-18  Dave Brolley  <brolley@redhat.com>
398         From Catherine Moore, Michael Meissner, Jim Blandy:
399         * emulparams/elf32frv.sh: New file.
400         * configure.tgt: Support frv-*-*.
401         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
402         (eelf32frv.c): New target.
404 2002-06-17  Tom Rix  <trix@redhat.com>
406         * emultempl/elf32.em: gld*_get_script:  Check for
407         GENERATE_COMBRELOC_SCRIPT.
408         * scripttempl/elfd10v.sc : Fix STACK and INSN.
409         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
411 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
413         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
415 2002-06-12  H.J. Lu <hjl@gnu.org>
417         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
418         false if xvec doesn't match.
420 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
422         * ldlang.c (lang_size_sections_1): Skip removed output sections.
424 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
426         * ldexp.c: Replace CONST with const.
427         * ldfile.c: Likewise.
428         * ldfile.h: Likewise.
429         * ldlex.l: Likewise.
430         * mri.c: Likewise.
431         * pe-dll.h: Likewise.
433 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
435         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
437 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
439         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
440         to -1 == implicit enable.
441         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
442         initialize link_info.pei386_auto_import to -1 == implicit
443         enable.
444         (gld_${EMULATION_NAME}_parse_args): When processing
445         --enable-auto-import and --disable-auto-import options, use
446         '1' and '0' instead of 'true' and 'false'.
447         (pe_find_data_imports): Only issue message about auto-import
448         when the feature is implicitly enabled.  Downgrade message to
449         informational instead of warning.
451 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
453         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
455 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
457         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
458         HOSTING_CRT0 and HOSTING_LIBS.
460 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
462         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
464 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
466         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
467         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
469 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
471         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
472         SEC_EXCLUDE sections when doing a relocatable link.
474 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
476         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
477         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
478         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
479         (eshlelf64_nbsd.c): New rules.
480         * Makefile.in: Regenerate.
481         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
482         (sh64-*-netbsd*): New targets.
483         * emulparams/shelf32_nbsd.sh: New file.
484         * emulparams/shelf64_nbsd.sh: New file.
485         * emulparams/shlelf32_nbsd.sh: New file.
486         * emulparams/shlelf64_nbsd.sh: New file.
488 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
490         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
492 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
494         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
495         C++ constructors/destructors, loosely based on the m68hc11 port.
497 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
499         * Makefile.in: Regenerate.
500         * aclocal.m4: Regenerate.
501         * config.in: Regenerate.
502         * configure: Regenerate.
504 2002-05-31  Graeme Peterson  <gp@qnx.com>
506         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
507         (ei386nto.c): Add rule.
508         * Makefile.in: Regenerate.
509         * configure.tgt: Add i[3456]86-*-nto-qnx*.
510         * emulparams/i386nto.sh: New file.
512 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
514         * NEWS: Add entry for VAX ELF support.
516 2002-05-29  Matt Thomas  <matt@3am-software.com>
517             Jason Thorpe  <thorpej@wasabisystems.com>
519         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
520         (eelf32vax.c)
521         (evaxnbsd.c): New rules.
522         * Makefile.in: Regenerate.
523         * configure.tgt (vax-*-netbsdelf*)
524         (vax-*-netbsdaout*)
525         (vax-*-netbsd*): New targets.
526         * emulparams/elf32vax.sh: New file.
527         * emulparams/vaxnbsd.sh: New file.
529 2002-05-29  Adam Nemet  <anemet@lnxw.com>
531         * emultempl/armelf.em (arm_elf_after_open): Don't determine
532         bfd_for_interwork, instead add glue sections to each input bfd.
533         (bfd_for_interwork): New global.
534         (arm_elf_set_bfd_for_interworking): New function.
535         (arm_elf_before_allocation): Use it.
537 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
539         * Makefile.am: Add DLX make target.
540         * configure.tgt: Add DLX configuration.
541         * Makefile.in: Regenerate.
542         * emulparams/elf32_dlx.sh: New file
543         * scripttempl/dlx.sc: New file
545 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
547         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
548         * Makefile.in: Regenerate.
549         * emulparams/elf_chaos.sh: Use elf_chaos script.
550         * scripttempl/elf_chaos.sc: New file.
552 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
554         * ldlang.c (lang_size_sections_1): Move check for conflicting load
555         addresses and regions from here...
556         (lang_get_regions): ...to this new function.
557         (lang_leave_output_section_statement): Use lang_get_regions.
558         (lang_leave_overlay): Likewise.
559         * mri.c (mri_draw_tree): Pass null as last argument to
560         lang_leave_output_section_statement.
561         * emultempl/elf32.em (gld*_place_orphan): Likewise.
562         * emultempl/mmo.em (mmo_place_orphan): Likewise.
563         * emultempl/pe.em (gld*_place_orphan): Likewise.
565 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
567         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
569 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
571         * ldemul.c: Fix formatting.
572         * ldfile.c: Likewise.
573         * pe-dll.c: Likewise.
574         * pe-dll.h: Likewise.
576 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
578         * ldlang.c (lang_process): Formatting, grammar.
580         * ldlex.l: Use #include "" instead of <> for local header files.
582 2002-05-24  TAMURA Kent <kent@netbsd.org>
584         * configure.tgt: Add a target for i386-netbsdpe.
586 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
588         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
589         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
590         output section if necessary.  Handle .tbss.
591         (lang_size_sections): Clear _raw_size for .tbss section
592         (it allocates space in PT_TLS segment only).
593         * ldwrite.c (build_link_order): Build link order for .tbss too.
595 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
597         * configure.in: Correct spelling of AC_PREREQ.
599 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
601         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
602         default.
603         (autofilter_objlist): Add crtbegin.o, crtend.o.
605 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
607         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
608         (longopts): Add new option --exclude-libs.
609         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
610         (gld_${EMULATION_NAME}_parse_args): Use it.
611         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
612         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
613         from whole archives.
614         (pe_dll_add_excludes): Set excludes->type.
615         (auto_export): Add new variable libname and set to archive basename if
616         abfd.  Use it when filtering default and user-specified libarary
617         excludes.  Let string "ALL" mean all libs when filtering user-specified
618         libs.
619         * ld.texinfo: Document --exclude-libs.
621 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
623         * ldemul.c (ldemul_new_vers_pattern): New function.
624         * ldemul.h (ldemul_new_vers_pattern): Declare.
625         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
626         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
627         * emultempl/ppc64elf.em (dotsyms): New static var.
628         (gld${EMULATION_NAME}_new_vers_pattern): New function.
629         (LDEMUL_NEW_VERS_PATTERN): Define.
630         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
631         (PARSE_AND_LIST_LONGOPTS): Likewise.
632         (PARSE_AND_LIST_ARGS_CASES): Handle them.
633         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
634         initialiser.
635         * emultempl/armcoff.em: Likewise.
636         * emultempl/armelf_oabi.em: Likewise.
637         * emultempl/beos.em: Likewise.
638         * emultempl/elf32.em: Likewise.
639         * emultempl/generic.em: Likewise.
640         * emultempl/gld960.em: Likewise.
641         * emultempl/gld960c.em: Likewise.
642         * emultempl/linux.em: Likewise.
643         * emultempl/lnk960.em: Likewise.
644         * emultempl/m68kcoff.em: Likewise.
645         * emultempl/mipsecoff.em: Likewise.
646         * emultempl/pe.em: Likewise.
647         * emultempl/sunos.em: Likewise.
648         * emultempl/ticoff.em: Likewise.
649         * emultempl/vanilla.em: Likewise.
651 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
653         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
654         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
655         (LIB_SEARCH_DIRS): No need to use "tr".
656         (COMPILE_IN): Only set for native targets.
657         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
658         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
659         * configure.tgt (powerpc*): Set tdir_*.
660         (powerpcle*): Correct targ_extra_emuls.
661         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
662         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
664 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
666         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
667         calling lang_add_entry.
669 2002-05-21  H.J. Lu  (hjl@gnu.org)
671         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
672         "-z muldefs".
673         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
675         * ld.texinfo: Updated for --allow-multiple-definition and
676         "-z muldefs".
678         * ldmain.c (main): Initialize the allow_multiple_definition
679         field to false.
681         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
682         (ld_options): Add --allow-multiple-definition.
683         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
685 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
687         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
688         (earmelfb_nbsd.c): New rule.
689         * Makefile.in: Regenerate.
690         * configure.tgt (armeb-*-netbsdelf*): New target.
691         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
692         (arm-*-netbsd*): Likewise.
693         * emulparams/armelfb_nbsd.sh: New file.
695 2002-05-18  Tom Rix  <trix@redhat.com>
697         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
698         support.
700 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
702         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
703         * Makefile.in: Regenerate.
704         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
706 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
708         * emulparams/avr1.sh: New file.
709         * emulparams/avr2.sh: New file.
710         * emulparams/avr3.sh: New file.
711         * emulparams/avr4.sh: New file.
712         * emulparams/avr5.sh: New file.
713         * scripttempl/avr.sc: New file.
715 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
717         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
718         (lang_place_orphans): Abort if just_syms_flag.
720 2002-05-10  Tom Rix  <trix@redhat.com>
722         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
723         architecture and machine information in the output bfd.
724         (gld*_before_parse): Remove old arch and machine code.
725         (choose_target): Rename to gld*_choose_target.
726         (rtld): Change type to int.
727         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
728         objects in XCOFF archives.
729         * ldfile.h: Update copyright date.
731 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
733         * ldmain.c (main): Enable -z combreloc by default.
735 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
737         * Makefile.am: Honour DESTDIR.
738         * Makefile.in: Regenerate.
740 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
742         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
743         (lang_enter_overlay): Remove the last two parameters.
744         (lang_leave_overlay): Take them here instead.
745         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
746         (section): Pass LMA and crossref flag to lang_leave_overlay rather
747         than lang_enter_overlay.
748         * ldlang.c (lang_memory_region_lookup): Return null for null names.
749         (lang_output_section_statement_lookup): Initialize update_dot_tree.
750         (lang_size_sections_1): Evaluate it.
751         (lang_leave_output_section_statement): Rework LMA lookup.
752         (overlay_lma, overlay_nocrossrefs): Remove.
753         (lang_enter_overlay): Remove LMA and crossref arguments.
754         (lang_enter_overlay_section): Don't set the LMA here.
755         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
756         assignment to the last section's update_dot_tree.  Unconditionally
757         use the load and run-time regions specified in the OVERLAY statement.
758         Likewise the first section's LMA.  Only set the other sections' LMAs
759         when no load region is given.
761 2002-05-06  Nick Clifton <nickc@redhat.com>
763         * po/sv.po: New translation.
765 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
767         * emultempl/hppaelf.em (build_section_lists): New function.
768         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
769         and build_section_lists.
771 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
773         * ld.h: Fix formatting.
774         * ldexp.c: Likewise.
775         * ldfile.c: Likewise.
776         * ldlang.c: Likewise.
777         * ldmain.c: Likewise.
778         * lexsup.c: Likewise.
779         * pe-dll.c: Likewise.
781 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
783         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
784         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
785         (build_section_lists): Do output_section tests here.
787 2002-04-30  Tom Rix  <trix@redhat.com>
789         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
791 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
793         Long branch stubs, multiple stub sections.
794         * emultempl/ppc64elf.em: Include ldctor.h.
795         (stub_file): New var.
796         (group_size): New var.
797         (ppc_create_output_section_statements): New function.
798         (struct hook_stub_info): New.
799         (hook_in_stub): New function.
800         (ppc_add_stub_section): New function.
801         (ppc_layout_sections_again): New function.
802         (build_section_lists): New function.
803         (gld${EMULATION_NAME}_finish): Rewrite.
804         (real_func): New var.
805         (ppc_for_each_input_file_wrapper): New function.
806         (ppc_lang_for_each_input_file): New function.
807         (lang_for_each_input_file): Define.
808         (PARSE_AND_LIST_PROLOGUE): Define.
809         (PARSE_AND_LIST_LONGOPTS): Define.
810         (PARSE_AND_LIST_OPTIONS): Define.
811         (PARSE_AND_LIST_ARGS_CASES): Define.
812         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
814 2002-04-30  Tom Rix  <trix@redhat.com>
816         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
817         -blibpath, -bnolibpath support.
819 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
821         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
822         (eelf32ppcwindiss.c): New target.
823         * Makefile.in: Regenerated.
824         * configure.tgt: Add support for powerpc-*-windiss.
825         * emulparams/elf32ppcwindiss.sh: New file.
827 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
829         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
830         * ldexp.c (exp_print_token): Add "infix_p" argument.
831         (exp_print_tree): Update accordingly.
833 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
835         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
836         * Makefile.in: Regenerate.
837         * mpw-elfmips.c: Delete.
838         * mpw-eppcmac.c: Delete.
839         * mpw-esh.c: Delete.
840         * mpw-idtmips.c: Delete.
842 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
844         * emulparams/shelf32.sh (MACHINE): Now sh5.
846 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
848         * ldgram.y: Fix syntax warning.
850 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
852         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
853         to prevent "-n" from being taken as an abbreviation for
854         "--no-pipeline-knowledge".
856 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
858         * ldlang.c (lang_size_sections_1): Don't complain about
859         SEC_NEVER_LOAD sections having no memory region specified.
861         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
863 2002-04-07  matthew green  <mrg@redhat.com>
865         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
867 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
869         * dep-in.sed: Cope with absolute paths.
870         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
871         Run "make dep-am".
872         * Makefile.in: Regenerate.
874 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
876         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
878 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
880         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
881         is smaller than maximum, round dot up to common page boundary.
883 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
885         * configure.host: Set up for generic hosts first, then tweak as
886         necessary in more specific targets.
887         (HOSTING_LIBS): Include libgcc_eh.a if found.
889 2002-03-23  Andreas Jaeger  <aj@suse.de>
891         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
893 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
895         * Makefile.am: Run "make dep-am".
896         * Makefile.in: Regenerate.
898 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
900         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
902 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
904         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
905         add the symbol to the linker hash table immediately.
906         (lang_place_undefineds): Split symbol creation out..
907         (insert_undefined): ..to here.
909 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
911         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
912         the contents of the buffer returned from basename function will are
913         getting overwritten while still being used.
915 2002-03-18  Jan Hubicka  <jh@suse.cz>
916             Andreas Jaeger  <aj@suse.de>
917             Andreas Schwab  <schwab@suse.de>
919         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
920         * elf_x86_64.sh (ARCH): Set to i386:x86-64
921         set libraries to default to lib64 paths.
923 2002-03-18  Tom Rix  <trix@redhat.com>
925         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
926         * configure.tgt : Same.
927         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
928         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
929         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
930         emulation parameters for better -b32, -b64 support.
931         * emulparms/aixrs6.sh : Same.
932         * emulparms/ppcmacos.sh : Same.
933         * emultempl/aix.em (choose_target) : Use new emulation parameters
934         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
935         * Makefile.in : Regenerate.
937 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
939         * po/fr.po: Updated version.
941 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
943         * ldmain.c (main): Move .text readonly flag fudges from here..
944         * ldlang.c (lang_process): ..to here.
946 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
948         * ldlang.c (lang_check): Remove the word size check added in last
949         change.  Treat emitrelocations case as for relocatable links.
951 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
953         * po/fr.po: Updated version.
955 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
957         * ldlang.c (lang_check): Do relocatable link checks first, so that
958         warn_mismatch can't override.  Check compatible and word size too.
960 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
962         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
964 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
966         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
967         DATA_SEGMENT_ALIGN.
969 2002-03-04  H.J. Lu <hjl@gnu.org>
971         * scripttempl/elf.sc: Put .preinit_array, .init_array and
972         .fini_array in the data segment.
974 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
976         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
978 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
980         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
981         .init_array, and .fini_array.
983 2002-02-20  Andreas Schwab  <schwab@suse.de>
985         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
986         .IA64_unwind* in a relocatable link.
988 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
990         * NEWS: Mark 2.12 branch.
992 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
994         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
995         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
997 2002-02-18  Tom Rix  <trix@redhat.com>
999         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1000         (gld*_before_allocation): Same.
1001         (gld*_create_output_section_statements): Generate
1002         __rtinit if run time linking.  Add librtl.a to the link.
1003         (gld*_read_file): Clean.
1005 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1007         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1009 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
1011         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1012         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1013         and eelf64alpha_fbsd.
1014         * Makefile.in: Regenerate.
1015         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1016         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1017         use a FreeBSD-specific emulation rather than the psABI one.
1018         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1019         for all FreeBSD ELF systems.
1020         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1021         emulation.
1022         * emulparams/elf32ppc_fbsd.sh: Likewise.
1023         * emulparams/elf64_ia64_fbsd.sh: Likewise.
1024         * emulparams/elf64_sparc_fbsd.sh: Likewise.
1025         * emulparams/elf64alpha_fbsd.sh: Likewise.
1026         * emulparams/elf_i386_fbsd.sh: Likewise.
1027         * emulparams/elf_x86_64_fbsd.sh: Likewise.
1029 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
1031         * po/tr.po: Updated version.
1033 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1035         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1036         (FILL): Likewise.
1038 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
1040         * emultempl/mmo.em (mmo_after_open): Don't call
1041         _bfd_mmix_check_all_relocs when producing ELF output.
1043 2002-02-15  Richard Henderson  <rth@redhat.com>
1045         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1046         definition.  Emit a unop+nop pair.
1048 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
1050         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1051         for presence of .MMIX.reg_contents.linker_allocated before early
1052         exit.
1054         * NEWS: Mention support for MMIX.
1056 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
1058         Support arbitrary length fill patterns.
1059         * ld.texinfo (Output Section Fill): Describe fill expressions.
1060         (FILL): Refer to the above.
1061         * ldexp.h (etree_value_type): Add "str" field.
1062         (union etree_union): Add "str" to "value" struct.
1063         (exp_bigintop): Declare.
1064         (exp_get_fill): Declare.
1065         * ldexp.c: Include "safe-ctype.h".
1066         (exp_intop): Set value.str to NULL.
1067         (exp_bigintop): New function.
1068         (new_rel): Pass in "str", and set new.str from it.
1069         (new_rel_from_section): Set new.str to NULL.
1070         (fold_name): Adjust calls to new_rel.
1071         (exp_fold_tree): Likewise.
1072         (exp_get_fill): New function.
1073         * ldgram.y (struct big_int bigint, fill_type *fill): New.
1074         (INT): Returns a "bigint".  Adjust all code handling INTs.
1075         (fill_opt): Returns a "fill".
1076         (fill_exp): Split out of fill_opt, use for FILL.
1077         * ldlang.h (struct _fill_type): New.
1078         (fill_type): Move typedef to ldexp.h.
1079         (lang_output_section_statement_type): "fill" is now a pointer.
1080         (lang_fill_statement_type): Likewise.
1081         (lang_padding_statement_type): Likewise.
1082         (lang_add_fill): Now takes a "fill_type *" param.
1083         (lang_leave_output_section_statement): Likewise.
1084         (lang_do_assignments): Likewise.
1085         (lang_size_sections): Likewise.
1086         (lang_leave_overlay_section): Likewise.
1087         (lang_leave_overlay): Likewise.
1088         * ldlang.c: Include ldgram.h after ldexp.h.
1089         (lang_output_section_statement_lookup): Adjust for fill_type change.
1090         (print_fill_statement): Likewise.
1091         (print_padding_statement): Likewise.
1092         (insert_pad): Now takes a "fill_type *" arg.
1093         (size_input_section): Likewise.
1094         (lang_size_sections_1): Likewise.
1095         (lang_size_sections): Likewise.
1096         (lang_do_assignments): Likewise.
1097         (lang_add_fill): Likewise.
1098         (lang_leave_output_section_statement): Likewise.
1099         (lang_leave_overlay_section): Likewise.
1100         (lang_leave_overlay): Likewise.
1101         Adjust all callers of the above function.
1102         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
1103         starting with "0X" as well as "0x".  Return bigint.str for hex
1104         numbers starting with "0x" or "0X", zero bigint.str otherwise.
1105         Always use base 16 for numbers starting with "$".
1106         * ldmain.c: Include ldgram.h after ldexp.h.
1107         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1108         of bfd_fill_link_order.
1109         * pe-dll.c: Adjust lang_do_assignments calls.
1110         * emultempl/elf32.em: Likewise.
1111         * emultempl/hppaelf.em: Likewise.
1112         * emultempl/ppc64elf.em: Likewise.
1113         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1114         lang_add_assignment call.
1115         * emultempl/pe.em: Likewise.
1117 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
1119         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
1120         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
1121         the pattern in question is not a regexp.
1122         * ldlang.c:  Likewise.
1123         * ldlang.h:  Likewise.
1124         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
1126 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
1128         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1129         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1130         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1131         * ldexp.c (exp_data_seg): New variable.
1132         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1133         (fold_binary): Handle DATA_SEGMENT_ALIGN.
1134         (exp_fold_tree): Handle DATA_SEGMENT_END.
1135         Pass allocation_done when recursing instead of hardcoding
1136         lang_allocating_phase_enum.
1137         * ldexp.h (exp_data_seg): New.
1138         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1139         (lang_size_sections): New.
1140         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1141         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1142         if COMMONPAGESIZE is defined.
1143         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1144         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1145         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1146         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1147         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1148         libraries only.
1150 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
1152         * Makefile.in: Regenerate.
1154 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1156         * lexsup.c: Remove strtoul declaration.
1158 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1160         * ldmain.c: Add prototype for main ().
1161         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1162         * emultempl/lnk960.em (lnk960_choose_target): Function should
1163         take two arguments.
1165 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
1167         * ldlang.c (entry_section): New initialised variable.
1168         (lang_finish): Use it.
1169         * ldlang.h (entry_section): Declare.
1170         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1171         entry_section to ".opd".
1173 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
1175         * ld.texinfo (Options): Add back in -nostdlib documentation,
1176         which had been inadvertently removed.
1178 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
1180         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1181         register section vma to a sane value after emitting error.  Make
1182         fatal conditions cause program exit when emitting message.
1184 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
1186         * configure.tgt: Add or32-*-rtems target.
1188 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1190         Contribute sh64-elf.
1191         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1192         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1193         in OTHER_RELOCATABLE_SECTIONS.
1194         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1195         * emulparams/shelf32.sh (STACK_ADDR): Define.
1196         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1197         (OTHER_SECTIONS): this.  Removed stack settings.
1198         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1199         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1200         2001-03-12  DJ Delorie  <dj@redhat.com>
1201         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1202         relaxing if any shmedia or mixed sections are found.
1203         2001-03-07  DJ Delorie  <dj@redhat.com>
1204         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1205         einfo.  Gracefully decline to output to non-elf formats.
1206         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
1207         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1208         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1209         * emulparams/shelf32.sh: Ditto.
1210         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
1211         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1212         comment.
1213         2001-01-10  Ben Elliston  <bje@redhat.com>
1214         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1215         non-portable shell constructs. From Hans-Peter Nilsson.
1216         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
1217         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1218         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1219         dependencies to the shell script include chain.
1220         * Makefile.in: Regenerate.
1221         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
1222         * emultempl/sh64elf.em: Update and tweak comments.
1223         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1224         make a .cranges section SEC_IN_MEMORY.
1225         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1226         * emultempl/sh64elf.em
1227         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1228         .cranges section found to be necessary; continue and set stored
1229         section contents flags for sections with non-mixed contents.
1230         Use a struct sh64_section_data container and sh64_elf_section_data
1231         to store contents-type flags.
1232         Remove unused update of "isec".
1233         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1234         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
1235         access contents-type flags.  Assert that the associated container
1236         is initialized.  Use that container, not elf_gp_size, to hold size
1237         of linker-generated cranges contents.
1238         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1239         * emultempl/sh64elf.em
1240         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1241         there's already a .cranges section.  When section flag difference
1242         is found, don't NULL-check cranges a second time.  Tweak comments.
1243         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1244         merging, not max size, as size of ld-generated .cranges contents.
1245         Don't set ELF section flags in output section.  When checking for
1246         needed .cranges descriptors, don't use a variable; compare
1247         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
1248         comments.
1249         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1250         * emultempl/sh64elf.em: New file.
1251         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1252         * Makefile.in: Regenerate.
1253         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1254         (OTHER_RELOCATING_SECTIONS): Ditto.
1255         (EXTRA_EM_FILE): New, set to sh64elf if not set.
1256         * emulparams/shlelf32.sh: Stub out all settings except
1257         OUTPUT_FORMAT.  Source shelf32.sh.
1258         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1259         OTHER_RELOCATING_SECTIONS.
1260         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1261         * emulparams/shlelf64.sh: Stub out all settings except
1262         OUTPUT_FORMAT.  Source shelf64.sh.
1263         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
1264         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1265         .cranges section.
1266         (DATA_START_SYMBOLS): Define, provide ___data.
1267         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1268         for consecutive .data section.
1269         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1270         section after .data section.
1271         * emulparams/shlelf64.sh: Ditto.
1272         * emulparams/shelf32.sh: Ditto.
1273         (ALIGNMENT): Define to 8.
1274         * emulparams/shelf32.sh: Ditto.
1275         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
1276         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1277         built-in linker scripts.
1278         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1279         * emulparams/shlelf64.sh: New.
1280         * emulparams/shelf64.sh: New.
1281         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1282         targ_extra_emuls.
1283         * Makefile.am: Add support for shlelf64 and shelf64.
1284         * Makefile.in: Regenerate.
1285         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
1286         * configure.tgt (sh64-*-elf*): Add shelf as default.
1287         Add shlelf to targ_extra_emuls.
1288         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
1289         * emulparams/shelf32.sh: New file.
1290         * emulparams/shlelf32.sh: New file.
1291         * Makefile.am: Add support for shlelf32 and shelf32.
1292         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1293         * Makefile.in: Regenerate.
1295 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
1297         * ldlang.c (lang_reset_memory_regions): Rename from
1298         reset_memory_regions.  Change all callers.  Make public.
1299         * ldlang.h (lang_reset_memory_regions): Prototype.
1300         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1301         lang_reset_memory_regions before lang_size_sections.
1302         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1303         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1305 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
1307         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1308         arithmetic when checking for too many global registers.
1310 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
1312         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1313         (ehppanbsd.c): New rule.
1314         * Makefile.in: Regenerate.
1315         * configure.tgt (hppa*-*-netbsd*): New target.
1316         * emulparams/hppalinux.sh: Add comment to check other files
1317         that source this file it is modified, and list which
1318         files that do.
1319         * emulparams/hppanbsd.sh: New file.
1321 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
1323         * scripttempl/xstormy16.sc: Don't allocate extra space for the
1324         stack.
1326 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
1328         Support on-demand global register allocation from
1329         R_MMIX_BASE_PLUS_OFFSET relocs.
1330         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1331         mmix_set_reg_section_vma.  Call
1332         _bfd_mmix_finalize_linker_allocated_gregs.
1333         (mmix_before_allocation): New function.
1334         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1335         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1336         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1337         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1338         before .MMIX.reg_contents.
1339         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1340         (mmo_after_open): New function.
1341         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1342         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
1343         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1345 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
1347         * emulparams/or32.sh: New file.
1348         * emulparams/or32elf.sh: New file.
1349         * scripttempl/or32.sc: New file.
1350         * configure.tgt : Add support for or32.
1351         * configure: Regenerate
1352         * Makefile.am: Add support for or32.
1353         * Makefile.in: Regenerate.
1354         * NEWS: Mention support for or32.
1355         * po/ld.pot: Regenerate.
1357 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
1358             Mitch Lichtenberg  <mpl@broadcom.com>
1360         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1361         * emultempl/mipself.em: New file to handle MIPS ELF embedded
1362         reloc creation (ld --embedded-relocs).
1364 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
1366         * configure: Regenerated.
1368 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
1370         * Makefile.am (install): Depend on install-info.
1371         * Makefile.in: Regenerate.
1373 2002-01-26  Christian Rose  <menthos@menthos.com>
1375         * ldmain.c (main): Use full sentences to ease translation.
1377 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
1379         * po/fr.po: Updated version.
1381 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
1383         * po/es.po: Updated version.
1385 2002-01-25  Andreas Jaeger  <aj@suse.de>
1387         * ldlex.l (yy_input): Correct error check.
1389 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
1391         * ldmisc.c (demangle): Put back dots when string not demangled.
1393 2002-01-22  Richard Henderson  <rth@redhat.com>
1395         * emulparams/elf64alpha.sh (NOP): Use unop.
1397 2002-01-21  Andreas Jaeger  <aj@suse.de>
1399         * ldlex.l: Use fread instead of read.
1401 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
1403         * configure.tgt (ia64-*-netbsd*): New target.
1405 2002-01-21  H.J. Lu <hjl@gnu.org>
1407         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1408         0.
1409         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1411 2002-01-18  Andreas Jaeger  <aj@suse.de>
1413         * ldver.c (ldversion): Update year.
1415 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
1417         * po/ld.pot: Regenerate.
1419 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
1421         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1422         * Makefile.in: Regenerate.
1423         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1424         * emultempl/ppc64elf.em: New file.
1426 2002-01-15  DJ Delorie  <dj@redhat.com>
1428         * scripttempl/pe.sc: Add support for constructor priorities.
1430 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1432         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1433         * emulparams/avr23xx.sh: Likewise.
1434         * emulparams/avr4433.sh: Likewise.
1435         * emulparams/avr44x4.sh: Likewise.
1436         * emulparams/avr85xx.sh: Likewise.
1437         * emulparams/avrmega103.sh: Likewise.
1438         * emulparams/avrmega161.sh: Likewise.
1439         * emulparams/avrmega603.sh: Likewise.
1440         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1442 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
1444         * ldlang.c (walk_wild_section): Exclude object file if enclosing
1445         archive is excluded.
1447 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
1449         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1450         (eshelf_nbsd.c): New rule.
1451         (eshlelf_nbsd.c): New rule.
1452         * Makefile.in: Regenerate.
1453         * configure.tgt (sh*le-*-netbsdelf*): New target.
1454         (sh*-*-netbsdelf*): New target.
1455         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1456         * ld/emulparams/shelf_nbsd.sh: New emulation.
1457         * ld/emulparams/shlelf_nbsd.sh: New emulation.
1459 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
1461         * po/es.po: New file: Spanish translation.
1462         * configure.in (ALL_LINGUAS): Add es.
1463         * configure: Regenerate.
1465 2002-01-06  John Marshall  <jmarshall@acm.org>
1467         * ld.texinfo: Note that --emit-relocs is currently only
1468         implemented for ELF.
1470 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
1472         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1473         of bfd_section_list_remove and bfd_section_list_insert macros.
1474         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1475         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1477 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1479         * configure.tgt (x86_64-*-netbsd*): New target.
1481 2001-12-21  Tom Rix  <trix@redhat.com>
1483         (gld*_create_output_section_statements): New function.
1484         For -binitfini support.
1485         * emultempl/aix.em (gld*_before_parse): Fix comment.
1486         * emultempl/aix.em (gld*_parse_args): Fix comment.
1488 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
1490         * configure.tgt (mips*-dec-netbsd*): Delete alias for
1491         mips*el-*-netbsd*.
1492         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1494         * configure.tgt (arm-*-netbsdelf*): Add target.
1495         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1496         * emulparams/armelf_nbsd.sh: Added.
1497         * Makefile.am: Add rules for earmelf_nbsd.
1498         * Makefile.in: Regenerate.
1500 2001-12-19  Andreas Jaeger  <aj@suse.de>,
1501             Susanne Oberhauser <froh@suse.de>
1503         * configure.host: Add rules for x86_64-*linux-gnu.  Change
1504         s390x-linux entry to use gcc to report configuration, replace gcc
1505         with $CC in s390-linux
1507 2001-12-19  Andreas Jaeger  <aj@suse.de>
1509         * ld.texinfo (VERSION): Fix markup.
1511 2001-12-18  matthew green  <mrg@eterna.com.au>
1513         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1514         (m68kelfnbsd.c): New rule.
1515         * Makefile.in: Regenerate.
1516         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1517         (m68*-*-netbsd*4k*): .. this.
1518         (m68*-*-netbsdelf*): New target.
1519         (m68*-*-netbsd*): Also include ELF support.
1520         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1521         * emulparams/m68kelfnbsd.sh: New emulation.
1523 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1525         * ldgram.y (vers_node): Support anonymous version tags.
1526         * ldlang.c (lang_register_vers_node): Ensure anonymous version
1527         tag is not defined together with non-anonymous versions.
1528         * ld.texinfo: Document it.
1530 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
1532         * po/tr.po: New file: Turkish translation.
1533         * configure.in (ALL_LINGUAS): Add tr.
1534         * configure: Regenerate.
1536 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
1538         * Makefile.am: Add rules for eelf64alpha_nbsd.
1539         * Makefile.in: Regenerate.
1540         * configure.tgt (alpha*-*-netbsd*): Set
1541         targ_emul to elf64alpha_nbsd.
1542         * emulparams/elf64alpha_nbsd.sh: Added.
1544 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
1546         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1547         section_tail when fiddling with section list.
1548         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1549         broken into separate strings to make translation easier.
1550         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1551         fiddling with section list.
1552         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1554 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
1556         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1558 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
1560         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1562 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
1564         * emultempl/elf32.em (finish): Supply output_bfd
1565         to bfd_elf*_discard_info.
1566         (OPTION_EH_FRAME_HDR): Define.
1567         (longopts): Add --eh-frame-hdr.
1568         (parse_args): Handle it.
1569         (list_options): Add --eh-frame-hdr to help.
1570         * emultempl/hppaelf.em (finish): Supply output_bfd
1571         to bfd_elf*_discard_info.
1572         * scripttempl/elf.sc (.eh_frame_hdr): Add.
1574 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
1576         * lexsup.c (parse_args): Don't pass shortopts to second call to
1577         getopt functions.  Restore optind rather than decrementing before
1578         second call.  Remove errind as it now duplicates last_optind.
1580 2001-12-11  Christopher Faylor  <cgf@redhat.com>
1582         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1584 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
1585             Richard Henderson  <rth@redhat.com>
1587         * Makefile.am: Add support for xstormy16.
1588         * configure.tgt: Add support for xstormy16.
1589         * Makefile.in: Regenerate.
1590         * emulparams/elf32xstormy16.sh: New file.
1591         * scripttempl/xstormy16.sc: New file.
1593 2001-10-01  Christopher Faylor <cgf@cygnus.com>
1595         * Makefile.in (LIB_PATH): Make configurable.
1596         (GENSCRIPTS): Set LIB_PATH in environment.
1597         * configure.in: Substitute LIB_PATH.
1598         * configure: Regenerate.
1599         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1600         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1602 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
1604         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1605         describing the -N option so that it is easier to translate into
1606         foreign languages.
1608 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
1610         * emultempl/pe.em (..._list_options): Replace multiple fprintf
1611         statements describing a single option with a single, newline
1612         escaped fprintf.  This allows better translation into other
1613         languages.
1615         * ldmain.c (add_archive_element): Combine multiple strings
1616         into a single string to permit better translation into other
1617         languages.
1619 2001-12-05  Tom Rix  <trix@redhat.com>
1621         * Makefile.am: Remove eaixppc64.
1622         * Makefile.in: Regenerate.
1624 2001-12-04  Tom Rix  <trix@redhat.com>
1626         * emultempl/aix.em (choose_target): Change default target to
1627         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
1628         warning.
1629         (gld*_read_file):  Fix typo.
1630         (change_symbol_mode): Add prototype.
1631         (is_syscall): Same.
1633         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1634         * emulparams/aixrs6.sh : Same.
1635         * emulparams/ppcmacos.sh : Same.
1636         * emulparams/aixppc64.sh : Delete file.
1637         * emultempl/aix.em : Formatting changes.
1639 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
1641         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1642         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1643         __Sbss.
1644         (OTHER_END_SYMBOLS): Fix formatting.
1645         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1646         (OTHER_END_SYMBOLS): Fix formatting.
1648 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
1650         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1652 2001-12-02  Tom Rix  <trix@redhat.com>
1654         * configure.tgt : Remove eaixppc64 emulations.
1655         * Makefile.in : Remove eaixppc64.c
1656         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1657         (ldemul_default_target): Same.
1658         * emultempl/gld960.em (gld960_choose_target):  Same.
1659         * emultempl/gld960c.em (gld960_choose_target):  Same.
1660         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1661         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1662         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1663         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1664         * emultempl/aix.em (choose_target): New function.  Handle emulation of
1665         -b32 and -b64.
1667 2001-11-27  H.J. Lu <hjl@gnu.org>
1669         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1670         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1671         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1672         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1673         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1674         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1675         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1676         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1678         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1679         is not empty.
1680         (SDATA): Likewise.
1681         (REL_SDATA): Likewise.
1682         (REL_SBSS): Likewise.
1683         (REL_SDATA2): Likewise.
1684         (REL_SBSS2): Likewise.
1685         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1686         (SDATA2): Likewise.
1688 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1690         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1691         destructor in rom.
1692         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1694 2001-11-22  H.J. Lu  <hjl@gnu.org>
1696         * Makefile.in: Regenerated with automake based on automake
1697         1.4-8 in RedHat 7.1.
1699 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
1701         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1702         (config.status): Delete rule.
1703         Add extra dependencies to cover sourced emulparams files.
1704         * Makefile.in: Regenerate.
1706         * scripttempl/elf.sc: Order <section>, <section>.* and
1707         corresponding linkonce sections as seen in input files.
1708         Formatting fixes.  Zero vma of all sections if not relocating.
1709         (STACK): Define and insert if STACK_ADDR defined.
1710         (OTHER_RELOCATING_SECTIONS): Delete.
1711         (OTHER_END_SYMBOLS): Define.
1712         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1713         (OTHER_READWRITE_SECTIONS): Likewise.
1714         (OTHER_GOT_SECTIONS): Likewise.
1715         (OTHER_SDATA_SECTIONS): Likewise.
1716         (OTHER_BSS_SECTIONS): Likewise.
1717         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1718         (OTHER_READWRITE_SECTIONS): Likewise.
1719         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1720         (OTHER_READWRITE_SECTIONS): Likewise
1722         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1723         (STACK_ADDR): Define.
1724         * emulparams/armelf_oabi.sh: As for armelf.sh.
1725         * emulparams/elf32mcore.sh: As for armelf.sh.
1726         * emulparams/h8300elf.sh: As for armelf.sh.
1727         * emulparams/mn10200.sh: As for armelf.sh.
1728         * emulparams/shelf.sh: As for armelf.sh.
1730         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1731         (OTHER_END_SYMBOLS): Define.
1732         * emulparams/m32relf.sh: As for elf32fr30.sh.
1733         * emulparams/h8300helf.sh: As for elf32fr30.sh.
1734         * emulparams/h8300self.sh: As for elf32fr30.sh.
1736         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1737         defines with RELOCATING test.
1738         (OTHER_SDATA_SECTIONS): Likewise.
1739         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1740         (OTHER_END_SYMBOLS): ..this.
1741         * emulparams/crislinux.sh: As for criself.sh.
1743         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1744         if not relocating.
1745         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1746         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
1747         normal and linkonce sections as seen in input files.
1748         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1749         (TEXT_DYNAMIC): Likewise.
1750         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1751         (OTHER_SDATA_SECTIONS): Likewise.
1752         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1753         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1754         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1755         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1756         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1757         (OTHER_PLT_RELOC_SECTIONS): Likewise.
1758         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
1759         sections as seen in input files.
1760         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1761         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1762         if not relocating.
1763         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1764         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1765         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1766         (OTHER_SECTIONS): Instead, use this..
1767         (OTHER_END_SYMBOLS): ..and this.
1769         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1770         * emulparams/elf32bsmip.sh: Likewise.
1771         * emulparams/elf32btsmip.sh: Likewise.
1772         * emulparams/elf32ebmip.sh: Likewise.
1773         * emulparams/elf32lmip.sh: Likewise.
1774         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1775         * emulparams/elf32lsmip.sh: Likewise.
1776         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1777         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1778         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1779         * emulparams/elf64btsmip.sh: Likewise.
1780         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1781         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1782         * emulparams/elf32ppclinux.sh: Likewise.
1783         * emulparams/elf32ppcsim.sh: Likewise.
1784         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1785         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1786         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1787         * emulparams/h8300self.sh: Likewise.
1788         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1789         * emulparams/sh.sh: Comment.
1790         * emulparams/shl.sh: Source sh.sh, remove duplicates.
1791         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1792         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1794 2001-11-21  David Heine <dlheine@tensilica.com>
1795             Alan Modra  <amodra@bigpond.net.au>
1797         * ldlang.c (map_input_to_output_sections): Replace "break"
1798         accidentally removed with 2001-08-03 change.
1799         (lang_gc_sections_1): Likewise.
1801 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
1803         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1805 2001-11-20  Angela Marie Thomas <angela@redhat.com>
1807         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1808         of false when calling lang_size_sections.
1809         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1811 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
1813         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1814         function when LDEMUL_FINISH isn't set to the same name.  Don't
1815         call ${LDEMUL_FINISH}.
1816         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1817         * emultempl/armelf.em (arm_elf_finish): Call
1818         gld${EMULATION_NAME}_finish.
1819         * emultempl/hppaelf.em (hppaelf_finish): Rename to
1820         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
1821         hppaelf_layout_sections_again if necessary.
1822         (need_laying_out): New var.
1823         (hppaelf_layaout_sections_again): Rename to
1824         hppaelf_layout_sections_again.  Clear need_laying_out.
1825         (PARSE_AND_LIST_OPTIONS): Format text.
1827 2001-11-14  H.J. Lu  <hjl@gnu.org>
1829         * emultempl/armelf.em (arm_elf_finish): Renamed from
1830         gld${EMULATION_NAME}_finish.
1831         (LDEMUL_FINISH): Set to arm_elf_finish.
1833 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
1835         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1836         (struct ld_emulation_xfer_struct): Use it.
1838 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
1840         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1841         additional symbols referenced by newer crt0.o files from HP.
1843 2001-11-12  Anthony Green  <green@redhat.com>
1845         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1847 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
1849         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1850         * Makefile.in: Regenerate.
1852 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1854         * ld.texinfo: Use @command for commands, @option for options.
1855         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1856         the page man title.
1857         * Makefile.in: Rebuild.
1859 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
1861         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1862         Add support for targets.
1864 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
1866         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1867         * configure: Regernate.
1868         * po/fr.po: New file.
1869         * po/sv.po: New file.
1871 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
1873         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1874         as little endian default and to support big endian.
1876 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
1878         * ld.texinfo (Options): Document new option, -nostdlib.
1879         * lexsup.c (OPTION_NOSTDLIB): New definition.
1880         (ld_options): Add entry for "nostdlib".
1881         (parse_args): Handle OPTIONS_NOSTDLIB.
1882         * ldfile.c (ldfile_add_library_path): Don't add directories
1883         to the search path if they weren't specified on the command line
1884         and -nostdlib was specified.
1885         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1887 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
1889         * lexsup.c (parse_args): Prevent infinite parsing loop when
1890         "-rpath.a" is specified on the command line.
1891         Replace calls to fprintf with calls to einfo.
1893 2001-10-31  John Marshall  <jmarshall@acm.org>
1895         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1896         appear only once across all the linker scripts involved in a link
1897         invocation no longer applies.  Make the documentation reflect
1898         that.
1900 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
1902         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1903         targets.
1904         (sh-*-linux*): Added targ_extra_libpath.
1906 2001-10-31  David Heine  <dlheine@tensilica.com>
1908         * ldlang.c (lang_size_sections): Keep a valid output_offset field
1909         for padding statements.
1911 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
1913         * configure.tgt (mmix-*-*): New target.
1914         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1915         Add dependencies to match.
1916         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1917         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1918         scripttempl/mmo.sc: New files.
1919         * gen-doc.texi: @set MMIX.
1920         * ld.texinfo: Ditto.
1921         [MMIX] Add MMIX node.
1922         * Makefile.in: Regenerate.
1924 2001-10-29  Kazu Hirata  <kazu@hxi.com>
1926         * ldlang.c: Fix a comment typo.
1928 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
1930         * configure.host: Move alpha*-*-linux-gnu* entry to generic
1931         entries, and match *-*-linux*.
1933 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
1935         * ldgram.y (mri_script_command): Surround processing of INCLUDE
1936         with ldlex_script, ldlex_popstate.
1937         (ifile_p1): Likewise.
1938         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
1939         correct slot.
1940         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
1941         to 1.  Don't BEGIN(SCRIPT).
1942         (lex_redirect): Similarly.
1943         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1945 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
1947         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1948         __EH_FRAME_END__ and accept eh frames into data section.
1949         Add ctor and dtor sections.
1951 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1953         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1954         (auto-export): Fix indentation.
1956 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1958         * pe-dll.c (autofilter_objectlist):  Add startup objects
1959         for profiling.
1960         (auto-export): Constify char * p.
1961         Extract file basename and use strcmp rather than ststr
1962         for object lookup.
1964 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
1966         * ldmain.c (get_emulation): Improve comment about the handling
1967         of -mipsN options.
1969 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
1971         * po/POTFILES.in: Regenerate.
1973 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
1975         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1976         -z nocopyreloc and -z nocombreloc usage strings.
1978 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
1980         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1981         in usage.
1983 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
1985         * scripttempl/armaout.sc: Place .bss section after end of aligned
1986         data section to match behaviour of aout code in constructrion of
1987         header.
1989 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1991         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1992         startup files for mingw32 dlls to list.
1994 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
1996         * emultempl/elf32.em: Fix shell 'if' usage for portability.
1998 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
2000         * configure.tgt (targ): Add arm9e-*-elf.
2002 2001-10-05  H.J. Lu  <hjl@gnu.org>
2004         * genscripts.sh: Fix a typo in the last change.
2006 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
2008         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2009         -z nocombreloc in usage.
2011 2001-10-03  Jim Blandy  <jimb@redhat.com>
2013         * genscripts.sh: Include a comment at the top of each generated
2014         script, explaining its purpose.
2016 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
2018         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2019         * NEWS: Mention -z nocopyreloc.
2020         * ld.texinfo (Options): Describe nocopyreloc.
2022 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
2024         * configure: Regenerate.
2026 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
2028         * ldver.h (ld_program_version): Remove declaration.
2029         * lexsup.c (parse_args): Move printing of copyright message..
2030         * ldver.c (ldversion): .. to here.
2031         Use BFD_VERSION_STRING in place of BFD_VERSION.
2032         (ld_program_version): Remove.
2033         * Makefile.am (Makefile): Depend on bfd/configure.in.
2034         Run "make dep-am".
2035         * Makefile.in: Regenerate.
2037 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
2039         * Makefile.am: Update dependencies with "make dep-am".
2040         * Makefile.in: Regenerate.
2042 2001-09-29  John Reiser  <jreiser@BitWagon.com>
2044         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2045         * lexsup.c: Add --no-define-common commandline option.
2046         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2047         * ldlex.l: Likewise.
2048         * ld.h: Add command_line.inhibit_common_definition.
2049         * ldmain.c (main): Initialize.
2050         * ld.texinfo: Document.
2052 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
2054         * ldlang.c (section_already_linked): Remove assignment to kept_section.
2056 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
2058         * ldmisc.c (USE_STDARG): Remove.
2059         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2060         (einfo): Likewise.
2061         (minfo): Likewise.
2062         (lfinfo): Likewise.
2064         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2065         declarations.  Update copyright.
2067 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2069         * pe-dll.c: Remove obsoleted declaration of
2070         pe_get_data_import_dll_name.
2071         (pe_create_import_fixup): Fix thinko.
2073         * ld.texinfo(enable-auto-import): Clarify the explanation.
2075 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
2077         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2078         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2079         DLL_SUPPORT controlled code.
2081 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2083         * emultempl/pe.em(pe_data_import_dll): Make static.
2084         (pe_get_data_import_dll_name): New accessor function.
2085         * pe-dll.c(pe_create_import_fixup): call
2086         pe_get_data_import_dll_name() from pe.em, instead of
2087         directly accessing pe_data_import_dll variable from pe.em.
2089 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
2091         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2092         (def_file_add_directive): Use ISSPACE instead of isspace.
2093         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2094         isdigit/isxdigit/isalpha/isalnum.
2095         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2096         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2097         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2098         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2099         isalnum.
2100         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2101         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2102         isupper/tolower.
2103         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2104         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2105         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2106         (ctor_prio): Use ISDIGIT instead of isdigit.
2107         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2108         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2109         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2110         isupper/tolower.
2111         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2112         (stricpy): Use TOLOWER instead of isupper/tolower.
2113         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2114         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2115         (lex_warn_invalid): Use ISPRINT instead of isprint.
2116         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2117         (main): For gettext, also set the LC_CTYPE locate facet.
2118         (add_keepsyms_file): Use ISSPACE instead of isspace.
2119         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2120         (is_num, parse_args): Use ISDIGIT instead of isdigit.
2121         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2122         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2123         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2124         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2125         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2126         (quoteput): Use ISSPACE instead of isspace.
2127         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2128         instead of isalnum.
2130 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
2132         * deffilep.y (def_stash_module): Constify "name" param.
2134         * pe-dll.c: Replace CONST with const throughout.
2135         (quick_symbol): Constify "n1", "n2", "n3" params.
2136         (make_singleton_name_thunk): Constify "import" param.  Make
2137         "buffer_len" a size_t.
2138         (make_import_fixup_entry): Constify "name", "fixup_name",
2139         "dll_symname" params.
2140         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
2141         (pe_get32): Likewise.
2142         (pe_implied_import_dll): Likewise.
2144         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2145         (sort_by_section_name): Likewise.
2147         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2148         (make_import_fixup): Cast printf arg, rel->address to long rather
2149         than int.
2150         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2152 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
2154         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2155         defines BufferSize.  Increase buffer size by one.
2157 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
2159         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2161 2001-09-14  Kevin Lo <kevlo@openbsd.org>
2163         * configure.tgt: Add arm-openbsd target.
2165 2001-09-12  H.J. Lu  <hjl@gnu.org>
2167         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2168         eelf64lppc.o to ...
2169         (ALL_64_EMULATIONS): Here.
2170         * Makefile.in: Regenerated.
2172 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2174         * emultempl/pe.em(make_import_fixup): change signature to
2175         take asection as well as arelec; we need this for proper
2176         error reporting.  Only call pe_create_import_fixup() if
2177         there is no attempt to add a constant addend to the reloc;
2178         otherwise, report error condition.
2179         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2180         since final argument is a pointer to make_import_fixup().
2181         Change call to cb() to match make_import_fixup() signature.
2182         (make_import_fixup_mark): make buffer_len unsigned.
2183         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2185 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
2187         * ld.texinfo: add verbose documentation for auto-import
2188         direct-addressing workaround, to compliment the terse
2189         error message.
2191 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
2193         * scripttempl/v850.sc: Add gcc_except_table sections.
2195 2001-09-11  Jeffrey A Law  (law@cygnus.com)
2197         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2198         * emulparams/h8300self.sh: Similarly.
2200 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2202         * ld.texinfo (Options, --stack): Correct default value for stack
2203         reserve.
2205 2001-09-05  Tom Rix <trix@redhat.com>
2207         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2209 2001-09-03  Andreas Jaeger  <aj@suse.de>
2211         * emultempl/beos.em: Declare prototypes for comparions functions,
2212         adjust definitions.
2214 2001-09-02  Andreas Jaeger  <aj@suse.de>
2216         * emultempl/aix.em: Add missing prototype.
2217         * emultempl/lnk960.em: Likewise.
2218         * emultempl/vanilla.em: Likewise.
2219         * emultempl/armcoff.em: Likewise.
2220         * emultempl/armelf_oabi.em: Likewise.
2221         * emultempl/beos.em: Likewise.
2222         * emultempl/gld960c.em: Likewise.
2223         * emultempl/gld960.em: Likewise.
2225         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2226         for prototype declaration.
2228 2001-08-31  Eric Christopher  <echristo@redhat.com>
2229             Jason Eckhardt  <jle@redhat.com>
2231         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2233 2001-08-31  Andreas Jaeger  <aj@suse.de>
2235         * emultempl/pe.em: Add missing prototypes.
2236         (gld_${EMULATION_NAME}_after_open): Remove extra args to
2237         pe_find_data_imports.
2238         (pr_sym): Add unused attribute.
2240 2001-08-29  Joel Sherrill <joel@OARcorp.com>
2242         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2243         default from coff to elf.
2245 2001-08-29  Jeff Law <law@redhat.com>
2247         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
2248         ARCH specification.
2249         * emulparams/h8300self.sh: Similarly.
2251 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
2253         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2254         eh8300self.o .
2255         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2256         * configure.tgt (h8300-*-elf*): New case.
2257         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2258         * emulparams/h8300self.sh: New file.
2259         * Makefile.in: Regenerated.
2261 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
2263         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2264         with macro name.
2266 2001-08-27  Linus Nordberg  <linus@swox.com>
2267             Alan Modra  <amodra@bigpond.net.au>
2269         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2270         (eelf64ppc.c, eelf64lppc.c): Add make targets.
2271         Run "make dep-am"
2272         * Makefile.in: Regenerate.
2273         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
2274         entries to correct alphabetical position.
2275         * emulparams/elf64ppc.sh: New.
2276         * emulparams/elf64lppc.sh: New.
2278 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
2280         * ldmain.c (main): Declare BSIZE as static.
2282 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2284         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2285         into .rel.dyn resp. .rela.dyn if combreloc.
2286         (get_script): If .x linker script is equal to .xn, only put it
2287         once into the binary.
2288         Add .xc and .xsc scripts.
2289         (parse_args): Handle -z combreloc and -z nocombreloc.
2290         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2291         For .xc and .xsc scripts put all .rel* or .rela* input sections
2292         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2293         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2294         is elf.
2295         Strip trailing whitespace from script.
2296         Generate .xc and .xsc scripts if requested.
2297         * ldmain.c (main): Initialize link_info.combreloc and
2298         link_info.spare_dynamic_tags.
2299         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2300         (ld_options): Add --spare-dynamic-tags option.
2301         (parse_args): Likewise.
2302         * ld.texinfo: Document -z combreloc and -z nocombreloc.
2303         * ldint.texinfo: Document .xc and .xsc linker scripts.
2304         * NEWS: Add notes about -z combreloc and SHF_MERGE.
2306 2001-08-22  H.J. Lu  <hjl@gnu.org>
2308         * emulparams/elf32fr30.sh: Add a newline.
2310 2001-08-21  Andreas Jaeger  <aj@suse.de>
2312         * deffilep.y: Add missing prototypes.
2313         * pe-dll.c: Likewise.
2315 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
2317         * ldlang.c (insert_pad): Fix typos in last patch.
2319         * ldlang.c: When traversing lang_statement_union_type lists,
2320         consistently use "header.next" rather than "next".
2321         * mpw-eppcmac.c: Likewise.
2322         * emultempl/beos.em: Likewise.
2323         * emultempl/hppaelf.em: Likewise.
2324         * emultempl/pe.em: Likewise.
2325         * ldlang.h (union lang_statement_union): Remove "next" field.
2327         * ldlang.c (insert_pad): Use offsetof macro.
2328         (lang_size_sections): Always neuter padding statements.
2329         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2331         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2332         passed to lang_size_sections.
2333         (pe_exe_fill_sections): Likewise.
2334         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2335         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2337 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2339         * emultempl/aix.em: Formatting fixes.
2341 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2343         * ldlang.c (insert_pad): Make use of an existing pad statement if
2344         available.  Move code calculating alignment, adjusting section
2345         alignment power, and adjusting dot to ..
2346         (size_input_section): .. here.  Remove unused relax param.
2347         (lang_size_sections): Change boolean `relax' param to boolean *.
2348         Adjust call to size_input_section.  Make use of insert_pad to
2349         place pad after the assignment statement.  If relaxing, zap
2350         padding statements.
2351         (reset_memory_regions): Reset output_bfd section sizes too.
2352         (relax_again): Move to..
2353         (lang_process): ..here.  Adjust call to lang_size_sections, and
2354         remove duplicated code.
2355         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2357 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
2359         * ld.texinfo: Document that fill values now use the four least
2360         significant bytes.
2361         * emulparams/elf32fr30.sh (NOP): Update.
2362         * emulparams/elf32mcore.sh: Likewise.
2363         * emulparams/elf64_s390.sh: Likewise.
2364         * emulparams/elf_i386.sh: Likewise.
2365         * emulparams/elf_i386_be.sh: Likewise.
2366         * emulparams/elf_i386_chaos.sh: Likewise.
2367         * emulparams/elf_i386_ldso.sh: Likewise.
2368         * emulparams/elf_s390.sh: Likewise.
2369         * emulparams/elf_x86_64.sh: Likewise.
2370         * emulparams/i386moss.sh: Likewise.
2371         * emulparams/i386nw.sh: Likewise.
2372         * emulparams/m68kelf.sh: Likewise.
2373         * scripttempl/elf.sc: Update NOP comment.
2374         * scripttempl/elfi370.sc: Likewise.
2375         * scripttempl/elfm68hc11.sc: Likewise.
2376         * scripttempl/elfm68hc12.sc: Likewise.
2377         * scripttempl/nw.sc: Likewise.
2379 2001-08-15  Tom Rix <trix@redhat.com>
2381         * ldgram.y (saved_script_handle): Initialize to NULL.
2382         * ldmain.c (main): Change check on saved_script_handle.
2384 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
2386         * emultempl/elf32.em: Formatting fixes.
2387         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
2388         looking at sec->owner.
2389         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2390         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
2391         unused code, and reorganize orphan section placement code.
2393         * ldlang.c (wild_doit): Rename to lang_add_section.
2394         * ldlang.h: Here too.
2395         * mpw-elfmips.c: And here.
2396         * emultempl/beos.em: And here.
2397         * emultempl/elf32.em: And here.
2398         * emultempl/hppaelf.em: And here.
2399         * emultempl/pe.em: And here.
2401 2001-08-13  Richard Henderson  <rth@redhat.com>
2403         * emultempl/needrelax.em: New file.
2404         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2405         * Makefile.am (eelf64_ia64.c): Depend on it.
2406         * Makefile.in: Rebuild.
2408 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
2410         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2411         output_section is set non-NULL.
2413         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2414         `true' for SEC_EXCLUDE sections so that the generic code doesn't
2415         needlessly create an output_section_statement.  Treat a correctly
2416         named output_section_statement with NULL bfd_section as compatible.
2418 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
2420         * emultempl/generic.em: Support EXTRA_EM_FILE.
2421         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2422         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2423         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2424         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2425         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2426         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2427         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2428         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2429         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2430         LDEMUL_FIND_POTENTIAL_LIBRARIES.
2432 2001-08-12  Richard Henderson  <rth@redhat.com>
2434         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2435         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2436         scripttempl/v850.sc: Keep .jcr data.
2438 2001-08-12  H.J. Lu  <hjl@gnu.org>
2439             Andrew Haley  <aph@cambridge.redhat.com>
2440             Nick Clifton  <nickc@redhat.com>
2442         * ldgram.y (had_script): Change name to saved_script_handle.
2443         Change type to file handle.
2444         * ld.h (had_script): Rename and retype.
2445         * ldfile.c (ldfile_open_command_file): Save the file handle
2446         used in saved_script_handle.
2447         * lexsup.c (parse_args): Do not allow -c option to alter
2448         saved_script_handle.
2449         * ldmain.c (main): Print out the linker script used if
2450         --verbose is given.  Check saved_script_handle to obtain the
2451         external linker script used, or if NULL, dump the builtin
2452         script.
2453         * ld.texinfo: Document that --verbose now dumps the linker
2454         script used, regardless of whether it was an internal or an
2455         external script.
2457 2001-08-10  Andreas Jaeger  <aj@suse.de>
2459         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2460         to build warnings.
2461         * configure: Regenerate.
2463 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
2465         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2467         * scripttempl/elf.sc: Move non-text .dynamic section before
2468         .plt/.got/.sdata* group.
2469         (OTHER_GOT_SECTIONS): Move to immediately after .got.
2470         (OTHER_SDATA_SECTIONS): Add.
2471         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2472         OTHER_GOT_SECTIONS.
2473         * emulparams/crislinux.sh: Likewise.
2474         * emulparams/elf32b4300.sh: Likewise.
2475         * emulparams/elf32bmip.sh: Likewise.
2476         * emulparams/elf32bmipn32.sh: Likewise.
2477         * emulparams/elf32bsmip.sh: Likewise.
2478         * emulparams/elf32btsmip.sh: Likewise.
2479         * emulparams/elf32ebmip.sh: Likewise.
2480         * emulparams/elf32elmip.sh: Likewise.
2481         * emulparams/elf32l4300.sh: Likewise.
2482         * emulparams/elf32lmip.sh: Likewise.
2483         * emulparams/elf32lsmip.sh: Likewise.
2484         * emulparams/elf32ltsmip.sh: Likewise.
2485         * emulparams/elf64bmip.sh: Likewise.
2486         * emulparams/elf64btsmip.sh: Likewise.
2487         * emulparams/elf64ltsmip.sh: Likewise.
2489 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
2491         * genscripts.sh: Source the emulparams script before each output
2492         script is generated so that variables like `RELOCATING' may affect
2493         variables defined in the emulparams script.
2495 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
2497         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2498         order.
2500         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2501         ie. iterate over wild_statement.section_list.
2502         (gld${EMULATION_NAME}_place_orphan): Likewise.
2504 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2506         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2507         .fini[0-4] sections used by _exit
2508         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2509         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2510         * scripttempl/elfm68hc11.sc: Likewise.
2512 2001-08-03  H.J. Lu  <hjl@gnu.org>
2514         * emultempl/beos.em (init): Add the missing initialization.
2516 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
2518         * ld.texinfo (Input Section Basics): Clarify ordering of output
2519         sections.
2520         * ldlang.c (callback_t): Add wildcard_list param.
2521         (walk_wild_section): Remove "section" param.  Rewrite for
2522         lang_wild_statement_type change.  Remove unique_section_p test.
2523         (walk_wild_file): Remove "section" param.
2524         (walk_wild): Remove "section" and "file" params.
2525         (lang_gc_wild): Likewise.
2526         (wild): Likewise.  Modify for lang_wild_statement_type change.
2527         (wild_sort): Likewise.  Add "sec" param.
2528         (gc_section_callback): Likewise.
2529         (output_section_callback): Likewise.  Do unique_section_p test.
2530         (map_input_to_output_sections): Modify call to wild.
2531         (lang_gc_sections_1): Likewise.
2532         (print_wild_statement): Modify for lang_wild_statement_type
2533         change.
2534         (lang_add_wild): Replace filename, filenames_sorted param with
2535         filespec.  Replace section_name, sections_sorted,
2536         exclude_filename_list with section_list.
2537         * ldlang.h (lang_add_wild): Here too.
2538         (lang_wild_statement_type): Replace section_name, sections_sorted,
2539         and exclude_filename_list with section_list.
2540         * ldgram.y (current_file): Delete.
2541         (%union): Add wildcard_list.
2542         (file_NAME_list): Set type to wildcard_list.  Build a linked list
2543         rather than calling lang_add_wild for each entry.
2544         (input_section_spec_no_keep): Call lang_add_wild here instead.
2545         * ld.h (struct wildcard_list): Declare.
2546         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2548 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2550         * ldmain.c (main): initialize link_info.pei386_auto_import
2551         * pe-dll.c: new tables for auto-export filtering
2552         (auto_export): change API, pass abfd for contextual filtering.
2553         Loop thru tables of excluded symbols instead of comparing
2554         "by hand".
2556 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
2558         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2559         static variable current_sec (static struct sec *). Add
2560         forward declaration for add_bfd_to_link.
2561         (process_def_file): Don't export undefined symbols. Do not
2562         export symbols starting with  "_imp__".  Call auto_export()
2563         with new API.
2564         (pe_walk_relocs_of_symbol): New function.
2565         (generate_reloc): add optional extra debugging
2566         (pe_dll_generate_def_file): eliminate extraneous initial blank
2567         line in output
2568         (make_one): enlarge symtab to make room for __nm__ symbols
2569         (DATA auto-import support).
2570         (make_singleton_name_thunk): New function.
2571         (make_import_fixup_mark): New function.
2572         (make_import_fixup_entry): New function.
2573         (pe_create_import_fixup): New function.
2574         (add_bfd_to_link): Specify that 'name' argument is a CONST
2575         char *.
2576         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2577         declare new functions pe_walk_relocs_of_symbol and
2578         pe_create_import_fixup.
2579         * emultempl/pe.em: add new options --enable-auto-import,
2580         --disable-auto-import, and --enable-extra-pe-debug.
2581         (make_import_fixup): New function.
2582         (pe_find_data_imports): New function.
2583         (pr_sym): New function.
2584         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2585         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
2586         CODE.
2588 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2590         * ld.texinfo: add additional documentation for
2591         --export-all-symbols.  Document --out-implib,
2592         --enable-auto-image-base, --disable-auto-image-base,
2593         --dll-search-prefix, --enable-auto-import, and
2594         --disable-auto-import.
2595         * ldint.texinfo: Add detailed documentation on auto-import
2596         implementation.
2598 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
2600         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2601         example.
2603 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
2605         * Makefile.am: Update dependencies with "make dep-am".
2606         * Makefile.in: Regenerate
2608 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
2610         * ldcref.c (check_section_sym_xref): New function.
2611         (check_nocrossrefs): Call it.
2612         (check_nocrossref): Interate over h->refs here instead of..
2613         (check_refs): ..here.  Pass in the symbol name, section, and bfd
2614         rather than hash_entry pointers.
2615         (struct check_refs_info): Keep symbol name rather than hash entry.
2616         Remove "same".
2617         (check_reloc_refs): Tweak for above changes in check_refs_info.
2618         Only report references to section syms when symname is NULL to
2619         prevent duplicate messages for the same reloc.
2621 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2623         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2624         available.  Do not print NULL trees.
2625         (exp_print_token): Print unknown tokens with values > 126 as
2626         decimal values not ASCII characters.
2628         * ldlang.c (lang_leave_overlay): If a region is specified assign
2629         it to all sections inside the overlay unless they have been
2630         assigned to the own, non-default, memory region.
2632         * README: Add header for consistency with other README files.
2634 2001-07-14  H.J. Lu  <hjl@gnu.org>
2636         * emultempl/elf32.em (output_prev_sec_find): Never return
2637         bfd_abs_section_ptr, bfd_com_section_ptr nor
2638         bfd_und_section_ptr.
2640 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
2642         * Makefile.am (em32relf.c): Change dependency from generic.em to
2643         elf32.em.
2644         * Makefile.in: Regenerate.
2646 2001-07-14  matthew green  <mrg@eterna.com.au>
2648         * configure.tgt (i386-*-netbsdelf*): New target.
2649         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2651 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
2653         * emultempl/elf32.em (output_prev_sec_find): New.
2654         (place_orphan): Use it.
2656 2001-07-11  H.J. Lu  <hjl@gnu.org>
2658         * ldmain.c (main): Fix typos in the last change.
2660 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
2662         * ldmain.c (main): Disallow -F and -f without -shared.
2664 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
2666         * emultempl/pe.em (after_open): Check for the output_bfd not
2667         having any coff_data structure allocated to it.
2669 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
2671         * emultempl/elf32.em: Do not assuming that contents of the buffer
2672         returned from basename function will remain unchanged accross other
2673         function calls.
2675 2001-07-03  H.J. Lu  <hjl@gnu.org>
2677         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2678         2001-07-03. It creates dynamic entries even for static binaries.
2680 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
2682         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2683         (DYNAMIC): Use it to reserve few dynamic entries for
2684         post-linking tools.
2686 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
2688         * emulparams/hppa64linux.sh: New file.
2689         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2690         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2691         (ehppa64linux.c): Add rule to make it.
2692         Run "make dep-am".
2693         * Makefile.in: Regenerate.
2695 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
2697         * ld.texinfo (Options, -r): Mention restrictions when using
2698         different object formats.
2700 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
2702         * ldlang.c (lang_check): Emit fatal error if relocatable link
2703         between different object flavours with relocations in input.
2705 2001-06-19  H.J. Lu  <hjl@gnu.org>
2707         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2708         (--version-script): Mention the language support.
2710 2001-06-19  H.J. Lu <hjl@gnu.org>
2712         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2714 2001-06-18  H.J. Lu <hjl@gnu.org>
2716         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2717         (diststuff): Add $(MANS).
2718         * Makefile.in: Regenerated.
2720         * ld.1: Removed.
2722 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
2724         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2725         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2726         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2727         * ld.h (args_type): Remove member export_dynamic.  All users
2728         changed to use struct bfd_link_info member.
2730         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2731         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2732         * Makefile.in: Regenerate.
2734 2001-06-18  H.J. Lu  <hjl@gnu.org>
2736         * ldlang.c (init_os): Add the newline to the einfo call.
2737         (lang_check): Likewise.
2738         (lang_do_version_exports_section): Likewise.
2740 2001-06-15  H.J. Lu  <hjl@gnu.org>
2742         * lexsup.c (parse_args); Save optind to report unrecognized
2743         option.
2745 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
2747         * ldlang.c (lang_check): Emit fatal error if relocatable link
2748         between different object flavours.
2750         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2751         Set new link_info member export_dynamic.
2752         * ldmain.c (main): Initialize new link_info member export_dynamic.
2754 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
2756         * ldlang.c (walk_wild): Only call walk_wild_file if
2757         lookup_name returns something.
2758         (lookup_name): If load_symbols fails, return NULL.
2759         (load_symbols): Change to a boolean function.
2760         (open_input_bfds): If load_symbols fails then do not make the
2761         executable.
2763 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
2765         * ldlang.c (record_bfd_errors): Remove.
2767         * emultempl/aix.em: Fix copyright dates.
2769 2001-06-07  Andreas Jaeger  <aj@suse.de>
2771         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2772         (TEXT_START_ADDR): Likewise.
2774 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
2776         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2778 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2780         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2782 2001-05-31  H.J. Lu  <hjl@gnu.org>
2784         * ldlang.c (open_input_bfds): Don't change the bfd error
2785         handler whilst loading symbols.
2787 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
2789         * configure.tgt: Remove i370-mvs architecture, it is not currently
2790         supported.
2792 2001-05-25  H.J. Lu  <hjl@gnu.org>
2794         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2795         like emulparams/aixppc.sh.
2797 2001-05-25  H.J. Lu  <hjl@gnu.org>
2799         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2800         setting of output_filename after bfd_scan_arch.
2801         * emultempl/pe.em: Likewise.
2803 2001-05-25  H.J. Lu  <hjl@gnu.org>
2805         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2806         like emulparams/aixppc.sh.
2808         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2809         instead of ${srcdir}/emultempl/stringify.sed.
2811 2001-05-25  Timothy Wall  <twall@oculustech.com>
2813         * emulparams/elf64_aix.sh: Change settings to match IBM linker
2814         output.
2816 2001-05-25  Alan Modra  <amodra@one.net.au>
2818         * configure.host: Replace linuxoldld with linux*oldld.
2819         * configure.tgt: Likewise.
2821 2001-05-24  H.J. Lu  <hjl@gnu.org>
2823         * emultempl/stringify.sed: Removed again.
2825 2001-05-24  H.J. Lu  <hjl@gnu.org>
2827         * emultempl/aix.em (OUTPUT_ARCH): Defined.
2828         (gld${EMULATION_NAME}_before_parse): Initialize
2829         ldfile_output_architecture, ldfile_output_machine and
2830         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2831         * emultempl/beos.em: Likewise.
2832         * emultempl/elf32.em: Likewise.
2833         * emultempl/linux.em: Likewise.
2834         * emultempl/mipsecoff.em: Likewise.
2835         * emultempl/pe.em: Likewise.
2836         * emultempl/sunos.em: Likewise.
2838 2001-05-24 Tom Rix <trix@redhat.com>
2840         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2841         udate import file format.
2842         (change_symbol_mode) New, same
2843         (is_syscall) New, same
2844         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2845         * emulparams/aixppc64.sh : same
2846         * emulparams/aixrs6.sh : same
2847         * emulparams/ppcmacos.sh : same
2848         * emultempl/aix.em : use strtoull to parse options
2849         * Makefile.am : add eaixppc64 emulation for xcoff64
2850         * Makefile.in : same
2851         * configure.tgt : same
2853         * scripttempl/aix.sc : default text section offset to 0x10000000
2854         default data section offset to 0x20000000
2855         add .sv3264 and .sv64 pseudo sections
2856         loader and debug sections use the currect section offset.
2858         * emultempl/aix.em : Add xcoff64 support
2859         Add -binitfini support
2860         (gld${EMULATION_NAME}_before_parse) -binitfini
2861         (gld${EMULATION_NAME}_parse_args) same
2862         (gld${EMULATION_NAME}_before_allocation) format change for special
2863         sections
2865         * emulparams/aixppc64.sh : New file for xcoff64 support
2867 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
2869         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2870         variable to avoid non-portable shell construct.
2872 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2874         * ldmain.c (get_emulation): Add -mips5 command line argument.
2876 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
2878         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2879         (ELF_INTERPRETER_NAME): Define it.
2880         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2881         it.
2882         * configure.tgt (targ_emul, targ_extra_emuls)
2883         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2884         as primary, elf_i386 as extra.
2885         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2886         (eelf_i386_ldso.c): New rule.
2887         * Makefile.in: Rebuilt.
2889 2001-05-22  Nick Clifton  <nickc@redhat.com>
2891         * lexsup.c (ld_options):  Allow -I to be an alias for
2892         --dynamic-linker.  This is for Solaris compatability.
2893         * ld.texinfo: Document that -I can be used.
2894         * ld.1: Regenerate.
2896 2001-05-16  Alan Modra  <amodra@one.net.au>
2898         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2899         whether an input section is the first one assigned to an output
2900         section.
2901         Assorted formatting fixes.
2903 2001-05-14  DJ Delorie  <dj@delorie.com>
2905         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2906         * Makefile.in: Ditto.
2908 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2910         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2911         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2912         output sections.
2913         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2915 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2917         * ldlang.c (lang_process): Call bfd_merge_sections.
2919 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2921         * ldgram.y: Fix typo.
2923 2001-05-03  H.J. Lu  <hjl@gnu.org>
2925         * emultempl/elf32.em: Include "libiberty.h".
2926         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2927         basename of the bfd filename.
2928         (gld${EMULATION_NAME}_stat_needed): Likewise.
2929         (gld${EMULATION_NAME}_try_needed): Likewise.
2930         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2932 2001-05-02  H.J. Lu  <hjl@gnu.org>
2934         * emultempl/pe.em: Include <ctype.h>.
2936 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
2938         * emulparams/elf32openrisc.sh: New file.
2940         * Makefile.am: Add OpenRISC target.
2941         * Makefile.in: Regenerated.
2943         * configure.tgt: Add openrisc-*-* mapping.
2945 2001-05-02  Nick Clifton  <nickc@redhat.com>
2947         * emultempl/aix.em: Replace buystring with xstrdup.
2948         * emultempl/beos.em: Replace buystring with xstrdup.
2950 2001-05-02  H.J. Lu  <hjl@gnu.org>
2952         * ldfile.c: Include "libiberty.h".
2953         * ldlex.l: Likewise.
2955         * ldmisc.c (buystring): Removed.
2956         * ldmisc.h: Likewise.
2958         * ldfile.c: Replace buystring with xstrdup.
2959         * ldlang.c: Likewise.
2960         * ldlex.l: Likewise.
2961         * ldmain.c: Likewise.
2962         * ldmisc.c: Likewise.
2963         * lexsup.c: Likewise.
2964         * mpw-eppcmac.c: Likewise.
2966 2001-04-30  Andreas Jaeger  <aj@suse.de>
2968         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2970 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2972         * ldlang.c (load_symbols): Give emulation a chance
2973         to process unrecognized file before fatal error is
2974         reported, not after.
2976 2001-04-27  Sean McNeil <sean@mcneil.com>
2978         * configure.tgt: Add arm-vxworks target.
2979         * scripttempl/armcoff.sc: Support .text or .data as a section name
2980         prefix.
2981         Define _etext.
2983 2001-04-13  J.T. Conklin  <jtc@redback.com>
2985         * ld.texinfo: Document --fatal-warnings.
2986         * ld.1: Regenerate.
2988         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2989         warnings have been turned into errors.
2990         * lexsup.c (OPTION_WARN_FATAL): Define.
2991         (ld_options): Entry for --fatal-warnings.
2992         (parse_args): Handle OPTION_WARN_FATAL.
2993         * ld.h (ld_config_type): Add fatal_warnings field.
2995 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
2997         * ldmain.c (main): Default to discard_sec_merge.
2998         * lexsup.c (OPTION_DISCARD_NONE): Define.
2999         (ld_options): Add --discard-none.
3000         (parse_args): Handle OPTION_DISCARD_NONE.
3001         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3002         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3003         all its input sections match.
3005 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
3007         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3008         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3009         (eelf32ltsmip.c): New target.
3010         (eelf64btsmip.c): Likewise.
3011         (eelf64ltsmip.c): Likewise.
3012         * Makefile.in: Regenerated.
3014         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3015         target.
3016         (mips*-*-linux-gnu*): Likewise.
3018         * emulparams/elf32ltsmip.sh: New. Traditional little endian
3019         MIPS taget.
3020         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3021         target.
3022         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3023         endian target.
3025 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
3027         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3028         correct value of __Stext here.
3029         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3030         .startup section.
3032         * emulparams/crislinux.sh: Remove FIXME.
3034 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
3036         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3037         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3039 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
3041         * configure.tgt (cris-*-*): Change default emulation to criself.
3042         (cris-*-*aout*): New rule.
3044 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
3046         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3047         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3049 2001-03-26  Andreas Jaeger  <aj@suse.de>
3051         * ld.texinfo (Overview): Fix syntax in texi code.
3053 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3055         * ld.texinfo: Put @c man indications to generate the ld man page.
3056         When generating man, define all the variables.  Define SEEALSO
3057         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
3058         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3059         (ld.1): Generate from ld.texinfo.
3060         * Makefile.in: Regenerate.
3062 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
3064         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3065         and '-fdata-sections'. Set the VMA of STABS sections to zero.
3067 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3069         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3070         is an absolute path look only for this file and not along the path.
3072 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3074         * emultempl/elf32.em (OPTION_GROUP): New macro.
3075         Add new option Bgroup to longopts.
3076         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3077         (gld*_list_options): Add -Bgroup and -z defs.
3078         * ld.1: Document -Bgroup and -z defs.
3079         * ld.texinfo: Likewise.
3081 2001-03-07  Michael Meissner  <meissner@redhat.com>
3083         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3084         with sections created by -fdata-sections.
3085         (.dynbss,.bss): Ditto.
3087 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
3089         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3090         after_allocation_default, not gld..._before_allocation.
3092 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
3094         * configure.in (BFD_VERSION): New.
3095         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3096         * configure: Regenerate.
3097         * Makefile.am: Run "make dep-am"
3098         * Makefile.in: Regenerate.
3100 2001-02-26  Timothy Wall  <twall@cygnus.com>
3102         * emulparams/elf64_aix.sh: Add additional read-only sections;
3103         uncomment lines which are now required.
3105 2001-02-26  H.J. Lu  <hjl@gnu.org>
3107         * ldlang.c (open_input_bfds): Set the bfd error handler so
3108         that problems can be caught whilst loading symbols.
3109         (record_bfd_errors): New function: Report BFD errors and mark
3110         the executable output as being invalid.
3112 2001-02-22  Timothy Wall  <twall@cygnus.com>
3114         * configure.host: Add configuration for ia64-*-aix*.
3115         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3116         Add dependencies for eelf64_aix.c.
3117         * Makefile.in: Regenerate.
3118         * configure.tgt: Add ia64-*-aix* mapping.
3119         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3120         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
3121         AIX-specific test.
3123 2001-02-20  H.J. Lu  <hjl@gnu.org>
3125         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3126         false if we found the file.
3128 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
3130         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3131         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3133 2001-02-18  lars brinkhoff  <lars@nocrew.org>
3135         * Makefile.am: Add PDP-11 target.
3136         * configure.tgt: Likewise.
3137         * emulparams/pdp11.sh: New file.
3139 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
3141         * configure.host: Add a generic FreeBSD configuration entry such that
3142         all [modern] FreeBSD systems on all platforms will look the same.
3144 2001-02-14  H.J. Lu  <hjl@gnu.org>
3146         * configure.tgt: Remove mention of earmelf_linux26.
3148 2001-02-13  Richard Henderson  <rth@redhat.com>
3150         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3152 2001-02-13  H.J. Lu  <hjl@gnu.org>
3154         * ldexp.h (node_type): Add etree_provided.
3155         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3156         type to etree_provided if defined by PROVIDE. Allow updating
3157         for etree_provided.
3158         (exp_print_tree): Handle etree_provided.
3159         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3160         etree_provided.
3162 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
3164         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3165         .IA_64.unwind.* pattern to unwind table section and
3166         .IA_64.unwind_info* pattern to unwind info section.
3168 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3170         * Makefile.am: Add linux target for S/390.
3171         * Makefile.in: Likewise.
3172         * configure.host: Likewise.
3173         * configure.tgt: Likewise.
3174         * emulparams/elf64_s390.sh: New file.
3175         * emulparams/elf_s390.sh: New file.
3177 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
3179         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3180         targ_extra_libpath.
3181         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3183 2001-02-06  Philip Blundell  <philb@gnu.org>
3185         * Makefile.am: Remove mention of earmelf_linux26.
3186         * Makefile.in: Regenerate.
3188 2001-02-04  Philip Blundell  <philb@gnu.org>
3190         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3191         * emulparams/armelf_linux26.sh: Delete.
3192         * configure.tgt: Remove mention of armelf_linux26 emulation.
3194 2001-02-01  Nick Clifton  <nickc@redhat.com>
3196         * ld.1: Replace occurances of -oformat with --oformat.
3198 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
3200         * ldlang.c (lang_leave_overlay): Don't set lma_region when
3201         load_base is specified.
3203 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
3205         * emultempl/elf32.em: Correct spelling in comments and listed
3206         options.
3208 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
3210         * ldlang.c (lang_leave_overlay): Only set lma_region from the
3211         default for the first section of a group of overlay sections.
3213 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
3215         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3216         * Makefile.in: Regenerate.
3217         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3218         Check for null tool_dir.
3220 2001-01-16  Jim Wilson  <wilson@redhat.com>
3222         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3223         and IA_64.unwind.info.
3225 2001-01-16  H.J. Lu  <hjl@gnu.org>
3227         * ldlang.c (lang_check): Merge the private data only if the
3228         input file has contents.
3230 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
3232         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3234         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3235         enabling search for libmilli.  On a relocatable link, make .text
3236         sections unique.
3237         (LDEMUL_AFTER_PARSE): Define.
3238         (hppaelf_finish): Correct spelling of relocatable in comments.
3240         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3241         rummage through the script for sections on the unique list.
3242         Correct length of strncmp for ".note".
3243         (gld${EMULATION_NAME}_check_needed): Rearrange function.
3245         * ldlang.c (unique_section_list): New var.
3246         (unique_section_p): New function.
3247         (walk_wild_section): Don't match sections on unique_section_list.
3248         (lang_add_unique): New function.
3249         Correct spelling of relocatable in comments.
3251         * ldlang.h (struct unique_sections): Declare.
3252         (unique_section_list): Declare.
3253         (unique_section_p): Declare.
3254         (lang_add_unique): Declare.
3256         * lexsup.c (ld_options): Allow --unique to take an optional arg.
3257         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3259         * ld.texinfo (--unique): Update.
3261 2001-01-13  Nick Clifton  <nickc@redhat.com>
3263         * lexsup.c (parse_args): Remove spurious white space.
3265 2001-01-12  Nick Clifton  <nickc@redhat.com>
3267         * lexsup.c (parse_args): Update copyright date.
3269 2001-01-12  Philip Blundell  <pb@futuretv.com>
3271         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3273 2001-01-10  Kazu Hirata  <kazu@hxi.com>
3275         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
3276         * scripttempl/h8300h.sc: Fix formatting.
3277         * scripttempl/h8300s.sc: Likewise.
3278         * scripttempl/h8500.sc: Likewise.
3279         * scripttempl/h8500b.sc: Likewise.
3280         * scripttempl/h8500c.sc: Likewise.
3281         * scripttempl/h8500m.sc: Likewise.
3282         * scripttempl/h8500s.sc: Likewise.
3284 2000-01-07  David O'Brien  <obrien@BSDi.com>
3286         * emultempl/elf32.em: Only perform Linux ld hints processing when
3287         targeting Linux.
3289 2001-01-07  Philip Blundell  <philb@gnu.org>
3291         * ld.texinfo (Bug Reporting): Update email address for reports.
3293 2000-12-31  Nick Clifton  <nickc@redhat.com>
3295         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3296         options by checking for a return value of '?' not -1.
3298 2000-12-28  Nick Clifton  <nickc@redhat.com>
3300         * lexsup.c (struct ld_option): Add new enum value:
3301         EXACTLY_TWO_DASHES.
3302         (ld_options[]): Change -omagic, -output and -oformat options
3303         to be EXACTLY_TWO_DASHES.
3304         (OUTPUT_COUNT): Use ARRAY_SIZE.
3305         (parse_args): Change parameter 'argc' to unsigned.
3306         Place EXACTLY_TWO_DASHES options into new really_longopts
3307         array.
3308         If getopt_long_only fails, try calling getopt_long using the
3309         really_longopts array.
3310         (help): Print a double dash for both EXACTLY_TWO_DASHES and
3311         TWO_DASHES options.
3313         * ldlex.h: Fix prototype of parse_args.
3315         * ld.texinfo: Document that long options starting with 'o'
3316         must be preceeded by two dashes.  Change example of a single
3317         dashed long option from -oformat to -trace-symbol.
3319 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3321         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3322         (longopts[]): New --no-default-excludes option.
3323         (gld_${EMULATION_NAME}_list_options): Document.
3324         (gld_${EMULATION_NAME}_parse_args): Handle.
3326 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3328         * ldlang.c (new_stat): Revert the last beautification with "innocent"
3329         whitespace, it breaks the K&R C preprocessor.
3331 2000-12-11  DJ Delorie  <dj@redhat.com>
3333         * ld.texinfo: Add notes about --whole-archive and gcc.
3335 2000-11-18  Fred Fish  <fnf@be.com>
3337         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3338         (ld_options): Entry for --allow-shlib-undefined.
3339         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3340         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3341         to false.
3342         * ld.texinfo: Document new command line switch.
3344 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
3346         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3347         .fixup is actually read/write.
3348         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3349         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3350         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3352 2000-12-11  Jan Hubicka  <jh@suse.cz>
3354         * NEWS: Add note about x86_64 architecture.
3356 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
3358         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3359         Set DWARF2 sections to a VMA of zero.
3361 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
3363         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3364         New targets.
3365         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3366         (sparc*-*-rtems*): Switched from a.out to ELF.
3368 2000-11-30  Jan Hubicka  <jh@suse.cz>
3370         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3371         (eelf_x86_64.c): New.
3372         * Makefile.in: Regenerate.
3373         * configure.tgt: Add support for x86_64-*-linux-gnu*.
3374         * emulparams/elf_x86_64.sh: New.
3376 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
3378         * emulparams/crislinux.sh (ENTRY): Change back to _start.
3379         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3381         * scripttempl/crisaout.sc: Change all RELOCATING not related to
3382         merging non-a.out sections into CONSTRUCTING.
3384 2000-11-28  Nick Clifton  <nickc@redhat.com>
3386         * ld.1 (COPYING): Mention that the GNU Free Documentation
3387         License is present in the sources, but not the output, and
3388         also available from the GNU website.
3389         (GNU Free Documentation License): Comment out this section.
3391 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
3393         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3394         does not use them.
3396 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
3398         * ld.1: Remove old date so it does not give the impression the manpage
3399         is way out of date.
3401 2000-11-24  Nick Clifton  <nickc@redhat.com>
3403         * configure.tgt (xscale-coff): Add target.
3404         (xscale-elf): Add target.
3406 2000-11-24  Fred Fish  <fnf@be.com>
3408         * ldmain.c (main): Remove redundant init of config.make_executable
3409         to true.
3411 2000-11-15  Richard Henderson  <rth@redhat.com>
3413         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3415 2000-11-14  Kazu Hirata  <kazu@hxi.com>
3417         * scripttempl/h8300.sc: Fix formatting.
3418         * scripttempl/h8300h.sc: Likewise.
3419         * scripttempl/h8300s.sc: Likewise.
3421 2000-11-14  Denis Chertykov  <denisc@overta.ru>
3423         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3425 2000-11-09  Philip Blundell  <pb@futuretv.com>
3427         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3428         around orphan sections whose names can be represented in C.
3430 2000-11-07  Jim Wilson  <wilson@redhat.com>
3432         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3433         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
3435 2000-11-06  Nick Clifton  <nickc@redhat.com>
3437         * ld.texinfo: Add GNU Free Documentation License.
3438         * ldint.texinfo: Add GNU Free Documentation License.
3439         * ld.1: Add GNU Free Documentation License.
3441 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
3443         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3444         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3446         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3447         Move 2000-11-02 Makefile.in changes to this file.
3448         * Makefile.in: Regenerate.
3450 2000-11-03  Nick Clifton  <nickc@redhat.com>
3452         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3453         constructors and destructors.
3454         * scripttempl/h8300h.sc: Ditto.
3455         * scripttempl/h8300s.sc: Ditto.
3456         * scripttempl/h8500.sc: Ditto.
3457         * scripttempl/h8500b.sc: Ditto.
3458         * scripttempl/h8500c.sc: Ditto.
3459         * scripttempl/h8500m.sc: Ditto.
3460         * scripttempl/h8500s.sc: Ditto.
3461         * scripttempl/v850.sc: Ditto.
3462         * scripttempl/w65.sc: Ditto.
3463         * scripttempl/z8000.sc: Ditto.
3465 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
3467         * Makefile.in (e_i386_chaos.c): New rule.
3468         (ALL_EMULATIONS): Added e_i386_chaos.o.
3469         * emulparams/elf_i386_chaos.sh: New file.
3470         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3472 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
3474         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3475         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3476         Fix sed invocation, so that it coped with '/' in Solaris 64bit
3477         library path suffix.
3478         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3480 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
3482         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3483         for consecutive sections.
3485 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
3487         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3488         options.
3489         * ld.texinfo: Added notes about this new option.
3491 2000-10-16  Nick Clifton  <nickc@redhat.com>
3493         * emultempl/pe.em (_after_open): Add tests of return values from
3494         bfd functions.  Emit appropriate error messages if necessary.
3496 2000-10-13  Nick Clifton  <nickc@redhat.com>
3498         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3499         local variables - they are not used, but leave in the call to
3500         bfd_canonicalize_symtab.
3501         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3502         pe_dll_search_prefix.
3504 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
3506         * emultempl/pe.em (pe_dll_search_prefix): New variable,
3507         (longopts): New --dll-search-prefix option.
3508         (gld_${EMULATION_NAME}_list_options): Document.
3509         (gld_${EMULATION_NAME}_parse_args): Handle.
3510         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3511         dynamically, search for a dll named '<prefix><basename>.dll'
3512         in preference to 'lib<basename>.dll' if --dll-search-prefix
3513         is specified.
3515 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3517         * ldlang.c (section_already_linked): Set kept_section instead of
3518         sec->comdat->sec.
3520 2000-10-10  Kazu Hirata  <kazu@hxi.com>
3522         * deffile.h: Fix formatting.
3523         * lexsup.c: Likewise.
3524         * mri.c: Likewise.
3526 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3528         * pe-dll.c (make_one): Do not generate code thunk for DATA
3529         exports.
3530         (process_def_file): deduce DATA flag for auto-export sumbols.
3532 2000-10-09  Kazu Hirata  <kazu@hxi.com>
3534         * ld.h: Fix formatting.
3535         * ldcref.c: Likewise.
3536         * ldctor.h: Likewise.
3537         * ldemul.c: Likewise.
3538         * ldemul.h: Likewise.
3539         * ldexp.c: Likewise.
3540         * ldexp.h: Likewise.
3541         * ldfile.c: Likewise.
3542         * ldfile.h: Likewise.
3543         * ldlang.c: Likewise.
3544         * ldlang.h: Likewise.
3545         * ldmain.c: Likewise.
3546         * pe-dll.c: Likewise.
3548         * pe-dll.c: Revert some formatting fixes.
3550 2000-10-08  Kazu Hirata  <kazu@hxi.com>
3552         * pe-dll.c: Fix formatting.
3554 2000-10-05  Kazu Hirata  <kazu@hxi.com>
3556         * ldlang.c: Fix formatting.
3558 2000-10-03  DJ Delorie  <dj@redhat.com>
3560         * pe-dll.c (fill_edata): initialize entire block
3561         (make_one): fill in correct section.
3563 2000-10-03  Kazu Hirata  <kazu@hxi.com>
3565         * ldexp.c: Fix formatting.
3567 2000-10-02  DJ Delorie  <dj@redhat.com>
3569         * emultempl/pe.em (gld_*_after_open): detect case where there two
3570         import libraries for same dll; rename one to ensure proper link
3571         order.
3573         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3574         typo
3575         (generate_edata): fix typo
3577 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
3579         * scripttempl/crisaout.sc (ENTRY): Now __start.
3580         (.text): Add default setting for __start.
3581         Remove CONSTRUCTORS handling.
3582         (/DISCARD/): Add .gnu.warning.*.
3583         * emulparams/crislinux.sh (ENTRY): Now __start.
3584         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3585         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3586         (ENTRY): Now __start.
3587         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3588         (EXECUTABLE_SYMBOLS): Add default setting for __start.
3590 2000-09-29  Kazu Hirata  <kazu@hxi.com>
3592         * deffile.h: Fix formatting.
3593         * ld.h: Likewise.
3594         * ldcref.c: Likewise.
3595         * ldctor.c: Likewise.
3596         * ldctor.h: Likewise.
3597         * ldemul.c: Likewise.
3598         * ldemul.h: Likewise.
3599         * ldexp.c: Likewise.
3600         * ldexp.h: Likewise.
3601         * ldfile.c: Likewise.
3602         * ldfile.h: Likewise.
3603         * ldlang.c: Likewise.
3604         * ldlang.h: Likewise.
3605         * lexsup.c: Likewise.
3606         * mri.c: Likewise.
3607         * pe-dll.c: Likewise.
3609 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3611         * pe-dll.c (process_def_file): Uninitialized data wasn't
3612         exported with --export-all-symbols switch.
3614 2000-09-28  DJ Delorie  <dj@redhat.com>
3616         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3617         noname work properly.
3619 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
3621         * ld.texinfo (HPPA ELF32): New section.
3623         * emultempl/hppaelf.em (group_size): New.
3624         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3625         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3626         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
3627         options to prevent abbreviations matching.
3628         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
3629         (PARSE_AND_LIST_ARGS_CASES): Handle it.
3631 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3633         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3634         on the m68*-*-elf target.  Make it support COFF input objects.
3636 2000-09-21  Kazu Hirata  <kazu@hxi.com>
3638         * ldmain.c: Fix formatting.
3639         * ldmisc.c: Likewise.
3640         * ldver.c: Likewise.
3641         * ldwrite.c: Likewise.
3643 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3645         * ldwrite.c (clone_section): Silence gcc warnings.
3647 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3649         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3650         out of memory failure.
3652         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3653         (clone_section): Handle out of memory failures.  Rename var to
3654         avoid c++ reserved word.
3656 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3658         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3659         stub_name param to stub_sec_name.
3660         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3662 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3664         * emultempl/m68kelf.em: New file.
3665         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3666         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3667         * Makefile.in: Regenerate.
3669 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3671         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3672         only as needed.
3674 2000-09-13  Nick Clifton  <nickc@redhat.com>
3676         * ldmain.c (multiple_definition): Disable relaxation if
3677         multiple symbol definitions are encountered - otherwise the
3678         linker could abort with an assertion failure.
3680 2000-09-10  Nick Clifton  <nickc@redhat.com>
3682         * mri.c: Fix formatting.
3684 2000-09-07  H.J. Lu  <hjl@gnu.org>
3686         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3687         * configure: Rebuild.
3689 2000-09-07  H.J. Lu  <hjl@gnu.org>
3691         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3692         * Makefile.in: Rebuild.
3694 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
3696         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3697         broken list handling.  Create __start_SECNAME and __stop_SECNAME
3698         when no place-holder.  Add some comments.  Test both SEC_CODE and
3699         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3700         Handle case where no output section statement created.
3702 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
3704         * configure.tgt (sh-*-linux*): Added.
3705         * Makefile.am: Added eshelf_linux and eshlelf_linux.
3706         * Makefile.in: Rebuilt.
3707         * emulparams/shelf_linux.sh: New file.
3708         * emulparams/shlelf_linux.sh: New file.
3710 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
3712         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3713         try shuffling sections when the orphan happens to be the place
3714         holder.  Keep count of unique section names generated so we speed
3715         the search for a new name.
3717 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
3719         * configure: Rebuilt with new libtool.m4.
3721 2000-09-05  Nick Clifton  <nickc@redhat.com>
3723         * Makefile.in: Regenerate.
3724         * aclocal.m4: Regenerate.
3725         * configure: Regenerate.
3726         * config.in: Regenerate.
3727         * po/ld.pot: Regenerate.
3729         * ldint.texinfo: Remove CVS revision marker - it foils local
3730         comparisons.
3732         * emultempl/ticoff.em: Remove extraneous comma.
3734 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
3736         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3737         to stub section flags.
3738         (hppa_for_each_input_file_wrapper): New.
3739         (hppa_lang_for_each_input_file): New.
3740         (lang_for_each_input_file): Define to call above.
3741         (multi_subspace): New.
3742         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3743         (PARSE_AND_LIST_PROLOGUE): Define.
3744         (PARSE_AND_LIST_LONGOPTS): Define.
3745         (PARSE_AND_LIST_OPTIONS): Define.
3746         (PARSE_AND_LIST_ARGS_CASES): Define.
3747         (hppaelf_finish): Call elf32_hppa_set_gp.
3748         (hppaelf_set_output_arch): Remove.
3749         (LDEMUL_SET_OUTPUT_ARCH): Remove.
3751         * emulparams/hppalinux.sh (ELFSIZE): Define.
3752         (MACHINE): Define.
3753         (OTHER_READONLY_SECTIONS): Define.
3754         (DATA_PLT): Define.
3755         (GENERATE_SHLIB_SCRIPT): Define.
3757         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
3758         to const throughout.  Change `void *' to `PTR' throughout.
3759         (lang_memory_default): Function is local to file, add `static'.
3761         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3762         (ehppalinux.c): Likewise.
3763         (earmelf.c): Likewise.
3764         (earmelf_linux.c): Likewise.
3765         (earmelf_linux26.c): Likewise.
3766         * Makefile.in: Regenerate.
3768         * ld.h (ld_config_type): Add unique_orphan_sections.
3769         * lexsup.c (OPTION_UNIQUE): Define.
3770         (ld_options): Add "--unique".
3771         (parse_args): Handle it.
3772         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3773         search for an existing output section if unique_orphan_sections is
3774         set.  Make use of bfd_get_unique_section_name rather than
3775         duplicating code here.
3776         * ld.texinfo: Describe --unique.
3778         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3779         optional arg to split-by-file.
3780         (parse_args): Handle them.
3781         * ld.texinfo: Update description of these options.
3782         * ldwrite.c (clone_section): Pass in the section name.  Replace
3783         local code with bfd_get_unique_section_name.
3784         (split_sections): Tidy code and comments.  Use a list traversal
3785         more appropriate to the list construction.  Handle cooked section
3786         sizes.  Split when split_by_reloc reached rather than exceeded.
3787         Track section size and split when split_by_file reached.  Fix
3788         link_order_tail (even though it's not used).
3789         (ldwrite): Modify condition for calling split_sections to suit
3790         changed split_by_reloc and split_by_file.
3791         * ldmain.c (main): Init config.split_by_reloc and
3792         config.split_by_file to -1.
3793         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3794         Change split_by_file to bfd_size_type.
3796 2000-09-02  Nick Clifton  <nickc@redhat.com>
3798         * configure.in: Increase version number to 2.10.91.
3799         * NEWS: Mention new ability to support removal of duplicate DWARF2
3800         debug information.
3801         * configure: Regenerate.
3802         * aclocal.m4: Regenerate.
3803         * config.in: Regenerate.
3805 2000-09-02  Daniel Berlin <dberlin@redhat.com>
3807         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3808         sections.
3809         * scripttempl/elf32avr.sc: Ditto.
3810         * scripttempl/elfd10v.sc: Ditto.
3811         * scripttempl/elfd30v.sc: Ditto.
3812         * scripttempl/elfi370.sc: Ditto.
3813         * scripttempl/elfm68hc11.sc: Ditto.
3814         * scripttempl/elfm68hc12.sc: Ditto.
3815         * scripttempl/elfi386beos.sc: Ditto.
3816         * scripttempl/v850.sc: Ditto.
3818 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
3820         * acinclude.m4: Include libtool and gettext macros from the
3821         top level.
3822         * aclocal.m4, configure: Rebuilt.
3824 2000-08-25  Nick Clifton  <nickc@redhat.com>
3826         * ldlang.c (open_output): When choosing the target for a
3827         particular endianness, do nothing if the target is not
3828         supported.
3830 2000-08-25  H.J. Lu  <hjl@gnu.org>
3832         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3833         check -rpath nor LD_RUN_PATH for cross link.
3834         * ld.texinfo: Document the change.
3836 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
3838         * NEWS: Mention support for CRIS.
3840 2000-08-23  H.J. Lu  <hjl@gnu.org>
3842         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3843         the current runpath list from bfd_elf_get_runpath_list ()
3844         before search.
3846 2000-08-22  H.J. Lu  <hjl@gnu.org>
3848         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3849         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3850         LD_LIBRARY_PATH for native linker. Display the needed DSO if
3851         trace_file_tries is non-zero.
3852         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3853         if trace_file_tries is non-zero.
3855         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3856         * NEWS: Mention it.
3858 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
3860         * NEWS: Mention i860 support.
3862 2000-08-14  Andreas Schwab  <schwab@suse.de>
3864         * scripttempl/elf.sc: Fix last change to use correct comment
3865         syntax.
3867 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
3869         * scripttempl/elf.sc: Add a comment giving the correspondence
3870         between sections, per-datum sections, and linkonce sections.  Make
3871         the comment true even for .bss, .sdata, .sdata2, .sbss, and
3872         .sbss2.
3874 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
3876         * emulparams/elf32_i860.sh: New file.
3877         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3878         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3879         (eelf32_i860.c): New rule.
3880         * Makefile.in: Regenerate.
3882 2000-08-10  Nick Clifton  <nickc@cygnus.com>
3884         * emulparams/mipspe.sh (ENTRY): Add definition.
3886 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
3888         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3889         in error message.
3891 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3893         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3894         the final size of .bss section.
3895         * scripttempl/elfm68hc12.sc: Likewise.
3897 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
3899         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3900         gld${EMULATION_NAME}_parse_args for consistency.  Combine
3901         lastoptind and prevoptind vars, and keep track of last optind.
3902         (gld_${EMULATION_NAME}_list_options): Rename to
3903         gld${EMULATION_NAME}_list_options.
3905 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
3907         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3908         (i586-sco-sysv5uw7.1.0).
3910 2000-07-27  H.J. Lu  <hjl@gnu.org>
3912         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3913         (PARSE_AND_LIST_PROLOGUE): New.
3914         (PARSE_AND_LIST_LONGOPTS): Likewise.
3915         (PARSE_AND_LIST_OPTIONS): Likewise.
3916         (PARSE_AND_LIST_ARGS_CASES): Likewise.
3917         (PARSE_AND_LIST_EPILOGUE): Likewise.
3919 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
3921         * emultempl/armelf.em: Elide functions common to elf32.em,
3922         ie. most of the file.
3923         (arm_elf_after_open): New.  Do arm specific things then call
3924         gld${EMULATION_NAME}_after_open.
3925         (arm_elf_before_allocation): New.  Call
3926         gld${EMULATION_NAME}_before_allocation then do arm specifics.
3927         (PARSE_AND_LIST_PROLOGUE): Define.
3928         (PARSE_AND_LIST_SHORTOPTS): Define.
3929         (PARSE_AND_LIST_LONGOPTS): Define.
3930         (PARSE_AND_LIST_OPTIONS): Define.
3931         (PARSE_AND_LIST_ARGS_CASES): Define.
3932         (LDEMUL_AFTER_OPEN): Define.
3933         (LDEMUL_BEFORE_ALLOCATION): Define.
3934         (LDEMUL_BEFORE_PARSE): Define.
3935         (LDEMUL_FINISH): Define.
3937         * emultempl/hppaelf.em: Similarly zap most of this file.
3938         (hppaelf_add_stub_section): Prototype.
3939         (hppaelf_layaout_sections_again): Prototype.
3940         (hook_in_stub): Prototype.
3941         (LDEMUL_SET_OUTPUT_ARCH): Define.
3942         (LDEMUL_FINISH): Define.
3943         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3945         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3946         (EXTRA_EM_FILE): New.
3947         * emulparams/armelf_linux.sh: Likewise.
3948         * emulparams/armelf_linux26.sh: Likewise.
3949         * emulparams/hppalinux.sh: Likewise.
3950         * emulparams/hppaelf.sh: Likewise.
3951         (NOP): Define.
3953         * emultempl/elf32.em: Fix formatting.
3954         (EXTRA_EM_FILE): Source it.
3955         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3956         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3957         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3958         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3959         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3960         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3961         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3962         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3963         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
3964         allow functions in this file to be overridden.
3965         (PARSE_AND_LIST_SHORTOPTS): Handle it.
3967         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3969         * emultempl/elf32.em: Reorganize file.
3971 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
3973         * emulparams/elf64alpha.sh: Implement "-taso" emulation
3974         specific option to fit 64-bit executable in the lower
3975         31-bit address range.  This is done by changing start
3976         address of .interp (the very first section of executable)
3977         and then setting EF_ALPHA_32BIT elf header flag.
3979 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3981         * emultempl/m68kcoff.em: New file.
3982         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3983         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3984         generic.em.
3985         * Makefile.in: Regenerate.
3987 2000-07-20  H.J. Lu  <hjl@gnu.org>
3989         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3990         and "disable-new-dtags" to stop getopt from treating -d/-e as
3991         abbreviations for these options.
3993 2000-07-20  H.J. Lu  <hjl@gnu.org>
3995         * ld.texinfo: Add documentation for --disable-new-dtags and
3996         --enable-new-dtags.
3998         * ldmain.c (main): Initialize link_info.new_dtags to false.
4000         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4001         --disable-new-dtags and --enable-new-dtags.
4002         (gld_${EMULATION_NAME}_list_options): Likewise.
4004 2000-07-05  Kenneth Block  <krblock@computer.org>
4006         * lexsup.c: Add optional style to demangle switch
4007         * ld.texinfo: Document optional style to demangle switch.
4009 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
4011         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4012         ecrislinux.o.
4013         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4014         Regenerate dependencies.
4015         * Makefile.in: Rebuild.
4016         * configure.tgt (cris-*-*): New target.
4017         * emulparams/crisaout.sh, emulparams/criself.sh,
4018         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4019         * po/POTFILES.in, po/ld.pot: Regenerate.
4021 2000-07-20  H.J. Lu  <hjl@gnu.org>
4023         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4024         Print out ignored -z options.
4026 2000-07-19  H.J. Lu  <hjl@gnu.org>
4028         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4029         (PARSE_AND_LIST_PROLOGUE): New.
4030         (PARSE_AND_LIST_LONGOPTS): Likewise.
4031         (PARSE_AND_LIST_OPTIONS): Likewise.
4032         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4034         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4036         * lexsup.c (ld_options): Comment out 'z'.
4037         (parse_args): Likewise.
4039         * emultempl/elf32.em: Include "elf/common.h".
4040         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4041         options.
4042         (gld_${EMULATION_NAME}_list_options): Likewise.
4044         * ld.texinfo: Add documentation for the recognized -z options.
4046 2000-07-19  H.J. Lu  <hjl@gnu.org>
4048         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4049         bfd_elf_set_dt_needed_soname ().
4051 2000-07-18  DJ Delorie  <dj@cygnus.com>
4053         * pe-dll.c (pe_dll_id_target): check object target name also
4055 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
4057         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4058         ${INIT_END} if relocating.
4059         (.fini): Likewise ${FINI_START} and ${FINI_END}.
4061 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
4063         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4064         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4065         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4066         errors introduced by the old dynamic lib search order.
4068 2000-07-17  DJ Delorie  <dj@cygnus.com>
4070         * pe-dll.c (process_def_file): auto-export data items also
4071         (pe_process_import_defs): also see if _imp_ form needed
4073 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
4075         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4076         for dll import libraries
4078 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
4080         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4081         gcc 2.95.2 and later.
4083 2000-07-11  Kazu Hirata  <kazu@hxi.com>
4085         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4086         message.
4088 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4090         * ldemul.h (struct lang_input_statement_struct): Remove forward
4091         declaration.
4092         (struct search_dirs): Likewise.
4093         * ldfile.h (struct lang_input_statement_struct): Likewise.
4094         Protect file from multiple inclusion.
4095         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4096         declaration from macro to file scope.
4098         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4099         * ldgram.y: Likewise here.
4100         * ldlang.c: And here.
4101         * ldmain.c: And here.
4102         * mpw-elfmips.c: And here.
4103         * mpw-eppcmac.c: And here.
4104         * emultempl/aix.em: And here.
4105         * emultempl/armcoff.em: And here.
4106         * emultempl/armelf.em: And here.
4107         * emultempl/armelf_oabi.em: And here.
4108         * emultempl/beos.em: And here.
4109         * emultempl/elf32.em: And here.
4110         * emultempl/hppaelf.em: And here.
4111         * emultempl/linux.em: And here.
4112         * emultempl/lnk960.em: And here.
4113         * emultempl/pe.em: And here.
4114         * emultempl/sunos.em: And here.
4115         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4116         * mpw-idtmips.c: Ditto.
4117         * emultempl/generic.em: Ditto.
4118         * emultempl/gld960.em: Ditto.
4119         * emultempl/gld960c.em: Ditto.
4120         * emultempl/mipsecoff.em: Ditto.
4121         * emultempl/ticoff.em: Ditto.
4122         * emultempl/vanilla.em: Ditto.
4124         * pe-dll.c: Include ldfile.h
4125         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4127         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4128         arguments to bfd_elf32_size_dynamic_sections call.
4129         (gldelf32ebmip_place_orphan): Add missing arguments to
4130         lang_leave_output_section_statement call.
4132 2000-07-10  H.J. Lu  <hjl@gnu.org>
4134         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4135         DLL_SUPPORT.
4136         (strhash): Likewise.
4137         (compute_dll_image_base): Likewise.
4138         (pe_undef_found_sym): Likewise.
4139         (pe_undef_cdecl_match): Likewise.
4140         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4141         argument "arch" with ATTRIBUTE_UNUSED.
4143 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4145         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4147         From  Ryan Bradetich  <rbradetich@uswest.net>
4148         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4150 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
4152         Changes to create multiple linker stubs, positioned immediately
4153         before the section where they are required.
4154         * emultempl/hppaelf.em: Include elf32-hppa.h.
4155         (stub_sec, file_chain): Delete.
4156         (hppaelf_create_output_section_statements): Don't make a stub
4157         section here.
4158         (hook_stub_info): New struct.
4159         (hook_in_stub): New function.
4160         (hppaelf_add_stub_section): New function.
4161         (hppaelf_finish): Do nothing for relocateable links.  Modify the
4162         call to elf32_hppa_size_stubs.  Move code for updating section
4163         layout from here...
4164         (hppaelf_layaout_sections_again): ..to here, a new function.
4166         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4167         broken list handling.  Pass in a pointer to the list.
4168         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4169         for above changes.
4170         (hppaelf_before_parse): Prototype.
4171         (hppaelf_set_output_arch): Prototype.
4172         (hppaelf_create_output_section_statements): Prototype.
4173         (hppaelf_delete_padding_statements): Prototype.
4174         (hppaelf_finish): Prototype.
4176         Merge from elf32.em
4177         * emultempl/hppaelf.em: Include ctype.h.
4178         (struct orphan_save): New.
4179         (gld${EMULATION_NAME}_place_orphan): New.
4180         (output_rel_find): New.
4181         (hppaelf_get_script): Update from elf32.em.
4182         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4183         Change emulation_name field to "${EMULATION_NAME}".  Add
4184         gld${EMULATION_NAME}_place_orphan.
4186         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
4187         ehppalinux.o, sort it.  Regenerate dependencies.
4188         (ehppalinux.c): Depend on hppaelf.em
4189         * Makefile.in: Regenerate.
4191         * configure.tgt: targ_emul=hppalinux for hppa*linux
4193         * emulparams/hppalinux.sh: New.
4194         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4196 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
4198         * lexsup.c (parse_args): Copy section name.
4200 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
4202         * emultempl/pe.em: institute the following search order for
4203         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4204         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
4205         static lib (libfoo.a) if none of the above are found.
4207 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
4209         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4210         (longopts): New --{enable,disable}-auto-image-base options.
4211         (gld_${EMULATION_NAME}_list_options): Document.
4212         (gld_${EMULATION_NAME}_parse): Handle.
4213         (strhash): New static function.
4214         (compute_dll_image_base): New static function.
4215         (gld_${EMULATION_NAME}_set_symbols): Use.
4217 2000-07-05  DJ Delorie  <dj@redhat.com>
4219         * MAINTAINERS: new
4221 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
4223         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4224         * emulparams/elf32btsmip.sh: New file.
4225         * Makefile.am: Add traditional mips target.
4226         * Makefile.in: Rebuild.
4228 2000-07-01  H.J. Lu  <hjl@gnu.org>
4230         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4231         automake to use YLWRAP.
4232         * Makefile.in: Rebuild.
4234 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
4236         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
4237         (CLEANFILES): Add DEPA.
4238         * Makefile.in: Regenerate.
4240 2000-06-30  Timothy Wall  <twall@ppc>
4242         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4243         the page in the upper octet of the address.
4245 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
4247         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4249 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
4251         * NEWS: arm-elf does --gc-sections too.
4253 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
4255         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4256         find one.
4257         * Makefile.in: Regenerate.
4259 2000-06-21  H.J. Lu  <hjl@gnu.org>
4261         * Makefile.am: Rebuild dependency.
4262         * Makefile.in: Rebuild.
4264 2000-06-20  H.J. Lu  <hjl@gnu.org>
4266         * Makefile.am: Rebuild dependency.
4267         * Makefile.in: Rebuild.
4269 2000-06-20  Timothy Wall  <twall@cygnus.com>
4271         * scripttempl/tic54xcoff.sc: New.
4272         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4273         * gen-doc.texi: Add flag for TI COFF.
4274         * ld.texinfo: Add documentation for TI COFF handling switches.
4275         * emultempl/ticoff.em: New. TI COFF handling.
4276         * configure.tgt: Add tic54x target.
4277         * Makefile.am: Add tic54x target.
4278         * Makefile.in: Ditto.
4280 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
4282         * ldmain.c (set_scripts_dir): Correct pointer comparison when
4283         checking for backslashes.
4285 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
4287         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4289 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
4291         * NEWS: Update list of targets supporting --gc-sections.
4293         * scripttempl/elf.sc: KEEP .eh_frame contents.
4294         * scripttempl/elfd30v.sc: Same here.
4296 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4298         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4299         and m68hc11 (elf).
4300         * Makefile.in: Rebuild.
4301         * configure.tgt: Recognize m68hc12 and m68hc11.
4302         * scripttempl/elfm68hc12.sc: New file.
4303         * emulparams/m68hc12elfb: New emulation.
4304         * emulparams/m68hc12elf: New emulation.
4305         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
4306         (includes a memory.x script to define the ROM and RAM banks).
4307         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4308         New configuration files for support of Motorola 68hc11
4310 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
4312         * ldmain.c (main): Only change SEC_READONLY for final link.
4314 2000-06-13  H.J. Lu  <hjl@gnu.org>
4316         * configure: Regenerate.
4318 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4320         * configure.in (VERSION): Update to show this is the CVS mainline.
4322 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4324         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4325         input objects to be ECOFF.
4326         (check_sections): einfo takes %B, not %P, to print a BFD name.
4328 2000-06-05  Michael Matz <matz@ifh.de>
4330         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4331         version scripts.
4333         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4335 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
4337         * emulparams/avr1200.sh (STACK): Define as 0.
4338         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4339         * emulparams/avr4433.sh (STACK): Likewise.
4340         * emulparams/avr44x4.sh (STACK): Likewise.
4341         * emulparams/avr85xx.sh (STACK): Likewise.
4342         * emulparams/avrmega103.sh (STACK): Likewise.
4343         * emulparams/avrmega161.sh (STACK): Likewise.
4344         * emulparams/avrmega603.sh (STACK): Likewise.
4345         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4346         (__stack): Define from ${STACK} for main().
4348 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4350         * Makefile.am: Update dependencies with "make dep-am"
4351         * Makefile.in: Regenerate.
4353 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
4355         * ldmain.c: Include filenames.h.
4356         (set_scripts_dir): Support backslashes in program name.
4358 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
4360         * ldmain.c (main): When deciding if ".text" section should be
4361         read-only, don't forget to reset SEC_READONLY because it
4362         could be already set.
4364 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
4366         * ld.1: Add documentation for new command line option:
4367                 --section-start <sectionname>=<sectionorg>
4368         This is a generic version of -Ttext etc. which accepts
4369         any section name as a parameter instead of just text/data/
4370         bss.
4371         * ld.texinfo: More docs.
4372         * NEWS: More docs.
4373         * lexsup.c: (parse_args): Recognize new command line option.
4374         (ld_options): Add new option.
4376 2000-05-18  H.J. Lu  <hjl@gnu.org>
4378         * lexsup.c (parse_args): `i' == `r', not `q'.
4380 2000-05-18  Jeffrey A Law  (law@cygnus.com)
4382         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4384 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
4385               Rick Gorton          <gorton@scrugs.lkg.dec.com>
4387         Add support for '-q' == '--emit-relocs' switch.
4388         * ldmain.c (main): Default to false.
4389         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4390         * NEWS: Describe the emitrelocations switch.
4391         * ld.texinfo: Describe the emitrelocations switch.
4393 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
4395         * emultempl/pe.em (_open_dynamic_archive): New function: Search
4396         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4397         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4398         link options.
4400 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
4402         * lexsup.c (parse_args): Update the year in the copyright notice.
4404 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
4406         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4407         Replace defines with those from intl/libgettext.h to quieten gcc
4408         warnings.
4410 2000-05-10  H.J. Lu  <hjl@gnu.org>
4412         * ldlang.c (open_input_bfds): Don't load the same file within
4413         a group again if the whole archive has been loaded already.
4415 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
4417         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4418         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4419         strtoul.
4421 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4423         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4425         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4426         host "ia64-*-linux-gnu*".
4428 2000-04-29  Andreas Jaeger  <aj@suse.de>
4430         * ld.h: Correctly check GCC version.
4432 2000-04-25  Jeffrey A Law  (law@cygnus.com)
4434         * Makefile.am: Add PA64 support.  Add missing dependencies for
4435         PA32 elf support.
4436         * Makefile.in: Rebuilt.
4437         * configure.tgt: Add PA64 support (currently disabled).
4439 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
4441         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4442         (output_rel_find): New function.
4443         (hold_section, hold_use): Delete.
4444         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4445         hold_interp): Make local to place_orphan.
4446         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4447         rather than place_section to find possible previous use of orphan.
4448         Similarly find the place-holder output sections.  Use returned
4449         value from lang_enter_output_section_statement rather than calling
4450         lang_output_section_statement_lookup.
4451         * emultempl/armelf.em: Same here.
4452         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4454         * ldlang.c (lang_enter_output_section_statement): Return output
4455         section statement.
4456         * ldlang.h (lang_enter_output_section_statement): Change
4457         declaration too.
4459         * ldlang.h (lang_output_section_statement): Export it.
4460         * ldlang.c (lang_output_section_statement): Ditto.
4462 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4464         * ld.texinfo (Output Section Data): Add note that section data
4465         commands cannot appear outside of section directives.
4467 2000-04-2  Matthew Green  <mrg@cygnus.com>
4469         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4471 2000-04-21  Richard Henderson  <rth@cygnus.com>
4472             David Mosberger  <davidm@hpl.hp.com>
4474         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4475         (eelf64_ia64.c): New rule.
4476         * Makefile.in: Rebuild.
4477         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4478         * emulparams/elf64_ia64.sh: New file.
4480 2000-04-21  Richard Henderson  <rth@cygnus.com>
4482         * scripttempl/elfd30v.sc: Place .gcc_except_table.
4484 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
4486         * dep-in.sed: Match space at start of file name, not at end.
4488 2000-04-18  H.J. Lu  <hjl@gnu.org>
4490         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4491         lang_leave_output_section_statement () after calling
4492         lang_enter_output_section_statement ().
4493         * emultempl/armelf.em: Likewise.
4495 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
4497         * emultempl/elf32.em (struct orphan_save): Add section field.
4498         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4499         better order, and place first orphan section as we did before the
4500         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
4501         Don't call make_bfd_section here, let wild_doit do the job for us.
4502         Don't build a statement list when we'll only throw it away.
4503         * emultempl/armelf.em: Ditto.
4504         * emultempl/pe.em: Similarly.
4506 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4508         * scripttempl/elfppc.sc: Remove.
4509         * emulparams/elf32ppc.sh: Use elf.sc.
4510         * emulparams/elf32lppc.sh: Use elf.sc.
4511         * emulparams/elf32ppclinux.sh: Use elf.sc.
4512         * emulparams/elf32ppcsim.sh: New file.
4513         * emulparams/elf32lppcsim.sh: New file.
4514         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
4515         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4516         * Makefile.in: Regenerate.
4517         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4519 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
4521         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4522         ~SEC_ALLOC sections too.  Init start address of debug sections.
4523         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4524         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4525         Also set all relocateable section start addresses.
4527 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
4529         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4530         Add new BSS_PLT variable for when .plt need not be contained in
4531         the file.  Move _etext so that it is also after .fini, and provide
4532         both etext and _etext with a leading underscore.  Mark the start
4533         and end of .sbss.
4535 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
4537         * emultempl/elf32.em (struct orphan_save): New.
4538         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4539         hold_interp): Make them struct orphan_save.
4540         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4541         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4542         the end of the relevant section list.  Also add associated section
4543         statements to the end of any previous orphan statements.
4544         * emultempl/armelf.em: Similarly.
4545         * emultempl/pe.em: Similarly.
4547 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
4549         * ld.texinfo (Simple Example): Remove extraneous paragraph.
4551 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
4553         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4554         --enable-build-warnings option.
4555         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4556         * Makefile.in, configure: Re-generate.
4558 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
4560         * po/ld.pot: Regenerate.
4562         * lexsup.c (help): Restore translated part of bug string.
4564         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4565         (DEP): Quote when passing vars to sub-make.  Add warning message
4566         to end.
4567         (DEP1): Rewrite for "gcc -MM".
4568         (CLEANFILES): Add DEP2.
4569         Update dependencies.
4570         * Makefile.in: Regenerate.
4572 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
4574         * ld.h: #include "bin-bugs.h"
4575         * lexsup.c (help): Use REPORT_BUGS_TO.
4577 2000-03-27  Denis Chertykov  <denisc@overta.ru>
4579         * configure.tgt (avr-*-*): New target support.
4580         * Makefile.am: Likewise.
4581         * scripttempl/elf32avr.sc: New script file.
4582         * emulparams/avr1200.sh: New file.
4583         * emulparams/avr23xx.sh: New file.
4584         * emulparams/avr4433.sh New file.
4585         * emulparams/avr44x4.sh New file.
4586         * emulparams/avr85xx.sh New file.
4587         * emulparams/avrmega103.sh New file.
4588         * emulparams/avrmega161.sh New file.
4589         * emulparams/avrmega603.sh New file.
4590         * Makefile.in: Regenerate.
4592 2000-03-09  Andreas Jaeger  <aj@suse.de>
4594         * Makefile.am (check-DEJAGNU): Also unset LANG.
4595         * Makefile.in: Rebuild.
4597 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
4599         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4600         archive.
4602 2000-03-02  H.J. Lu  <hjl@gnu.org>
4604         * emulparams/elf32mcore.sh: Include "getopt.h".
4606 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
4608         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4610 2000-03-01  H.J. Lu  <hjl@gnu.org>
4612         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4613         * emulparams/shpe.sh: Likewise.
4615 2000-03-01  Nick Clifton  <nickc@cygnus.com>
4617         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4618         to unused parameters.
4620         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4621         functions only used by DLL code.
4622         (_place_orphan): Initialise 'dollar'.
4624 2000-03-01  H.J. Lu  <hjl@gnu.org>
4626         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4627         indicate if the undefined symbol is a fatal error or not.
4628         Don't delete the output file if "fatal" is false.
4630 2000-02-29  H.J. Lu  <hjl@gnu.org>
4632         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4633         Set LC_COLLATE and LC_ALL to null and export them. It is for
4634         sort which expects the C locale.
4635         Add $(LIBS) to all $(HOSTING_LIBS).
4636         * Makefile.in: Rebuild.
4638 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
4640         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4641         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4642         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4643         (ld_emulation_xfer_struct): Add missing NULL initialiser for
4644         find_potential_libraries.
4646 2000-02-28  Jim Blandy  <jimb@redhat.com>
4648         * ldgram.y (exclude_name_list): Don't require a comma to separate
4649         list entries; the lexer considers commas to be valid part of a
4650         filename, so in something like `foo, bar' the comma is considered
4651         part of the first filename, `foo,'.
4652         * ld.texinfo: Update section on EXCLUDE_FILE lists.
4654 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
4656         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4657         host "i[3456]86-*-freebsdelf*".
4659 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
4661         * scripttempl/i386go32.sc: Move misplaced semicolons.
4663 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
4665         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4666         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4667         (eelf64hppa.c, ehppaelf.c): Remove targets.
4668         * Makefile.in: Rebuild.
4670 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4672         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4673         GNU/Linux/sparc, but keep the default as 32.
4675         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
4676         it default if sparcv9 or sparc64.
4678 2000-02-24  Nick Clifton  <nickc@cygnus.com>
4680         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4681         * Makefile.in: Regenerate.
4682         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4684         * ldemul.h (ld_emulation_xfer_struct): Add new field:
4685         find_potential_libraries.
4686         * ldemul.c (ldemul_find_potential_libraries): New function.
4688         * ldfile.c (ldfile_open_file_search): Allow function to be
4689         exported.
4690         (ldfile_open_file): Call ldemul_find_potential_libraries.
4691         * ldfile.h: Add prototype for ldfile_open_file_search.
4693         * pe-dll.c: Add support for ARM, MIPS and SH targets.
4695         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
4696         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
4698         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4699         (gld_X_find_potential_libraries): New function.  Search for
4700         libraries called "*.lib".
4702         * scripttempl/pe.sc: Add .pdata section.
4704 2000-02-23  Richard Henderson  <rth@cygnus.com>
4706         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4707         Add and use memory regions.
4709 2000-02-23  Linas Vepstas (linas@linas.org)
4711         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4713         * Makefile.am: Add support for Linux/IBM 370.
4714         * configure.tgt: Likewise.
4716         * Makefile.in: Regenerate.
4718 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
4720         * ldlang.c (print_input_section, print_data_statement,
4721         print_reloc_statement, print_padding_statement, insert_pad,
4722         size_input_section, lang_check_section_addresses,
4723         lang_size_sections, lang_do_assignments, lang_set_startof,
4724         lang_one_common): Change `opb' to unsigned.
4725         (lang_do_assignments): Also change `size' to unsigned.
4727 2000-02-16  Richard Henderson  <rth@cygnus.com>
4729         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4731 2000-02-16  Timothy Wall  <twall@cygnus.com>
4733         * mri.c (mri_draw_tree): Add default LMA region argument to call
4734         to lang_leave_output_section_statement.
4735         * ldlang.h: Update prototypes with LMA region arguments.
4736         * ldlang.c (lang_size_sections): Encapsulate region bounds
4737         checking in os_check_region call.
4738         (os_check_region): New function.
4739         (lang_output_section_statement_lookup): Initialize lma_region.
4740         (lang_leave_output_section_statement): Add LMA region argument.
4741         (lang_leave_overlay): Ditto.
4742         * ldgram.y: Handle LMA region syntax.
4743         * ld.texinfo (Output Section Description): Describe LMA region usage.
4744         * emultempl/armelf.em (gld$place_orphan): Add default value for
4745         lma region in call to lang_leave_output_section_statement.
4746         * emultempl/elf32.em (gld$place_orphan): Add default value for
4747         lma region in call to lang_leave_output_section_statement.
4748         * emultempl/pe.em (gld$place_orphan): Add default value for
4749         lma region in call to lang_leave_output_section_statement.
4752 2000-02-04  Timothy Wall  <twall@redhat.com>
4754         * ldlang.c (lang_check_section_addresses): Use bytes instead of
4755         octets when calculating section end addresses.
4757 2000-02-04  Timothy Wall  <twall@redhat.com>
4759         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4761 2000-02-03  Timothy Wall <twall@redhat.com>
4763         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4764         octet count.
4765         * ldlang.c (print_input_section, print_data_statement,
4766         print_reloc_statement, print_padding_statement): Print target
4767         address values and section sizes as bytes, not octets.
4768         (insert_pad) Calculate padding size in octets, and adjust "dot"
4769         by bytes.
4770         (size_input_section) Always adjust "dot" by bytes, not octets.
4771         (lang_check_section_addresses, lang_do_assignments) Adjust
4772         "dot" by bytes, not octets.  Use the larger of the directive size
4773         or octets_per_byte for the number of octets actually allocated in
4774         the output section.
4775         (lang_set_startof) Make sure STARTOF returns a target address.
4776         (lang_one_common) Record size changes in octets.
4777         (lang_abs_symbol_at_end_of) Section end symbol's value is
4778         recorded in target bytes.
4779         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4780         to be clear about behavior when an octet is smaller than one byte.
4782 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
4784         * ldcref.c (output_cref): Don't pass message strings to printf
4785         as format arg.
4786         Update copyright.
4788         * ldmisc.c (vfinfo): Same here.
4789         Update copyright.
4791 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
4793         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4794         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4795         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4796         Add missing NULL initialisers, and comments.
4798         * testsuite/ld-srec/sr3.cc (__rethrow): New.
4800 2000-01-21  Nick Clifton  <nickc@cygnus.com>
4802         * ldlang.c (lang_size_sections): Fix typo in comment.
4804 2000-01-18  H.J. Lu  <hjl@gnu.org>
4806         * ldlang.c (lang_size_sections): Also update the current
4807         address of a region if the SEC_NEVER_LOAD bit is not set.
4809 2000-01-10  Philip Blundell  <pb@futuretv.com>
4811         * configure.tgt (arm*-*-conix*): New target.
4813 2000-01-07  Nick Clifton  <nickc@cygnus.com>
4815         * ld.texinfo (Options): Remind users to preceed linker command
4816         line switches with -Wl, (or whatever is appropriate) if it is
4817         being invoked by a comnpiler driver program.
4818         Fix description of the behaviour of the -n command line switch.
4820 2000-01-05  Catherine Moore  <clm@cygnus.com>
4822         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
4823         (name_list): New.
4824         * ld.texinfo (EXCLUDE_FILE): Update documentation.
4825         * ldgram.y (wildcard_spec): Support a list of excluded_files.
4826         (exclude_name_list): New.
4827         ldlang.c (walk_wild_section): Support list of excluded files.
4828         (print_wild_statement): Likewise.
4829         (lang_add_wild): Likewise.
4830         * ldlang.h (lang_wild_statement_type): Likewise.
4831         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4833 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
4835         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4836         (process_def_file): Use.
4837         (pe_dll_compat_implib): New variable.
4838         (make_one): Use.
4840         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4841         pe_dll_compat_implib.
4843         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4844         compat-implib options.
4845         (gld_${EMULATION_NAME}_list_options): List new options.
4846         (gld_${EMULATION_NAME}_parse_args): Handle.
4848         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4849         dll.
4851         * deffilep.y (opt_name): Allow "." in name.
4853 For older changes see ChangeLog-9899
4855 Local Variables:
4856 mode: change-log
4857 left-margin: 8
4858 fill-column: 74
4859 version-control: never
4860 End: