daily update
[binutils.git] / ld / ChangeLog
blob2684a62353268e5b245baeae609c6ae3dc90eb69
1 2002-10-13  Stephane Carrez  <stcarrez@nerim.fr>
3         * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
4         .finiN section.
5         * scripttempl/elfm68hc12.sc: Likewise.
7 2002-10-11  Alan Modra  <amodra@bigpond.net.au>
9         * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
11         * ldgram.y (memory_spec): Provide empty action.
12         (section <NAME>): Likewise.
14 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
16         * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
17         they have OUTPUT_FORMAT not matching actual output format.
18         * ldlang.c (lang_get_output_target): New function.
19         (open_output): Use it.
20         * ldlang.h (lang_get_output_target): New prototype.
22 2002-10-10  Alan Modra  <amodra@bigpond.net.au>
24         * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
25         when orphan is .rel, .rela when orphan is .rela.
26         (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
27         first.  Remove outsecname var.
29 2002-10-09  Richard Shann <richard.shann@superh.com>
30             Stephen Clarke <stephen.clarke@superh.com>
32         * Makefile.am: Add eshelf32_linux.o and
33         eshlelf32_linux.o, new emulations for sh64 Linux.
34         * Makefile.in: Regenerate.
35         * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
36         * emulparams/shelf32_linux.sh: New file.
37         * emulparams/shlelf32_linux.sh: New file.
38         
39 2002-10-08  H.J. Lu <hjl@gnu.org>
41         * ldlang.c (lang_file_exist): Removed.
42         (new_afile): Revert the last change.
43         * ldlang.h (lang_file_exist): Removed.
44         * lexsup.c (parse_args): Revert the last change.
46 2002-10-07  Ralf Habacker  <Ralf.Habacker@freenet.de>
48         * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
49         auto-import symbols.
50         (make_one): Create _nm_<symbol> for data only.
52 2002-10-05  Elias Athanasopoulos  <eathan@otenet.gr>
54         * ldlang.c (lang_file_exist): New function.
55         (new_afile): Abort if the filename to be added matches the linker 
56         output filename.
57         * ldlang.h: Add prototype for lang_file_exist.
58         * lexsup.c (parse_args): Abort if the output filename matches
59         one of the input filenames.
61 2002-10-02  Alan Modra  <amodra@bigpond.net.au>
63         * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
65 2002-09-30  Alan Modra  <amodra@bigpond.net.au>
67         * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
68         * scripttempl/elfm68hc11.sc: Likewise.
69         * scripttempl/elfm68hc12.sc: Likewise.
71         * emultempl/elf32.em (output_rel_find): Always place orphan loadable
72         reloc sections just before .rel.plt/.rela.plt.
73         (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
74         Only put loadable reloc sections in hold_rel.
76 2002-09-29  H.J. Lu <hjl@gnu.org>
78         * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
80 2002-09-25  Daniel Jacobowitz  <drow@mvista.com>
82         From "Anita Kulkarni" <AnitaK@kpit.com>
83         * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
84         sections.
86 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
88         * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
89         TARGET_PAGE_SIZE.
90         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
91         SEGMENT_SIZE alignment.
92         * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
93         (SEGMENT_SIZE): Define.
95         * ldexp.c (fold_unary): New.  Split out from exp_fold_tree.
96         (fold_binary): Correct abs - non-abs case.
97         (fold_trinary): New.  Split out from exp_fold_tree.
99 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
101         * emulparams/elf64ppc.sh (DATA_ADDR): Define.
102         * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
103         for start of .data, instead align up to 256M boundary.
104         * scripttempl/aix.sc: Likewise.
106 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
108         * scripttempl/i386go32.sc: Handle bss unique sections.
110 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
112         * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
114 2002-09-17  Stan Cox  <scox@redhat.com>
116         * emulparams/elf32bmipn32-defs.sh: New file.
117         * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
118         * emulparams/elf32btsmipn32.sh: Likewise.
119         * emulparams/elf64bmip.sh: Likewise.
120         * emulparams/elf64btsmip.sh: Likewise.
122 2002-09-16  Bruno Haible  <bruno@clisp.org>
124         * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
125         elf32-i386-freebsd.
126         * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
127         elf64-alpha-freebsd.
129 2002-09-11  Nick Clifton  <nickc@redhat.com>
131         * NEWS: New TI port supports both C4x and C3x series of DSPs.
133         * po/tr.po: Updated Turkish translation.
135 2002-09-06  Jeffrey A Law  (law@redhat.com)
137         * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
139 2002-09-02  Nick Clifton  <nickc@redhat.com>
141         * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
142         __ep.
143         * emulparams/v850.sh (TEMPLATE_NAME): Define.
145 2002-08-30  Nick Clifton  <nickc@redhat.com>
147         * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
148         used.  Change INSN to start at 0x01000000 and extend for
149         256K (ignoring holes).  Start the STACK on a word aligned
150         boundary.
151         (.rodata): Start it at the READONLY_START_ADDR.
153 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
155         * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
157 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
159         * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
160         added makefile targets for this file.
161         * Makefile.in: Regenerate.
162         * configure.tgt: Added tic4x-coff and c4x-coff emulations.
163         * NEWS: Mention new port.
165 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
167         * emulparams/tic3xcoff.sh: New file.
168         * emulparams/tic4xcoff.sh: New file.
169         * scripttempl/tic3xcoff.sc: New file.
170         * scripttempl/tic4xcoff.sc: New file.
172 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
174         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
175         strtoul and strtoull with bfd_scan_vma.
176         (gld${EMULATION_NAME}_read_file): Likewise.
178 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
180         * configure.tgt: Remove h8[35]00-*-hms*.  Add h8500-*-rtems*.
182 2002-08-27  Egor Duda  <deo@logos-m.ru>
184         * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
185         Add symbols for application to access them.
187 2002-08-27  Nick Clifton  <nickc@redhat.com>
189         * emultempl/armelf.em:  Revert this patch, it is not needed.
190         
191         2002-08-22  Adam Nemet  <anemet@lnxw.com>
193 2002-08-20 Dan Kegel <dank@kegel.com>
194         
195         * configure.in: added --with-lib-path argument to ld's configure
196         to set LIB_PATH.
197         * ld/NEWS: Document new switch.
198         * ld/README: Mention new switch.
199         * configure: Regenerate.
200         * Makefile.in: Regenerate.
201         
202         Based on this patch:
203         2001-04-25  Christopher Faylor <cgf@cygnus.com>
205         * Makefile.in (LIB_PATH): Make configurable.
206         (GENSCRIPTS): Set LIB_PATH in environment.
207         * configure.in: Substitute LIB_PATH.
209 2002-08-22  Adam Nemet  <anemet@lnxw.com>
211         * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
212         (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
213         depending on the type of the function.
214         (arm_elf_convert_thumb_symbol_to_address): New function.
216 2002-08-22  Graeme Peterson  <gp@qnx.com>
218         * Makefile.am: Add esh{l}elf_nto.o files.
219         * Makefile.in: Regenerate.
220         * configure.tgt: Add support for sh-**-nto* targets.
221         * emulparams/shelf_nto.sh: New file.
222         * emulparams/shlelf_nto.sh: New file.
224 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
226         * ldlang.c (offsetof): Define if not defined.
228 2002-08-14  H.J. Lu <hjl@gnu.org>
230         * configure.tgt: Always enable 64bit emulations for 32bit
231         Linux/mips.
233 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
235         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
236         (MAXPAGESIZE): Set to 1.
238         * ld.h (ALIGN_N): Delete.
239         * ldexp.h (align_n): Declare.
240         * ldexp.c (align_n): New function.
241         (fold_binary): Use align_n instead of ALIGN_N.
242         (exp_fold_tree): Likewise.
243         * ldlang.c (lang_size_sections_1): Likewise.
244         (lang_one_common): Likewise.
245         * ld.texinfo (ALIGN): Remove power of 2 restriction.
247 2002-07-31  Graeme Peterson  <gp@qnx.com>
249         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
250         * Makefile.am: Add eelf32{l}ppcnto.o files.
251         * Makefile.in: Regenerate.
252         * emulparams/elf32lppcnto.sh: New file.
253         * emulparams/elf32ppcnto.sh: New file.
255 2002-08-07  H.J. Lu <hjl@gnu.org>
257         * ld.texinfo: Document --no-undefined-version.
259         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
260         `script.' fields to 0.
262         * ldmain.c (main): Initialize the allow_undefined_version to
263         true.
265         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
266         (ld_options): Add --no-undefined-version.
267         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
269 2002-08-07  Nick Clifton  <nickc@redhat.com>
271         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
272         an interworking bfd if there are input bfds. (107501)
274 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
276         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
277         2002-05-10 change.
279 2002-08-01  Nick Clifton  <nickc@redhat.com>
281         * emulparams/armelf.sh: Revert previous delta.
282         * scripttempl/elf.sc: Revert previous delta.
284 2002-07-31  H.J. Lu <hjl@gnu.org>
286         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
287         --enable-64-bit-bfd.
289 2002-07-31  H.J. Lu <hjl@gnu.org>
291         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
292         64bit BFD is selected.
294 2002-07-31  H.J. Lu <hjl@gnu.org>
296         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
297         if 64bit BFD is selected.
299 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
301         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
302         link_info.common_skip_ar_aymbols.
303         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
305         * ldmain.c (main): Initialize new field
306         link_info.common_skip_ar_aymbols.
308 2002-07-31  Adam Nemet  <anemet@lnxw.com>
310         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
311         to .plt.thumb.
312         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
313         used.
315 2002-07-31  Nick Clifton  <nickc@redhat.com>
317         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
318         of the PDP-11 and 2.11BSD a.out support.
320 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
322         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
323         for n32 ABI support.
324         * Makefile.in: Regenerate.
325         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
326         n32 ABI emulations for these 64 bit targets.
327         * emulparams/elf32bmipn32.sh: Expand comment.
328         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
329         n32 ABI.
330         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
332 2002-07-30  Graeme Peterson  <gp@qnx.com>
334         * configure.tgt: Add support for arm-*-nto target.
335         * Makefile.am: Add earmnto.o file.
336         * Makefile.in: Regenerate.
337         * NEWS: Mention port of ARM support to QNX.
338         * emulparams/armnto.sh: New file.
340 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
342         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
343         for relocatable link.
344         (lang_size_sections_1): Don't make .tbss zero size for relocatable
345         link.
347 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
349         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
350         (STACK_ADDR): New.
352 2002-07-25  Nick Clifton  <nickc@redhat.com>
354         * po/sv.po: Updated Swedish translation.
355         * po/es.po: Updated Spanish translation.
356         * po/fr.po: Updated French translation.
358 2002-07-24  Nick Clifton  <nickc@redhat.com>
360         * po/sv.po: Updated Swedish translation.
361         * po/es.po: Updated Spanish translation.
363 2002-07-23  Nick Clifton  <nickc@redhat.com>
365         * po/fr.po: Updated French translation.
367 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
369         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
370         bomb on /DISCARD/ input section.
371         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
372         * emultempl/mmo.em (mmo_place_orphan): Likewise.
374 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
376         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
377         output section.
379 2002-07-16  Denis Chertykov  <denisc@overta.ru>
380             Nick Clifton  <nickc@redhat.com>
381             Frank Ch. Eigler  <fche@redhat.com>
382             John Healy  <jhealy@redhat.com>
384         * configure.tgt: Add support for ip2k-elf.
385         * Makefile.am: Add support for ip2k-elf.
386         * Makefile.in: Regenerate.
387         * emulparams/elf32ip2k.sh: New file.
388         * scripttempl/ip2k.sc: New file
389         * NEWS: Mention support for new port.
391 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
393         * NEWS: Add 'Changes in 2.13'.
395 2002-07-14  H.J. Lu <hjl@gnu.org>
397         * ld.texinfo: Document a .symver takes precedence over a
398         version script.
400 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
402         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
403         (COMMONPAGESIZE): Define.
405 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
407         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
409 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
411         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
412         powerpc-*-openbsd* and sparc64-*-openbsd*.
413         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
414         * Makefile.in: Regenerate.
415         * emulparams/hppaobsd.sh: New file.
417 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
419         * ldlang.c (print_wild_statement): Fix output formatting.
421 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
423         * ldlang.c: (strip_excluded_output_sections): New function.
424         (lang_process): Call it.
425         (lang_size_sections_1): Revert 2002-06-10 change.
427 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
429         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
430         Run "make dep-am".
431         * Makefile.in: Regenerate.
433 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
435         * ldfile.c (ldfile_try_open_bfd): Formatting.
437         * ldmisc.c (demangle): Move so that it doesn't intrude between
438         vfinfo comment and body.  Add comment.
440 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
442         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
444 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
446         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
447         * ldlang.c (entry_sym): Likewise.
448         (ldlang_undef_chain_list_type): Likewise.
449         (lang_finish): Adjust references to entry_symbol.
450         (lang_add_entry): Likewise.
451         (lang_gc_sections): Use link_info.gc_sym_list.
452         (lang_process): Set link_info.gc_sym_list.
453         * ldlex.l: Include bfdlink.h.
454         * ldmain.c (main): Init link_info.gc_sym_list.
455         * emultempl/aix.em: Adjust references to entry_symbol.
456         * emultempl/armcoff.em: Likewise.
457         * emultempl/armelf.em: Likewise.
458         * emultempl/pe.em: Likewise.
459         * emultempl/ppc64elf.em (ppc_after_open): New function.
460         (LDEMUL_AFTER_OPEN): Define.
461         * emulparams/elf64ppc.sh: KEEP .opd sections.
463 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
465         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
466         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
467         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
468         (EEPROM_START_ADDR): Define.
469         (EEPROM_MEMORY): Define.
470         * emulparams/m68hc12elf.sh: Likewise.
471         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
472         section to put soft registers in .page0.
473         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
475 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
477         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
478         section.  Add ${RELOCATING-0}.
480 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
482         * emulparams/shelf.sh (STACK_ADDR): Don't define.
483         (OTHER_SECTIONS): Define.
484         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
485         (OTHER_SECTIONS): Undef.
487 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
489         * ldmisc.c (demangle): Restore dots stripped from sym name.
491 2002-06-25  H.J. Lu <hjl@gnu.org>
493         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
494         * Makefile.in: Regenerated.
496 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
498         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
499         the size of attached object files, to allow make the object files
500         available via FTP or HTTP and to mention that the mail will be
501         sent to a mailing list.
503 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
505         * ld/configure.host (romp): Drop support.
507 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
509         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
510         section flags for SEC_DATA, rather than for SEC_CODE being unset.
512 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
514         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
515         format specifier used to print BFD name.
517 2002-06-18  Dave Brolley  <brolley@redhat.com>
519         From Catherine Moore, Michael Meissner, Jim Blandy:
520         * emulparams/elf32frv.sh: New file.
521         * configure.tgt: Support frv-*-*.
522         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
523         (eelf32frv.c): New target.
525 2002-06-17  Tom Rix  <trix@redhat.com>
527         * emultempl/elf32.em: gld*_get_script:  Check for
528         GENERATE_COMBRELOC_SCRIPT.
529         * scripttempl/elfd10v.sc : Fix STACK and INSN.
530         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
532 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
534         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
536 2002-06-12  H.J. Lu <hjl@gnu.org>
538         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
539         false if xvec doesn't match.
541 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
543         * ldlang.c (lang_size_sections_1): Skip removed output sections.
545 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
547         * ldexp.c: Replace CONST with const.
548         * ldfile.c: Likewise.
549         * ldfile.h: Likewise.
550         * ldlex.l: Likewise.
551         * mri.c: Likewise.
552         * pe-dll.h: Likewise.
554 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
556         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
558 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
560         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
561         to -1 == implicit enable.
562         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
563         initialize link_info.pei386_auto_import to -1 == implicit
564         enable.
565         (gld_${EMULATION_NAME}_parse_args): When processing
566         --enable-auto-import and --disable-auto-import options, use
567         '1' and '0' instead of 'true' and 'false'.
568         (pe_find_data_imports): Only issue message about auto-import
569         when the feature is implicitly enabled.  Downgrade message to
570         informational instead of warning.
572 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
574         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
576 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
578         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
579         HOSTING_CRT0 and HOSTING_LIBS.
581 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
583         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
585 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
587         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
588         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
590 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
592         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
593         SEC_EXCLUDE sections when doing a relocatable link.
595 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
597         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
598         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
599         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
600         (eshlelf64_nbsd.c): New rules.
601         * Makefile.in: Regenerate.
602         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
603         (sh64-*-netbsd*): New targets.
604         * emulparams/shelf32_nbsd.sh: New file.
605         * emulparams/shelf64_nbsd.sh: New file.
606         * emulparams/shlelf32_nbsd.sh: New file.
607         * emulparams/shlelf64_nbsd.sh: New file.
609 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
611         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
613 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
615         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
616         C++ constructors/destructors, loosely based on the m68hc11 port.
618 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
620         * Makefile.in: Regenerate.
621         * aclocal.m4: Regenerate.
622         * config.in: Regenerate.
623         * configure: Regenerate.
625 2002-05-31  Graeme Peterson  <gp@qnx.com>
627         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
628         (ei386nto.c): Add rule.
629         * Makefile.in: Regenerate.
630         * configure.tgt: Add i[3456]86-*-nto-qnx*.
631         * emulparams/i386nto.sh: New file.
633 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
635         * NEWS: Add entry for VAX ELF support.
637 2002-05-29  Matt Thomas  <matt@3am-software.com>
638             Jason Thorpe  <thorpej@wasabisystems.com>
640         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
641         (eelf32vax.c)
642         (evaxnbsd.c): New rules.
643         * Makefile.in: Regenerate.
644         * configure.tgt (vax-*-netbsdelf*)
645         (vax-*-netbsdaout*)
646         (vax-*-netbsd*): New targets.
647         * emulparams/elf32vax.sh: New file.
648         * emulparams/vaxnbsd.sh: New file.
650 2002-05-29  Adam Nemet  <anemet@lnxw.com>
652         * emultempl/armelf.em (arm_elf_after_open): Don't determine
653         bfd_for_interwork, instead add glue sections to each input bfd.
654         (bfd_for_interwork): New global.
655         (arm_elf_set_bfd_for_interworking): New function.
656         (arm_elf_before_allocation): Use it.
658 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
660         * Makefile.am: Add DLX make target.
661         * configure.tgt: Add DLX configuration.
662         * Makefile.in: Regenerate.
663         * emulparams/elf32_dlx.sh: New file
664         * scripttempl/dlx.sc: New file
666 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
668         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
669         * Makefile.in: Regenerate.
670         * emulparams/elf_chaos.sh: Use elf_chaos script.
671         * scripttempl/elf_chaos.sc: New file.
673 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
675         * ldlang.c (lang_size_sections_1): Move check for conflicting load
676         addresses and regions from here...
677         (lang_get_regions): ...to this new function.
678         (lang_leave_output_section_statement): Use lang_get_regions.
679         (lang_leave_overlay): Likewise.
680         * mri.c (mri_draw_tree): Pass null as last argument to
681         lang_leave_output_section_statement.
682         * emultempl/elf32.em (gld*_place_orphan): Likewise.
683         * emultempl/mmo.em (mmo_place_orphan): Likewise.
684         * emultempl/pe.em (gld*_place_orphan): Likewise.
686 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
688         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
690 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
692         * ldemul.c: Fix formatting.
693         * ldfile.c: Likewise.
694         * pe-dll.c: Likewise.
695         * pe-dll.h: Likewise.
697 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
699         * ldlang.c (lang_process): Formatting, grammar.
701         * ldlex.l: Use #include "" instead of <> for local header files.
703 2002-05-24  TAMURA Kent <kent@netbsd.org>
705         * configure.tgt: Add a target for i386-netbsdpe.
707 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
709         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
710         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
711         output section if necessary.  Handle .tbss.
712         (lang_size_sections): Clear _raw_size for .tbss section
713         (it allocates space in PT_TLS segment only).
714         * ldwrite.c (build_link_order): Build link order for .tbss too.
716 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
718         * configure.in: Correct spelling of AC_PREREQ.
720 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
722         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
723         default.
724         (autofilter_objlist): Add crtbegin.o, crtend.o.
726 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
728         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
729         (longopts): Add new option --exclude-libs.
730         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
731         (gld_${EMULATION_NAME}_parse_args): Use it.
732         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
733         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
734         from whole archives.
735         (pe_dll_add_excludes): Set excludes->type.
736         (auto_export): Add new variable libname and set to archive basename if
737         abfd.  Use it when filtering default and user-specified libarary
738         excludes.  Let string "ALL" mean all libs when filtering user-specified
739         libs.
740         * ld.texinfo: Document --exclude-libs.
742 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
744         * ldemul.c (ldemul_new_vers_pattern): New function.
745         * ldemul.h (ldemul_new_vers_pattern): Declare.
746         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
747         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
748         * emultempl/ppc64elf.em (dotsyms): New static var.
749         (gld${EMULATION_NAME}_new_vers_pattern): New function.
750         (LDEMUL_NEW_VERS_PATTERN): Define.
751         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
752         (PARSE_AND_LIST_LONGOPTS): Likewise.
753         (PARSE_AND_LIST_ARGS_CASES): Handle them.
754         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
755         initialiser.
756         * emultempl/armcoff.em: Likewise.
757         * emultempl/armelf_oabi.em: Likewise.
758         * emultempl/beos.em: Likewise.
759         * emultempl/elf32.em: Likewise.
760         * emultempl/generic.em: Likewise.
761         * emultempl/gld960.em: Likewise.
762         * emultempl/gld960c.em: Likewise.
763         * emultempl/linux.em: Likewise.
764         * emultempl/lnk960.em: Likewise.
765         * emultempl/m68kcoff.em: Likewise.
766         * emultempl/mipsecoff.em: Likewise.
767         * emultempl/pe.em: Likewise.
768         * emultempl/sunos.em: Likewise.
769         * emultempl/ticoff.em: Likewise.
770         * emultempl/vanilla.em: Likewise.
772 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
774         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
775         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
776         (LIB_SEARCH_DIRS): No need to use "tr".
777         (COMPILE_IN): Only set for native targets.
778         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
779         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
780         * configure.tgt (powerpc*): Set tdir_*.
781         (powerpcle*): Correct targ_extra_emuls.
782         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
783         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
785 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
787         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
788         calling lang_add_entry.
790 2002-05-21  H.J. Lu  (hjl@gnu.org)
792         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
793         "-z muldefs".
794         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
796         * ld.texinfo: Updated for --allow-multiple-definition and
797         "-z muldefs".
799         * ldmain.c (main): Initialize the allow_multiple_definition
800         field to false.
802         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
803         (ld_options): Add --allow-multiple-definition.
804         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
806 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
808         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
809         (earmelfb_nbsd.c): New rule.
810         * Makefile.in: Regenerate.
811         * configure.tgt (armeb-*-netbsdelf*): New target.
812         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
813         (arm-*-netbsd*): Likewise.
814         * emulparams/armelfb_nbsd.sh: New file.
816 2002-05-18  Tom Rix  <trix@redhat.com>
818         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
819         support.
821 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
823         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
824         * Makefile.in: Regenerate.
825         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
827 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
829         * emulparams/avr1.sh: New file.
830         * emulparams/avr2.sh: New file.
831         * emulparams/avr3.sh: New file.
832         * emulparams/avr4.sh: New file.
833         * emulparams/avr5.sh: New file.
834         * scripttempl/avr.sc: New file.
836 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
838         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
839         (lang_place_orphans): Abort if just_syms_flag.
841 2002-05-10  Tom Rix  <trix@redhat.com>
843         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
844         architecture and machine information in the output bfd.
845         (gld*_before_parse): Remove old arch and machine code.
846         (choose_target): Rename to gld*_choose_target.
847         (rtld): Change type to int.
848         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
849         objects in XCOFF archives.
850         * ldfile.h: Update copyright date.
852 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
854         * ldmain.c (main): Enable -z combreloc by default.
856 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
858         * Makefile.am: Honour DESTDIR.
859         * Makefile.in: Regenerate.
861 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
863         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
864         (lang_enter_overlay): Remove the last two parameters.
865         (lang_leave_overlay): Take them here instead.
866         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
867         (section): Pass LMA and crossref flag to lang_leave_overlay rather
868         than lang_enter_overlay.
869         * ldlang.c (lang_memory_region_lookup): Return null for null names.
870         (lang_output_section_statement_lookup): Initialize update_dot_tree.
871         (lang_size_sections_1): Evaluate it.
872         (lang_leave_output_section_statement): Rework LMA lookup.
873         (overlay_lma, overlay_nocrossrefs): Remove.
874         (lang_enter_overlay): Remove LMA and crossref arguments.
875         (lang_enter_overlay_section): Don't set the LMA here.
876         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
877         assignment to the last section's update_dot_tree.  Unconditionally
878         use the load and run-time regions specified in the OVERLAY statement.
879         Likewise the first section's LMA.  Only set the other sections' LMAs
880         when no load region is given.
882 2002-05-06  Nick Clifton <nickc@redhat.com>
884         * po/sv.po: New translation.
886 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
888         * emultempl/hppaelf.em (build_section_lists): New function.
889         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
890         and build_section_lists.
892 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
894         * ld.h: Fix formatting.
895         * ldexp.c: Likewise.
896         * ldfile.c: Likewise.
897         * ldlang.c: Likewise.
898         * ldmain.c: Likewise.
899         * lexsup.c: Likewise.
900         * pe-dll.c: Likewise.
902 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
904         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
905         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
906         (build_section_lists): Do output_section tests here.
908 2002-04-30  Tom Rix  <trix@redhat.com>
910         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
912 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
914         Long branch stubs, multiple stub sections.
915         * emultempl/ppc64elf.em: Include ldctor.h.
916         (stub_file): New var.
917         (group_size): New var.
918         (ppc_create_output_section_statements): New function.
919         (struct hook_stub_info): New.
920         (hook_in_stub): New function.
921         (ppc_add_stub_section): New function.
922         (ppc_layout_sections_again): New function.
923         (build_section_lists): New function.
924         (gld${EMULATION_NAME}_finish): Rewrite.
925         (real_func): New var.
926         (ppc_for_each_input_file_wrapper): New function.
927         (ppc_lang_for_each_input_file): New function.
928         (lang_for_each_input_file): Define.
929         (PARSE_AND_LIST_PROLOGUE): Define.
930         (PARSE_AND_LIST_LONGOPTS): Define.
931         (PARSE_AND_LIST_OPTIONS): Define.
932         (PARSE_AND_LIST_ARGS_CASES): Define.
933         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
935 2002-04-30  Tom Rix  <trix@redhat.com>
937         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
938         -blibpath, -bnolibpath support.
940 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
942         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
943         (eelf32ppcwindiss.c): New target.
944         * Makefile.in: Regenerated.
945         * configure.tgt: Add support for powerpc-*-windiss.
946         * emulparams/elf32ppcwindiss.sh: New file.
948 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
950         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
951         * ldexp.c (exp_print_token): Add "infix_p" argument.
952         (exp_print_tree): Update accordingly.
954 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
956         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
957         * Makefile.in: Regenerate.
958         * mpw-elfmips.c: Delete.
959         * mpw-eppcmac.c: Delete.
960         * mpw-esh.c: Delete.
961         * mpw-idtmips.c: Delete.
963 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
965         * emulparams/shelf32.sh (MACHINE): Now sh5.
967 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
969         * ldgram.y: Fix syntax warning.
971 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
973         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
974         to prevent "-n" from being taken as an abbreviation for
975         "--no-pipeline-knowledge".
977 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
979         * ldlang.c (lang_size_sections_1): Don't complain about
980         SEC_NEVER_LOAD sections having no memory region specified.
982         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
984 2002-04-07  matthew green  <mrg@redhat.com>
986         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
988 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
990         * dep-in.sed: Cope with absolute paths.
991         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
992         Run "make dep-am".
993         * Makefile.in: Regenerate.
995 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
997         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
999 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1001         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1002         is smaller than maximum, round dot up to common page boundary.
1004 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
1006         * configure.host: Set up for generic hosts first, then tweak as
1007         necessary in more specific targets.
1008         (HOSTING_LIBS): Include libgcc_eh.a if found.
1010 2002-03-23  Andreas Jaeger  <aj@suse.de>
1012         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1014 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
1016         * Makefile.am: Run "make dep-am".
1017         * Makefile.in: Regenerate.
1019 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
1021         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1023 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
1025         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1026         add the symbol to the linker hash table immediately.
1027         (lang_place_undefineds): Split symbol creation out..
1028         (insert_undefined): ..to here.
1030 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
1032         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1033         the contents of the buffer returned from basename function will are
1034         getting overwritten while still being used.
1036 2002-03-18  Jan Hubicka  <jh@suse.cz>
1037             Andreas Jaeger  <aj@suse.de>
1038             Andreas Schwab  <schwab@suse.de>
1040         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1041         * elf_x86_64.sh (ARCH): Set to i386:x86-64
1042         set libraries to default to lib64 paths.
1044 2002-03-18  Tom Rix  <trix@redhat.com>
1046         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1047         * configure.tgt : Same.
1048         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1049         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1050         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1051         emulation parameters for better -b32, -b64 support.
1052         * emulparms/aixrs6.sh : Same.
1053         * emulparms/ppcmacos.sh : Same.
1054         * emultempl/aix.em (choose_target) : Use new emulation parameters
1055         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1056         * Makefile.in : Regenerate.
1058 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
1060         * po/fr.po: Updated version.
1062 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
1064         * ldmain.c (main): Move .text readonly flag fudges from here..
1065         * ldlang.c (lang_process): ..to here.
1067 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
1069         * ldlang.c (lang_check): Remove the word size check added in last
1070         change.  Treat emitrelocations case as for relocatable links.
1072 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
1074         * po/fr.po: Updated version.
1076 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
1078         * ldlang.c (lang_check): Do relocatable link checks first, so that
1079         warn_mismatch can't override.  Check compatible and word size too.
1081 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
1083         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1085 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
1087         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1088         DATA_SEGMENT_ALIGN.
1090 2002-03-04  H.J. Lu <hjl@gnu.org>
1092         * scripttempl/elf.sc: Put .preinit_array, .init_array and
1093         .fini_array in the data segment.
1095 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
1097         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1099 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
1101         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1102         .init_array, and .fini_array.
1104 2002-02-20  Andreas Schwab  <schwab@suse.de>
1106         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1107         .IA64_unwind* in a relocatable link.
1109 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
1111         * NEWS: Mark 2.12 branch.
1113 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1115         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1116         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1118 2002-02-18  Tom Rix  <trix@redhat.com>
1120         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1121         (gld*_before_allocation): Same.
1122         (gld*_create_output_section_statements): Generate
1123         __rtinit if run time linking.  Add librtl.a to the link.
1124         (gld*_read_file): Clean.
1126 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1128         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1130 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
1132         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1133         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1134         and eelf64alpha_fbsd.
1135         * Makefile.in: Regenerate.
1136         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1137         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1138         use a FreeBSD-specific emulation rather than the psABI one.
1139         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1140         for all FreeBSD ELF systems.
1141         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1142         emulation.
1143         * emulparams/elf32ppc_fbsd.sh: Likewise.
1144         * emulparams/elf64_ia64_fbsd.sh: Likewise.
1145         * emulparams/elf64_sparc_fbsd.sh: Likewise.
1146         * emulparams/elf64alpha_fbsd.sh: Likewise.
1147         * emulparams/elf_i386_fbsd.sh: Likewise.
1148         * emulparams/elf_x86_64_fbsd.sh: Likewise.
1150 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
1152         * po/tr.po: Updated version.
1154 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1156         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1157         (FILL): Likewise.
1159 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
1161         * emultempl/mmo.em (mmo_after_open): Don't call
1162         _bfd_mmix_check_all_relocs when producing ELF output.
1164 2002-02-15  Richard Henderson  <rth@redhat.com>
1166         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1167         definition.  Emit a unop+nop pair.
1169 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
1171         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1172         for presence of .MMIX.reg_contents.linker_allocated before early
1173         exit.
1175         * NEWS: Mention support for MMIX.
1177 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
1179         Support arbitrary length fill patterns.
1180         * ld.texinfo (Output Section Fill): Describe fill expressions.
1181         (FILL): Refer to the above.
1182         * ldexp.h (etree_value_type): Add "str" field.
1183         (union etree_union): Add "str" to "value" struct.
1184         (exp_bigintop): Declare.
1185         (exp_get_fill): Declare.
1186         * ldexp.c: Include "safe-ctype.h".
1187         (exp_intop): Set value.str to NULL.
1188         (exp_bigintop): New function.
1189         (new_rel): Pass in "str", and set new.str from it.
1190         (new_rel_from_section): Set new.str to NULL.
1191         (fold_name): Adjust calls to new_rel.
1192         (exp_fold_tree): Likewise.
1193         (exp_get_fill): New function.
1194         * ldgram.y (struct big_int bigint, fill_type *fill): New.
1195         (INT): Returns a "bigint".  Adjust all code handling INTs.
1196         (fill_opt): Returns a "fill".
1197         (fill_exp): Split out of fill_opt, use for FILL.
1198         * ldlang.h (struct _fill_type): New.
1199         (fill_type): Move typedef to ldexp.h.
1200         (lang_output_section_statement_type): "fill" is now a pointer.
1201         (lang_fill_statement_type): Likewise.
1202         (lang_padding_statement_type): Likewise.
1203         (lang_add_fill): Now takes a "fill_type *" param.
1204         (lang_leave_output_section_statement): Likewise.
1205         (lang_do_assignments): Likewise.
1206         (lang_size_sections): Likewise.
1207         (lang_leave_overlay_section): Likewise.
1208         (lang_leave_overlay): Likewise.
1209         * ldlang.c: Include ldgram.h after ldexp.h.
1210         (lang_output_section_statement_lookup): Adjust for fill_type change.
1211         (print_fill_statement): Likewise.
1212         (print_padding_statement): Likewise.
1213         (insert_pad): Now takes a "fill_type *" arg.
1214         (size_input_section): Likewise.
1215         (lang_size_sections_1): Likewise.
1216         (lang_size_sections): Likewise.
1217         (lang_do_assignments): Likewise.
1218         (lang_add_fill): Likewise.
1219         (lang_leave_output_section_statement): Likewise.
1220         (lang_leave_overlay_section): Likewise.
1221         (lang_leave_overlay): Likewise.
1222         Adjust all callers of the above function.
1223         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
1224         starting with "0X" as well as "0x".  Return bigint.str for hex
1225         numbers starting with "0x" or "0X", zero bigint.str otherwise.
1226         Always use base 16 for numbers starting with "$".
1227         * ldmain.c: Include ldgram.h after ldexp.h.
1228         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1229         of bfd_fill_link_order.
1230         * pe-dll.c: Adjust lang_do_assignments calls.
1231         * emultempl/elf32.em: Likewise.
1232         * emultempl/hppaelf.em: Likewise.
1233         * emultempl/ppc64elf.em: Likewise.
1234         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1235         lang_add_assignment call.
1236         * emultempl/pe.em: Likewise.
1238 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
1240         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
1241         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
1242         the pattern in question is not a regexp.
1243         * ldlang.c:  Likewise.
1244         * ldlang.h:  Likewise.
1245         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
1247 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
1249         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1250         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1251         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1252         * ldexp.c (exp_data_seg): New variable.
1253         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1254         (fold_binary): Handle DATA_SEGMENT_ALIGN.
1255         (exp_fold_tree): Handle DATA_SEGMENT_END.
1256         Pass allocation_done when recursing instead of hardcoding
1257         lang_allocating_phase_enum.
1258         * ldexp.h (exp_data_seg): New.
1259         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1260         (lang_size_sections): New.
1261         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1262         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1263         if COMMONPAGESIZE is defined.
1264         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1265         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1266         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1267         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1268         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1269         libraries only.
1271 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
1273         * Makefile.in: Regenerate.
1275 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1277         * lexsup.c: Remove strtoul declaration.
1279 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1281         * ldmain.c: Add prototype for main ().
1282         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1283         * emultempl/lnk960.em (lnk960_choose_target): Function should
1284         take two arguments.
1286 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
1288         * ldlang.c (entry_section): New initialised variable.
1289         (lang_finish): Use it.
1290         * ldlang.h (entry_section): Declare.
1291         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1292         entry_section to ".opd".
1294 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
1296         * ld.texinfo (Options): Add back in -nostdlib documentation,
1297         which had been inadvertently removed.
1299 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
1301         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1302         register section vma to a sane value after emitting error.  Make
1303         fatal conditions cause program exit when emitting message.
1305 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
1307         * configure.tgt: Add or32-*-rtems target.
1309 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1311         Contribute sh64-elf.
1312         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1313         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1314         in OTHER_RELOCATABLE_SECTIONS.
1315         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1316         * emulparams/shelf32.sh (STACK_ADDR): Define.
1317         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1318         (OTHER_SECTIONS): this.  Removed stack settings.
1319         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1320         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1321         2001-03-12  DJ Delorie  <dj@redhat.com>
1322         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1323         relaxing if any shmedia or mixed sections are found.
1324         2001-03-07  DJ Delorie  <dj@redhat.com>
1325         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1326         einfo.  Gracefully decline to output to non-elf formats.
1327         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
1328         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1329         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1330         * emulparams/shelf32.sh: Ditto.
1331         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
1332         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1333         comment.
1334         2001-01-10  Ben Elliston  <bje@redhat.com>
1335         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1336         non-portable shell constructs. From Hans-Peter Nilsson.
1337         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
1338         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1339         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1340         dependencies to the shell script include chain.
1341         * Makefile.in: Regenerate.
1342         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
1343         * emultempl/sh64elf.em: Update and tweak comments.
1344         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1345         make a .cranges section SEC_IN_MEMORY.
1346         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1347         * emultempl/sh64elf.em
1348         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1349         .cranges section found to be necessary; continue and set stored
1350         section contents flags for sections with non-mixed contents.
1351         Use a struct sh64_section_data container and sh64_elf_section_data
1352         to store contents-type flags.
1353         Remove unused update of "isec".
1354         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1355         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
1356         access contents-type flags.  Assert that the associated container
1357         is initialized.  Use that container, not elf_gp_size, to hold size
1358         of linker-generated cranges contents.
1359         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1360         * emultempl/sh64elf.em
1361         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1362         there's already a .cranges section.  When section flag difference
1363         is found, don't NULL-check cranges a second time.  Tweak comments.
1364         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1365         merging, not max size, as size of ld-generated .cranges contents.
1366         Don't set ELF section flags in output section.  When checking for
1367         needed .cranges descriptors, don't use a variable; compare
1368         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
1369         comments.
1370         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1371         * emultempl/sh64elf.em: New file.
1372         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1373         * Makefile.in: Regenerate.
1374         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1375         (OTHER_RELOCATING_SECTIONS): Ditto.
1376         (EXTRA_EM_FILE): New, set to sh64elf if not set.
1377         * emulparams/shlelf32.sh: Stub out all settings except
1378         OUTPUT_FORMAT.  Source shelf32.sh.
1379         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1380         OTHER_RELOCATING_SECTIONS.
1381         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1382         * emulparams/shlelf64.sh: Stub out all settings except
1383         OUTPUT_FORMAT.  Source shelf64.sh.
1384         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
1385         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1386         .cranges section.
1387         (DATA_START_SYMBOLS): Define, provide ___data.
1388         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1389         for consecutive .data section.
1390         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1391         section after .data section.
1392         * emulparams/shlelf64.sh: Ditto.
1393         * emulparams/shelf32.sh: Ditto.
1394         (ALIGNMENT): Define to 8.
1395         * emulparams/shelf32.sh: Ditto.
1396         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
1397         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1398         built-in linker scripts.
1399         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1400         * emulparams/shlelf64.sh: New.
1401         * emulparams/shelf64.sh: New.
1402         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1403         targ_extra_emuls.
1404         * Makefile.am: Add support for shlelf64 and shelf64.
1405         * Makefile.in: Regenerate.
1406         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
1407         * configure.tgt (sh64-*-elf*): Add shelf as default.
1408         Add shlelf to targ_extra_emuls.
1409         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
1410         * emulparams/shelf32.sh: New file.
1411         * emulparams/shlelf32.sh: New file.
1412         * Makefile.am: Add support for shlelf32 and shelf32.
1413         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1414         * Makefile.in: Regenerate.
1416 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
1418         * ldlang.c (lang_reset_memory_regions): Rename from
1419         reset_memory_regions.  Change all callers.  Make public.
1420         * ldlang.h (lang_reset_memory_regions): Prototype.
1421         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1422         lang_reset_memory_regions before lang_size_sections.
1423         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1424         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1426 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
1428         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1429         arithmetic when checking for too many global registers.
1431 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
1433         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1434         (ehppanbsd.c): New rule.
1435         * Makefile.in: Regenerate.
1436         * configure.tgt (hppa*-*-netbsd*): New target.
1437         * emulparams/hppalinux.sh: Add comment to check other files
1438         that source this file it is modified, and list which
1439         files that do.
1440         * emulparams/hppanbsd.sh: New file.
1442 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
1444         * scripttempl/xstormy16.sc: Don't allocate extra space for the
1445         stack.
1447 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
1449         Support on-demand global register allocation from
1450         R_MMIX_BASE_PLUS_OFFSET relocs.
1451         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1452         mmix_set_reg_section_vma.  Call
1453         _bfd_mmix_finalize_linker_allocated_gregs.
1454         (mmix_before_allocation): New function.
1455         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1456         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1457         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1458         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1459         before .MMIX.reg_contents.
1460         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1461         (mmo_after_open): New function.
1462         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1463         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
1464         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1466 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
1468         * emulparams/or32.sh: New file.
1469         * emulparams/or32elf.sh: New file.
1470         * scripttempl/or32.sc: New file.
1471         * configure.tgt : Add support for or32.
1472         * configure: Regenerate
1473         * Makefile.am: Add support for or32.
1474         * Makefile.in: Regenerate.
1475         * NEWS: Mention support for or32.
1476         * po/ld.pot: Regenerate.
1478 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
1479             Mitch Lichtenberg  <mpl@broadcom.com>
1481         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1482         * emultempl/mipself.em: New file to handle MIPS ELF embedded
1483         reloc creation (ld --embedded-relocs).
1485 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
1487         * configure: Regenerated.
1489 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
1491         * Makefile.am (install): Depend on install-info.
1492         * Makefile.in: Regenerate.
1494 2002-01-26  Christian Rose  <menthos@menthos.com>
1496         * ldmain.c (main): Use full sentences to ease translation.
1498 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
1500         * po/fr.po: Updated version.
1502 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
1504         * po/es.po: Updated version.
1506 2002-01-25  Andreas Jaeger  <aj@suse.de>
1508         * ldlex.l (yy_input): Correct error check.
1510 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
1512         * ldmisc.c (demangle): Put back dots when string not demangled.
1514 2002-01-22  Richard Henderson  <rth@redhat.com>
1516         * emulparams/elf64alpha.sh (NOP): Use unop.
1518 2002-01-21  Andreas Jaeger  <aj@suse.de>
1520         * ldlex.l: Use fread instead of read.
1522 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
1524         * configure.tgt (ia64-*-netbsd*): New target.
1526 2002-01-21  H.J. Lu <hjl@gnu.org>
1528         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1529         0.
1530         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1532 2002-01-18  Andreas Jaeger  <aj@suse.de>
1534         * ldver.c (ldversion): Update year.
1536 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
1538         * po/ld.pot: Regenerate.
1540 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
1542         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1543         * Makefile.in: Regenerate.
1544         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1545         * emultempl/ppc64elf.em: New file.
1547 2002-01-15  DJ Delorie  <dj@redhat.com>
1549         * scripttempl/pe.sc: Add support for constructor priorities.
1551 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1553         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1554         * emulparams/avr23xx.sh: Likewise.
1555         * emulparams/avr4433.sh: Likewise.
1556         * emulparams/avr44x4.sh: Likewise.
1557         * emulparams/avr85xx.sh: Likewise.
1558         * emulparams/avrmega103.sh: Likewise.
1559         * emulparams/avrmega161.sh: Likewise.
1560         * emulparams/avrmega603.sh: Likewise.
1561         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1563 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
1565         * ldlang.c (walk_wild_section): Exclude object file if enclosing
1566         archive is excluded.
1568 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
1570         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1571         (eshelf_nbsd.c): New rule.
1572         (eshlelf_nbsd.c): New rule.
1573         * Makefile.in: Regenerate.
1574         * configure.tgt (sh*le-*-netbsdelf*): New target.
1575         (sh*-*-netbsdelf*): New target.
1576         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1577         * ld/emulparams/shelf_nbsd.sh: New emulation.
1578         * ld/emulparams/shlelf_nbsd.sh: New emulation.
1580 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
1582         * po/es.po: New file: Spanish translation.
1583         * configure.in (ALL_LINGUAS): Add es.
1584         * configure: Regenerate.
1586 2002-01-06  John Marshall  <jmarshall@acm.org>
1588         * ld.texinfo: Note that --emit-relocs is currently only
1589         implemented for ELF.
1591 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
1593         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1594         of bfd_section_list_remove and bfd_section_list_insert macros.
1595         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1596         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1598 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1600         * configure.tgt (x86_64-*-netbsd*): New target.
1602 2001-12-21  Tom Rix  <trix@redhat.com>
1604         (gld*_create_output_section_statements): New function.
1605         For -binitfini support.
1606         * emultempl/aix.em (gld*_before_parse): Fix comment.
1607         * emultempl/aix.em (gld*_parse_args): Fix comment.
1609 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
1611         * configure.tgt (mips*-dec-netbsd*): Delete alias for
1612         mips*el-*-netbsd*.
1613         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1615         * configure.tgt (arm-*-netbsdelf*): Add target.
1616         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1617         * emulparams/armelf_nbsd.sh: Added.
1618         * Makefile.am: Add rules for earmelf_nbsd.
1619         * Makefile.in: Regenerate.
1621 2001-12-19  Andreas Jaeger  <aj@suse.de>,
1622             Susanne Oberhauser <froh@suse.de>
1624         * configure.host: Add rules for x86_64-*linux-gnu.  Change
1625         s390x-linux entry to use gcc to report configuration, replace gcc
1626         with $CC in s390-linux
1628 2001-12-19  Andreas Jaeger  <aj@suse.de>
1630         * ld.texinfo (VERSION): Fix markup.
1632 2001-12-18  matthew green  <mrg@eterna.com.au>
1634         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1635         (m68kelfnbsd.c): New rule.
1636         * Makefile.in: Regenerate.
1637         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1638         (m68*-*-netbsd*4k*): .. this.
1639         (m68*-*-netbsdelf*): New target.
1640         (m68*-*-netbsd*): Also include ELF support.
1641         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1642         * emulparams/m68kelfnbsd.sh: New emulation.
1644 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1646         * ldgram.y (vers_node): Support anonymous version tags.
1647         * ldlang.c (lang_register_vers_node): Ensure anonymous version
1648         tag is not defined together with non-anonymous versions.
1649         * ld.texinfo: Document it.
1651 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
1653         * po/tr.po: New file: Turkish translation.
1654         * configure.in (ALL_LINGUAS): Add tr.
1655         * configure: Regenerate.
1657 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
1659         * Makefile.am: Add rules for eelf64alpha_nbsd.
1660         * Makefile.in: Regenerate.
1661         * configure.tgt (alpha*-*-netbsd*): Set
1662         targ_emul to elf64alpha_nbsd.
1663         * emulparams/elf64alpha_nbsd.sh: Added.
1665 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
1667         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1668         section_tail when fiddling with section list.
1669         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1670         broken into separate strings to make translation easier.
1671         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1672         fiddling with section list.
1673         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1675 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
1677         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1679 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
1681         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1683 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
1685         * emultempl/elf32.em (finish): Supply output_bfd
1686         to bfd_elf*_discard_info.
1687         (OPTION_EH_FRAME_HDR): Define.
1688         (longopts): Add --eh-frame-hdr.
1689         (parse_args): Handle it.
1690         (list_options): Add --eh-frame-hdr to help.
1691         * emultempl/hppaelf.em (finish): Supply output_bfd
1692         to bfd_elf*_discard_info.
1693         * scripttempl/elf.sc (.eh_frame_hdr): Add.
1695 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
1697         * lexsup.c (parse_args): Don't pass shortopts to second call to
1698         getopt functions.  Restore optind rather than decrementing before
1699         second call.  Remove errind as it now duplicates last_optind.
1701 2001-12-11  Christopher Faylor  <cgf@redhat.com>
1703         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1705 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
1706             Richard Henderson  <rth@redhat.com>
1708         * Makefile.am: Add support for xstormy16.
1709         * configure.tgt: Add support for xstormy16.
1710         * Makefile.in: Regenerate.
1711         * emulparams/elf32xstormy16.sh: New file.
1712         * scripttempl/xstormy16.sc: New file.
1714 2001-10-01  Christopher Faylor <cgf@cygnus.com>
1716         * Makefile.in (LIB_PATH): Make configurable.
1717         (GENSCRIPTS): Set LIB_PATH in environment.
1718         * configure.in: Substitute LIB_PATH.
1719         * configure: Regenerate.
1720         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1721         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1723 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
1725         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1726         describing the -N option so that it is easier to translate into
1727         foreign languages.
1729 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
1731         * emultempl/pe.em (..._list_options): Replace multiple fprintf
1732         statements describing a single option with a single, newline
1733         escaped fprintf.  This allows better translation into other
1734         languages.
1736         * ldmain.c (add_archive_element): Combine multiple strings
1737         into a single string to permit better translation into other
1738         languages.
1740 2001-12-05  Tom Rix  <trix@redhat.com>
1742         * Makefile.am: Remove eaixppc64.
1743         * Makefile.in: Regenerate.
1745 2001-12-04  Tom Rix  <trix@redhat.com>
1747         * emultempl/aix.em (choose_target): Change default target to
1748         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
1749         warning.
1750         (gld*_read_file):  Fix typo.
1751         (change_symbol_mode): Add prototype.
1752         (is_syscall): Same.
1754         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1755         * emulparams/aixrs6.sh : Same.
1756         * emulparams/ppcmacos.sh : Same.
1757         * emulparams/aixppc64.sh : Delete file.
1758         * emultempl/aix.em : Formatting changes.
1760 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
1762         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1763         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1764         __Sbss.
1765         (OTHER_END_SYMBOLS): Fix formatting.
1766         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1767         (OTHER_END_SYMBOLS): Fix formatting.
1769 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
1771         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1773 2001-12-02  Tom Rix  <trix@redhat.com>
1775         * configure.tgt : Remove eaixppc64 emulations.
1776         * Makefile.in : Remove eaixppc64.c
1777         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1778         (ldemul_default_target): Same.
1779         * emultempl/gld960.em (gld960_choose_target):  Same.
1780         * emultempl/gld960c.em (gld960_choose_target):  Same.
1781         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1782         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1783         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1784         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1785         * emultempl/aix.em (choose_target): New function.  Handle emulation of
1786         -b32 and -b64.
1788 2001-11-27  H.J. Lu <hjl@gnu.org>
1790         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1791         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1792         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1793         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1794         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1795         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1796         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1797         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1799         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1800         is not empty.
1801         (SDATA): Likewise.
1802         (REL_SDATA): Likewise.
1803         (REL_SBSS): Likewise.
1804         (REL_SDATA2): Likewise.
1805         (REL_SBSS2): Likewise.
1806         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1807         (SDATA2): Likewise.
1809 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1811         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1812         destructor in rom.
1813         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1815 2001-11-22  H.J. Lu  <hjl@gnu.org>
1817         * Makefile.in: Regenerated with automake based on automake
1818         1.4-8 in RedHat 7.1.
1820 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
1822         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1823         (config.status): Delete rule.
1824         Add extra dependencies to cover sourced emulparams files.
1825         * Makefile.in: Regenerate.
1827         * scripttempl/elf.sc: Order <section>, <section>.* and
1828         corresponding linkonce sections as seen in input files.
1829         Formatting fixes.  Zero vma of all sections if not relocating.
1830         (STACK): Define and insert if STACK_ADDR defined.
1831         (OTHER_RELOCATING_SECTIONS): Delete.
1832         (OTHER_END_SYMBOLS): Define.
1833         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1834         (OTHER_READWRITE_SECTIONS): Likewise.
1835         (OTHER_GOT_SECTIONS): Likewise.
1836         (OTHER_SDATA_SECTIONS): Likewise.
1837         (OTHER_BSS_SECTIONS): Likewise.
1838         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1839         (OTHER_READWRITE_SECTIONS): Likewise.
1840         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1841         (OTHER_READWRITE_SECTIONS): Likewise
1843         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1844         (STACK_ADDR): Define.
1845         * emulparams/armelf_oabi.sh: As for armelf.sh.
1846         * emulparams/elf32mcore.sh: As for armelf.sh.
1847         * emulparams/h8300elf.sh: As for armelf.sh.
1848         * emulparams/mn10200.sh: As for armelf.sh.
1849         * emulparams/shelf.sh: As for armelf.sh.
1851         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1852         (OTHER_END_SYMBOLS): Define.
1853         * emulparams/m32relf.sh: As for elf32fr30.sh.
1854         * emulparams/h8300helf.sh: As for elf32fr30.sh.
1855         * emulparams/h8300self.sh: As for elf32fr30.sh.
1857         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1858         defines with RELOCATING test.
1859         (OTHER_SDATA_SECTIONS): Likewise.
1860         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1861         (OTHER_END_SYMBOLS): ..this.
1862         * emulparams/crislinux.sh: As for criself.sh.
1864         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1865         if not relocating.
1866         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1867         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
1868         normal and linkonce sections as seen in input files.
1869         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1870         (TEXT_DYNAMIC): Likewise.
1871         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1872         (OTHER_SDATA_SECTIONS): Likewise.
1873         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1874         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1875         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1876         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1877         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1878         (OTHER_PLT_RELOC_SECTIONS): Likewise.
1879         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
1880         sections as seen in input files.
1881         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1882         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1883         if not relocating.
1884         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1885         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1886         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1887         (OTHER_SECTIONS): Instead, use this..
1888         (OTHER_END_SYMBOLS): ..and this.
1890         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1891         * emulparams/elf32bsmip.sh: Likewise.
1892         * emulparams/elf32btsmip.sh: Likewise.
1893         * emulparams/elf32ebmip.sh: Likewise.
1894         * emulparams/elf32lmip.sh: Likewise.
1895         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1896         * emulparams/elf32lsmip.sh: Likewise.
1897         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1898         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1899         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1900         * emulparams/elf64btsmip.sh: Likewise.
1901         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1902         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1903         * emulparams/elf32ppclinux.sh: Likewise.
1904         * emulparams/elf32ppcsim.sh: Likewise.
1905         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1906         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1907         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1908         * emulparams/h8300self.sh: Likewise.
1909         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1910         * emulparams/sh.sh: Comment.
1911         * emulparams/shl.sh: Source sh.sh, remove duplicates.
1912         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1913         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1915 2001-11-21  David Heine <dlheine@tensilica.com>
1916             Alan Modra  <amodra@bigpond.net.au>
1918         * ldlang.c (map_input_to_output_sections): Replace "break"
1919         accidentally removed with 2001-08-03 change.
1920         (lang_gc_sections_1): Likewise.
1922 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
1924         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1926 2001-11-20  Angela Marie Thomas <angela@redhat.com>
1928         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1929         of false when calling lang_size_sections.
1930         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1932 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
1934         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1935         function when LDEMUL_FINISH isn't set to the same name.  Don't
1936         call ${LDEMUL_FINISH}.
1937         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1938         * emultempl/armelf.em (arm_elf_finish): Call
1939         gld${EMULATION_NAME}_finish.
1940         * emultempl/hppaelf.em (hppaelf_finish): Rename to
1941         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
1942         hppaelf_layout_sections_again if necessary.
1943         (need_laying_out): New var.
1944         (hppaelf_layaout_sections_again): Rename to
1945         hppaelf_layout_sections_again.  Clear need_laying_out.
1946         (PARSE_AND_LIST_OPTIONS): Format text.
1948 2001-11-14  H.J. Lu  <hjl@gnu.org>
1950         * emultempl/armelf.em (arm_elf_finish): Renamed from
1951         gld${EMULATION_NAME}_finish.
1952         (LDEMUL_FINISH): Set to arm_elf_finish.
1954 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
1956         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1957         (struct ld_emulation_xfer_struct): Use it.
1959 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
1961         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1962         additional symbols referenced by newer crt0.o files from HP.
1964 2001-11-12  Anthony Green  <green@redhat.com>
1966         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1968 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
1970         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1971         * Makefile.in: Regenerate.
1973 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1975         * ld.texinfo: Use @command for commands, @option for options.
1976         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1977         the page man title.
1978         * Makefile.in: Rebuild.
1980 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
1982         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1983         Add support for targets.
1985 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
1987         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1988         * configure: Regernate.
1989         * po/fr.po: New file.
1990         * po/sv.po: New file.
1992 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
1994         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1995         as little endian default and to support big endian.
1997 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
1999         * ld.texinfo (Options): Document new option, -nostdlib.
2000         * lexsup.c (OPTION_NOSTDLIB): New definition.
2001         (ld_options): Add entry for "nostdlib".
2002         (parse_args): Handle OPTIONS_NOSTDLIB.
2003         * ldfile.c (ldfile_add_library_path): Don't add directories
2004         to the search path if they weren't specified on the command line
2005         and -nostdlib was specified.
2006         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2008 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
2010         * lexsup.c (parse_args): Prevent infinite parsing loop when
2011         "-rpath.a" is specified on the command line.
2012         Replace calls to fprintf with calls to einfo.
2014 2001-10-31  John Marshall  <jmarshall@acm.org>
2016         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2017         appear only once across all the linker scripts involved in a link
2018         invocation no longer applies.  Make the documentation reflect
2019         that.
2021 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
2023         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2024         targets.
2025         (sh-*-linux*): Added targ_extra_libpath.
2027 2001-10-31  David Heine  <dlheine@tensilica.com>
2029         * ldlang.c (lang_size_sections): Keep a valid output_offset field
2030         for padding statements.
2032 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
2034         * configure.tgt (mmix-*-*): New target.
2035         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2036         Add dependencies to match.
2037         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2038         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2039         scripttempl/mmo.sc: New files.
2040         * gen-doc.texi: @set MMIX.
2041         * ld.texinfo: Ditto.
2042         [MMIX] Add MMIX node.
2043         * Makefile.in: Regenerate.
2045 2001-10-29  Kazu Hirata  <kazu@hxi.com>
2047         * ldlang.c: Fix a comment typo.
2049 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
2051         * configure.host: Move alpha*-*-linux-gnu* entry to generic
2052         entries, and match *-*-linux*.
2054 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
2056         * ldgram.y (mri_script_command): Surround processing of INCLUDE
2057         with ldlex_script, ldlex_popstate.
2058         (ifile_p1): Likewise.
2059         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
2060         correct slot.
2061         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
2062         to 1.  Don't BEGIN(SCRIPT).
2063         (lex_redirect): Similarly.
2064         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2066 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
2068         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2069         __EH_FRAME_END__ and accept eh frames into data section.
2070         Add ctor and dtor sections.
2072 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2074         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2075         (auto-export): Fix indentation.
2077 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2079         * pe-dll.c (autofilter_objectlist):  Add startup objects
2080         for profiling.
2081         (auto-export): Constify char * p.
2082         Extract file basename and use strcmp rather than ststr
2083         for object lookup.
2085 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
2087         * ldmain.c (get_emulation): Improve comment about the handling
2088         of -mipsN options.
2090 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
2092         * po/POTFILES.in: Regenerate.
2094 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
2096         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2097         -z nocopyreloc and -z nocombreloc usage strings.
2099 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
2101         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2102         in usage.
2104 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
2106         * scripttempl/armaout.sc: Place .bss section after end of aligned
2107         data section to match behaviour of aout code in constructrion of
2108         header.
2110 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2112         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2113         startup files for mingw32 dlls to list.
2115 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
2117         * emultempl/elf32.em: Fix shell 'if' usage for portability.
2119 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
2121         * configure.tgt (targ): Add arm9e-*-elf.
2123 2001-10-05  H.J. Lu  <hjl@gnu.org>
2125         * genscripts.sh: Fix a typo in the last change.
2127 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
2129         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2130         -z nocombreloc in usage.
2132 2001-10-03  Jim Blandy  <jimb@redhat.com>
2134         * genscripts.sh: Include a comment at the top of each generated
2135         script, explaining its purpose.
2137 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
2139         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2140         * NEWS: Mention -z nocopyreloc.
2141         * ld.texinfo (Options): Describe nocopyreloc.
2143 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
2145         * configure: Regenerate.
2147 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
2149         * ldver.h (ld_program_version): Remove declaration.
2150         * lexsup.c (parse_args): Move printing of copyright message..
2151         * ldver.c (ldversion): .. to here.
2152         Use BFD_VERSION_STRING in place of BFD_VERSION.
2153         (ld_program_version): Remove.
2154         * Makefile.am (Makefile): Depend on bfd/configure.in.
2155         Run "make dep-am".
2156         * Makefile.in: Regenerate.
2158 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
2160         * Makefile.am: Update dependencies with "make dep-am".
2161         * Makefile.in: Regenerate.
2163 2001-09-29  John Reiser  <jreiser@BitWagon.com>
2165         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2166         * lexsup.c: Add --no-define-common commandline option.
2167         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2168         * ldlex.l: Likewise.
2169         * ld.h: Add command_line.inhibit_common_definition.
2170         * ldmain.c (main): Initialize.
2171         * ld.texinfo: Document.
2173 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
2175         * ldlang.c (section_already_linked): Remove assignment to kept_section.
2177 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
2179         * ldmisc.c (USE_STDARG): Remove.
2180         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2181         (einfo): Likewise.
2182         (minfo): Likewise.
2183         (lfinfo): Likewise.
2185         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2186         declarations.  Update copyright.
2188 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2190         * pe-dll.c: Remove obsoleted declaration of
2191         pe_get_data_import_dll_name.
2192         (pe_create_import_fixup): Fix thinko.
2194         * ld.texinfo(enable-auto-import): Clarify the explanation.
2196 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
2198         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2199         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2200         DLL_SUPPORT controlled code.
2202 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2204         * emultempl/pe.em(pe_data_import_dll): Make static.
2205         (pe_get_data_import_dll_name): New accessor function.
2206         * pe-dll.c(pe_create_import_fixup): call
2207         pe_get_data_import_dll_name() from pe.em, instead of
2208         directly accessing pe_data_import_dll variable from pe.em.
2210 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
2212         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2213         (def_file_add_directive): Use ISSPACE instead of isspace.
2214         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2215         isdigit/isxdigit/isalpha/isalnum.
2216         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2217         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2218         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2219         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2220         isalnum.
2221         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2222         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2223         isupper/tolower.
2224         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2225         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2226         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2227         (ctor_prio): Use ISDIGIT instead of isdigit.
2228         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2229         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2230         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2231         isupper/tolower.
2232         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2233         (stricpy): Use TOLOWER instead of isupper/tolower.
2234         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2235         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2236         (lex_warn_invalid): Use ISPRINT instead of isprint.
2237         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2238         (main): For gettext, also set the LC_CTYPE locate facet.
2239         (add_keepsyms_file): Use ISSPACE instead of isspace.
2240         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2241         (is_num, parse_args): Use ISDIGIT instead of isdigit.
2242         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2243         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2244         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2245         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2246         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2247         (quoteput): Use ISSPACE instead of isspace.
2248         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2249         instead of isalnum.
2251 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
2253         * deffilep.y (def_stash_module): Constify "name" param.
2255         * pe-dll.c: Replace CONST with const throughout.
2256         (quick_symbol): Constify "n1", "n2", "n3" params.
2257         (make_singleton_name_thunk): Constify "import" param.  Make
2258         "buffer_len" a size_t.
2259         (make_import_fixup_entry): Constify "name", "fixup_name",
2260         "dll_symname" params.
2261         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
2262         (pe_get32): Likewise.
2263         (pe_implied_import_dll): Likewise.
2265         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2266         (sort_by_section_name): Likewise.
2268         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2269         (make_import_fixup): Cast printf arg, rel->address to long rather
2270         than int.
2271         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2273 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
2275         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2276         defines BufferSize.  Increase buffer size by one.
2278 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
2280         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2282 2001-09-14  Kevin Lo <kevlo@openbsd.org>
2284         * configure.tgt: Add arm-openbsd target.
2286 2001-09-12  H.J. Lu  <hjl@gnu.org>
2288         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2289         eelf64lppc.o to ...
2290         (ALL_64_EMULATIONS): Here.
2291         * Makefile.in: Regenerated.
2293 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2295         * emultempl/pe.em(make_import_fixup): change signature to
2296         take asection as well as arelec; we need this for proper
2297         error reporting.  Only call pe_create_import_fixup() if
2298         there is no attempt to add a constant addend to the reloc;
2299         otherwise, report error condition.
2300         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2301         since final argument is a pointer to make_import_fixup().
2302         Change call to cb() to match make_import_fixup() signature.
2303         (make_import_fixup_mark): make buffer_len unsigned.
2304         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2306 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
2308         * ld.texinfo: add verbose documentation for auto-import
2309         direct-addressing workaround, to compliment the terse
2310         error message.
2312 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
2314         * scripttempl/v850.sc: Add gcc_except_table sections.
2316 2001-09-11  Jeffrey A Law  (law@cygnus.com)
2318         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2319         * emulparams/h8300self.sh: Similarly.
2321 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2323         * ld.texinfo (Options, --stack): Correct default value for stack
2324         reserve.
2326 2001-09-05  Tom Rix <trix@redhat.com>
2328         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2330 2001-09-03  Andreas Jaeger  <aj@suse.de>
2332         * emultempl/beos.em: Declare prototypes for comparions functions,
2333         adjust definitions.
2335 2001-09-02  Andreas Jaeger  <aj@suse.de>
2337         * emultempl/aix.em: Add missing prototype.
2338         * emultempl/lnk960.em: Likewise.
2339         * emultempl/vanilla.em: Likewise.
2340         * emultempl/armcoff.em: Likewise.
2341         * emultempl/armelf_oabi.em: Likewise.
2342         * emultempl/beos.em: Likewise.
2343         * emultempl/gld960c.em: Likewise.
2344         * emultempl/gld960.em: Likewise.
2346         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2347         for prototype declaration.
2349 2001-08-31  Eric Christopher  <echristo@redhat.com>
2350             Jason Eckhardt  <jle@redhat.com>
2352         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2354 2001-08-31  Andreas Jaeger  <aj@suse.de>
2356         * emultempl/pe.em: Add missing prototypes.
2357         (gld_${EMULATION_NAME}_after_open): Remove extra args to
2358         pe_find_data_imports.
2359         (pr_sym): Add unused attribute.
2361 2001-08-29  Joel Sherrill <joel@OARcorp.com>
2363         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2364         default from coff to elf.
2366 2001-08-29  Jeff Law <law@redhat.com>
2368         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
2369         ARCH specification.
2370         * emulparams/h8300self.sh: Similarly.
2372 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
2374         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2375         eh8300self.o .
2376         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2377         * configure.tgt (h8300-*-elf*): New case.
2378         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2379         * emulparams/h8300self.sh: New file.
2380         * Makefile.in: Regenerated.
2382 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
2384         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2385         with macro name.
2387 2001-08-27  Linus Nordberg  <linus@swox.com>
2388             Alan Modra  <amodra@bigpond.net.au>
2390         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2391         (eelf64ppc.c, eelf64lppc.c): Add make targets.
2392         Run "make dep-am"
2393         * Makefile.in: Regenerate.
2394         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
2395         entries to correct alphabetical position.
2396         * emulparams/elf64ppc.sh: New.
2397         * emulparams/elf64lppc.sh: New.
2399 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
2401         * ldmain.c (main): Declare BSIZE as static.
2403 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2405         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2406         into .rel.dyn resp. .rela.dyn if combreloc.
2407         (get_script): If .x linker script is equal to .xn, only put it
2408         once into the binary.
2409         Add .xc and .xsc scripts.
2410         (parse_args): Handle -z combreloc and -z nocombreloc.
2411         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2412         For .xc and .xsc scripts put all .rel* or .rela* input sections
2413         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2414         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2415         is elf.
2416         Strip trailing whitespace from script.
2417         Generate .xc and .xsc scripts if requested.
2418         * ldmain.c (main): Initialize link_info.combreloc and
2419         link_info.spare_dynamic_tags.
2420         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2421         (ld_options): Add --spare-dynamic-tags option.
2422         (parse_args): Likewise.
2423         * ld.texinfo: Document -z combreloc and -z nocombreloc.
2424         * ldint.texinfo: Document .xc and .xsc linker scripts.
2425         * NEWS: Add notes about -z combreloc and SHF_MERGE.
2427 2001-08-22  H.J. Lu  <hjl@gnu.org>
2429         * emulparams/elf32fr30.sh: Add a newline.
2431 2001-08-21  Andreas Jaeger  <aj@suse.de>
2433         * deffilep.y: Add missing prototypes.
2434         * pe-dll.c: Likewise.
2436 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
2438         * ldlang.c (insert_pad): Fix typos in last patch.
2440         * ldlang.c: When traversing lang_statement_union_type lists,
2441         consistently use "header.next" rather than "next".
2442         * mpw-eppcmac.c: Likewise.
2443         * emultempl/beos.em: Likewise.
2444         * emultempl/hppaelf.em: Likewise.
2445         * emultempl/pe.em: Likewise.
2446         * ldlang.h (union lang_statement_union): Remove "next" field.
2448         * ldlang.c (insert_pad): Use offsetof macro.
2449         (lang_size_sections): Always neuter padding statements.
2450         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2452         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2453         passed to lang_size_sections.
2454         (pe_exe_fill_sections): Likewise.
2455         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2456         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2458 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2460         * emultempl/aix.em: Formatting fixes.
2462 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2464         * ldlang.c (insert_pad): Make use of an existing pad statement if
2465         available.  Move code calculating alignment, adjusting section
2466         alignment power, and adjusting dot to ..
2467         (size_input_section): .. here.  Remove unused relax param.
2468         (lang_size_sections): Change boolean `relax' param to boolean *.
2469         Adjust call to size_input_section.  Make use of insert_pad to
2470         place pad after the assignment statement.  If relaxing, zap
2471         padding statements.
2472         (reset_memory_regions): Reset output_bfd section sizes too.
2473         (relax_again): Move to..
2474         (lang_process): ..here.  Adjust call to lang_size_sections, and
2475         remove duplicated code.
2476         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2478 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
2480         * ld.texinfo: Document that fill values now use the four least
2481         significant bytes.
2482         * emulparams/elf32fr30.sh (NOP): Update.
2483         * emulparams/elf32mcore.sh: Likewise.
2484         * emulparams/elf64_s390.sh: Likewise.
2485         * emulparams/elf_i386.sh: Likewise.
2486         * emulparams/elf_i386_be.sh: Likewise.
2487         * emulparams/elf_i386_chaos.sh: Likewise.
2488         * emulparams/elf_i386_ldso.sh: Likewise.
2489         * emulparams/elf_s390.sh: Likewise.
2490         * emulparams/elf_x86_64.sh: Likewise.
2491         * emulparams/i386moss.sh: Likewise.
2492         * emulparams/i386nw.sh: Likewise.
2493         * emulparams/m68kelf.sh: Likewise.
2494         * scripttempl/elf.sc: Update NOP comment.
2495         * scripttempl/elfi370.sc: Likewise.
2496         * scripttempl/elfm68hc11.sc: Likewise.
2497         * scripttempl/elfm68hc12.sc: Likewise.
2498         * scripttempl/nw.sc: Likewise.
2500 2001-08-15  Tom Rix <trix@redhat.com>
2502         * ldgram.y (saved_script_handle): Initialize to NULL.
2503         * ldmain.c (main): Change check on saved_script_handle.
2505 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
2507         * emultempl/elf32.em: Formatting fixes.
2508         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
2509         looking at sec->owner.
2510         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2511         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
2512         unused code, and reorganize orphan section placement code.
2514         * ldlang.c (wild_doit): Rename to lang_add_section.
2515         * ldlang.h: Here too.
2516         * mpw-elfmips.c: And here.
2517         * emultempl/beos.em: And here.
2518         * emultempl/elf32.em: And here.
2519         * emultempl/hppaelf.em: And here.
2520         * emultempl/pe.em: And here.
2522 2001-08-13  Richard Henderson  <rth@redhat.com>
2524         * emultempl/needrelax.em: New file.
2525         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2526         * Makefile.am (eelf64_ia64.c): Depend on it.
2527         * Makefile.in: Rebuild.
2529 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
2531         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2532         output_section is set non-NULL.
2534         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2535         `true' for SEC_EXCLUDE sections so that the generic code doesn't
2536         needlessly create an output_section_statement.  Treat a correctly
2537         named output_section_statement with NULL bfd_section as compatible.
2539 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
2541         * emultempl/generic.em: Support EXTRA_EM_FILE.
2542         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2543         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2544         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2545         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2546         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2547         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2548         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2549         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2550         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2551         LDEMUL_FIND_POTENTIAL_LIBRARIES.
2553 2001-08-12  Richard Henderson  <rth@redhat.com>
2555         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2556         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2557         scripttempl/v850.sc: Keep .jcr data.
2559 2001-08-12  H.J. Lu  <hjl@gnu.org>
2560             Andrew Haley  <aph@cambridge.redhat.com>
2561             Nick Clifton  <nickc@redhat.com>
2563         * ldgram.y (had_script): Change name to saved_script_handle.
2564         Change type to file handle.
2565         * ld.h (had_script): Rename and retype.
2566         * ldfile.c (ldfile_open_command_file): Save the file handle
2567         used in saved_script_handle.
2568         * lexsup.c (parse_args): Do not allow -c option to alter
2569         saved_script_handle.
2570         * ldmain.c (main): Print out the linker script used if
2571         --verbose is given.  Check saved_script_handle to obtain the
2572         external linker script used, or if NULL, dump the builtin
2573         script.
2574         * ld.texinfo: Document that --verbose now dumps the linker
2575         script used, regardless of whether it was an internal or an
2576         external script.
2578 2001-08-10  Andreas Jaeger  <aj@suse.de>
2580         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2581         to build warnings.
2582         * configure: Regenerate.
2584 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
2586         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2588         * scripttempl/elf.sc: Move non-text .dynamic section before
2589         .plt/.got/.sdata* group.
2590         (OTHER_GOT_SECTIONS): Move to immediately after .got.
2591         (OTHER_SDATA_SECTIONS): Add.
2592         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2593         OTHER_GOT_SECTIONS.
2594         * emulparams/crislinux.sh: Likewise.
2595         * emulparams/elf32b4300.sh: Likewise.
2596         * emulparams/elf32bmip.sh: Likewise.
2597         * emulparams/elf32bmipn32.sh: Likewise.
2598         * emulparams/elf32bsmip.sh: Likewise.
2599         * emulparams/elf32btsmip.sh: Likewise.
2600         * emulparams/elf32ebmip.sh: Likewise.
2601         * emulparams/elf32elmip.sh: Likewise.
2602         * emulparams/elf32l4300.sh: Likewise.
2603         * emulparams/elf32lmip.sh: Likewise.
2604         * emulparams/elf32lsmip.sh: Likewise.
2605         * emulparams/elf32ltsmip.sh: Likewise.
2606         * emulparams/elf64bmip.sh: Likewise.
2607         * emulparams/elf64btsmip.sh: Likewise.
2608         * emulparams/elf64ltsmip.sh: Likewise.
2610 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
2612         * genscripts.sh: Source the emulparams script before each output
2613         script is generated so that variables like `RELOCATING' may affect
2614         variables defined in the emulparams script.
2616 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
2618         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2619         order.
2621         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2622         ie. iterate over wild_statement.section_list.
2623         (gld${EMULATION_NAME}_place_orphan): Likewise.
2625 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2627         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2628         .fini[0-4] sections used by _exit
2629         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2630         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2631         * scripttempl/elfm68hc11.sc: Likewise.
2633 2001-08-03  H.J. Lu  <hjl@gnu.org>
2635         * emultempl/beos.em (init): Add the missing initialization.
2637 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
2639         * ld.texinfo (Input Section Basics): Clarify ordering of output
2640         sections.
2641         * ldlang.c (callback_t): Add wildcard_list param.
2642         (walk_wild_section): Remove "section" param.  Rewrite for
2643         lang_wild_statement_type change.  Remove unique_section_p test.
2644         (walk_wild_file): Remove "section" param.
2645         (walk_wild): Remove "section" and "file" params.
2646         (lang_gc_wild): Likewise.
2647         (wild): Likewise.  Modify for lang_wild_statement_type change.
2648         (wild_sort): Likewise.  Add "sec" param.
2649         (gc_section_callback): Likewise.
2650         (output_section_callback): Likewise.  Do unique_section_p test.
2651         (map_input_to_output_sections): Modify call to wild.
2652         (lang_gc_sections_1): Likewise.
2653         (print_wild_statement): Modify for lang_wild_statement_type
2654         change.
2655         (lang_add_wild): Replace filename, filenames_sorted param with
2656         filespec.  Replace section_name, sections_sorted,
2657         exclude_filename_list with section_list.
2658         * ldlang.h (lang_add_wild): Here too.
2659         (lang_wild_statement_type): Replace section_name, sections_sorted,
2660         and exclude_filename_list with section_list.
2661         * ldgram.y (current_file): Delete.
2662         (%union): Add wildcard_list.
2663         (file_NAME_list): Set type to wildcard_list.  Build a linked list
2664         rather than calling lang_add_wild for each entry.
2665         (input_section_spec_no_keep): Call lang_add_wild here instead.
2666         * ld.h (struct wildcard_list): Declare.
2667         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2669 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2671         * ldmain.c (main): initialize link_info.pei386_auto_import
2672         * pe-dll.c: new tables for auto-export filtering
2673         (auto_export): change API, pass abfd for contextual filtering.
2674         Loop thru tables of excluded symbols instead of comparing
2675         "by hand".
2677 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
2679         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2680         static variable current_sec (static struct sec *). Add
2681         forward declaration for add_bfd_to_link.
2682         (process_def_file): Don't export undefined symbols. Do not
2683         export symbols starting with  "_imp__".  Call auto_export()
2684         with new API.
2685         (pe_walk_relocs_of_symbol): New function.
2686         (generate_reloc): add optional extra debugging
2687         (pe_dll_generate_def_file): eliminate extraneous initial blank
2688         line in output
2689         (make_one): enlarge symtab to make room for __nm__ symbols
2690         (DATA auto-import support).
2691         (make_singleton_name_thunk): New function.
2692         (make_import_fixup_mark): New function.
2693         (make_import_fixup_entry): New function.
2694         (pe_create_import_fixup): New function.
2695         (add_bfd_to_link): Specify that 'name' argument is a CONST
2696         char *.
2697         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2698         declare new functions pe_walk_relocs_of_symbol and
2699         pe_create_import_fixup.
2700         * emultempl/pe.em: add new options --enable-auto-import,
2701         --disable-auto-import, and --enable-extra-pe-debug.
2702         (make_import_fixup): New function.
2703         (pe_find_data_imports): New function.
2704         (pr_sym): New function.
2705         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2706         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
2707         CODE.
2709 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2711         * ld.texinfo: add additional documentation for
2712         --export-all-symbols.  Document --out-implib,
2713         --enable-auto-image-base, --disable-auto-image-base,
2714         --dll-search-prefix, --enable-auto-import, and
2715         --disable-auto-import.
2716         * ldint.texinfo: Add detailed documentation on auto-import
2717         implementation.
2719 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
2721         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2722         example.
2724 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
2726         * Makefile.am: Update dependencies with "make dep-am".
2727         * Makefile.in: Regenerate
2729 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
2731         * ldcref.c (check_section_sym_xref): New function.
2732         (check_nocrossrefs): Call it.
2733         (check_nocrossref): Interate over h->refs here instead of..
2734         (check_refs): ..here.  Pass in the symbol name, section, and bfd
2735         rather than hash_entry pointers.
2736         (struct check_refs_info): Keep symbol name rather than hash entry.
2737         Remove "same".
2738         (check_reloc_refs): Tweak for above changes in check_refs_info.
2739         Only report references to section syms when symname is NULL to
2740         prevent duplicate messages for the same reloc.
2742 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2744         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2745         available.  Do not print NULL trees.
2746         (exp_print_token): Print unknown tokens with values > 126 as
2747         decimal values not ASCII characters.
2749         * ldlang.c (lang_leave_overlay): If a region is specified assign
2750         it to all sections inside the overlay unless they have been
2751         assigned to the own, non-default, memory region.
2753         * README: Add header for consistency with other README files.
2755 2001-07-14  H.J. Lu  <hjl@gnu.org>
2757         * emultempl/elf32.em (output_prev_sec_find): Never return
2758         bfd_abs_section_ptr, bfd_com_section_ptr nor
2759         bfd_und_section_ptr.
2761 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
2763         * Makefile.am (em32relf.c): Change dependency from generic.em to
2764         elf32.em.
2765         * Makefile.in: Regenerate.
2767 2001-07-14  matthew green  <mrg@eterna.com.au>
2769         * configure.tgt (i386-*-netbsdelf*): New target.
2770         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2772 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
2774         * emultempl/elf32.em (output_prev_sec_find): New.
2775         (place_orphan): Use it.
2777 2001-07-11  H.J. Lu  <hjl@gnu.org>
2779         * ldmain.c (main): Fix typos in the last change.
2781 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
2783         * ldmain.c (main): Disallow -F and -f without -shared.
2785 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
2787         * emultempl/pe.em (after_open): Check for the output_bfd not
2788         having any coff_data structure allocated to it.
2790 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
2792         * emultempl/elf32.em: Do not assuming that contents of the buffer
2793         returned from basename function will remain unchanged accross other
2794         function calls.
2796 2001-07-03  H.J. Lu  <hjl@gnu.org>
2798         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2799         2001-07-03. It creates dynamic entries even for static binaries.
2801 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
2803         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2804         (DYNAMIC): Use it to reserve few dynamic entries for
2805         post-linking tools.
2807 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
2809         * emulparams/hppa64linux.sh: New file.
2810         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2811         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2812         (ehppa64linux.c): Add rule to make it.
2813         Run "make dep-am".
2814         * Makefile.in: Regenerate.
2816 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
2818         * ld.texinfo (Options, -r): Mention restrictions when using
2819         different object formats.
2821 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
2823         * ldlang.c (lang_check): Emit fatal error if relocatable link
2824         between different object flavours with relocations in input.
2826 2001-06-19  H.J. Lu  <hjl@gnu.org>
2828         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2829         (--version-script): Mention the language support.
2831 2001-06-19  H.J. Lu <hjl@gnu.org>
2833         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2835 2001-06-18  H.J. Lu <hjl@gnu.org>
2837         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2838         (diststuff): Add $(MANS).
2839         * Makefile.in: Regenerated.
2841         * ld.1: Removed.
2843 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
2845         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2846         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2847         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2848         * ld.h (args_type): Remove member export_dynamic.  All users
2849         changed to use struct bfd_link_info member.
2851         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2852         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2853         * Makefile.in: Regenerate.
2855 2001-06-18  H.J. Lu  <hjl@gnu.org>
2857         * ldlang.c (init_os): Add the newline to the einfo call.
2858         (lang_check): Likewise.
2859         (lang_do_version_exports_section): Likewise.
2861 2001-06-15  H.J. Lu  <hjl@gnu.org>
2863         * lexsup.c (parse_args); Save optind to report unrecognized
2864         option.
2866 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
2868         * ldlang.c (lang_check): Emit fatal error if relocatable link
2869         between different object flavours.
2871         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2872         Set new link_info member export_dynamic.
2873         * ldmain.c (main): Initialize new link_info member export_dynamic.
2875 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
2877         * ldlang.c (walk_wild): Only call walk_wild_file if
2878         lookup_name returns something.
2879         (lookup_name): If load_symbols fails, return NULL.
2880         (load_symbols): Change to a boolean function.
2881         (open_input_bfds): If load_symbols fails then do not make the
2882         executable.
2884 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
2886         * ldlang.c (record_bfd_errors): Remove.
2888         * emultempl/aix.em: Fix copyright dates.
2890 2001-06-07  Andreas Jaeger  <aj@suse.de>
2892         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2893         (TEXT_START_ADDR): Likewise.
2895 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
2897         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2899 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2901         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2903 2001-05-31  H.J. Lu  <hjl@gnu.org>
2905         * ldlang.c (open_input_bfds): Don't change the bfd error
2906         handler whilst loading symbols.
2908 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
2910         * configure.tgt: Remove i370-mvs architecture, it is not currently
2911         supported.
2913 2001-05-25  H.J. Lu  <hjl@gnu.org>
2915         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2916         like emulparams/aixppc.sh.
2918 2001-05-25  H.J. Lu  <hjl@gnu.org>
2920         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2921         setting of output_filename after bfd_scan_arch.
2922         * emultempl/pe.em: Likewise.
2924 2001-05-25  H.J. Lu  <hjl@gnu.org>
2926         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2927         like emulparams/aixppc.sh.
2929         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2930         instead of ${srcdir}/emultempl/stringify.sed.
2932 2001-05-25  Timothy Wall  <twall@oculustech.com>
2934         * emulparams/elf64_aix.sh: Change settings to match IBM linker
2935         output.
2937 2001-05-25  Alan Modra  <amodra@one.net.au>
2939         * configure.host: Replace linuxoldld with linux*oldld.
2940         * configure.tgt: Likewise.
2942 2001-05-24  H.J. Lu  <hjl@gnu.org>
2944         * emultempl/stringify.sed: Removed again.
2946 2001-05-24  H.J. Lu  <hjl@gnu.org>
2948         * emultempl/aix.em (OUTPUT_ARCH): Defined.
2949         (gld${EMULATION_NAME}_before_parse): Initialize
2950         ldfile_output_architecture, ldfile_output_machine and
2951         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2952         * emultempl/beos.em: Likewise.
2953         * emultempl/elf32.em: Likewise.
2954         * emultempl/linux.em: Likewise.
2955         * emultempl/mipsecoff.em: Likewise.
2956         * emultempl/pe.em: Likewise.
2957         * emultempl/sunos.em: Likewise.
2959 2001-05-24 Tom Rix <trix@redhat.com>
2961         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2962         udate import file format.
2963         (change_symbol_mode) New, same
2964         (is_syscall) New, same
2965         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2966         * emulparams/aixppc64.sh : same
2967         * emulparams/aixrs6.sh : same
2968         * emulparams/ppcmacos.sh : same
2969         * emultempl/aix.em : use strtoull to parse options
2970         * Makefile.am : add eaixppc64 emulation for xcoff64
2971         * Makefile.in : same
2972         * configure.tgt : same
2974         * scripttempl/aix.sc : default text section offset to 0x10000000
2975         default data section offset to 0x20000000
2976         add .sv3264 and .sv64 pseudo sections
2977         loader and debug sections use the currect section offset.
2979         * emultempl/aix.em : Add xcoff64 support
2980         Add -binitfini support
2981         (gld${EMULATION_NAME}_before_parse) -binitfini
2982         (gld${EMULATION_NAME}_parse_args) same
2983         (gld${EMULATION_NAME}_before_allocation) format change for special
2984         sections
2986         * emulparams/aixppc64.sh : New file for xcoff64 support
2988 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
2990         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2991         variable to avoid non-portable shell construct.
2993 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2995         * ldmain.c (get_emulation): Add -mips5 command line argument.
2997 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
2999         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3000         (ELF_INTERPRETER_NAME): Define it.
3001         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3002         it.
3003         * configure.tgt (targ_emul, targ_extra_emuls)
3004         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3005         as primary, elf_i386 as extra.
3006         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3007         (eelf_i386_ldso.c): New rule.
3008         * Makefile.in: Rebuilt.
3010 2001-05-22  Nick Clifton  <nickc@redhat.com>
3012         * lexsup.c (ld_options):  Allow -I to be an alias for
3013         --dynamic-linker.  This is for Solaris compatability.
3014         * ld.texinfo: Document that -I can be used.
3015         * ld.1: Regenerate.
3017 2001-05-16  Alan Modra  <amodra@one.net.au>
3019         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3020         whether an input section is the first one assigned to an output
3021         section.
3022         Assorted formatting fixes.
3024 2001-05-14  DJ Delorie  <dj@delorie.com>
3026         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3027         * Makefile.in: Ditto.
3029 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3031         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3032         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3033         output sections.
3034         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3036 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3038         * ldlang.c (lang_process): Call bfd_merge_sections.
3040 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3042         * ldgram.y: Fix typo.
3044 2001-05-03  H.J. Lu  <hjl@gnu.org>
3046         * emultempl/elf32.em: Include "libiberty.h".
3047         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3048         basename of the bfd filename.
3049         (gld${EMULATION_NAME}_stat_needed): Likewise.
3050         (gld${EMULATION_NAME}_try_needed): Likewise.
3051         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3053 2001-05-02  H.J. Lu  <hjl@gnu.org>
3055         * emultempl/pe.em: Include <ctype.h>.
3057 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
3059         * emulparams/elf32openrisc.sh: New file.
3061         * Makefile.am: Add OpenRISC target.
3062         * Makefile.in: Regenerated.
3064         * configure.tgt: Add openrisc-*-* mapping.
3066 2001-05-02  Nick Clifton  <nickc@redhat.com>
3068         * emultempl/aix.em: Replace buystring with xstrdup.
3069         * emultempl/beos.em: Replace buystring with xstrdup.
3071 2001-05-02  H.J. Lu  <hjl@gnu.org>
3073         * ldfile.c: Include "libiberty.h".
3074         * ldlex.l: Likewise.
3076         * ldmisc.c (buystring): Removed.
3077         * ldmisc.h: Likewise.
3079         * ldfile.c: Replace buystring with xstrdup.
3080         * ldlang.c: Likewise.
3081         * ldlex.l: Likewise.
3082         * ldmain.c: Likewise.
3083         * ldmisc.c: Likewise.
3084         * lexsup.c: Likewise.
3085         * mpw-eppcmac.c: Likewise.
3087 2001-04-30  Andreas Jaeger  <aj@suse.de>
3089         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3091 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3093         * ldlang.c (load_symbols): Give emulation a chance
3094         to process unrecognized file before fatal error is
3095         reported, not after.
3097 2001-04-27  Sean McNeil <sean@mcneil.com>
3099         * configure.tgt: Add arm-vxworks target.
3100         * scripttempl/armcoff.sc: Support .text or .data as a section name
3101         prefix.
3102         Define _etext.
3104 2001-04-13  J.T. Conklin  <jtc@redback.com>
3106         * ld.texinfo: Document --fatal-warnings.
3107         * ld.1: Regenerate.
3109         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3110         warnings have been turned into errors.
3111         * lexsup.c (OPTION_WARN_FATAL): Define.
3112         (ld_options): Entry for --fatal-warnings.
3113         (parse_args): Handle OPTION_WARN_FATAL.
3114         * ld.h (ld_config_type): Add fatal_warnings field.
3116 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
3118         * ldmain.c (main): Default to discard_sec_merge.
3119         * lexsup.c (OPTION_DISCARD_NONE): Define.
3120         (ld_options): Add --discard-none.
3121         (parse_args): Handle OPTION_DISCARD_NONE.
3122         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3123         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3124         all its input sections match.
3126 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
3128         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3129         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3130         (eelf32ltsmip.c): New target.
3131         (eelf64btsmip.c): Likewise.
3132         (eelf64ltsmip.c): Likewise.
3133         * Makefile.in: Regenerated.
3135         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3136         target.
3137         (mips*-*-linux-gnu*): Likewise.
3139         * emulparams/elf32ltsmip.sh: New. Traditional little endian
3140         MIPS taget.
3141         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3142         target.
3143         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3144         endian target.
3146 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
3148         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3149         correct value of __Stext here.
3150         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3151         .startup section.
3153         * emulparams/crislinux.sh: Remove FIXME.
3155 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
3157         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3158         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3160 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
3162         * configure.tgt (cris-*-*): Change default emulation to criself.
3163         (cris-*-*aout*): New rule.
3165 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
3167         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3168         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3170 2001-03-26  Andreas Jaeger  <aj@suse.de>
3172         * ld.texinfo (Overview): Fix syntax in texi code.
3174 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3176         * ld.texinfo: Put @c man indications to generate the ld man page.
3177         When generating man, define all the variables.  Define SEEALSO
3178         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
3179         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3180         (ld.1): Generate from ld.texinfo.
3181         * Makefile.in: Regenerate.
3183 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
3185         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3186         and '-fdata-sections'. Set the VMA of STABS sections to zero.
3188 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3190         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3191         is an absolute path look only for this file and not along the path.
3193 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3195         * emultempl/elf32.em (OPTION_GROUP): New macro.
3196         Add new option Bgroup to longopts.
3197         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3198         (gld*_list_options): Add -Bgroup and -z defs.
3199         * ld.1: Document -Bgroup and -z defs.
3200         * ld.texinfo: Likewise.
3202 2001-03-07  Michael Meissner  <meissner@redhat.com>
3204         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3205         with sections created by -fdata-sections.
3206         (.dynbss,.bss): Ditto.
3208 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
3210         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3211         after_allocation_default, not gld..._before_allocation.
3213 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
3215         * configure.in (BFD_VERSION): New.
3216         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3217         * configure: Regenerate.
3218         * Makefile.am: Run "make dep-am"
3219         * Makefile.in: Regenerate.
3221 2001-02-26  Timothy Wall  <twall@cygnus.com>
3223         * emulparams/elf64_aix.sh: Add additional read-only sections;
3224         uncomment lines which are now required.
3226 2001-02-26  H.J. Lu  <hjl@gnu.org>
3228         * ldlang.c (open_input_bfds): Set the bfd error handler so
3229         that problems can be caught whilst loading symbols.
3230         (record_bfd_errors): New function: Report BFD errors and mark
3231         the executable output as being invalid.
3233 2001-02-22  Timothy Wall  <twall@cygnus.com>
3235         * configure.host: Add configuration for ia64-*-aix*.
3236         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3237         Add dependencies for eelf64_aix.c.
3238         * Makefile.in: Regenerate.
3239         * configure.tgt: Add ia64-*-aix* mapping.
3240         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3241         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
3242         AIX-specific test.
3244 2001-02-20  H.J. Lu  <hjl@gnu.org>
3246         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3247         false if we found the file.
3249 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
3251         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3252         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3254 2001-02-18  lars brinkhoff  <lars@nocrew.org>
3256         * Makefile.am: Add PDP-11 target.
3257         * configure.tgt: Likewise.
3258         * emulparams/pdp11.sh: New file.
3260 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
3262         * configure.host: Add a generic FreeBSD configuration entry such that
3263         all [modern] FreeBSD systems on all platforms will look the same.
3265 2001-02-14  H.J. Lu  <hjl@gnu.org>
3267         * configure.tgt: Remove mention of earmelf_linux26.
3269 2001-02-13  Richard Henderson  <rth@redhat.com>
3271         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3273 2001-02-13  H.J. Lu  <hjl@gnu.org>
3275         * ldexp.h (node_type): Add etree_provided.
3276         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3277         type to etree_provided if defined by PROVIDE. Allow updating
3278         for etree_provided.
3279         (exp_print_tree): Handle etree_provided.
3280         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3281         etree_provided.
3283 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
3285         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3286         .IA_64.unwind.* pattern to unwind table section and
3287         .IA_64.unwind_info* pattern to unwind info section.
3289 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3291         * Makefile.am: Add linux target for S/390.
3292         * Makefile.in: Likewise.
3293         * configure.host: Likewise.
3294         * configure.tgt: Likewise.
3295         * emulparams/elf64_s390.sh: New file.
3296         * emulparams/elf_s390.sh: New file.
3298 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
3300         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3301         targ_extra_libpath.
3302         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3304 2001-02-06  Philip Blundell  <philb@gnu.org>
3306         * Makefile.am: Remove mention of earmelf_linux26.
3307         * Makefile.in: Regenerate.
3309 2001-02-04  Philip Blundell  <philb@gnu.org>
3311         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3312         * emulparams/armelf_linux26.sh: Delete.
3313         * configure.tgt: Remove mention of armelf_linux26 emulation.
3315 2001-02-01  Nick Clifton  <nickc@redhat.com>
3317         * ld.1: Replace occurances of -oformat with --oformat.
3319 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
3321         * ldlang.c (lang_leave_overlay): Don't set lma_region when
3322         load_base is specified.
3324 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
3326         * emultempl/elf32.em: Correct spelling in comments and listed
3327         options.
3329 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
3331         * ldlang.c (lang_leave_overlay): Only set lma_region from the
3332         default for the first section of a group of overlay sections.
3334 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
3336         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3337         * Makefile.in: Regenerate.
3338         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3339         Check for null tool_dir.
3341 2001-01-16  Jim Wilson  <wilson@redhat.com>
3343         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3344         and IA_64.unwind.info.
3346 2001-01-16  H.J. Lu  <hjl@gnu.org>
3348         * ldlang.c (lang_check): Merge the private data only if the
3349         input file has contents.
3351 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
3353         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3355         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3356         enabling search for libmilli.  On a relocatable link, make .text
3357         sections unique.
3358         (LDEMUL_AFTER_PARSE): Define.
3359         (hppaelf_finish): Correct spelling of relocatable in comments.
3361         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3362         rummage through the script for sections on the unique list.
3363         Correct length of strncmp for ".note".
3364         (gld${EMULATION_NAME}_check_needed): Rearrange function.
3366         * ldlang.c (unique_section_list): New var.
3367         (unique_section_p): New function.
3368         (walk_wild_section): Don't match sections on unique_section_list.
3369         (lang_add_unique): New function.
3370         Correct spelling of relocatable in comments.
3372         * ldlang.h (struct unique_sections): Declare.
3373         (unique_section_list): Declare.
3374         (unique_section_p): Declare.
3375         (lang_add_unique): Declare.
3377         * lexsup.c (ld_options): Allow --unique to take an optional arg.
3378         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3380         * ld.texinfo (--unique): Update.
3382 2001-01-13  Nick Clifton  <nickc@redhat.com>
3384         * lexsup.c (parse_args): Remove spurious white space.
3386 2001-01-12  Nick Clifton  <nickc@redhat.com>
3388         * lexsup.c (parse_args): Update copyright date.
3390 2001-01-12  Philip Blundell  <pb@futuretv.com>
3392         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3394 2001-01-10  Kazu Hirata  <kazu@hxi.com>
3396         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
3397         * scripttempl/h8300h.sc: Fix formatting.
3398         * scripttempl/h8300s.sc: Likewise.
3399         * scripttempl/h8500.sc: Likewise.
3400         * scripttempl/h8500b.sc: Likewise.
3401         * scripttempl/h8500c.sc: Likewise.
3402         * scripttempl/h8500m.sc: Likewise.
3403         * scripttempl/h8500s.sc: Likewise.
3405 2000-01-07  David O'Brien  <obrien@BSDi.com>
3407         * emultempl/elf32.em: Only perform Linux ld hints processing when
3408         targeting Linux.
3410 2001-01-07  Philip Blundell  <philb@gnu.org>
3412         * ld.texinfo (Bug Reporting): Update email address for reports.
3414 2000-12-31  Nick Clifton  <nickc@redhat.com>
3416         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3417         options by checking for a return value of '?' not -1.
3419 2000-12-28  Nick Clifton  <nickc@redhat.com>
3421         * lexsup.c (struct ld_option): Add new enum value:
3422         EXACTLY_TWO_DASHES.
3423         (ld_options[]): Change -omagic, -output and -oformat options
3424         to be EXACTLY_TWO_DASHES.
3425         (OUTPUT_COUNT): Use ARRAY_SIZE.
3426         (parse_args): Change parameter 'argc' to unsigned.
3427         Place EXACTLY_TWO_DASHES options into new really_longopts
3428         array.
3429         If getopt_long_only fails, try calling getopt_long using the
3430         really_longopts array.
3431         (help): Print a double dash for both EXACTLY_TWO_DASHES and
3432         TWO_DASHES options.
3434         * ldlex.h: Fix prototype of parse_args.
3436         * ld.texinfo: Document that long options starting with 'o'
3437         must be preceeded by two dashes.  Change example of a single
3438         dashed long option from -oformat to -trace-symbol.
3440 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3442         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3443         (longopts[]): New --no-default-excludes option.
3444         (gld_${EMULATION_NAME}_list_options): Document.
3445         (gld_${EMULATION_NAME}_parse_args): Handle.
3447 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3449         * ldlang.c (new_stat): Revert the last beautification with "innocent"
3450         whitespace, it breaks the K&R C preprocessor.
3452 2000-12-11  DJ Delorie  <dj@redhat.com>
3454         * ld.texinfo: Add notes about --whole-archive and gcc.
3456 2000-11-18  Fred Fish  <fnf@be.com>
3458         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3459         (ld_options): Entry for --allow-shlib-undefined.
3460         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3461         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3462         to false.
3463         * ld.texinfo: Document new command line switch.
3465 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
3467         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3468         .fixup is actually read/write.
3469         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3470         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3471         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3473 2000-12-11  Jan Hubicka  <jh@suse.cz>
3475         * NEWS: Add note about x86_64 architecture.
3477 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
3479         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3480         Set DWARF2 sections to a VMA of zero.
3482 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
3484         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3485         New targets.
3486         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3487         (sparc*-*-rtems*): Switched from a.out to ELF.
3489 2000-11-30  Jan Hubicka  <jh@suse.cz>
3491         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3492         (eelf_x86_64.c): New.
3493         * Makefile.in: Regenerate.
3494         * configure.tgt: Add support for x86_64-*-linux-gnu*.
3495         * emulparams/elf_x86_64.sh: New.
3497 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
3499         * emulparams/crislinux.sh (ENTRY): Change back to _start.
3500         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3502         * scripttempl/crisaout.sc: Change all RELOCATING not related to
3503         merging non-a.out sections into CONSTRUCTING.
3505 2000-11-28  Nick Clifton  <nickc@redhat.com>
3507         * ld.1 (COPYING): Mention that the GNU Free Documentation
3508         License is present in the sources, but not the output, and
3509         also available from the GNU website.
3510         (GNU Free Documentation License): Comment out this section.
3512 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
3514         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3515         does not use them.
3517 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
3519         * ld.1: Remove old date so it does not give the impression the manpage
3520         is way out of date.
3522 2000-11-24  Nick Clifton  <nickc@redhat.com>
3524         * configure.tgt (xscale-coff): Add target.
3525         (xscale-elf): Add target.
3527 2000-11-24  Fred Fish  <fnf@be.com>
3529         * ldmain.c (main): Remove redundant init of config.make_executable
3530         to true.
3532 2000-11-15  Richard Henderson  <rth@redhat.com>
3534         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3536 2000-11-14  Kazu Hirata  <kazu@hxi.com>
3538         * scripttempl/h8300.sc: Fix formatting.
3539         * scripttempl/h8300h.sc: Likewise.
3540         * scripttempl/h8300s.sc: Likewise.
3542 2000-11-14  Denis Chertykov  <denisc@overta.ru>
3544         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3546 2000-11-09  Philip Blundell  <pb@futuretv.com>
3548         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3549         around orphan sections whose names can be represented in C.
3551 2000-11-07  Jim Wilson  <wilson@redhat.com>
3553         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3554         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
3556 2000-11-06  Nick Clifton  <nickc@redhat.com>
3558         * ld.texinfo: Add GNU Free Documentation License.
3559         * ldint.texinfo: Add GNU Free Documentation License.
3560         * ld.1: Add GNU Free Documentation License.
3562 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
3564         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3565         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3567         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3568         Move 2000-11-02 Makefile.in changes to this file.
3569         * Makefile.in: Regenerate.
3571 2000-11-03  Nick Clifton  <nickc@redhat.com>
3573         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3574         constructors and destructors.
3575         * scripttempl/h8300h.sc: Ditto.
3576         * scripttempl/h8300s.sc: Ditto.
3577         * scripttempl/h8500.sc: Ditto.
3578         * scripttempl/h8500b.sc: Ditto.
3579         * scripttempl/h8500c.sc: Ditto.
3580         * scripttempl/h8500m.sc: Ditto.
3581         * scripttempl/h8500s.sc: Ditto.
3582         * scripttempl/v850.sc: Ditto.
3583         * scripttempl/w65.sc: Ditto.
3584         * scripttempl/z8000.sc: Ditto.
3586 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
3588         * Makefile.in (e_i386_chaos.c): New rule.
3589         (ALL_EMULATIONS): Added e_i386_chaos.o.
3590         * emulparams/elf_i386_chaos.sh: New file.
3591         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3593 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
3595         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3596         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3597         Fix sed invocation, so that it coped with '/' in Solaris 64bit
3598         library path suffix.
3599         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3601 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
3603         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3604         for consecutive sections.
3606 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
3608         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3609         options.
3610         * ld.texinfo: Added notes about this new option.
3612 2000-10-16  Nick Clifton  <nickc@redhat.com>
3614         * emultempl/pe.em (_after_open): Add tests of return values from
3615         bfd functions.  Emit appropriate error messages if necessary.
3617 2000-10-13  Nick Clifton  <nickc@redhat.com>
3619         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3620         local variables - they are not used, but leave in the call to
3621         bfd_canonicalize_symtab.
3622         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3623         pe_dll_search_prefix.
3625 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
3627         * emultempl/pe.em (pe_dll_search_prefix): New variable,
3628         (longopts): New --dll-search-prefix option.
3629         (gld_${EMULATION_NAME}_list_options): Document.
3630         (gld_${EMULATION_NAME}_parse_args): Handle.
3631         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3632         dynamically, search for a dll named '<prefix><basename>.dll'
3633         in preference to 'lib<basename>.dll' if --dll-search-prefix
3634         is specified.
3636 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3638         * ldlang.c (section_already_linked): Set kept_section instead of
3639         sec->comdat->sec.
3641 2000-10-10  Kazu Hirata  <kazu@hxi.com>
3643         * deffile.h: Fix formatting.
3644         * lexsup.c: Likewise.
3645         * mri.c: Likewise.
3647 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3649         * pe-dll.c (make_one): Do not generate code thunk for DATA
3650         exports.
3651         (process_def_file): deduce DATA flag for auto-export sumbols.
3653 2000-10-09  Kazu Hirata  <kazu@hxi.com>
3655         * ld.h: Fix formatting.
3656         * ldcref.c: Likewise.
3657         * ldctor.h: Likewise.
3658         * ldemul.c: Likewise.
3659         * ldemul.h: Likewise.
3660         * ldexp.c: Likewise.
3661         * ldexp.h: Likewise.
3662         * ldfile.c: Likewise.
3663         * ldfile.h: Likewise.
3664         * ldlang.c: Likewise.
3665         * ldlang.h: Likewise.
3666         * ldmain.c: Likewise.
3667         * pe-dll.c: Likewise.
3669         * pe-dll.c: Revert some formatting fixes.
3671 2000-10-08  Kazu Hirata  <kazu@hxi.com>
3673         * pe-dll.c: Fix formatting.
3675 2000-10-05  Kazu Hirata  <kazu@hxi.com>
3677         * ldlang.c: Fix formatting.
3679 2000-10-03  DJ Delorie  <dj@redhat.com>
3681         * pe-dll.c (fill_edata): initialize entire block
3682         (make_one): fill in correct section.
3684 2000-10-03  Kazu Hirata  <kazu@hxi.com>
3686         * ldexp.c: Fix formatting.
3688 2000-10-02  DJ Delorie  <dj@redhat.com>
3690         * emultempl/pe.em (gld_*_after_open): detect case where there two
3691         import libraries for same dll; rename one to ensure proper link
3692         order.
3694         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3695         typo
3696         (generate_edata): fix typo
3698 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
3700         * scripttempl/crisaout.sc (ENTRY): Now __start.
3701         (.text): Add default setting for __start.
3702         Remove CONSTRUCTORS handling.
3703         (/DISCARD/): Add .gnu.warning.*.
3704         * emulparams/crislinux.sh (ENTRY): Now __start.
3705         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3706         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3707         (ENTRY): Now __start.
3708         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3709         (EXECUTABLE_SYMBOLS): Add default setting for __start.
3711 2000-09-29  Kazu Hirata  <kazu@hxi.com>
3713         * deffile.h: Fix formatting.
3714         * ld.h: Likewise.
3715         * ldcref.c: Likewise.
3716         * ldctor.c: Likewise.
3717         * ldctor.h: Likewise.
3718         * ldemul.c: Likewise.
3719         * ldemul.h: Likewise.
3720         * ldexp.c: Likewise.
3721         * ldexp.h: Likewise.
3722         * ldfile.c: Likewise.
3723         * ldfile.h: Likewise.
3724         * ldlang.c: Likewise.
3725         * ldlang.h: Likewise.
3726         * lexsup.c: Likewise.
3727         * mri.c: Likewise.
3728         * pe-dll.c: Likewise.
3730 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3732         * pe-dll.c (process_def_file): Uninitialized data wasn't
3733         exported with --export-all-symbols switch.
3735 2000-09-28  DJ Delorie  <dj@redhat.com>
3737         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3738         noname work properly.
3740 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
3742         * ld.texinfo (HPPA ELF32): New section.
3744         * emultempl/hppaelf.em (group_size): New.
3745         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3746         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3747         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
3748         options to prevent abbreviations matching.
3749         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
3750         (PARSE_AND_LIST_ARGS_CASES): Handle it.
3752 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3754         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3755         on the m68*-*-elf target.  Make it support COFF input objects.
3757 2000-09-21  Kazu Hirata  <kazu@hxi.com>
3759         * ldmain.c: Fix formatting.
3760         * ldmisc.c: Likewise.
3761         * ldver.c: Likewise.
3762         * ldwrite.c: Likewise.
3764 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3766         * ldwrite.c (clone_section): Silence gcc warnings.
3768 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3770         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3771         out of memory failure.
3773         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3774         (clone_section): Handle out of memory failures.  Rename var to
3775         avoid c++ reserved word.
3777 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3779         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3780         stub_name param to stub_sec_name.
3781         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3783 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3785         * emultempl/m68kelf.em: New file.
3786         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3787         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3788         * Makefile.in: Regenerate.
3790 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3792         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3793         only as needed.
3795 2000-09-13  Nick Clifton  <nickc@redhat.com>
3797         * ldmain.c (multiple_definition): Disable relaxation if
3798         multiple symbol definitions are encountered - otherwise the
3799         linker could abort with an assertion failure.
3801 2000-09-10  Nick Clifton  <nickc@redhat.com>
3803         * mri.c: Fix formatting.
3805 2000-09-07  H.J. Lu  <hjl@gnu.org>
3807         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3808         * configure: Rebuild.
3810 2000-09-07  H.J. Lu  <hjl@gnu.org>
3812         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3813         * Makefile.in: Rebuild.
3815 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
3817         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3818         broken list handling.  Create __start_SECNAME and __stop_SECNAME
3819         when no place-holder.  Add some comments.  Test both SEC_CODE and
3820         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3821         Handle case where no output section statement created.
3823 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
3825         * configure.tgt (sh-*-linux*): Added.
3826         * Makefile.am: Added eshelf_linux and eshlelf_linux.
3827         * Makefile.in: Rebuilt.
3828         * emulparams/shelf_linux.sh: New file.
3829         * emulparams/shlelf_linux.sh: New file.
3831 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
3833         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3834         try shuffling sections when the orphan happens to be the place
3835         holder.  Keep count of unique section names generated so we speed
3836         the search for a new name.
3838 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
3840         * configure: Rebuilt with new libtool.m4.
3842 2000-09-05  Nick Clifton  <nickc@redhat.com>
3844         * Makefile.in: Regenerate.
3845         * aclocal.m4: Regenerate.
3846         * configure: Regenerate.
3847         * config.in: Regenerate.
3848         * po/ld.pot: Regenerate.
3850         * ldint.texinfo: Remove CVS revision marker - it foils local
3851         comparisons.
3853         * emultempl/ticoff.em: Remove extraneous comma.
3855 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
3857         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3858         to stub section flags.
3859         (hppa_for_each_input_file_wrapper): New.
3860         (hppa_lang_for_each_input_file): New.
3861         (lang_for_each_input_file): Define to call above.
3862         (multi_subspace): New.
3863         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3864         (PARSE_AND_LIST_PROLOGUE): Define.
3865         (PARSE_AND_LIST_LONGOPTS): Define.
3866         (PARSE_AND_LIST_OPTIONS): Define.
3867         (PARSE_AND_LIST_ARGS_CASES): Define.
3868         (hppaelf_finish): Call elf32_hppa_set_gp.
3869         (hppaelf_set_output_arch): Remove.
3870         (LDEMUL_SET_OUTPUT_ARCH): Remove.
3872         * emulparams/hppalinux.sh (ELFSIZE): Define.
3873         (MACHINE): Define.
3874         (OTHER_READONLY_SECTIONS): Define.
3875         (DATA_PLT): Define.
3876         (GENERATE_SHLIB_SCRIPT): Define.
3878         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
3879         to const throughout.  Change `void *' to `PTR' throughout.
3880         (lang_memory_default): Function is local to file, add `static'.
3882         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3883         (ehppalinux.c): Likewise.
3884         (earmelf.c): Likewise.
3885         (earmelf_linux.c): Likewise.
3886         (earmelf_linux26.c): Likewise.
3887         * Makefile.in: Regenerate.
3889         * ld.h (ld_config_type): Add unique_orphan_sections.
3890         * lexsup.c (OPTION_UNIQUE): Define.
3891         (ld_options): Add "--unique".
3892         (parse_args): Handle it.
3893         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3894         search for an existing output section if unique_orphan_sections is
3895         set.  Make use of bfd_get_unique_section_name rather than
3896         duplicating code here.
3897         * ld.texinfo: Describe --unique.
3899         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3900         optional arg to split-by-file.
3901         (parse_args): Handle them.
3902         * ld.texinfo: Update description of these options.
3903         * ldwrite.c (clone_section): Pass in the section name.  Replace
3904         local code with bfd_get_unique_section_name.
3905         (split_sections): Tidy code and comments.  Use a list traversal
3906         more appropriate to the list construction.  Handle cooked section
3907         sizes.  Split when split_by_reloc reached rather than exceeded.
3908         Track section size and split when split_by_file reached.  Fix
3909         link_order_tail (even though it's not used).
3910         (ldwrite): Modify condition for calling split_sections to suit
3911         changed split_by_reloc and split_by_file.
3912         * ldmain.c (main): Init config.split_by_reloc and
3913         config.split_by_file to -1.
3914         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3915         Change split_by_file to bfd_size_type.
3917 2000-09-02  Nick Clifton  <nickc@redhat.com>
3919         * configure.in: Increase version number to 2.10.91.
3920         * NEWS: Mention new ability to support removal of duplicate DWARF2
3921         debug information.
3922         * configure: Regenerate.
3923         * aclocal.m4: Regenerate.
3924         * config.in: Regenerate.
3926 2000-09-02  Daniel Berlin <dberlin@redhat.com>
3928         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3929         sections.
3930         * scripttempl/elf32avr.sc: Ditto.
3931         * scripttempl/elfd10v.sc: Ditto.
3932         * scripttempl/elfd30v.sc: Ditto.
3933         * scripttempl/elfi370.sc: Ditto.
3934         * scripttempl/elfm68hc11.sc: Ditto.
3935         * scripttempl/elfm68hc12.sc: Ditto.
3936         * scripttempl/elfi386beos.sc: Ditto.
3937         * scripttempl/v850.sc: Ditto.
3939 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
3941         * acinclude.m4: Include libtool and gettext macros from the
3942         top level.
3943         * aclocal.m4, configure: Rebuilt.
3945 2000-08-25  Nick Clifton  <nickc@redhat.com>
3947         * ldlang.c (open_output): When choosing the target for a
3948         particular endianness, do nothing if the target is not
3949         supported.
3951 2000-08-25  H.J. Lu  <hjl@gnu.org>
3953         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3954         check -rpath nor LD_RUN_PATH for cross link.
3955         * ld.texinfo: Document the change.
3957 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
3959         * NEWS: Mention support for CRIS.
3961 2000-08-23  H.J. Lu  <hjl@gnu.org>
3963         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3964         the current runpath list from bfd_elf_get_runpath_list ()
3965         before search.
3967 2000-08-22  H.J. Lu  <hjl@gnu.org>
3969         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3970         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3971         LD_LIBRARY_PATH for native linker. Display the needed DSO if
3972         trace_file_tries is non-zero.
3973         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3974         if trace_file_tries is non-zero.
3976         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3977         * NEWS: Mention it.
3979 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
3981         * NEWS: Mention i860 support.
3983 2000-08-14  Andreas Schwab  <schwab@suse.de>
3985         * scripttempl/elf.sc: Fix last change to use correct comment
3986         syntax.
3988 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
3990         * scripttempl/elf.sc: Add a comment giving the correspondence
3991         between sections, per-datum sections, and linkonce sections.  Make
3992         the comment true even for .bss, .sdata, .sdata2, .sbss, and
3993         .sbss2.
3995 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
3997         * emulparams/elf32_i860.sh: New file.
3998         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3999         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4000         (eelf32_i860.c): New rule.
4001         * Makefile.in: Regenerate.
4003 2000-08-10  Nick Clifton  <nickc@cygnus.com>
4005         * emulparams/mipspe.sh (ENTRY): Add definition.
4007 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
4009         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4010         in error message.
4012 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4014         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4015         the final size of .bss section.
4016         * scripttempl/elfm68hc12.sc: Likewise.
4018 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
4020         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4021         gld${EMULATION_NAME}_parse_args for consistency.  Combine
4022         lastoptind and prevoptind vars, and keep track of last optind.
4023         (gld_${EMULATION_NAME}_list_options): Rename to
4024         gld${EMULATION_NAME}_list_options.
4026 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
4028         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4029         (i586-sco-sysv5uw7.1.0).
4031 2000-07-27  H.J. Lu  <hjl@gnu.org>
4033         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4034         (PARSE_AND_LIST_PROLOGUE): New.
4035         (PARSE_AND_LIST_LONGOPTS): Likewise.
4036         (PARSE_AND_LIST_OPTIONS): Likewise.
4037         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4038         (PARSE_AND_LIST_EPILOGUE): Likewise.
4040 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
4042         * emultempl/armelf.em: Elide functions common to elf32.em,
4043         ie. most of the file.
4044         (arm_elf_after_open): New.  Do arm specific things then call
4045         gld${EMULATION_NAME}_after_open.
4046         (arm_elf_before_allocation): New.  Call
4047         gld${EMULATION_NAME}_before_allocation then do arm specifics.
4048         (PARSE_AND_LIST_PROLOGUE): Define.
4049         (PARSE_AND_LIST_SHORTOPTS): Define.
4050         (PARSE_AND_LIST_LONGOPTS): Define.
4051         (PARSE_AND_LIST_OPTIONS): Define.
4052         (PARSE_AND_LIST_ARGS_CASES): Define.
4053         (LDEMUL_AFTER_OPEN): Define.
4054         (LDEMUL_BEFORE_ALLOCATION): Define.
4055         (LDEMUL_BEFORE_PARSE): Define.
4056         (LDEMUL_FINISH): Define.
4058         * emultempl/hppaelf.em: Similarly zap most of this file.
4059         (hppaelf_add_stub_section): Prototype.
4060         (hppaelf_layaout_sections_again): Prototype.
4061         (hook_in_stub): Prototype.
4062         (LDEMUL_SET_OUTPUT_ARCH): Define.
4063         (LDEMUL_FINISH): Define.
4064         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4066         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4067         (EXTRA_EM_FILE): New.
4068         * emulparams/armelf_linux.sh: Likewise.
4069         * emulparams/armelf_linux26.sh: Likewise.
4070         * emulparams/hppalinux.sh: Likewise.
4071         * emulparams/hppaelf.sh: Likewise.
4072         (NOP): Define.
4074         * emultempl/elf32.em: Fix formatting.
4075         (EXTRA_EM_FILE): Source it.
4076         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4077         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4078         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4079         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4080         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4081         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4082         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4083         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4084         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
4085         allow functions in this file to be overridden.
4086         (PARSE_AND_LIST_SHORTOPTS): Handle it.
4088         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4090         * emultempl/elf32.em: Reorganize file.
4092 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
4094         * emulparams/elf64alpha.sh: Implement "-taso" emulation
4095         specific option to fit 64-bit executable in the lower
4096         31-bit address range.  This is done by changing start
4097         address of .interp (the very first section of executable)
4098         and then setting EF_ALPHA_32BIT elf header flag.
4100 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4102         * emultempl/m68kcoff.em: New file.
4103         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4104         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4105         generic.em.
4106         * Makefile.in: Regenerate.
4108 2000-07-20  H.J. Lu  <hjl@gnu.org>
4110         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4111         and "disable-new-dtags" to stop getopt from treating -d/-e as
4112         abbreviations for these options.
4114 2000-07-20  H.J. Lu  <hjl@gnu.org>
4116         * ld.texinfo: Add documentation for --disable-new-dtags and
4117         --enable-new-dtags.
4119         * ldmain.c (main): Initialize link_info.new_dtags to false.
4121         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4122         --disable-new-dtags and --enable-new-dtags.
4123         (gld_${EMULATION_NAME}_list_options): Likewise.
4125 2000-07-05  Kenneth Block  <krblock@computer.org>
4127         * lexsup.c: Add optional style to demangle switch
4128         * ld.texinfo: Document optional style to demangle switch.
4130 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
4132         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4133         ecrislinux.o.
4134         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4135         Regenerate dependencies.
4136         * Makefile.in: Rebuild.
4137         * configure.tgt (cris-*-*): New target.
4138         * emulparams/crisaout.sh, emulparams/criself.sh,
4139         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4140         * po/POTFILES.in, po/ld.pot: Regenerate.
4142 2000-07-20  H.J. Lu  <hjl@gnu.org>
4144         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4145         Print out ignored -z options.
4147 2000-07-19  H.J. Lu  <hjl@gnu.org>
4149         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4150         (PARSE_AND_LIST_PROLOGUE): New.
4151         (PARSE_AND_LIST_LONGOPTS): Likewise.
4152         (PARSE_AND_LIST_OPTIONS): Likewise.
4153         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4155         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4157         * lexsup.c (ld_options): Comment out 'z'.
4158         (parse_args): Likewise.
4160         * emultempl/elf32.em: Include "elf/common.h".
4161         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4162         options.
4163         (gld_${EMULATION_NAME}_list_options): Likewise.
4165         * ld.texinfo: Add documentation for the recognized -z options.
4167 2000-07-19  H.J. Lu  <hjl@gnu.org>
4169         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4170         bfd_elf_set_dt_needed_soname ().
4172 2000-07-18  DJ Delorie  <dj@cygnus.com>
4174         * pe-dll.c (pe_dll_id_target): check object target name also
4176 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
4178         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4179         ${INIT_END} if relocating.
4180         (.fini): Likewise ${FINI_START} and ${FINI_END}.
4182 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
4184         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4185         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4186         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4187         errors introduced by the old dynamic lib search order.
4189 2000-07-17  DJ Delorie  <dj@cygnus.com>
4191         * pe-dll.c (process_def_file): auto-export data items also
4192         (pe_process_import_defs): also see if _imp_ form needed
4194 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
4196         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4197         for dll import libraries
4199 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
4201         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4202         gcc 2.95.2 and later.
4204 2000-07-11  Kazu Hirata  <kazu@hxi.com>
4206         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4207         message.
4209 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4211         * ldemul.h (struct lang_input_statement_struct): Remove forward
4212         declaration.
4213         (struct search_dirs): Likewise.
4214         * ldfile.h (struct lang_input_statement_struct): Likewise.
4215         Protect file from multiple inclusion.
4216         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4217         declaration from macro to file scope.
4219         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4220         * ldgram.y: Likewise here.
4221         * ldlang.c: And here.
4222         * ldmain.c: And here.
4223         * mpw-elfmips.c: And here.
4224         * mpw-eppcmac.c: And here.
4225         * emultempl/aix.em: And here.
4226         * emultempl/armcoff.em: And here.
4227         * emultempl/armelf.em: And here.
4228         * emultempl/armelf_oabi.em: And here.
4229         * emultempl/beos.em: And here.
4230         * emultempl/elf32.em: And here.
4231         * emultempl/hppaelf.em: And here.
4232         * emultempl/linux.em: And here.
4233         * emultempl/lnk960.em: And here.
4234         * emultempl/pe.em: And here.
4235         * emultempl/sunos.em: And here.
4236         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4237         * mpw-idtmips.c: Ditto.
4238         * emultempl/generic.em: Ditto.
4239         * emultempl/gld960.em: Ditto.
4240         * emultempl/gld960c.em: Ditto.
4241         * emultempl/mipsecoff.em: Ditto.
4242         * emultempl/ticoff.em: Ditto.
4243         * emultempl/vanilla.em: Ditto.
4245         * pe-dll.c: Include ldfile.h
4246         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4248         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4249         arguments to bfd_elf32_size_dynamic_sections call.
4250         (gldelf32ebmip_place_orphan): Add missing arguments to
4251         lang_leave_output_section_statement call.
4253 2000-07-10  H.J. Lu  <hjl@gnu.org>
4255         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4256         DLL_SUPPORT.
4257         (strhash): Likewise.
4258         (compute_dll_image_base): Likewise.
4259         (pe_undef_found_sym): Likewise.
4260         (pe_undef_cdecl_match): Likewise.
4261         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4262         argument "arch" with ATTRIBUTE_UNUSED.
4264 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4266         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4268         From  Ryan Bradetich  <rbradetich@uswest.net>
4269         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4271 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
4273         Changes to create multiple linker stubs, positioned immediately
4274         before the section where they are required.
4275         * emultempl/hppaelf.em: Include elf32-hppa.h.
4276         (stub_sec, file_chain): Delete.
4277         (hppaelf_create_output_section_statements): Don't make a stub
4278         section here.
4279         (hook_stub_info): New struct.
4280         (hook_in_stub): New function.
4281         (hppaelf_add_stub_section): New function.
4282         (hppaelf_finish): Do nothing for relocateable links.  Modify the
4283         call to elf32_hppa_size_stubs.  Move code for updating section
4284         layout from here...
4285         (hppaelf_layaout_sections_again): ..to here, a new function.
4287         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4288         broken list handling.  Pass in a pointer to the list.
4289         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4290         for above changes.
4291         (hppaelf_before_parse): Prototype.
4292         (hppaelf_set_output_arch): Prototype.
4293         (hppaelf_create_output_section_statements): Prototype.
4294         (hppaelf_delete_padding_statements): Prototype.
4295         (hppaelf_finish): Prototype.
4297         Merge from elf32.em
4298         * emultempl/hppaelf.em: Include ctype.h.
4299         (struct orphan_save): New.
4300         (gld${EMULATION_NAME}_place_orphan): New.
4301         (output_rel_find): New.
4302         (hppaelf_get_script): Update from elf32.em.
4303         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4304         Change emulation_name field to "${EMULATION_NAME}".  Add
4305         gld${EMULATION_NAME}_place_orphan.
4307         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
4308         ehppalinux.o, sort it.  Regenerate dependencies.
4309         (ehppalinux.c): Depend on hppaelf.em
4310         * Makefile.in: Regenerate.
4312         * configure.tgt: targ_emul=hppalinux for hppa*linux
4314         * emulparams/hppalinux.sh: New.
4315         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4317 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
4319         * lexsup.c (parse_args): Copy section name.
4321 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
4323         * emultempl/pe.em: institute the following search order for
4324         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4325         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
4326         static lib (libfoo.a) if none of the above are found.
4328 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
4330         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4331         (longopts): New --{enable,disable}-auto-image-base options.
4332         (gld_${EMULATION_NAME}_list_options): Document.
4333         (gld_${EMULATION_NAME}_parse): Handle.
4334         (strhash): New static function.
4335         (compute_dll_image_base): New static function.
4336         (gld_${EMULATION_NAME}_set_symbols): Use.
4338 2000-07-05  DJ Delorie  <dj@redhat.com>
4340         * MAINTAINERS: new
4342 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
4344         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4345         * emulparams/elf32btsmip.sh: New file.
4346         * Makefile.am: Add traditional mips target.
4347         * Makefile.in: Rebuild.
4349 2000-07-01  H.J. Lu  <hjl@gnu.org>
4351         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4352         automake to use YLWRAP.
4353         * Makefile.in: Rebuild.
4355 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
4357         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
4358         (CLEANFILES): Add DEPA.
4359         * Makefile.in: Regenerate.
4361 2000-06-30  Timothy Wall  <twall@ppc>
4363         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4364         the page in the upper octet of the address.
4366 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
4368         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4370 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
4372         * NEWS: arm-elf does --gc-sections too.
4374 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
4376         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4377         find one.
4378         * Makefile.in: Regenerate.
4380 2000-06-21  H.J. Lu  <hjl@gnu.org>
4382         * Makefile.am: Rebuild dependency.
4383         * Makefile.in: Rebuild.
4385 2000-06-20  H.J. Lu  <hjl@gnu.org>
4387         * Makefile.am: Rebuild dependency.
4388         * Makefile.in: Rebuild.
4390 2000-06-20  Timothy Wall  <twall@cygnus.com>
4392         * scripttempl/tic54xcoff.sc: New.
4393         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4394         * gen-doc.texi: Add flag for TI COFF.
4395         * ld.texinfo: Add documentation for TI COFF handling switches.
4396         * emultempl/ticoff.em: New. TI COFF handling.
4397         * configure.tgt: Add tic54x target.
4398         * Makefile.am: Add tic54x target.
4399         * Makefile.in: Ditto.
4401 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
4403         * ldmain.c (set_scripts_dir): Correct pointer comparison when
4404         checking for backslashes.
4406 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
4408         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4410 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
4412         * NEWS: Update list of targets supporting --gc-sections.
4414         * scripttempl/elf.sc: KEEP .eh_frame contents.
4415         * scripttempl/elfd30v.sc: Same here.
4417 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4419         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4420         and m68hc11 (elf).
4421         * Makefile.in: Rebuild.
4422         * configure.tgt: Recognize m68hc12 and m68hc11.
4423         * scripttempl/elfm68hc12.sc: New file.
4424         * emulparams/m68hc12elfb: New emulation.
4425         * emulparams/m68hc12elf: New emulation.
4426         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
4427         (includes a memory.x script to define the ROM and RAM banks).
4428         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4429         New configuration files for support of Motorola 68hc11
4431 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
4433         * ldmain.c (main): Only change SEC_READONLY for final link.
4435 2000-06-13  H.J. Lu  <hjl@gnu.org>
4437         * configure: Regenerate.
4439 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4441         * configure.in (VERSION): Update to show this is the CVS mainline.
4443 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4445         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4446         input objects to be ECOFF.
4447         (check_sections): einfo takes %B, not %P, to print a BFD name.
4449 2000-06-05  Michael Matz <matz@ifh.de>
4451         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4452         version scripts.
4454         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4456 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
4458         * emulparams/avr1200.sh (STACK): Define as 0.
4459         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4460         * emulparams/avr4433.sh (STACK): Likewise.
4461         * emulparams/avr44x4.sh (STACK): Likewise.
4462         * emulparams/avr85xx.sh (STACK): Likewise.
4463         * emulparams/avrmega103.sh (STACK): Likewise.
4464         * emulparams/avrmega161.sh (STACK): Likewise.
4465         * emulparams/avrmega603.sh (STACK): Likewise.
4466         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4467         (__stack): Define from ${STACK} for main().
4469 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4471         * Makefile.am: Update dependencies with "make dep-am"
4472         * Makefile.in: Regenerate.
4474 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
4476         * ldmain.c: Include filenames.h.
4477         (set_scripts_dir): Support backslashes in program name.
4479 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
4481         * ldmain.c (main): When deciding if ".text" section should be
4482         read-only, don't forget to reset SEC_READONLY because it
4483         could be already set.
4485 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
4487         * ld.1: Add documentation for new command line option:
4488                 --section-start <sectionname>=<sectionorg>
4489         This is a generic version of -Ttext etc. which accepts
4490         any section name as a parameter instead of just text/data/
4491         bss.
4492         * ld.texinfo: More docs.
4493         * NEWS: More docs.
4494         * lexsup.c: (parse_args): Recognize new command line option.
4495         (ld_options): Add new option.
4497 2000-05-18  H.J. Lu  <hjl@gnu.org>
4499         * lexsup.c (parse_args): `i' == `r', not `q'.
4501 2000-05-18  Jeffrey A Law  (law@cygnus.com)
4503         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4505 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
4506               Rick Gorton          <gorton@scrugs.lkg.dec.com>
4508         Add support for '-q' == '--emit-relocs' switch.
4509         * ldmain.c (main): Default to false.
4510         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4511         * NEWS: Describe the emitrelocations switch.
4512         * ld.texinfo: Describe the emitrelocations switch.
4514 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
4516         * emultempl/pe.em (_open_dynamic_archive): New function: Search
4517         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4518         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4519         link options.
4521 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
4523         * lexsup.c (parse_args): Update the year in the copyright notice.
4525 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
4527         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4528         Replace defines with those from intl/libgettext.h to quieten gcc
4529         warnings.
4531 2000-05-10  H.J. Lu  <hjl@gnu.org>
4533         * ldlang.c (open_input_bfds): Don't load the same file within
4534         a group again if the whole archive has been loaded already.
4536 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
4538         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4539         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4540         strtoul.
4542 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4544         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4546         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4547         host "ia64-*-linux-gnu*".
4549 2000-04-29  Andreas Jaeger  <aj@suse.de>
4551         * ld.h: Correctly check GCC version.
4553 2000-04-25  Jeffrey A Law  (law@cygnus.com)
4555         * Makefile.am: Add PA64 support.  Add missing dependencies for
4556         PA32 elf support.
4557         * Makefile.in: Rebuilt.
4558         * configure.tgt: Add PA64 support (currently disabled).
4560 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
4562         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4563         (output_rel_find): New function.
4564         (hold_section, hold_use): Delete.
4565         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4566         hold_interp): Make local to place_orphan.
4567         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4568         rather than place_section to find possible previous use of orphan.
4569         Similarly find the place-holder output sections.  Use returned
4570         value from lang_enter_output_section_statement rather than calling
4571         lang_output_section_statement_lookup.
4572         * emultempl/armelf.em: Same here.
4573         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4575         * ldlang.c (lang_enter_output_section_statement): Return output
4576         section statement.
4577         * ldlang.h (lang_enter_output_section_statement): Change
4578         declaration too.
4580         * ldlang.h (lang_output_section_statement): Export it.
4581         * ldlang.c (lang_output_section_statement): Ditto.
4583 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4585         * ld.texinfo (Output Section Data): Add note that section data
4586         commands cannot appear outside of section directives.
4588 2000-04-2  Matthew Green  <mrg@cygnus.com>
4590         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4592 2000-04-21  Richard Henderson  <rth@cygnus.com>
4593             David Mosberger  <davidm@hpl.hp.com>
4595         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4596         (eelf64_ia64.c): New rule.
4597         * Makefile.in: Rebuild.
4598         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4599         * emulparams/elf64_ia64.sh: New file.
4601 2000-04-21  Richard Henderson  <rth@cygnus.com>
4603         * scripttempl/elfd30v.sc: Place .gcc_except_table.
4605 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
4607         * dep-in.sed: Match space at start of file name, not at end.
4609 2000-04-18  H.J. Lu  <hjl@gnu.org>
4611         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4612         lang_leave_output_section_statement () after calling
4613         lang_enter_output_section_statement ().
4614         * emultempl/armelf.em: Likewise.
4616 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
4618         * emultempl/elf32.em (struct orphan_save): Add section field.
4619         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4620         better order, and place first orphan section as we did before the
4621         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
4622         Don't call make_bfd_section here, let wild_doit do the job for us.
4623         Don't build a statement list when we'll only throw it away.
4624         * emultempl/armelf.em: Ditto.
4625         * emultempl/pe.em: Similarly.
4627 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4629         * scripttempl/elfppc.sc: Remove.
4630         * emulparams/elf32ppc.sh: Use elf.sc.
4631         * emulparams/elf32lppc.sh: Use elf.sc.
4632         * emulparams/elf32ppclinux.sh: Use elf.sc.
4633         * emulparams/elf32ppcsim.sh: New file.
4634         * emulparams/elf32lppcsim.sh: New file.
4635         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
4636         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4637         * Makefile.in: Regenerate.
4638         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4640 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
4642         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4643         ~SEC_ALLOC sections too.  Init start address of debug sections.
4644         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4645         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4646         Also set all relocateable section start addresses.
4648 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
4650         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4651         Add new BSS_PLT variable for when .plt need not be contained in
4652         the file.  Move _etext so that it is also after .fini, and provide
4653         both etext and _etext with a leading underscore.  Mark the start
4654         and end of .sbss.
4656 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
4658         * emultempl/elf32.em (struct orphan_save): New.
4659         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4660         hold_interp): Make them struct orphan_save.
4661         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4662         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4663         the end of the relevant section list.  Also add associated section
4664         statements to the end of any previous orphan statements.
4665         * emultempl/armelf.em: Similarly.
4666         * emultempl/pe.em: Similarly.
4668 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
4670         * ld.texinfo (Simple Example): Remove extraneous paragraph.
4672 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
4674         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4675         --enable-build-warnings option.
4676         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4677         * Makefile.in, configure: Re-generate.
4679 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
4681         * po/ld.pot: Regenerate.
4683         * lexsup.c (help): Restore translated part of bug string.
4685         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4686         (DEP): Quote when passing vars to sub-make.  Add warning message
4687         to end.
4688         (DEP1): Rewrite for "gcc -MM".
4689         (CLEANFILES): Add DEP2.
4690         Update dependencies.
4691         * Makefile.in: Regenerate.
4693 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
4695         * ld.h: #include "bin-bugs.h"
4696         * lexsup.c (help): Use REPORT_BUGS_TO.
4698 2000-03-27  Denis Chertykov  <denisc@overta.ru>
4700         * configure.tgt (avr-*-*): New target support.
4701         * Makefile.am: Likewise.
4702         * scripttempl/elf32avr.sc: New script file.
4703         * emulparams/avr1200.sh: New file.
4704         * emulparams/avr23xx.sh: New file.
4705         * emulparams/avr4433.sh New file.
4706         * emulparams/avr44x4.sh New file.
4707         * emulparams/avr85xx.sh New file.
4708         * emulparams/avrmega103.sh New file.
4709         * emulparams/avrmega161.sh New file.
4710         * emulparams/avrmega603.sh New file.
4711         * Makefile.in: Regenerate.
4713 2000-03-09  Andreas Jaeger  <aj@suse.de>
4715         * Makefile.am (check-DEJAGNU): Also unset LANG.
4716         * Makefile.in: Rebuild.
4718 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
4720         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4721         archive.
4723 2000-03-02  H.J. Lu  <hjl@gnu.org>
4725         * emulparams/elf32mcore.sh: Include "getopt.h".
4727 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
4729         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4731 2000-03-01  H.J. Lu  <hjl@gnu.org>
4733         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4734         * emulparams/shpe.sh: Likewise.
4736 2000-03-01  Nick Clifton  <nickc@cygnus.com>
4738         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4739         to unused parameters.
4741         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4742         functions only used by DLL code.
4743         (_place_orphan): Initialise 'dollar'.
4745 2000-03-01  H.J. Lu  <hjl@gnu.org>
4747         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4748         indicate if the undefined symbol is a fatal error or not.
4749         Don't delete the output file if "fatal" is false.
4751 2000-02-29  H.J. Lu  <hjl@gnu.org>
4753         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4754         Set LC_COLLATE and LC_ALL to null and export them. It is for
4755         sort which expects the C locale.
4756         Add $(LIBS) to all $(HOSTING_LIBS).
4757         * Makefile.in: Rebuild.
4759 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
4761         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4762         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4763         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4764         (ld_emulation_xfer_struct): Add missing NULL initialiser for
4765         find_potential_libraries.
4767 2000-02-28  Jim Blandy  <jimb@redhat.com>
4769         * ldgram.y (exclude_name_list): Don't require a comma to separate
4770         list entries; the lexer considers commas to be valid part of a
4771         filename, so in something like `foo, bar' the comma is considered
4772         part of the first filename, `foo,'.
4773         * ld.texinfo: Update section on EXCLUDE_FILE lists.
4775 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
4777         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4778         host "i[3456]86-*-freebsdelf*".
4780 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
4782         * scripttempl/i386go32.sc: Move misplaced semicolons.
4784 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
4786         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4787         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4788         (eelf64hppa.c, ehppaelf.c): Remove targets.
4789         * Makefile.in: Rebuild.
4791 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4793         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4794         GNU/Linux/sparc, but keep the default as 32.
4796         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
4797         it default if sparcv9 or sparc64.
4799 2000-02-24  Nick Clifton  <nickc@cygnus.com>
4801         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4802         * Makefile.in: Regenerate.
4803         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4805         * ldemul.h (ld_emulation_xfer_struct): Add new field:
4806         find_potential_libraries.
4807         * ldemul.c (ldemul_find_potential_libraries): New function.
4809         * ldfile.c (ldfile_open_file_search): Allow function to be
4810         exported.
4811         (ldfile_open_file): Call ldemul_find_potential_libraries.
4812         * ldfile.h: Add prototype for ldfile_open_file_search.
4814         * pe-dll.c: Add support for ARM, MIPS and SH targets.
4816         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
4817         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
4819         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4820         (gld_X_find_potential_libraries): New function.  Search for
4821         libraries called "*.lib".
4823         * scripttempl/pe.sc: Add .pdata section.
4825 2000-02-23  Richard Henderson  <rth@cygnus.com>
4827         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4828         Add and use memory regions.
4830 2000-02-23  Linas Vepstas (linas@linas.org)
4832         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4834         * Makefile.am: Add support for Linux/IBM 370.
4835         * configure.tgt: Likewise.
4837         * Makefile.in: Regenerate.
4839 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
4841         * ldlang.c (print_input_section, print_data_statement,
4842         print_reloc_statement, print_padding_statement, insert_pad,
4843         size_input_section, lang_check_section_addresses,
4844         lang_size_sections, lang_do_assignments, lang_set_startof,
4845         lang_one_common): Change `opb' to unsigned.
4846         (lang_do_assignments): Also change `size' to unsigned.
4848 2000-02-16  Richard Henderson  <rth@cygnus.com>
4850         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4852 2000-02-16  Timothy Wall  <twall@cygnus.com>
4854         * mri.c (mri_draw_tree): Add default LMA region argument to call
4855         to lang_leave_output_section_statement.
4856         * ldlang.h: Update prototypes with LMA region arguments.
4857         * ldlang.c (lang_size_sections): Encapsulate region bounds
4858         checking in os_check_region call.
4859         (os_check_region): New function.
4860         (lang_output_section_statement_lookup): Initialize lma_region.
4861         (lang_leave_output_section_statement): Add LMA region argument.
4862         (lang_leave_overlay): Ditto.
4863         * ldgram.y: Handle LMA region syntax.
4864         * ld.texinfo (Output Section Description): Describe LMA region usage.
4865         * emultempl/armelf.em (gld$place_orphan): Add default value for
4866         lma region in call to lang_leave_output_section_statement.
4867         * emultempl/elf32.em (gld$place_orphan): Add default value for
4868         lma region in call to lang_leave_output_section_statement.
4869         * emultempl/pe.em (gld$place_orphan): Add default value for
4870         lma region in call to lang_leave_output_section_statement.
4873 2000-02-04  Timothy Wall  <twall@redhat.com>
4875         * ldlang.c (lang_check_section_addresses): Use bytes instead of
4876         octets when calculating section end addresses.
4878 2000-02-04  Timothy Wall  <twall@redhat.com>
4880         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4882 2000-02-03  Timothy Wall <twall@redhat.com>
4884         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4885         octet count.
4886         * ldlang.c (print_input_section, print_data_statement,
4887         print_reloc_statement, print_padding_statement): Print target
4888         address values and section sizes as bytes, not octets.
4889         (insert_pad) Calculate padding size in octets, and adjust "dot"
4890         by bytes.
4891         (size_input_section) Always adjust "dot" by bytes, not octets.
4892         (lang_check_section_addresses, lang_do_assignments) Adjust
4893         "dot" by bytes, not octets.  Use the larger of the directive size
4894         or octets_per_byte for the number of octets actually allocated in
4895         the output section.
4896         (lang_set_startof) Make sure STARTOF returns a target address.
4897         (lang_one_common) Record size changes in octets.
4898         (lang_abs_symbol_at_end_of) Section end symbol's value is
4899         recorded in target bytes.
4900         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4901         to be clear about behavior when an octet is smaller than one byte.
4903 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
4905         * ldcref.c (output_cref): Don't pass message strings to printf
4906         as format arg.
4907         Update copyright.
4909         * ldmisc.c (vfinfo): Same here.
4910         Update copyright.
4912 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
4914         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4915         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4916         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4917         Add missing NULL initialisers, and comments.
4919         * testsuite/ld-srec/sr3.cc (__rethrow): New.
4921 2000-01-21  Nick Clifton  <nickc@cygnus.com>
4923         * ldlang.c (lang_size_sections): Fix typo in comment.
4925 2000-01-18  H.J. Lu  <hjl@gnu.org>
4927         * ldlang.c (lang_size_sections): Also update the current
4928         address of a region if the SEC_NEVER_LOAD bit is not set.
4930 2000-01-10  Philip Blundell  <pb@futuretv.com>
4932         * configure.tgt (arm*-*-conix*): New target.
4934 2000-01-07  Nick Clifton  <nickc@cygnus.com>
4936         * ld.texinfo (Options): Remind users to preceed linker command
4937         line switches with -Wl, (or whatever is appropriate) if it is
4938         being invoked by a comnpiler driver program.
4939         Fix description of the behaviour of the -n command line switch.
4941 2000-01-05  Catherine Moore  <clm@cygnus.com>
4943         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
4944         (name_list): New.
4945         * ld.texinfo (EXCLUDE_FILE): Update documentation.
4946         * ldgram.y (wildcard_spec): Support a list of excluded_files.
4947         (exclude_name_list): New.
4948         ldlang.c (walk_wild_section): Support list of excluded files.
4949         (print_wild_statement): Likewise.
4950         (lang_add_wild): Likewise.
4951         * ldlang.h (lang_wild_statement_type): Likewise.
4952         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4954 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
4956         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4957         (process_def_file): Use.
4958         (pe_dll_compat_implib): New variable.
4959         (make_one): Use.
4961         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4962         pe_dll_compat_implib.
4964         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4965         compat-implib options.
4966         (gld_${EMULATION_NAME}_list_options): List new options.
4967         (gld_${EMULATION_NAME}_parse_args): Handle.
4969         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4970         dll.
4972         * deffilep.y (opt_name): Allow "." in name.
4974 For older changes see ChangeLog-9899
4976 Local Variables:
4977 mode: change-log
4978 left-margin: 8
4979 fill-column: 74
4980 version-control: never
4981 End: