Add sh-nto support
[binutils.git] / ld / ChangeLog
blob6ee0729243c626ff0bbe08016f27b8991543e72f
1 2002-08-22  Graeme Peterson  <gp@qnx.com>
3         * Makefile.am: Add esh{l}elf_nto.o files.
4         * Makefile.in: Regenerate.
5         * configure.tgt: Add support for sh-**-nto* targets.
6         * emulparams/shelf_nto.sh: New file.
7         * emulparams/shlelf_nto.sh: New file.
9 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11         * ldlang.c (offsetof): Define if not defined.
13 2002-08-14  H.J. Lu <hjl@gnu.org>
15         * configure.tgt: Always enable 64bit emulations for 32bit
16         Linux/mips.
18 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
20         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
21         (MAXPAGESIZE): Set to 1.
23         * ld.h (ALIGN_N): Delete.
24         * ldexp.h (align_n): Declare.
25         * ldexp.c (align_n): New function.
26         (fold_binary): Use align_n instead of ALIGN_N.
27         (exp_fold_tree): Likewise.
28         * ldlang.c (lang_size_sections_1): Likewise.
29         (lang_one_common): Likewise.
30         * ld.texinfo (ALIGN): Remove power of 2 restriction.
32 2002-07-31  Graeme Peterson  <gp@qnx.com>
34         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
35         * Makefile.am: Add eelf32{l}ppcnto.o files.
36         * Makefile.in: Regenerate.
37         * emulparams/elf32lppcnto.sh: New file.
38         * emulparams/elf32ppcnto.sh: New file.
40 2002-08-07  H.J. Lu <hjl@gnu.org>
42         * ld.texinfo: Document --no-undefined-version.
44         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
45         `script.' fields to 0.
47         * ldmain.c (main): Initialize the allow_undefined_version to
48         true.
50         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
51         (ld_options): Add --no-undefined-version.
52         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
54 2002-08-07  Nick Clifton  <nickc@redhat.com>
56         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
57         an interworking bfd if there are input bfds. (107501)
59 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
61         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
62         2002-05-10 change.
64 2002-08-01  Nick Clifton  <nickc@redhat.com>
66         * emulparams/armelf.sh: Revert previous delta.
67         * scripttempl/elf.sc: Revert previous delta.
69 2002-07-31  H.J. Lu <hjl@gnu.org>
71         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
72         --enable-64-bit-bfd.
74 2002-07-31  H.J. Lu <hjl@gnu.org>
76         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
77         64bit BFD is selected.
79 2002-07-31  H.J. Lu <hjl@gnu.org>
81         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
82         if 64bit BFD is selected.
84 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
86         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
87         link_info.common_skip_ar_aymbols.
88         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
90         * ldmain.c (main): Initialize new field
91         link_info.common_skip_ar_aymbols.
93 2002-07-31  Adam Nemet  <anemet@lnxw.com>
95         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
96         to .plt.thumb.
97         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
98         used.
100 2002-07-31  Nick Clifton  <nickc@redhat.com>
102         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
103         of the PDP-11 and 2.11BSD a.out support.
105 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
107         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
108         for n32 ABI support.
109         * Makefile.in: Regenerate.
110         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
111         n32 ABI emulations for these 64 bit targets.
112         * emulparams/elf32bmipn32.sh: Expand comment.
113         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
114         n32 ABI.
115         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
117 2002-07-30  Graeme Peterson  <gp@qnx.com>
119         * configure.tgt: Add support for arm-*-nto target.
120         * Makefile.am: Add earmnto.o file.
121         * Makefile.in: Regenerate.
122         * NEWS: Mention port of ARM support to QNX.
123         * emulparams/armnto.sh: New file.
125 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
127         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
128         for relocatable link.
129         (lang_size_sections_1): Don't make .tbss zero size for relocatable
130         link.
132 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
134         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
135         (STACK_ADDR): New.
137 2002-07-25  Nick Clifton  <nickc@redhat.com>
139         * po/sv.po: Updated Swedish translation.
140         * po/es.po: Updated Spanish translation.
141         * po/fr.po: Updated French translation.
143 2002-07-24  Nick Clifton  <nickc@redhat.com>
145         * po/sv.po: Updated Swedish translation.
146         * po/es.po: Updated Spanish translation.
148 2002-07-23  Nick Clifton  <nickc@redhat.com>
150         * po/fr.po: Updated French translation.
152 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
154         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
155         bomb on /DISCARD/ input section.
156         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
157         * emultempl/mmo.em (mmo_place_orphan): Likewise.
159 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
161         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
162         output section.
164 2002-07-16  Denis Chertykov  <denisc@overta.ru>
165             Nick Clifton  <nickc@redhat.com>
166             Frank Ch. Eigler  <fche@redhat.com>
167             John Healy  <jhealy@redhat.com>
169         * configure.tgt: Add support for ip2k-elf.
170         * Makefile.am: Add support for ip2k-elf.
171         * Makefile.in: Regenerate.
172         * emulparams/elf32ip2k.sh: New file.
173         * scripttempl/ip2k.sc: New file
174         * NEWS: Mention support for new port.
176 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
178         * NEWS: Add 'Changes in 2.13'.
180 2002-07-14  H.J. Lu <hjl@gnu.org>
182         * ld.texinfo: Document a .symver takes precedence over a
183         version script.
185 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
187         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
188         (COMMONPAGESIZE): Define.
190 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
192         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
194 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
196         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
197         powerpc-*-openbsd* and sparc64-*-openbsd*.
198         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
199         * Makefile.in: Regenerate.
200         * emulparams/hppaobsd.sh: New file.
202 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
204         * ldlang.c (print_wild_statement): Fix output formatting.
206 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
208         * ldlang.c: (strip_excluded_output_sections): New function.
209         (lang_process): Call it.
210         (lang_size_sections_1): Revert 2002-06-10 change.
212 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
214         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
215         Run "make dep-am".
216         * Makefile.in: Regenerate.
218 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
220         * ldfile.c (ldfile_try_open_bfd): Formatting.
222         * ldmisc.c (demangle): Move so that it doesn't intrude between
223         vfinfo comment and body.  Add comment.
225 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
227         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
229 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
231         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
232         * ldlang.c (entry_sym): Likewise.
233         (ldlang_undef_chain_list_type): Likewise.
234         (lang_finish): Adjust references to entry_symbol.
235         (lang_add_entry): Likewise.
236         (lang_gc_sections): Use link_info.gc_sym_list.
237         (lang_process): Set link_info.gc_sym_list.
238         * ldlex.l: Include bfdlink.h.
239         * ldmain.c (main): Init link_info.gc_sym_list.
240         * emultempl/aix.em: Adjust references to entry_symbol.
241         * emultempl/armcoff.em: Likewise.
242         * emultempl/armelf.em: Likewise.
243         * emultempl/pe.em: Likewise.
244         * emultempl/ppc64elf.em (ppc_after_open): New function.
245         (LDEMUL_AFTER_OPEN): Define.
246         * emulparams/elf64ppc.sh: KEEP .opd sections.
248 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
250         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
251         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
252         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
253         (EEPROM_START_ADDR): Define.
254         (EEPROM_MEMORY): Define.
255         * emulparams/m68hc12elf.sh: Likewise.
256         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
257         section to put soft registers in .page0.
258         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
260 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
262         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
263         section.  Add ${RELOCATING-0}.
265 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
267         * emulparams/shelf.sh (STACK_ADDR): Don't define.
268         (OTHER_SECTIONS): Define.
269         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
270         (OTHER_SECTIONS): Undef.
272 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
274         * ldmisc.c (demangle): Restore dots stripped from sym name.
276 2002-06-25  H.J. Lu <hjl@gnu.org>
278         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
279         * Makefile.in: Regenerated.
281 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
283         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
284         the size of attached object files, to allow make the object files
285         available via FTP or HTTP and to mention that the mail will be
286         sent to a mailing list.
288 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
290         * ld/configure.host (romp): Drop support.
292 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
294         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
295         section flags for SEC_DATA, rather than for SEC_CODE being unset.
297 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
299         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
300         format specifier used to print BFD name.
302 2002-06-18  Dave Brolley  <brolley@redhat.com>
304         From Catherine Moore, Michael Meissner, Jim Blandy:
305         * emulparams/elf32frv.sh: New file.
306         * configure.tgt: Support frv-*-*.
307         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
308         (eelf32frv.c): New target.
310 2002-06-17  Tom Rix  <trix@redhat.com>
312         * emultempl/elf32.em: gld*_get_script:  Check for
313         GENERATE_COMBRELOC_SCRIPT.
314         * scripttempl/elfd10v.sc : Fix STACK and INSN.
315         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
317 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
319         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
321 2002-06-12  H.J. Lu <hjl@gnu.org>
323         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
324         false if xvec doesn't match.
326 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
328         * ldlang.c (lang_size_sections_1): Skip removed output sections.
330 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
332         * ldexp.c: Replace CONST with const.
333         * ldfile.c: Likewise.
334         * ldfile.h: Likewise.
335         * ldlex.l: Likewise.
336         * mri.c: Likewise.
337         * pe-dll.h: Likewise.
339 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
341         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
343 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
345         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
346         to -1 == implicit enable.
347         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
348         initialize link_info.pei386_auto_import to -1 == implicit
349         enable.
350         (gld_${EMULATION_NAME}_parse_args): When processing
351         --enable-auto-import and --disable-auto-import options, use
352         '1' and '0' instead of 'true' and 'false'.
353         (pe_find_data_imports): Only issue message about auto-import
354         when the feature is implicitly enabled.  Downgrade message to
355         informational instead of warning.
357 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
359         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
361 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
363         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
364         HOSTING_CRT0 and HOSTING_LIBS.
366 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
368         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
370 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
372         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
373         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
375 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
377         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
378         SEC_EXCLUDE sections when doing a relocatable link.
380 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
382         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
383         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
384         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
385         (eshlelf64_nbsd.c): New rules.
386         * Makefile.in: Regenerate.
387         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
388         (sh64-*-netbsd*): New targets.
389         * emulparams/shelf32_nbsd.sh: New file.
390         * emulparams/shelf64_nbsd.sh: New file.
391         * emulparams/shlelf32_nbsd.sh: New file.
392         * emulparams/shlelf64_nbsd.sh: New file.
394 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
396         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
398 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
400         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
401         C++ constructors/destructors, loosely based on the m68hc11 port.
403 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
405         * Makefile.in: Regenerate.
406         * aclocal.m4: Regenerate.
407         * config.in: Regenerate.
408         * configure: Regenerate.
410 2002-05-31  Graeme Peterson  <gp@qnx.com>
412         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
413         (ei386nto.c): Add rule.
414         * Makefile.in: Regenerate.
415         * configure.tgt: Add i[3456]86-*-nto-qnx*.
416         * emulparams/i386nto.sh: New file.
418 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
420         * NEWS: Add entry for VAX ELF support.
422 2002-05-29  Matt Thomas  <matt@3am-software.com>
423             Jason Thorpe  <thorpej@wasabisystems.com>
425         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
426         (eelf32vax.c)
427         (evaxnbsd.c): New rules.
428         * Makefile.in: Regenerate.
429         * configure.tgt (vax-*-netbsdelf*)
430         (vax-*-netbsdaout*)
431         (vax-*-netbsd*): New targets.
432         * emulparams/elf32vax.sh: New file.
433         * emulparams/vaxnbsd.sh: New file.
435 2002-05-29  Adam Nemet  <anemet@lnxw.com>
437         * emultempl/armelf.em (arm_elf_after_open): Don't determine
438         bfd_for_interwork, instead add glue sections to each input bfd.
439         (bfd_for_interwork): New global.
440         (arm_elf_set_bfd_for_interworking): New function.
441         (arm_elf_before_allocation): Use it.
443 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
445         * Makefile.am: Add DLX make target.
446         * configure.tgt: Add DLX configuration.
447         * Makefile.in: Regenerate.
448         * emulparams/elf32_dlx.sh: New file
449         * scripttempl/dlx.sc: New file
451 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
453         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
454         * Makefile.in: Regenerate.
455         * emulparams/elf_chaos.sh: Use elf_chaos script.
456         * scripttempl/elf_chaos.sc: New file.
458 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
460         * ldlang.c (lang_size_sections_1): Move check for conflicting load
461         addresses and regions from here...
462         (lang_get_regions): ...to this new function.
463         (lang_leave_output_section_statement): Use lang_get_regions.
464         (lang_leave_overlay): Likewise.
465         * mri.c (mri_draw_tree): Pass null as last argument to
466         lang_leave_output_section_statement.
467         * emultempl/elf32.em (gld*_place_orphan): Likewise.
468         * emultempl/mmo.em (mmo_place_orphan): Likewise.
469         * emultempl/pe.em (gld*_place_orphan): Likewise.
471 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
473         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
475 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
477         * ldemul.c: Fix formatting.
478         * ldfile.c: Likewise.
479         * pe-dll.c: Likewise.
480         * pe-dll.h: Likewise.
482 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
484         * ldlang.c (lang_process): Formatting, grammar.
486         * ldlex.l: Use #include "" instead of <> for local header files.
488 2002-05-24  TAMURA Kent <kent@netbsd.org>
490         * configure.tgt: Add a target for i386-netbsdpe.
492 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
494         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
495         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
496         output section if necessary.  Handle .tbss.
497         (lang_size_sections): Clear _raw_size for .tbss section
498         (it allocates space in PT_TLS segment only).
499         * ldwrite.c (build_link_order): Build link order for .tbss too.
501 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
503         * configure.in: Correct spelling of AC_PREREQ.
505 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
507         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
508         default.
509         (autofilter_objlist): Add crtbegin.o, crtend.o.
511 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
513         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
514         (longopts): Add new option --exclude-libs.
515         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
516         (gld_${EMULATION_NAME}_parse_args): Use it.
517         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
518         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
519         from whole archives.
520         (pe_dll_add_excludes): Set excludes->type.
521         (auto_export): Add new variable libname and set to archive basename if
522         abfd.  Use it when filtering default and user-specified libarary
523         excludes.  Let string "ALL" mean all libs when filtering user-specified
524         libs.
525         * ld.texinfo: Document --exclude-libs.
527 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
529         * ldemul.c (ldemul_new_vers_pattern): New function.
530         * ldemul.h (ldemul_new_vers_pattern): Declare.
531         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
532         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
533         * emultempl/ppc64elf.em (dotsyms): New static var.
534         (gld${EMULATION_NAME}_new_vers_pattern): New function.
535         (LDEMUL_NEW_VERS_PATTERN): Define.
536         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
537         (PARSE_AND_LIST_LONGOPTS): Likewise.
538         (PARSE_AND_LIST_ARGS_CASES): Handle them.
539         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
540         initialiser.
541         * emultempl/armcoff.em: Likewise.
542         * emultempl/armelf_oabi.em: Likewise.
543         * emultempl/beos.em: Likewise.
544         * emultempl/elf32.em: Likewise.
545         * emultempl/generic.em: Likewise.
546         * emultempl/gld960.em: Likewise.
547         * emultempl/gld960c.em: Likewise.
548         * emultempl/linux.em: Likewise.
549         * emultempl/lnk960.em: Likewise.
550         * emultempl/m68kcoff.em: Likewise.
551         * emultempl/mipsecoff.em: Likewise.
552         * emultempl/pe.em: Likewise.
553         * emultempl/sunos.em: Likewise.
554         * emultempl/ticoff.em: Likewise.
555         * emultempl/vanilla.em: Likewise.
557 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
559         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
560         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
561         (LIB_SEARCH_DIRS): No need to use "tr".
562         (COMPILE_IN): Only set for native targets.
563         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
564         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
565         * configure.tgt (powerpc*): Set tdir_*.
566         (powerpcle*): Correct targ_extra_emuls.
567         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
568         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
570 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
572         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
573         calling lang_add_entry.
575 2002-05-21  H.J. Lu  (hjl@gnu.org)
577         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
578         "-z muldefs".
579         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
581         * ld.texinfo: Updated for --allow-multiple-definition and
582         "-z muldefs".
584         * ldmain.c (main): Initialize the allow_multiple_definition
585         field to false.
587         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
588         (ld_options): Add --allow-multiple-definition.
589         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
591 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
593         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
594         (earmelfb_nbsd.c): New rule.
595         * Makefile.in: Regenerate.
596         * configure.tgt (armeb-*-netbsdelf*): New target.
597         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
598         (arm-*-netbsd*): Likewise.
599         * emulparams/armelfb_nbsd.sh: New file.
601 2002-05-18  Tom Rix  <trix@redhat.com>
603         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
604         support.
606 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
608         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
609         * Makefile.in: Regenerate.
610         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
612 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
614         * emulparams/avr1.sh: New file.
615         * emulparams/avr2.sh: New file.
616         * emulparams/avr3.sh: New file.
617         * emulparams/avr4.sh: New file.
618         * emulparams/avr5.sh: New file.
619         * scripttempl/avr.sc: New file.
621 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
623         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
624         (lang_place_orphans): Abort if just_syms_flag.
626 2002-05-10  Tom Rix  <trix@redhat.com>
628         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
629         architecture and machine information in the output bfd.
630         (gld*_before_parse): Remove old arch and machine code.
631         (choose_target): Rename to gld*_choose_target.
632         (rtld): Change type to int.
633         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
634         objects in XCOFF archives.
635         * ldfile.h: Update copyright date.
637 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
639         * ldmain.c (main): Enable -z combreloc by default.
641 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
643         * Makefile.am: Honour DESTDIR.
644         * Makefile.in: Regenerate.
646 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
648         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
649         (lang_enter_overlay): Remove the last two parameters.
650         (lang_leave_overlay): Take them here instead.
651         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
652         (section): Pass LMA and crossref flag to lang_leave_overlay rather
653         than lang_enter_overlay.
654         * ldlang.c (lang_memory_region_lookup): Return null for null names.
655         (lang_output_section_statement_lookup): Initialize update_dot_tree.
656         (lang_size_sections_1): Evaluate it.
657         (lang_leave_output_section_statement): Rework LMA lookup.
658         (overlay_lma, overlay_nocrossrefs): Remove.
659         (lang_enter_overlay): Remove LMA and crossref arguments.
660         (lang_enter_overlay_section): Don't set the LMA here.
661         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
662         assignment to the last section's update_dot_tree.  Unconditionally
663         use the load and run-time regions specified in the OVERLAY statement.
664         Likewise the first section's LMA.  Only set the other sections' LMAs
665         when no load region is given.
667 2002-05-06  Nick Clifton <nickc@redhat.com>
669         * po/sv.po: New translation.
671 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
673         * emultempl/hppaelf.em (build_section_lists): New function.
674         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
675         and build_section_lists.
677 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
679         * ld.h: Fix formatting.
680         * ldexp.c: Likewise.
681         * ldfile.c: Likewise.
682         * ldlang.c: Likewise.
683         * ldmain.c: Likewise.
684         * lexsup.c: Likewise.
685         * pe-dll.c: Likewise.
687 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
689         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
690         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
691         (build_section_lists): Do output_section tests here.
693 2002-04-30  Tom Rix  <trix@redhat.com>
695         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
697 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
699         Long branch stubs, multiple stub sections.
700         * emultempl/ppc64elf.em: Include ldctor.h.
701         (stub_file): New var.
702         (group_size): New var.
703         (ppc_create_output_section_statements): New function.
704         (struct hook_stub_info): New.
705         (hook_in_stub): New function.
706         (ppc_add_stub_section): New function.
707         (ppc_layout_sections_again): New function.
708         (build_section_lists): New function.
709         (gld${EMULATION_NAME}_finish): Rewrite.
710         (real_func): New var.
711         (ppc_for_each_input_file_wrapper): New function.
712         (ppc_lang_for_each_input_file): New function.
713         (lang_for_each_input_file): Define.
714         (PARSE_AND_LIST_PROLOGUE): Define.
715         (PARSE_AND_LIST_LONGOPTS): Define.
716         (PARSE_AND_LIST_OPTIONS): Define.
717         (PARSE_AND_LIST_ARGS_CASES): Define.
718         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
720 2002-04-30  Tom Rix  <trix@redhat.com>
722         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
723         -blibpath, -bnolibpath support.
725 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
727         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
728         (eelf32ppcwindiss.c): New target.
729         * Makefile.in: Regenerated.
730         * configure.tgt: Add support for powerpc-*-windiss.
731         * emulparams/elf32ppcwindiss.sh: New file.
733 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
735         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
736         * ldexp.c (exp_print_token): Add "infix_p" argument.
737         (exp_print_tree): Update accordingly.
739 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
741         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
742         * Makefile.in: Regenerate.
743         * mpw-elfmips.c: Delete.
744         * mpw-eppcmac.c: Delete.
745         * mpw-esh.c: Delete.
746         * mpw-idtmips.c: Delete.
748 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
750         * emulparams/shelf32.sh (MACHINE): Now sh5.
752 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
754         * ldgram.y: Fix syntax warning.
756 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
758         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
759         to prevent "-n" from being taken as an abbreviation for
760         "--no-pipeline-knowledge".
762 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
764         * ldlang.c (lang_size_sections_1): Don't complain about
765         SEC_NEVER_LOAD sections having no memory region specified.
767         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
769 2002-04-07  matthew green  <mrg@redhat.com>
771         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
773 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
775         * dep-in.sed: Cope with absolute paths.
776         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
777         Run "make dep-am".
778         * Makefile.in: Regenerate.
780 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
782         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
784 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
786         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
787         is smaller than maximum, round dot up to common page boundary.
789 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
791         * configure.host: Set up for generic hosts first, then tweak as
792         necessary in more specific targets.
793         (HOSTING_LIBS): Include libgcc_eh.a if found.
795 2002-03-23  Andreas Jaeger  <aj@suse.de>
797         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
799 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
801         * Makefile.am: Run "make dep-am".
802         * Makefile.in: Regenerate.
804 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
806         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
808 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
810         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
811         add the symbol to the linker hash table immediately.
812         (lang_place_undefineds): Split symbol creation out..
813         (insert_undefined): ..to here.
815 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
817         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
818         the contents of the buffer returned from basename function will are
819         getting overwritten while still being used.
821 2002-03-18  Jan Hubicka  <jh@suse.cz>
822             Andreas Jaeger  <aj@suse.de>
823             Andreas Schwab  <schwab@suse.de>
825         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
826         * elf_x86_64.sh (ARCH): Set to i386:x86-64
827         set libraries to default to lib64 paths.
829 2002-03-18  Tom Rix  <trix@redhat.com>
831         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
832         * configure.tgt : Same.
833         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
834         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
835         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
836         emulation parameters for better -b32, -b64 support.
837         * emulparms/aixrs6.sh : Same.
838         * emulparms/ppcmacos.sh : Same.
839         * emultempl/aix.em (choose_target) : Use new emulation parameters
840         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
841         * Makefile.in : Regenerate.
843 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
845         * po/fr.po: Updated version.
847 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
849         * ldmain.c (main): Move .text readonly flag fudges from here..
850         * ldlang.c (lang_process): ..to here.
852 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
854         * ldlang.c (lang_check): Remove the word size check added in last
855         change.  Treat emitrelocations case as for relocatable links.
857 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
859         * po/fr.po: Updated version.
861 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
863         * ldlang.c (lang_check): Do relocatable link checks first, so that
864         warn_mismatch can't override.  Check compatible and word size too.
866 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
868         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
870 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
872         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
873         DATA_SEGMENT_ALIGN.
875 2002-03-04  H.J. Lu <hjl@gnu.org>
877         * scripttempl/elf.sc: Put .preinit_array, .init_array and
878         .fini_array in the data segment.
880 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
882         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
884 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
886         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
887         .init_array, and .fini_array.
889 2002-02-20  Andreas Schwab  <schwab@suse.de>
891         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
892         .IA64_unwind* in a relocatable link.
894 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
896         * NEWS: Mark 2.12 branch.
898 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
900         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
901         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
903 2002-02-18  Tom Rix  <trix@redhat.com>
905         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
906         (gld*_before_allocation): Same.
907         (gld*_create_output_section_statements): Generate
908         __rtinit if run time linking.  Add librtl.a to the link.
909         (gld*_read_file): Clean.
911 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
913         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
915 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
917         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
918         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
919         and eelf64alpha_fbsd.
920         * Makefile.in: Regenerate.
921         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
922         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
923         use a FreeBSD-specific emulation rather than the psABI one.
924         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
925         for all FreeBSD ELF systems.
926         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
927         emulation.
928         * emulparams/elf32ppc_fbsd.sh: Likewise.
929         * emulparams/elf64_ia64_fbsd.sh: Likewise.
930         * emulparams/elf64_sparc_fbsd.sh: Likewise.
931         * emulparams/elf64alpha_fbsd.sh: Likewise.
932         * emulparams/elf_i386_fbsd.sh: Likewise.
933         * emulparams/elf_x86_64_fbsd.sh: Likewise.
935 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
937         * po/tr.po: Updated version.
939 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
941         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
942         (FILL): Likewise.
944 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
946         * emultempl/mmo.em (mmo_after_open): Don't call
947         _bfd_mmix_check_all_relocs when producing ELF output.
949 2002-02-15  Richard Henderson  <rth@redhat.com>
951         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
952         definition.  Emit a unop+nop pair.
954 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
956         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
957         for presence of .MMIX.reg_contents.linker_allocated before early
958         exit.
960         * NEWS: Mention support for MMIX.
962 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
964         Support arbitrary length fill patterns.
965         * ld.texinfo (Output Section Fill): Describe fill expressions.
966         (FILL): Refer to the above.
967         * ldexp.h (etree_value_type): Add "str" field.
968         (union etree_union): Add "str" to "value" struct.
969         (exp_bigintop): Declare.
970         (exp_get_fill): Declare.
971         * ldexp.c: Include "safe-ctype.h".
972         (exp_intop): Set value.str to NULL.
973         (exp_bigintop): New function.
974         (new_rel): Pass in "str", and set new.str from it.
975         (new_rel_from_section): Set new.str to NULL.
976         (fold_name): Adjust calls to new_rel.
977         (exp_fold_tree): Likewise.
978         (exp_get_fill): New function.
979         * ldgram.y (struct big_int bigint, fill_type *fill): New.
980         (INT): Returns a "bigint".  Adjust all code handling INTs.
981         (fill_opt): Returns a "fill".
982         (fill_exp): Split out of fill_opt, use for FILL.
983         * ldlang.h (struct _fill_type): New.
984         (fill_type): Move typedef to ldexp.h.
985         (lang_output_section_statement_type): "fill" is now a pointer.
986         (lang_fill_statement_type): Likewise.
987         (lang_padding_statement_type): Likewise.
988         (lang_add_fill): Now takes a "fill_type *" param.
989         (lang_leave_output_section_statement): Likewise.
990         (lang_do_assignments): Likewise.
991         (lang_size_sections): Likewise.
992         (lang_leave_overlay_section): Likewise.
993         (lang_leave_overlay): Likewise.
994         * ldlang.c: Include ldgram.h after ldexp.h.
995         (lang_output_section_statement_lookup): Adjust for fill_type change.
996         (print_fill_statement): Likewise.
997         (print_padding_statement): Likewise.
998         (insert_pad): Now takes a "fill_type *" arg.
999         (size_input_section): Likewise.
1000         (lang_size_sections_1): Likewise.
1001         (lang_size_sections): Likewise.
1002         (lang_do_assignments): Likewise.
1003         (lang_add_fill): Likewise.
1004         (lang_leave_output_section_statement): Likewise.
1005         (lang_leave_overlay_section): Likewise.
1006         (lang_leave_overlay): Likewise.
1007         Adjust all callers of the above function.
1008         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
1009         starting with "0X" as well as "0x".  Return bigint.str for hex
1010         numbers starting with "0x" or "0X", zero bigint.str otherwise.
1011         Always use base 16 for numbers starting with "$".
1012         * ldmain.c: Include ldgram.h after ldexp.h.
1013         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1014         of bfd_fill_link_order.
1015         * pe-dll.c: Adjust lang_do_assignments calls.
1016         * emultempl/elf32.em: Likewise.
1017         * emultempl/hppaelf.em: Likewise.
1018         * emultempl/ppc64elf.em: Likewise.
1019         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1020         lang_add_assignment call.
1021         * emultempl/pe.em: Likewise.
1023 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
1025         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
1026         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
1027         the pattern in question is not a regexp.
1028         * ldlang.c:  Likewise.
1029         * ldlang.h:  Likewise.
1030         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
1032 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
1034         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1035         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1036         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1037         * ldexp.c (exp_data_seg): New variable.
1038         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1039         (fold_binary): Handle DATA_SEGMENT_ALIGN.
1040         (exp_fold_tree): Handle DATA_SEGMENT_END.
1041         Pass allocation_done when recursing instead of hardcoding
1042         lang_allocating_phase_enum.
1043         * ldexp.h (exp_data_seg): New.
1044         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1045         (lang_size_sections): New.
1046         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1047         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1048         if COMMONPAGESIZE is defined.
1049         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1050         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1051         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1052         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1053         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1054         libraries only.
1056 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
1058         * Makefile.in: Regenerate.
1060 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1062         * lexsup.c: Remove strtoul declaration.
1064 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1066         * ldmain.c: Add prototype for main ().
1067         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1068         * emultempl/lnk960.em (lnk960_choose_target): Function should
1069         take two arguments.
1071 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
1073         * ldlang.c (entry_section): New initialised variable.
1074         (lang_finish): Use it.
1075         * ldlang.h (entry_section): Declare.
1076         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1077         entry_section to ".opd".
1079 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
1081         * ld.texinfo (Options): Add back in -nostdlib documentation,
1082         which had been inadvertently removed.
1084 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
1086         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1087         register section vma to a sane value after emitting error.  Make
1088         fatal conditions cause program exit when emitting message.
1090 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
1092         * configure.tgt: Add or32-*-rtems target.
1094 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1096         Contribute sh64-elf.
1097         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1098         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1099         in OTHER_RELOCATABLE_SECTIONS.
1100         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1101         * emulparams/shelf32.sh (STACK_ADDR): Define.
1102         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1103         (OTHER_SECTIONS): this.  Removed stack settings.
1104         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1105         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1106         2001-03-12  DJ Delorie  <dj@redhat.com>
1107         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1108         relaxing if any shmedia or mixed sections are found.
1109         2001-03-07  DJ Delorie  <dj@redhat.com>
1110         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1111         einfo.  Gracefully decline to output to non-elf formats.
1112         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
1113         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1114         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1115         * emulparams/shelf32.sh: Ditto.
1116         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
1117         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1118         comment.
1119         2001-01-10  Ben Elliston  <bje@redhat.com>
1120         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1121         non-portable shell constructs. From Hans-Peter Nilsson.
1122         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
1123         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1124         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1125         dependencies to the shell script include chain.
1126         * Makefile.in: Regenerate.
1127         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
1128         * emultempl/sh64elf.em: Update and tweak comments.
1129         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1130         make a .cranges section SEC_IN_MEMORY.
1131         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1132         * emultempl/sh64elf.em
1133         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1134         .cranges section found to be necessary; continue and set stored
1135         section contents flags for sections with non-mixed contents.
1136         Use a struct sh64_section_data container and sh64_elf_section_data
1137         to store contents-type flags.
1138         Remove unused update of "isec".
1139         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1140         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
1141         access contents-type flags.  Assert that the associated container
1142         is initialized.  Use that container, not elf_gp_size, to hold size
1143         of linker-generated cranges contents.
1144         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1145         * emultempl/sh64elf.em
1146         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1147         there's already a .cranges section.  When section flag difference
1148         is found, don't NULL-check cranges a second time.  Tweak comments.
1149         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1150         merging, not max size, as size of ld-generated .cranges contents.
1151         Don't set ELF section flags in output section.  When checking for
1152         needed .cranges descriptors, don't use a variable; compare
1153         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
1154         comments.
1155         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1156         * emultempl/sh64elf.em: New file.
1157         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1158         * Makefile.in: Regenerate.
1159         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1160         (OTHER_RELOCATING_SECTIONS): Ditto.
1161         (EXTRA_EM_FILE): New, set to sh64elf if not set.
1162         * emulparams/shlelf32.sh: Stub out all settings except
1163         OUTPUT_FORMAT.  Source shelf32.sh.
1164         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1165         OTHER_RELOCATING_SECTIONS.
1166         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1167         * emulparams/shlelf64.sh: Stub out all settings except
1168         OUTPUT_FORMAT.  Source shelf64.sh.
1169         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
1170         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1171         .cranges section.
1172         (DATA_START_SYMBOLS): Define, provide ___data.
1173         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1174         for consecutive .data section.
1175         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1176         section after .data section.
1177         * emulparams/shlelf64.sh: Ditto.
1178         * emulparams/shelf32.sh: Ditto.
1179         (ALIGNMENT): Define to 8.
1180         * emulparams/shelf32.sh: Ditto.
1181         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
1182         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1183         built-in linker scripts.
1184         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1185         * emulparams/shlelf64.sh: New.
1186         * emulparams/shelf64.sh: New.
1187         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1188         targ_extra_emuls.
1189         * Makefile.am: Add support for shlelf64 and shelf64.
1190         * Makefile.in: Regenerate.
1191         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
1192         * configure.tgt (sh64-*-elf*): Add shelf as default.
1193         Add shlelf to targ_extra_emuls.
1194         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
1195         * emulparams/shelf32.sh: New file.
1196         * emulparams/shlelf32.sh: New file.
1197         * Makefile.am: Add support for shlelf32 and shelf32.
1198         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1199         * Makefile.in: Regenerate.
1201 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
1203         * ldlang.c (lang_reset_memory_regions): Rename from
1204         reset_memory_regions.  Change all callers.  Make public.
1205         * ldlang.h (lang_reset_memory_regions): Prototype.
1206         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1207         lang_reset_memory_regions before lang_size_sections.
1208         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1209         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1211 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
1213         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1214         arithmetic when checking for too many global registers.
1216 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
1218         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1219         (ehppanbsd.c): New rule.
1220         * Makefile.in: Regenerate.
1221         * configure.tgt (hppa*-*-netbsd*): New target.
1222         * emulparams/hppalinux.sh: Add comment to check other files
1223         that source this file it is modified, and list which
1224         files that do.
1225         * emulparams/hppanbsd.sh: New file.
1227 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
1229         * scripttempl/xstormy16.sc: Don't allocate extra space for the
1230         stack.
1232 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
1234         Support on-demand global register allocation from
1235         R_MMIX_BASE_PLUS_OFFSET relocs.
1236         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1237         mmix_set_reg_section_vma.  Call
1238         _bfd_mmix_finalize_linker_allocated_gregs.
1239         (mmix_before_allocation): New function.
1240         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1241         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1242         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1243         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1244         before .MMIX.reg_contents.
1245         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1246         (mmo_after_open): New function.
1247         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1248         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
1249         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1251 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
1253         * emulparams/or32.sh: New file.
1254         * emulparams/or32elf.sh: New file.
1255         * scripttempl/or32.sc: New file.
1256         * configure.tgt : Add support for or32.
1257         * configure: Regenerate
1258         * Makefile.am: Add support for or32.
1259         * Makefile.in: Regenerate.
1260         * NEWS: Mention support for or32.
1261         * po/ld.pot: Regenerate.
1263 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
1264             Mitch Lichtenberg  <mpl@broadcom.com>
1266         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1267         * emultempl/mipself.em: New file to handle MIPS ELF embedded
1268         reloc creation (ld --embedded-relocs).
1270 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
1272         * configure: Regenerated.
1274 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
1276         * Makefile.am (install): Depend on install-info.
1277         * Makefile.in: Regenerate.
1279 2002-01-26  Christian Rose  <menthos@menthos.com>
1281         * ldmain.c (main): Use full sentences to ease translation.
1283 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
1285         * po/fr.po: Updated version.
1287 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
1289         * po/es.po: Updated version.
1291 2002-01-25  Andreas Jaeger  <aj@suse.de>
1293         * ldlex.l (yy_input): Correct error check.
1295 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
1297         * ldmisc.c (demangle): Put back dots when string not demangled.
1299 2002-01-22  Richard Henderson  <rth@redhat.com>
1301         * emulparams/elf64alpha.sh (NOP): Use unop.
1303 2002-01-21  Andreas Jaeger  <aj@suse.de>
1305         * ldlex.l: Use fread instead of read.
1307 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
1309         * configure.tgt (ia64-*-netbsd*): New target.
1311 2002-01-21  H.J. Lu <hjl@gnu.org>
1313         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1314         0.
1315         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1317 2002-01-18  Andreas Jaeger  <aj@suse.de>
1319         * ldver.c (ldversion): Update year.
1321 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
1323         * po/ld.pot: Regenerate.
1325 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
1327         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1328         * Makefile.in: Regenerate.
1329         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1330         * emultempl/ppc64elf.em: New file.
1332 2002-01-15  DJ Delorie  <dj@redhat.com>
1334         * scripttempl/pe.sc: Add support for constructor priorities.
1336 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1338         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1339         * emulparams/avr23xx.sh: Likewise.
1340         * emulparams/avr4433.sh: Likewise.
1341         * emulparams/avr44x4.sh: Likewise.
1342         * emulparams/avr85xx.sh: Likewise.
1343         * emulparams/avrmega103.sh: Likewise.
1344         * emulparams/avrmega161.sh: Likewise.
1345         * emulparams/avrmega603.sh: Likewise.
1346         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1348 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
1350         * ldlang.c (walk_wild_section): Exclude object file if enclosing
1351         archive is excluded.
1353 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
1355         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1356         (eshelf_nbsd.c): New rule.
1357         (eshlelf_nbsd.c): New rule.
1358         * Makefile.in: Regenerate.
1359         * configure.tgt (sh*le-*-netbsdelf*): New target.
1360         (sh*-*-netbsdelf*): New target.
1361         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1362         * ld/emulparams/shelf_nbsd.sh: New emulation.
1363         * ld/emulparams/shlelf_nbsd.sh: New emulation.
1365 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
1367         * po/es.po: New file: Spanish translation.
1368         * configure.in (ALL_LINGUAS): Add es.
1369         * configure: Regenerate.
1371 2002-01-06  John Marshall  <jmarshall@acm.org>
1373         * ld.texinfo: Note that --emit-relocs is currently only
1374         implemented for ELF.
1376 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
1378         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1379         of bfd_section_list_remove and bfd_section_list_insert macros.
1380         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1381         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1383 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1385         * configure.tgt (x86_64-*-netbsd*): New target.
1387 2001-12-21  Tom Rix  <trix@redhat.com>
1389         (gld*_create_output_section_statements): New function.
1390         For -binitfini support.
1391         * emultempl/aix.em (gld*_before_parse): Fix comment.
1392         * emultempl/aix.em (gld*_parse_args): Fix comment.
1394 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
1396         * configure.tgt (mips*-dec-netbsd*): Delete alias for
1397         mips*el-*-netbsd*.
1398         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1400         * configure.tgt (arm-*-netbsdelf*): Add target.
1401         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1402         * emulparams/armelf_nbsd.sh: Added.
1403         * Makefile.am: Add rules for earmelf_nbsd.
1404         * Makefile.in: Regenerate.
1406 2001-12-19  Andreas Jaeger  <aj@suse.de>,
1407             Susanne Oberhauser <froh@suse.de>
1409         * configure.host: Add rules for x86_64-*linux-gnu.  Change
1410         s390x-linux entry to use gcc to report configuration, replace gcc
1411         with $CC in s390-linux
1413 2001-12-19  Andreas Jaeger  <aj@suse.de>
1415         * ld.texinfo (VERSION): Fix markup.
1417 2001-12-18  matthew green  <mrg@eterna.com.au>
1419         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1420         (m68kelfnbsd.c): New rule.
1421         * Makefile.in: Regenerate.
1422         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1423         (m68*-*-netbsd*4k*): .. this.
1424         (m68*-*-netbsdelf*): New target.
1425         (m68*-*-netbsd*): Also include ELF support.
1426         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1427         * emulparams/m68kelfnbsd.sh: New emulation.
1429 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1431         * ldgram.y (vers_node): Support anonymous version tags.
1432         * ldlang.c (lang_register_vers_node): Ensure anonymous version
1433         tag is not defined together with non-anonymous versions.
1434         * ld.texinfo: Document it.
1436 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
1438         * po/tr.po: New file: Turkish translation.
1439         * configure.in (ALL_LINGUAS): Add tr.
1440         * configure: Regenerate.
1442 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
1444         * Makefile.am: Add rules for eelf64alpha_nbsd.
1445         * Makefile.in: Regenerate.
1446         * configure.tgt (alpha*-*-netbsd*): Set
1447         targ_emul to elf64alpha_nbsd.
1448         * emulparams/elf64alpha_nbsd.sh: Added.
1450 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
1452         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1453         section_tail when fiddling with section list.
1454         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1455         broken into separate strings to make translation easier.
1456         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1457         fiddling with section list.
1458         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1460 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
1462         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1464 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
1466         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1468 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
1470         * emultempl/elf32.em (finish): Supply output_bfd
1471         to bfd_elf*_discard_info.
1472         (OPTION_EH_FRAME_HDR): Define.
1473         (longopts): Add --eh-frame-hdr.
1474         (parse_args): Handle it.
1475         (list_options): Add --eh-frame-hdr to help.
1476         * emultempl/hppaelf.em (finish): Supply output_bfd
1477         to bfd_elf*_discard_info.
1478         * scripttempl/elf.sc (.eh_frame_hdr): Add.
1480 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
1482         * lexsup.c (parse_args): Don't pass shortopts to second call to
1483         getopt functions.  Restore optind rather than decrementing before
1484         second call.  Remove errind as it now duplicates last_optind.
1486 2001-12-11  Christopher Faylor  <cgf@redhat.com>
1488         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1490 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
1491             Richard Henderson  <rth@redhat.com>
1493         * Makefile.am: Add support for xstormy16.
1494         * configure.tgt: Add support for xstormy16.
1495         * Makefile.in: Regenerate.
1496         * emulparams/elf32xstormy16.sh: New file.
1497         * scripttempl/xstormy16.sc: New file.
1499 2001-10-01  Christopher Faylor <cgf@cygnus.com>
1501         * Makefile.in (LIB_PATH): Make configurable.
1502         (GENSCRIPTS): Set LIB_PATH in environment.
1503         * configure.in: Substitute LIB_PATH.
1504         * configure: Regenerate.
1505         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1506         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1508 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
1510         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1511         describing the -N option so that it is easier to translate into
1512         foreign languages.
1514 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
1516         * emultempl/pe.em (..._list_options): Replace multiple fprintf
1517         statements describing a single option with a single, newline
1518         escaped fprintf.  This allows better translation into other
1519         languages.
1521         * ldmain.c (add_archive_element): Combine multiple strings
1522         into a single string to permit better translation into other
1523         languages.
1525 2001-12-05  Tom Rix  <trix@redhat.com>
1527         * Makefile.am: Remove eaixppc64.
1528         * Makefile.in: Regenerate.
1530 2001-12-04  Tom Rix  <trix@redhat.com>
1532         * emultempl/aix.em (choose_target): Change default target to
1533         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
1534         warning.
1535         (gld*_read_file):  Fix typo.
1536         (change_symbol_mode): Add prototype.
1537         (is_syscall): Same.
1539         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1540         * emulparams/aixrs6.sh : Same.
1541         * emulparams/ppcmacos.sh : Same.
1542         * emulparams/aixppc64.sh : Delete file.
1543         * emultempl/aix.em : Formatting changes.
1545 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
1547         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1548         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1549         __Sbss.
1550         (OTHER_END_SYMBOLS): Fix formatting.
1551         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1552         (OTHER_END_SYMBOLS): Fix formatting.
1554 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
1556         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1558 2001-12-02  Tom Rix  <trix@redhat.com>
1560         * configure.tgt : Remove eaixppc64 emulations.
1561         * Makefile.in : Remove eaixppc64.c
1562         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1563         (ldemul_default_target): Same.
1564         * emultempl/gld960.em (gld960_choose_target):  Same.
1565         * emultempl/gld960c.em (gld960_choose_target):  Same.
1566         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1567         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1568         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1569         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1570         * emultempl/aix.em (choose_target): New function.  Handle emulation of
1571         -b32 and -b64.
1573 2001-11-27  H.J. Lu <hjl@gnu.org>
1575         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1576         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1577         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1578         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1579         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1580         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1581         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1582         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1584         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1585         is not empty.
1586         (SDATA): Likewise.
1587         (REL_SDATA): Likewise.
1588         (REL_SBSS): Likewise.
1589         (REL_SDATA2): Likewise.
1590         (REL_SBSS2): Likewise.
1591         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1592         (SDATA2): Likewise.
1594 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1596         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1597         destructor in rom.
1598         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1600 2001-11-22  H.J. Lu  <hjl@gnu.org>
1602         * Makefile.in: Regenerated with automake based on automake
1603         1.4-8 in RedHat 7.1.
1605 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
1607         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1608         (config.status): Delete rule.
1609         Add extra dependencies to cover sourced emulparams files.
1610         * Makefile.in: Regenerate.
1612         * scripttempl/elf.sc: Order <section>, <section>.* and
1613         corresponding linkonce sections as seen in input files.
1614         Formatting fixes.  Zero vma of all sections if not relocating.
1615         (STACK): Define and insert if STACK_ADDR defined.
1616         (OTHER_RELOCATING_SECTIONS): Delete.
1617         (OTHER_END_SYMBOLS): Define.
1618         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1619         (OTHER_READWRITE_SECTIONS): Likewise.
1620         (OTHER_GOT_SECTIONS): Likewise.
1621         (OTHER_SDATA_SECTIONS): Likewise.
1622         (OTHER_BSS_SECTIONS): Likewise.
1623         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1624         (OTHER_READWRITE_SECTIONS): Likewise.
1625         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1626         (OTHER_READWRITE_SECTIONS): Likewise
1628         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1629         (STACK_ADDR): Define.
1630         * emulparams/armelf_oabi.sh: As for armelf.sh.
1631         * emulparams/elf32mcore.sh: As for armelf.sh.
1632         * emulparams/h8300elf.sh: As for armelf.sh.
1633         * emulparams/mn10200.sh: As for armelf.sh.
1634         * emulparams/shelf.sh: As for armelf.sh.
1636         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1637         (OTHER_END_SYMBOLS): Define.
1638         * emulparams/m32relf.sh: As for elf32fr30.sh.
1639         * emulparams/h8300helf.sh: As for elf32fr30.sh.
1640         * emulparams/h8300self.sh: As for elf32fr30.sh.
1642         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1643         defines with RELOCATING test.
1644         (OTHER_SDATA_SECTIONS): Likewise.
1645         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1646         (OTHER_END_SYMBOLS): ..this.
1647         * emulparams/crislinux.sh: As for criself.sh.
1649         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1650         if not relocating.
1651         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1652         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
1653         normal and linkonce sections as seen in input files.
1654         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1655         (TEXT_DYNAMIC): Likewise.
1656         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1657         (OTHER_SDATA_SECTIONS): Likewise.
1658         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1659         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1660         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1661         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1662         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1663         (OTHER_PLT_RELOC_SECTIONS): Likewise.
1664         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
1665         sections as seen in input files.
1666         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1667         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1668         if not relocating.
1669         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1670         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1671         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1672         (OTHER_SECTIONS): Instead, use this..
1673         (OTHER_END_SYMBOLS): ..and this.
1675         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1676         * emulparams/elf32bsmip.sh: Likewise.
1677         * emulparams/elf32btsmip.sh: Likewise.
1678         * emulparams/elf32ebmip.sh: Likewise.
1679         * emulparams/elf32lmip.sh: Likewise.
1680         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1681         * emulparams/elf32lsmip.sh: Likewise.
1682         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1683         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1684         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1685         * emulparams/elf64btsmip.sh: Likewise.
1686         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1687         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1688         * emulparams/elf32ppclinux.sh: Likewise.
1689         * emulparams/elf32ppcsim.sh: Likewise.
1690         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1691         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1692         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1693         * emulparams/h8300self.sh: Likewise.
1694         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1695         * emulparams/sh.sh: Comment.
1696         * emulparams/shl.sh: Source sh.sh, remove duplicates.
1697         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1698         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1700 2001-11-21  David Heine <dlheine@tensilica.com>
1701             Alan Modra  <amodra@bigpond.net.au>
1703         * ldlang.c (map_input_to_output_sections): Replace "break"
1704         accidentally removed with 2001-08-03 change.
1705         (lang_gc_sections_1): Likewise.
1707 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
1709         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1711 2001-11-20  Angela Marie Thomas <angela@redhat.com>
1713         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1714         of false when calling lang_size_sections.
1715         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1717 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
1719         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1720         function when LDEMUL_FINISH isn't set to the same name.  Don't
1721         call ${LDEMUL_FINISH}.
1722         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1723         * emultempl/armelf.em (arm_elf_finish): Call
1724         gld${EMULATION_NAME}_finish.
1725         * emultempl/hppaelf.em (hppaelf_finish): Rename to
1726         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
1727         hppaelf_layout_sections_again if necessary.
1728         (need_laying_out): New var.
1729         (hppaelf_layaout_sections_again): Rename to
1730         hppaelf_layout_sections_again.  Clear need_laying_out.
1731         (PARSE_AND_LIST_OPTIONS): Format text.
1733 2001-11-14  H.J. Lu  <hjl@gnu.org>
1735         * emultempl/armelf.em (arm_elf_finish): Renamed from
1736         gld${EMULATION_NAME}_finish.
1737         (LDEMUL_FINISH): Set to arm_elf_finish.
1739 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
1741         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1742         (struct ld_emulation_xfer_struct): Use it.
1744 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
1746         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1747         additional symbols referenced by newer crt0.o files from HP.
1749 2001-11-12  Anthony Green  <green@redhat.com>
1751         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1753 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
1755         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1756         * Makefile.in: Regenerate.
1758 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1760         * ld.texinfo: Use @command for commands, @option for options.
1761         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1762         the page man title.
1763         * Makefile.in: Rebuild.
1765 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
1767         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1768         Add support for targets.
1770 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
1772         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1773         * configure: Regernate.
1774         * po/fr.po: New file.
1775         * po/sv.po: New file.
1777 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
1779         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1780         as little endian default and to support big endian.
1782 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
1784         * ld.texinfo (Options): Document new option, -nostdlib.
1785         * lexsup.c (OPTION_NOSTDLIB): New definition.
1786         (ld_options): Add entry for "nostdlib".
1787         (parse_args): Handle OPTIONS_NOSTDLIB.
1788         * ldfile.c (ldfile_add_library_path): Don't add directories
1789         to the search path if they weren't specified on the command line
1790         and -nostdlib was specified.
1791         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1793 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
1795         * lexsup.c (parse_args): Prevent infinite parsing loop when
1796         "-rpath.a" is specified on the command line.
1797         Replace calls to fprintf with calls to einfo.
1799 2001-10-31  John Marshall  <jmarshall@acm.org>
1801         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1802         appear only once across all the linker scripts involved in a link
1803         invocation no longer applies.  Make the documentation reflect
1804         that.
1806 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
1808         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1809         targets.
1810         (sh-*-linux*): Added targ_extra_libpath.
1812 2001-10-31  David Heine  <dlheine@tensilica.com>
1814         * ldlang.c (lang_size_sections): Keep a valid output_offset field
1815         for padding statements.
1817 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
1819         * configure.tgt (mmix-*-*): New target.
1820         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1821         Add dependencies to match.
1822         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1823         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1824         scripttempl/mmo.sc: New files.
1825         * gen-doc.texi: @set MMIX.
1826         * ld.texinfo: Ditto.
1827         [MMIX] Add MMIX node.
1828         * Makefile.in: Regenerate.
1830 2001-10-29  Kazu Hirata  <kazu@hxi.com>
1832         * ldlang.c: Fix a comment typo.
1834 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
1836         * configure.host: Move alpha*-*-linux-gnu* entry to generic
1837         entries, and match *-*-linux*.
1839 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
1841         * ldgram.y (mri_script_command): Surround processing of INCLUDE
1842         with ldlex_script, ldlex_popstate.
1843         (ifile_p1): Likewise.
1844         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
1845         correct slot.
1846         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
1847         to 1.  Don't BEGIN(SCRIPT).
1848         (lex_redirect): Similarly.
1849         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1851 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
1853         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1854         __EH_FRAME_END__ and accept eh frames into data section.
1855         Add ctor and dtor sections.
1857 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1859         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1860         (auto-export): Fix indentation.
1862 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1864         * pe-dll.c (autofilter_objectlist):  Add startup objects
1865         for profiling.
1866         (auto-export): Constify char * p.
1867         Extract file basename and use strcmp rather than ststr
1868         for object lookup.
1870 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
1872         * ldmain.c (get_emulation): Improve comment about the handling
1873         of -mipsN options.
1875 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
1877         * po/POTFILES.in: Regenerate.
1879 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
1881         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1882         -z nocopyreloc and -z nocombreloc usage strings.
1884 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
1886         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1887         in usage.
1889 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
1891         * scripttempl/armaout.sc: Place .bss section after end of aligned
1892         data section to match behaviour of aout code in constructrion of
1893         header.
1895 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1897         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1898         startup files for mingw32 dlls to list.
1900 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
1902         * emultempl/elf32.em: Fix shell 'if' usage for portability.
1904 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
1906         * configure.tgt (targ): Add arm9e-*-elf.
1908 2001-10-05  H.J. Lu  <hjl@gnu.org>
1910         * genscripts.sh: Fix a typo in the last change.
1912 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
1914         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1915         -z nocombreloc in usage.
1917 2001-10-03  Jim Blandy  <jimb@redhat.com>
1919         * genscripts.sh: Include a comment at the top of each generated
1920         script, explaining its purpose.
1922 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
1924         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1925         * NEWS: Mention -z nocopyreloc.
1926         * ld.texinfo (Options): Describe nocopyreloc.
1928 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
1930         * configure: Regenerate.
1932 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
1934         * ldver.h (ld_program_version): Remove declaration.
1935         * lexsup.c (parse_args): Move printing of copyright message..
1936         * ldver.c (ldversion): .. to here.
1937         Use BFD_VERSION_STRING in place of BFD_VERSION.
1938         (ld_program_version): Remove.
1939         * Makefile.am (Makefile): Depend on bfd/configure.in.
1940         Run "make dep-am".
1941         * Makefile.in: Regenerate.
1943 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
1945         * Makefile.am: Update dependencies with "make dep-am".
1946         * Makefile.in: Regenerate.
1948 2001-09-29  John Reiser  <jreiser@BitWagon.com>
1950         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1951         * lexsup.c: Add --no-define-common commandline option.
1952         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1953         * ldlex.l: Likewise.
1954         * ld.h: Add command_line.inhibit_common_definition.
1955         * ldmain.c (main): Initialize.
1956         * ld.texinfo: Document.
1958 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
1960         * ldlang.c (section_already_linked): Remove assignment to kept_section.
1962 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
1964         * ldmisc.c (USE_STDARG): Remove.
1965         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1966         (einfo): Likewise.
1967         (minfo): Likewise.
1968         (lfinfo): Likewise.
1970         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1971         declarations.  Update copyright.
1973 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
1975         * pe-dll.c: Remove obsoleted declaration of
1976         pe_get_data_import_dll_name.
1977         (pe_create_import_fixup): Fix thinko.
1979         * ld.texinfo(enable-auto-import): Clarify the explanation.
1981 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
1983         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1984         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1985         DLL_SUPPORT controlled code.
1987 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
1989         * emultempl/pe.em(pe_data_import_dll): Make static.
1990         (pe_get_data_import_dll_name): New accessor function.
1991         * pe-dll.c(pe_create_import_fixup): call
1992         pe_get_data_import_dll_name() from pe.em, instead of
1993         directly accessing pe_data_import_dll variable from pe.em.
1995 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
1997         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1998         (def_file_add_directive): Use ISSPACE instead of isspace.
1999         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2000         isdigit/isxdigit/isalpha/isalnum.
2001         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2002         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2003         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2004         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2005         isalnum.
2006         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2007         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2008         isupper/tolower.
2009         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2010         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2011         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2012         (ctor_prio): Use ISDIGIT instead of isdigit.
2013         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2014         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2015         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2016         isupper/tolower.
2017         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2018         (stricpy): Use TOLOWER instead of isupper/tolower.
2019         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2020         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2021         (lex_warn_invalid): Use ISPRINT instead of isprint.
2022         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2023         (main): For gettext, also set the LC_CTYPE locate facet.
2024         (add_keepsyms_file): Use ISSPACE instead of isspace.
2025         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2026         (is_num, parse_args): Use ISDIGIT instead of isdigit.
2027         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2028         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2029         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2030         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2031         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2032         (quoteput): Use ISSPACE instead of isspace.
2033         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2034         instead of isalnum.
2036 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
2038         * deffilep.y (def_stash_module): Constify "name" param.
2040         * pe-dll.c: Replace CONST with const throughout.
2041         (quick_symbol): Constify "n1", "n2", "n3" params.
2042         (make_singleton_name_thunk): Constify "import" param.  Make
2043         "buffer_len" a size_t.
2044         (make_import_fixup_entry): Constify "name", "fixup_name",
2045         "dll_symname" params.
2046         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
2047         (pe_get32): Likewise.
2048         (pe_implied_import_dll): Likewise.
2050         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2051         (sort_by_section_name): Likewise.
2053         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2054         (make_import_fixup): Cast printf arg, rel->address to long rather
2055         than int.
2056         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2058 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
2060         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2061         defines BufferSize.  Increase buffer size by one.
2063 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
2065         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2067 2001-09-14  Kevin Lo <kevlo@openbsd.org>
2069         * configure.tgt: Add arm-openbsd target.
2071 2001-09-12  H.J. Lu  <hjl@gnu.org>
2073         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2074         eelf64lppc.o to ...
2075         (ALL_64_EMULATIONS): Here.
2076         * Makefile.in: Regenerated.
2078 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2080         * emultempl/pe.em(make_import_fixup): change signature to
2081         take asection as well as arelec; we need this for proper
2082         error reporting.  Only call pe_create_import_fixup() if
2083         there is no attempt to add a constant addend to the reloc;
2084         otherwise, report error condition.
2085         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2086         since final argument is a pointer to make_import_fixup().
2087         Change call to cb() to match make_import_fixup() signature.
2088         (make_import_fixup_mark): make buffer_len unsigned.
2089         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2091 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
2093         * ld.texinfo: add verbose documentation for auto-import
2094         direct-addressing workaround, to compliment the terse
2095         error message.
2097 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
2099         * scripttempl/v850.sc: Add gcc_except_table sections.
2101 2001-09-11  Jeffrey A Law  (law@cygnus.com)
2103         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2104         * emulparams/h8300self.sh: Similarly.
2106 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2108         * ld.texinfo (Options, --stack): Correct default value for stack
2109         reserve.
2111 2001-09-05  Tom Rix <trix@redhat.com>
2113         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2115 2001-09-03  Andreas Jaeger  <aj@suse.de>
2117         * emultempl/beos.em: Declare prototypes for comparions functions,
2118         adjust definitions.
2120 2001-09-02  Andreas Jaeger  <aj@suse.de>
2122         * emultempl/aix.em: Add missing prototype.
2123         * emultempl/lnk960.em: Likewise.
2124         * emultempl/vanilla.em: Likewise.
2125         * emultempl/armcoff.em: Likewise.
2126         * emultempl/armelf_oabi.em: Likewise.
2127         * emultempl/beos.em: Likewise.
2128         * emultempl/gld960c.em: Likewise.
2129         * emultempl/gld960.em: Likewise.
2131         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2132         for prototype declaration.
2134 2001-08-31  Eric Christopher  <echristo@redhat.com>
2135             Jason Eckhardt  <jle@redhat.com>
2137         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2139 2001-08-31  Andreas Jaeger  <aj@suse.de>
2141         * emultempl/pe.em: Add missing prototypes.
2142         (gld_${EMULATION_NAME}_after_open): Remove extra args to
2143         pe_find_data_imports.
2144         (pr_sym): Add unused attribute.
2146 2001-08-29  Joel Sherrill <joel@OARcorp.com>
2148         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2149         default from coff to elf.
2151 2001-08-29  Jeff Law <law@redhat.com>
2153         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
2154         ARCH specification.
2155         * emulparams/h8300self.sh: Similarly.
2157 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
2159         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2160         eh8300self.o .
2161         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2162         * configure.tgt (h8300-*-elf*): New case.
2163         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2164         * emulparams/h8300self.sh: New file.
2165         * Makefile.in: Regenerated.
2167 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
2169         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2170         with macro name.
2172 2001-08-27  Linus Nordberg  <linus@swox.com>
2173             Alan Modra  <amodra@bigpond.net.au>
2175         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2176         (eelf64ppc.c, eelf64lppc.c): Add make targets.
2177         Run "make dep-am"
2178         * Makefile.in: Regenerate.
2179         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
2180         entries to correct alphabetical position.
2181         * emulparams/elf64ppc.sh: New.
2182         * emulparams/elf64lppc.sh: New.
2184 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
2186         * ldmain.c (main): Declare BSIZE as static.
2188 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2190         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2191         into .rel.dyn resp. .rela.dyn if combreloc.
2192         (get_script): If .x linker script is equal to .xn, only put it
2193         once into the binary.
2194         Add .xc and .xsc scripts.
2195         (parse_args): Handle -z combreloc and -z nocombreloc.
2196         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2197         For .xc and .xsc scripts put all .rel* or .rela* input sections
2198         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2199         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2200         is elf.
2201         Strip trailing whitespace from script.
2202         Generate .xc and .xsc scripts if requested.
2203         * ldmain.c (main): Initialize link_info.combreloc and
2204         link_info.spare_dynamic_tags.
2205         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2206         (ld_options): Add --spare-dynamic-tags option.
2207         (parse_args): Likewise.
2208         * ld.texinfo: Document -z combreloc and -z nocombreloc.
2209         * ldint.texinfo: Document .xc and .xsc linker scripts.
2210         * NEWS: Add notes about -z combreloc and SHF_MERGE.
2212 2001-08-22  H.J. Lu  <hjl@gnu.org>
2214         * emulparams/elf32fr30.sh: Add a newline.
2216 2001-08-21  Andreas Jaeger  <aj@suse.de>
2218         * deffilep.y: Add missing prototypes.
2219         * pe-dll.c: Likewise.
2221 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
2223         * ldlang.c (insert_pad): Fix typos in last patch.
2225         * ldlang.c: When traversing lang_statement_union_type lists,
2226         consistently use "header.next" rather than "next".
2227         * mpw-eppcmac.c: Likewise.
2228         * emultempl/beos.em: Likewise.
2229         * emultempl/hppaelf.em: Likewise.
2230         * emultempl/pe.em: Likewise.
2231         * ldlang.h (union lang_statement_union): Remove "next" field.
2233         * ldlang.c (insert_pad): Use offsetof macro.
2234         (lang_size_sections): Always neuter padding statements.
2235         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2237         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2238         passed to lang_size_sections.
2239         (pe_exe_fill_sections): Likewise.
2240         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2241         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2243 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2245         * emultempl/aix.em: Formatting fixes.
2247 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2249         * ldlang.c (insert_pad): Make use of an existing pad statement if
2250         available.  Move code calculating alignment, adjusting section
2251         alignment power, and adjusting dot to ..
2252         (size_input_section): .. here.  Remove unused relax param.
2253         (lang_size_sections): Change boolean `relax' param to boolean *.
2254         Adjust call to size_input_section.  Make use of insert_pad to
2255         place pad after the assignment statement.  If relaxing, zap
2256         padding statements.
2257         (reset_memory_regions): Reset output_bfd section sizes too.
2258         (relax_again): Move to..
2259         (lang_process): ..here.  Adjust call to lang_size_sections, and
2260         remove duplicated code.
2261         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2263 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
2265         * ld.texinfo: Document that fill values now use the four least
2266         significant bytes.
2267         * emulparams/elf32fr30.sh (NOP): Update.
2268         * emulparams/elf32mcore.sh: Likewise.
2269         * emulparams/elf64_s390.sh: Likewise.
2270         * emulparams/elf_i386.sh: Likewise.
2271         * emulparams/elf_i386_be.sh: Likewise.
2272         * emulparams/elf_i386_chaos.sh: Likewise.
2273         * emulparams/elf_i386_ldso.sh: Likewise.
2274         * emulparams/elf_s390.sh: Likewise.
2275         * emulparams/elf_x86_64.sh: Likewise.
2276         * emulparams/i386moss.sh: Likewise.
2277         * emulparams/i386nw.sh: Likewise.
2278         * emulparams/m68kelf.sh: Likewise.
2279         * scripttempl/elf.sc: Update NOP comment.
2280         * scripttempl/elfi370.sc: Likewise.
2281         * scripttempl/elfm68hc11.sc: Likewise.
2282         * scripttempl/elfm68hc12.sc: Likewise.
2283         * scripttempl/nw.sc: Likewise.
2285 2001-08-15  Tom Rix <trix@redhat.com>
2287         * ldgram.y (saved_script_handle): Initialize to NULL.
2288         * ldmain.c (main): Change check on saved_script_handle.
2290 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
2292         * emultempl/elf32.em: Formatting fixes.
2293         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
2294         looking at sec->owner.
2295         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2296         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
2297         unused code, and reorganize orphan section placement code.
2299         * ldlang.c (wild_doit): Rename to lang_add_section.
2300         * ldlang.h: Here too.
2301         * mpw-elfmips.c: And here.
2302         * emultempl/beos.em: And here.
2303         * emultempl/elf32.em: And here.
2304         * emultempl/hppaelf.em: And here.
2305         * emultempl/pe.em: And here.
2307 2001-08-13  Richard Henderson  <rth@redhat.com>
2309         * emultempl/needrelax.em: New file.
2310         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2311         * Makefile.am (eelf64_ia64.c): Depend on it.
2312         * Makefile.in: Rebuild.
2314 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
2316         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2317         output_section is set non-NULL.
2319         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2320         `true' for SEC_EXCLUDE sections so that the generic code doesn't
2321         needlessly create an output_section_statement.  Treat a correctly
2322         named output_section_statement with NULL bfd_section as compatible.
2324 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
2326         * emultempl/generic.em: Support EXTRA_EM_FILE.
2327         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2328         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2329         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2330         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2331         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2332         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2333         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2334         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2335         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2336         LDEMUL_FIND_POTENTIAL_LIBRARIES.
2338 2001-08-12  Richard Henderson  <rth@redhat.com>
2340         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2341         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2342         scripttempl/v850.sc: Keep .jcr data.
2344 2001-08-12  H.J. Lu  <hjl@gnu.org>
2345             Andrew Haley  <aph@cambridge.redhat.com>
2346             Nick Clifton  <nickc@redhat.com>
2348         * ldgram.y (had_script): Change name to saved_script_handle.
2349         Change type to file handle.
2350         * ld.h (had_script): Rename and retype.
2351         * ldfile.c (ldfile_open_command_file): Save the file handle
2352         used in saved_script_handle.
2353         * lexsup.c (parse_args): Do not allow -c option to alter
2354         saved_script_handle.
2355         * ldmain.c (main): Print out the linker script used if
2356         --verbose is given.  Check saved_script_handle to obtain the
2357         external linker script used, or if NULL, dump the builtin
2358         script.
2359         * ld.texinfo: Document that --verbose now dumps the linker
2360         script used, regardless of whether it was an internal or an
2361         external script.
2363 2001-08-10  Andreas Jaeger  <aj@suse.de>
2365         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2366         to build warnings.
2367         * configure: Regenerate.
2369 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
2371         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2373         * scripttempl/elf.sc: Move non-text .dynamic section before
2374         .plt/.got/.sdata* group.
2375         (OTHER_GOT_SECTIONS): Move to immediately after .got.
2376         (OTHER_SDATA_SECTIONS): Add.
2377         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2378         OTHER_GOT_SECTIONS.
2379         * emulparams/crislinux.sh: Likewise.
2380         * emulparams/elf32b4300.sh: Likewise.
2381         * emulparams/elf32bmip.sh: Likewise.
2382         * emulparams/elf32bmipn32.sh: Likewise.
2383         * emulparams/elf32bsmip.sh: Likewise.
2384         * emulparams/elf32btsmip.sh: Likewise.
2385         * emulparams/elf32ebmip.sh: Likewise.
2386         * emulparams/elf32elmip.sh: Likewise.
2387         * emulparams/elf32l4300.sh: Likewise.
2388         * emulparams/elf32lmip.sh: Likewise.
2389         * emulparams/elf32lsmip.sh: Likewise.
2390         * emulparams/elf32ltsmip.sh: Likewise.
2391         * emulparams/elf64bmip.sh: Likewise.
2392         * emulparams/elf64btsmip.sh: Likewise.
2393         * emulparams/elf64ltsmip.sh: Likewise.
2395 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
2397         * genscripts.sh: Source the emulparams script before each output
2398         script is generated so that variables like `RELOCATING' may affect
2399         variables defined in the emulparams script.
2401 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
2403         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2404         order.
2406         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2407         ie. iterate over wild_statement.section_list.
2408         (gld${EMULATION_NAME}_place_orphan): Likewise.
2410 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2412         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2413         .fini[0-4] sections used by _exit
2414         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2415         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2416         * scripttempl/elfm68hc11.sc: Likewise.
2418 2001-08-03  H.J. Lu  <hjl@gnu.org>
2420         * emultempl/beos.em (init): Add the missing initialization.
2422 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
2424         * ld.texinfo (Input Section Basics): Clarify ordering of output
2425         sections.
2426         * ldlang.c (callback_t): Add wildcard_list param.
2427         (walk_wild_section): Remove "section" param.  Rewrite for
2428         lang_wild_statement_type change.  Remove unique_section_p test.
2429         (walk_wild_file): Remove "section" param.
2430         (walk_wild): Remove "section" and "file" params.
2431         (lang_gc_wild): Likewise.
2432         (wild): Likewise.  Modify for lang_wild_statement_type change.
2433         (wild_sort): Likewise.  Add "sec" param.
2434         (gc_section_callback): Likewise.
2435         (output_section_callback): Likewise.  Do unique_section_p test.
2436         (map_input_to_output_sections): Modify call to wild.
2437         (lang_gc_sections_1): Likewise.
2438         (print_wild_statement): Modify for lang_wild_statement_type
2439         change.
2440         (lang_add_wild): Replace filename, filenames_sorted param with
2441         filespec.  Replace section_name, sections_sorted,
2442         exclude_filename_list with section_list.
2443         * ldlang.h (lang_add_wild): Here too.
2444         (lang_wild_statement_type): Replace section_name, sections_sorted,
2445         and exclude_filename_list with section_list.
2446         * ldgram.y (current_file): Delete.
2447         (%union): Add wildcard_list.
2448         (file_NAME_list): Set type to wildcard_list.  Build a linked list
2449         rather than calling lang_add_wild for each entry.
2450         (input_section_spec_no_keep): Call lang_add_wild here instead.
2451         * ld.h (struct wildcard_list): Declare.
2452         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2454 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2456         * ldmain.c (main): initialize link_info.pei386_auto_import
2457         * pe-dll.c: new tables for auto-export filtering
2458         (auto_export): change API, pass abfd for contextual filtering.
2459         Loop thru tables of excluded symbols instead of comparing
2460         "by hand".
2462 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
2464         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2465         static variable current_sec (static struct sec *). Add
2466         forward declaration for add_bfd_to_link.
2467         (process_def_file): Don't export undefined symbols. Do not
2468         export symbols starting with  "_imp__".  Call auto_export()
2469         with new API.
2470         (pe_walk_relocs_of_symbol): New function.
2471         (generate_reloc): add optional extra debugging
2472         (pe_dll_generate_def_file): eliminate extraneous initial blank
2473         line in output
2474         (make_one): enlarge symtab to make room for __nm__ symbols
2475         (DATA auto-import support).
2476         (make_singleton_name_thunk): New function.
2477         (make_import_fixup_mark): New function.
2478         (make_import_fixup_entry): New function.
2479         (pe_create_import_fixup): New function.
2480         (add_bfd_to_link): Specify that 'name' argument is a CONST
2481         char *.
2482         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2483         declare new functions pe_walk_relocs_of_symbol and
2484         pe_create_import_fixup.
2485         * emultempl/pe.em: add new options --enable-auto-import,
2486         --disable-auto-import, and --enable-extra-pe-debug.
2487         (make_import_fixup): New function.
2488         (pe_find_data_imports): New function.
2489         (pr_sym): New function.
2490         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2491         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
2492         CODE.
2494 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2496         * ld.texinfo: add additional documentation for
2497         --export-all-symbols.  Document --out-implib,
2498         --enable-auto-image-base, --disable-auto-image-base,
2499         --dll-search-prefix, --enable-auto-import, and
2500         --disable-auto-import.
2501         * ldint.texinfo: Add detailed documentation on auto-import
2502         implementation.
2504 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
2506         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2507         example.
2509 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
2511         * Makefile.am: Update dependencies with "make dep-am".
2512         * Makefile.in: Regenerate
2514 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
2516         * ldcref.c (check_section_sym_xref): New function.
2517         (check_nocrossrefs): Call it.
2518         (check_nocrossref): Interate over h->refs here instead of..
2519         (check_refs): ..here.  Pass in the symbol name, section, and bfd
2520         rather than hash_entry pointers.
2521         (struct check_refs_info): Keep symbol name rather than hash entry.
2522         Remove "same".
2523         (check_reloc_refs): Tweak for above changes in check_refs_info.
2524         Only report references to section syms when symname is NULL to
2525         prevent duplicate messages for the same reloc.
2527 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2529         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2530         available.  Do not print NULL trees.
2531         (exp_print_token): Print unknown tokens with values > 126 as
2532         decimal values not ASCII characters.
2534         * ldlang.c (lang_leave_overlay): If a region is specified assign
2535         it to all sections inside the overlay unless they have been
2536         assigned to the own, non-default, memory region.
2538         * README: Add header for consistency with other README files.
2540 2001-07-14  H.J. Lu  <hjl@gnu.org>
2542         * emultempl/elf32.em (output_prev_sec_find): Never return
2543         bfd_abs_section_ptr, bfd_com_section_ptr nor
2544         bfd_und_section_ptr.
2546 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
2548         * Makefile.am (em32relf.c): Change dependency from generic.em to
2549         elf32.em.
2550         * Makefile.in: Regenerate.
2552 2001-07-14  matthew green  <mrg@eterna.com.au>
2554         * configure.tgt (i386-*-netbsdelf*): New target.
2555         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2557 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
2559         * emultempl/elf32.em (output_prev_sec_find): New.
2560         (place_orphan): Use it.
2562 2001-07-11  H.J. Lu  <hjl@gnu.org>
2564         * ldmain.c (main): Fix typos in the last change.
2566 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
2568         * ldmain.c (main): Disallow -F and -f without -shared.
2570 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
2572         * emultempl/pe.em (after_open): Check for the output_bfd not
2573         having any coff_data structure allocated to it.
2575 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
2577         * emultempl/elf32.em: Do not assuming that contents of the buffer
2578         returned from basename function will remain unchanged accross other
2579         function calls.
2581 2001-07-03  H.J. Lu  <hjl@gnu.org>
2583         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2584         2001-07-03. It creates dynamic entries even for static binaries.
2586 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
2588         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2589         (DYNAMIC): Use it to reserve few dynamic entries for
2590         post-linking tools.
2592 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
2594         * emulparams/hppa64linux.sh: New file.
2595         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2596         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2597         (ehppa64linux.c): Add rule to make it.
2598         Run "make dep-am".
2599         * Makefile.in: Regenerate.
2601 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
2603         * ld.texinfo (Options, -r): Mention restrictions when using
2604         different object formats.
2606 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
2608         * ldlang.c (lang_check): Emit fatal error if relocatable link
2609         between different object flavours with relocations in input.
2611 2001-06-19  H.J. Lu  <hjl@gnu.org>
2613         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2614         (--version-script): Mention the language support.
2616 2001-06-19  H.J. Lu <hjl@gnu.org>
2618         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2620 2001-06-18  H.J. Lu <hjl@gnu.org>
2622         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2623         (diststuff): Add $(MANS).
2624         * Makefile.in: Regenerated.
2626         * ld.1: Removed.
2628 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
2630         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2631         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2632         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2633         * ld.h (args_type): Remove member export_dynamic.  All users
2634         changed to use struct bfd_link_info member.
2636         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2637         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2638         * Makefile.in: Regenerate.
2640 2001-06-18  H.J. Lu  <hjl@gnu.org>
2642         * ldlang.c (init_os): Add the newline to the einfo call.
2643         (lang_check): Likewise.
2644         (lang_do_version_exports_section): Likewise.
2646 2001-06-15  H.J. Lu  <hjl@gnu.org>
2648         * lexsup.c (parse_args); Save optind to report unrecognized
2649         option.
2651 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
2653         * ldlang.c (lang_check): Emit fatal error if relocatable link
2654         between different object flavours.
2656         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2657         Set new link_info member export_dynamic.
2658         * ldmain.c (main): Initialize new link_info member export_dynamic.
2660 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
2662         * ldlang.c (walk_wild): Only call walk_wild_file if
2663         lookup_name returns something.
2664         (lookup_name): If load_symbols fails, return NULL.
2665         (load_symbols): Change to a boolean function.
2666         (open_input_bfds): If load_symbols fails then do not make the
2667         executable.
2669 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
2671         * ldlang.c (record_bfd_errors): Remove.
2673         * emultempl/aix.em: Fix copyright dates.
2675 2001-06-07  Andreas Jaeger  <aj@suse.de>
2677         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2678         (TEXT_START_ADDR): Likewise.
2680 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
2682         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2684 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2686         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2688 2001-05-31  H.J. Lu  <hjl@gnu.org>
2690         * ldlang.c (open_input_bfds): Don't change the bfd error
2691         handler whilst loading symbols.
2693 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
2695         * configure.tgt: Remove i370-mvs architecture, it is not currently
2696         supported.
2698 2001-05-25  H.J. Lu  <hjl@gnu.org>
2700         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2701         like emulparams/aixppc.sh.
2703 2001-05-25  H.J. Lu  <hjl@gnu.org>
2705         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2706         setting of output_filename after bfd_scan_arch.
2707         * emultempl/pe.em: Likewise.
2709 2001-05-25  H.J. Lu  <hjl@gnu.org>
2711         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2712         like emulparams/aixppc.sh.
2714         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2715         instead of ${srcdir}/emultempl/stringify.sed.
2717 2001-05-25  Timothy Wall  <twall@oculustech.com>
2719         * emulparams/elf64_aix.sh: Change settings to match IBM linker
2720         output.
2722 2001-05-25  Alan Modra  <amodra@one.net.au>
2724         * configure.host: Replace linuxoldld with linux*oldld.
2725         * configure.tgt: Likewise.
2727 2001-05-24  H.J. Lu  <hjl@gnu.org>
2729         * emultempl/stringify.sed: Removed again.
2731 2001-05-24  H.J. Lu  <hjl@gnu.org>
2733         * emultempl/aix.em (OUTPUT_ARCH): Defined.
2734         (gld${EMULATION_NAME}_before_parse): Initialize
2735         ldfile_output_architecture, ldfile_output_machine and
2736         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2737         * emultempl/beos.em: Likewise.
2738         * emultempl/elf32.em: Likewise.
2739         * emultempl/linux.em: Likewise.
2740         * emultempl/mipsecoff.em: Likewise.
2741         * emultempl/pe.em: Likewise.
2742         * emultempl/sunos.em: Likewise.
2744 2001-05-24 Tom Rix <trix@redhat.com>
2746         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2747         udate import file format.
2748         (change_symbol_mode) New, same
2749         (is_syscall) New, same
2750         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2751         * emulparams/aixppc64.sh : same
2752         * emulparams/aixrs6.sh : same
2753         * emulparams/ppcmacos.sh : same
2754         * emultempl/aix.em : use strtoull to parse options
2755         * Makefile.am : add eaixppc64 emulation for xcoff64
2756         * Makefile.in : same
2757         * configure.tgt : same
2759         * scripttempl/aix.sc : default text section offset to 0x10000000
2760         default data section offset to 0x20000000
2761         add .sv3264 and .sv64 pseudo sections
2762         loader and debug sections use the currect section offset.
2764         * emultempl/aix.em : Add xcoff64 support
2765         Add -binitfini support
2766         (gld${EMULATION_NAME}_before_parse) -binitfini
2767         (gld${EMULATION_NAME}_parse_args) same
2768         (gld${EMULATION_NAME}_before_allocation) format change for special
2769         sections
2771         * emulparams/aixppc64.sh : New file for xcoff64 support
2773 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
2775         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2776         variable to avoid non-portable shell construct.
2778 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2780         * ldmain.c (get_emulation): Add -mips5 command line argument.
2782 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
2784         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2785         (ELF_INTERPRETER_NAME): Define it.
2786         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2787         it.
2788         * configure.tgt (targ_emul, targ_extra_emuls)
2789         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2790         as primary, elf_i386 as extra.
2791         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2792         (eelf_i386_ldso.c): New rule.
2793         * Makefile.in: Rebuilt.
2795 2001-05-22  Nick Clifton  <nickc@redhat.com>
2797         * lexsup.c (ld_options):  Allow -I to be an alias for
2798         --dynamic-linker.  This is for Solaris compatability.
2799         * ld.texinfo: Document that -I can be used.
2800         * ld.1: Regenerate.
2802 2001-05-16  Alan Modra  <amodra@one.net.au>
2804         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2805         whether an input section is the first one assigned to an output
2806         section.
2807         Assorted formatting fixes.
2809 2001-05-14  DJ Delorie  <dj@delorie.com>
2811         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2812         * Makefile.in: Ditto.
2814 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2816         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2817         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2818         output sections.
2819         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2821 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2823         * ldlang.c (lang_process): Call bfd_merge_sections.
2825 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2827         * ldgram.y: Fix typo.
2829 2001-05-03  H.J. Lu  <hjl@gnu.org>
2831         * emultempl/elf32.em: Include "libiberty.h".
2832         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2833         basename of the bfd filename.
2834         (gld${EMULATION_NAME}_stat_needed): Likewise.
2835         (gld${EMULATION_NAME}_try_needed): Likewise.
2836         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2838 2001-05-02  H.J. Lu  <hjl@gnu.org>
2840         * emultempl/pe.em: Include <ctype.h>.
2842 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
2844         * emulparams/elf32openrisc.sh: New file.
2846         * Makefile.am: Add OpenRISC target.
2847         * Makefile.in: Regenerated.
2849         * configure.tgt: Add openrisc-*-* mapping.
2851 2001-05-02  Nick Clifton  <nickc@redhat.com>
2853         * emultempl/aix.em: Replace buystring with xstrdup.
2854         * emultempl/beos.em: Replace buystring with xstrdup.
2856 2001-05-02  H.J. Lu  <hjl@gnu.org>
2858         * ldfile.c: Include "libiberty.h".
2859         * ldlex.l: Likewise.
2861         * ldmisc.c (buystring): Removed.
2862         * ldmisc.h: Likewise.
2864         * ldfile.c: Replace buystring with xstrdup.
2865         * ldlang.c: Likewise.
2866         * ldlex.l: Likewise.
2867         * ldmain.c: Likewise.
2868         * ldmisc.c: Likewise.
2869         * lexsup.c: Likewise.
2870         * mpw-eppcmac.c: Likewise.
2872 2001-04-30  Andreas Jaeger  <aj@suse.de>
2874         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2876 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2878         * ldlang.c (load_symbols): Give emulation a chance
2879         to process unrecognized file before fatal error is
2880         reported, not after.
2882 2001-04-27  Sean McNeil <sean@mcneil.com>
2884         * configure.tgt: Add arm-vxworks target.
2885         * scripttempl/armcoff.sc: Support .text or .data as a section name
2886         prefix.
2887         Define _etext.
2889 2001-04-13  J.T. Conklin  <jtc@redback.com>
2891         * ld.texinfo: Document --fatal-warnings.
2892         * ld.1: Regenerate.
2894         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2895         warnings have been turned into errors.
2896         * lexsup.c (OPTION_WARN_FATAL): Define.
2897         (ld_options): Entry for --fatal-warnings.
2898         (parse_args): Handle OPTION_WARN_FATAL.
2899         * ld.h (ld_config_type): Add fatal_warnings field.
2901 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
2903         * ldmain.c (main): Default to discard_sec_merge.
2904         * lexsup.c (OPTION_DISCARD_NONE): Define.
2905         (ld_options): Add --discard-none.
2906         (parse_args): Handle OPTION_DISCARD_NONE.
2907         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2908         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2909         all its input sections match.
2911 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
2913         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2914         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2915         (eelf32ltsmip.c): New target.
2916         (eelf64btsmip.c): Likewise.
2917         (eelf64ltsmip.c): Likewise.
2918         * Makefile.in: Regenerated.
2920         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2921         target.
2922         (mips*-*-linux-gnu*): Likewise.
2924         * emulparams/elf32ltsmip.sh: New. Traditional little endian
2925         MIPS taget.
2926         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2927         target.
2928         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2929         endian target.
2931 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
2933         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2934         correct value of __Stext here.
2935         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2936         .startup section.
2938         * emulparams/crislinux.sh: Remove FIXME.
2940 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
2942         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2943         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2945 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
2947         * configure.tgt (cris-*-*): Change default emulation to criself.
2948         (cris-*-*aout*): New rule.
2950 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
2952         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2953         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2955 2001-03-26  Andreas Jaeger  <aj@suse.de>
2957         * ld.texinfo (Overview): Fix syntax in texi code.
2959 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2961         * ld.texinfo: Put @c man indications to generate the ld man page.
2962         When generating man, define all the variables.  Define SEEALSO
2963         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
2964         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2965         (ld.1): Generate from ld.texinfo.
2966         * Makefile.in: Regenerate.
2968 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
2970         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2971         and '-fdata-sections'. Set the VMA of STABS sections to zero.
2973 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
2975         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2976         is an absolute path look only for this file and not along the path.
2978 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
2980         * emultempl/elf32.em (OPTION_GROUP): New macro.
2981         Add new option Bgroup to longopts.
2982         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2983         (gld*_list_options): Add -Bgroup and -z defs.
2984         * ld.1: Document -Bgroup and -z defs.
2985         * ld.texinfo: Likewise.
2987 2001-03-07  Michael Meissner  <meissner@redhat.com>
2989         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2990         with sections created by -fdata-sections.
2991         (.dynbss,.bss): Ditto.
2993 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
2995         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2996         after_allocation_default, not gld..._before_allocation.
2998 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
3000         * configure.in (BFD_VERSION): New.
3001         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3002         * configure: Regenerate.
3003         * Makefile.am: Run "make dep-am"
3004         * Makefile.in: Regenerate.
3006 2001-02-26  Timothy Wall  <twall@cygnus.com>
3008         * emulparams/elf64_aix.sh: Add additional read-only sections;
3009         uncomment lines which are now required.
3011 2001-02-26  H.J. Lu  <hjl@gnu.org>
3013         * ldlang.c (open_input_bfds): Set the bfd error handler so
3014         that problems can be caught whilst loading symbols.
3015         (record_bfd_errors): New function: Report BFD errors and mark
3016         the executable output as being invalid.
3018 2001-02-22  Timothy Wall  <twall@cygnus.com>
3020         * configure.host: Add configuration for ia64-*-aix*.
3021         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3022         Add dependencies for eelf64_aix.c.
3023         * Makefile.in: Regenerate.
3024         * configure.tgt: Add ia64-*-aix* mapping.
3025         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3026         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
3027         AIX-specific test.
3029 2001-02-20  H.J. Lu  <hjl@gnu.org>
3031         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3032         false if we found the file.
3034 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
3036         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3037         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3039 2001-02-18  lars brinkhoff  <lars@nocrew.org>
3041         * Makefile.am: Add PDP-11 target.
3042         * configure.tgt: Likewise.
3043         * emulparams/pdp11.sh: New file.
3045 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
3047         * configure.host: Add a generic FreeBSD configuration entry such that
3048         all [modern] FreeBSD systems on all platforms will look the same.
3050 2001-02-14  H.J. Lu  <hjl@gnu.org>
3052         * configure.tgt: Remove mention of earmelf_linux26.
3054 2001-02-13  Richard Henderson  <rth@redhat.com>
3056         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3058 2001-02-13  H.J. Lu  <hjl@gnu.org>
3060         * ldexp.h (node_type): Add etree_provided.
3061         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3062         type to etree_provided if defined by PROVIDE. Allow updating
3063         for etree_provided.
3064         (exp_print_tree): Handle etree_provided.
3065         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3066         etree_provided.
3068 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
3070         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3071         .IA_64.unwind.* pattern to unwind table section and
3072         .IA_64.unwind_info* pattern to unwind info section.
3074 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3076         * Makefile.am: Add linux target for S/390.
3077         * Makefile.in: Likewise.
3078         * configure.host: Likewise.
3079         * configure.tgt: Likewise.
3080         * emulparams/elf64_s390.sh: New file.
3081         * emulparams/elf_s390.sh: New file.
3083 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
3085         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3086         targ_extra_libpath.
3087         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3089 2001-02-06  Philip Blundell  <philb@gnu.org>
3091         * Makefile.am: Remove mention of earmelf_linux26.
3092         * Makefile.in: Regenerate.
3094 2001-02-04  Philip Blundell  <philb@gnu.org>
3096         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3097         * emulparams/armelf_linux26.sh: Delete.
3098         * configure.tgt: Remove mention of armelf_linux26 emulation.
3100 2001-02-01  Nick Clifton  <nickc@redhat.com>
3102         * ld.1: Replace occurances of -oformat with --oformat.
3104 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
3106         * ldlang.c (lang_leave_overlay): Don't set lma_region when
3107         load_base is specified.
3109 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
3111         * emultempl/elf32.em: Correct spelling in comments and listed
3112         options.
3114 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
3116         * ldlang.c (lang_leave_overlay): Only set lma_region from the
3117         default for the first section of a group of overlay sections.
3119 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
3121         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3122         * Makefile.in: Regenerate.
3123         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3124         Check for null tool_dir.
3126 2001-01-16  Jim Wilson  <wilson@redhat.com>
3128         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3129         and IA_64.unwind.info.
3131 2001-01-16  H.J. Lu  <hjl@gnu.org>
3133         * ldlang.c (lang_check): Merge the private data only if the
3134         input file has contents.
3136 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
3138         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3140         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3141         enabling search for libmilli.  On a relocatable link, make .text
3142         sections unique.
3143         (LDEMUL_AFTER_PARSE): Define.
3144         (hppaelf_finish): Correct spelling of relocatable in comments.
3146         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3147         rummage through the script for sections on the unique list.
3148         Correct length of strncmp for ".note".
3149         (gld${EMULATION_NAME}_check_needed): Rearrange function.
3151         * ldlang.c (unique_section_list): New var.
3152         (unique_section_p): New function.
3153         (walk_wild_section): Don't match sections on unique_section_list.
3154         (lang_add_unique): New function.
3155         Correct spelling of relocatable in comments.
3157         * ldlang.h (struct unique_sections): Declare.
3158         (unique_section_list): Declare.
3159         (unique_section_p): Declare.
3160         (lang_add_unique): Declare.
3162         * lexsup.c (ld_options): Allow --unique to take an optional arg.
3163         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3165         * ld.texinfo (--unique): Update.
3167 2001-01-13  Nick Clifton  <nickc@redhat.com>
3169         * lexsup.c (parse_args): Remove spurious white space.
3171 2001-01-12  Nick Clifton  <nickc@redhat.com>
3173         * lexsup.c (parse_args): Update copyright date.
3175 2001-01-12  Philip Blundell  <pb@futuretv.com>
3177         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3179 2001-01-10  Kazu Hirata  <kazu@hxi.com>
3181         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
3182         * scripttempl/h8300h.sc: Fix formatting.
3183         * scripttempl/h8300s.sc: Likewise.
3184         * scripttempl/h8500.sc: Likewise.
3185         * scripttempl/h8500b.sc: Likewise.
3186         * scripttempl/h8500c.sc: Likewise.
3187         * scripttempl/h8500m.sc: Likewise.
3188         * scripttempl/h8500s.sc: Likewise.
3190 2000-01-07  David O'Brien  <obrien@BSDi.com>
3192         * emultempl/elf32.em: Only perform Linux ld hints processing when
3193         targeting Linux.
3195 2001-01-07  Philip Blundell  <philb@gnu.org>
3197         * ld.texinfo (Bug Reporting): Update email address for reports.
3199 2000-12-31  Nick Clifton  <nickc@redhat.com>
3201         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3202         options by checking for a return value of '?' not -1.
3204 2000-12-28  Nick Clifton  <nickc@redhat.com>
3206         * lexsup.c (struct ld_option): Add new enum value:
3207         EXACTLY_TWO_DASHES.
3208         (ld_options[]): Change -omagic, -output and -oformat options
3209         to be EXACTLY_TWO_DASHES.
3210         (OUTPUT_COUNT): Use ARRAY_SIZE.
3211         (parse_args): Change parameter 'argc' to unsigned.
3212         Place EXACTLY_TWO_DASHES options into new really_longopts
3213         array.
3214         If getopt_long_only fails, try calling getopt_long using the
3215         really_longopts array.
3216         (help): Print a double dash for both EXACTLY_TWO_DASHES and
3217         TWO_DASHES options.
3219         * ldlex.h: Fix prototype of parse_args.
3221         * ld.texinfo: Document that long options starting with 'o'
3222         must be preceeded by two dashes.  Change example of a single
3223         dashed long option from -oformat to -trace-symbol.
3225 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3227         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3228         (longopts[]): New --no-default-excludes option.
3229         (gld_${EMULATION_NAME}_list_options): Document.
3230         (gld_${EMULATION_NAME}_parse_args): Handle.
3232 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3234         * ldlang.c (new_stat): Revert the last beautification with "innocent"
3235         whitespace, it breaks the K&R C preprocessor.
3237 2000-12-11  DJ Delorie  <dj@redhat.com>
3239         * ld.texinfo: Add notes about --whole-archive and gcc.
3241 2000-11-18  Fred Fish  <fnf@be.com>
3243         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3244         (ld_options): Entry for --allow-shlib-undefined.
3245         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3246         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3247         to false.
3248         * ld.texinfo: Document new command line switch.
3250 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
3252         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3253         .fixup is actually read/write.
3254         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3255         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3256         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3258 2000-12-11  Jan Hubicka  <jh@suse.cz>
3260         * NEWS: Add note about x86_64 architecture.
3262 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
3264         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3265         Set DWARF2 sections to a VMA of zero.
3267 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
3269         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3270         New targets.
3271         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3272         (sparc*-*-rtems*): Switched from a.out to ELF.
3274 2000-11-30  Jan Hubicka  <jh@suse.cz>
3276         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3277         (eelf_x86_64.c): New.
3278         * Makefile.in: Regenerate.
3279         * configure.tgt: Add support for x86_64-*-linux-gnu*.
3280         * emulparams/elf_x86_64.sh: New.
3282 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
3284         * emulparams/crislinux.sh (ENTRY): Change back to _start.
3285         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3287         * scripttempl/crisaout.sc: Change all RELOCATING not related to
3288         merging non-a.out sections into CONSTRUCTING.
3290 2000-11-28  Nick Clifton  <nickc@redhat.com>
3292         * ld.1 (COPYING): Mention that the GNU Free Documentation
3293         License is present in the sources, but not the output, and
3294         also available from the GNU website.
3295         (GNU Free Documentation License): Comment out this section.
3297 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
3299         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3300         does not use them.
3302 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
3304         * ld.1: Remove old date so it does not give the impression the manpage
3305         is way out of date.
3307 2000-11-24  Nick Clifton  <nickc@redhat.com>
3309         * configure.tgt (xscale-coff): Add target.
3310         (xscale-elf): Add target.
3312 2000-11-24  Fred Fish  <fnf@be.com>
3314         * ldmain.c (main): Remove redundant init of config.make_executable
3315         to true.
3317 2000-11-15  Richard Henderson  <rth@redhat.com>
3319         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3321 2000-11-14  Kazu Hirata  <kazu@hxi.com>
3323         * scripttempl/h8300.sc: Fix formatting.
3324         * scripttempl/h8300h.sc: Likewise.
3325         * scripttempl/h8300s.sc: Likewise.
3327 2000-11-14  Denis Chertykov  <denisc@overta.ru>
3329         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3331 2000-11-09  Philip Blundell  <pb@futuretv.com>
3333         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3334         around orphan sections whose names can be represented in C.
3336 2000-11-07  Jim Wilson  <wilson@redhat.com>
3338         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3339         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
3341 2000-11-06  Nick Clifton  <nickc@redhat.com>
3343         * ld.texinfo: Add GNU Free Documentation License.
3344         * ldint.texinfo: Add GNU Free Documentation License.
3345         * ld.1: Add GNU Free Documentation License.
3347 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
3349         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3350         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3352         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3353         Move 2000-11-02 Makefile.in changes to this file.
3354         * Makefile.in: Regenerate.
3356 2000-11-03  Nick Clifton  <nickc@redhat.com>
3358         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3359         constructors and destructors.
3360         * scripttempl/h8300h.sc: Ditto.
3361         * scripttempl/h8300s.sc: Ditto.
3362         * scripttempl/h8500.sc: Ditto.
3363         * scripttempl/h8500b.sc: Ditto.
3364         * scripttempl/h8500c.sc: Ditto.
3365         * scripttempl/h8500m.sc: Ditto.
3366         * scripttempl/h8500s.sc: Ditto.
3367         * scripttempl/v850.sc: Ditto.
3368         * scripttempl/w65.sc: Ditto.
3369         * scripttempl/z8000.sc: Ditto.
3371 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
3373         * Makefile.in (e_i386_chaos.c): New rule.
3374         (ALL_EMULATIONS): Added e_i386_chaos.o.
3375         * emulparams/elf_i386_chaos.sh: New file.
3376         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3378 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
3380         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3381         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3382         Fix sed invocation, so that it coped with '/' in Solaris 64bit
3383         library path suffix.
3384         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3386 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
3388         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3389         for consecutive sections.
3391 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
3393         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3394         options.
3395         * ld.texinfo: Added notes about this new option.
3397 2000-10-16  Nick Clifton  <nickc@redhat.com>
3399         * emultempl/pe.em (_after_open): Add tests of return values from
3400         bfd functions.  Emit appropriate error messages if necessary.
3402 2000-10-13  Nick Clifton  <nickc@redhat.com>
3404         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3405         local variables - they are not used, but leave in the call to
3406         bfd_canonicalize_symtab.
3407         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3408         pe_dll_search_prefix.
3410 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
3412         * emultempl/pe.em (pe_dll_search_prefix): New variable,
3413         (longopts): New --dll-search-prefix option.
3414         (gld_${EMULATION_NAME}_list_options): Document.
3415         (gld_${EMULATION_NAME}_parse_args): Handle.
3416         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3417         dynamically, search for a dll named '<prefix><basename>.dll'
3418         in preference to 'lib<basename>.dll' if --dll-search-prefix
3419         is specified.
3421 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3423         * ldlang.c (section_already_linked): Set kept_section instead of
3424         sec->comdat->sec.
3426 2000-10-10  Kazu Hirata  <kazu@hxi.com>
3428         * deffile.h: Fix formatting.
3429         * lexsup.c: Likewise.
3430         * mri.c: Likewise.
3432 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3434         * pe-dll.c (make_one): Do not generate code thunk for DATA
3435         exports.
3436         (process_def_file): deduce DATA flag for auto-export sumbols.
3438 2000-10-09  Kazu Hirata  <kazu@hxi.com>
3440         * ld.h: Fix formatting.
3441         * ldcref.c: Likewise.
3442         * ldctor.h: Likewise.
3443         * ldemul.c: Likewise.
3444         * ldemul.h: Likewise.
3445         * ldexp.c: Likewise.
3446         * ldexp.h: Likewise.
3447         * ldfile.c: Likewise.
3448         * ldfile.h: Likewise.
3449         * ldlang.c: Likewise.
3450         * ldlang.h: Likewise.
3451         * ldmain.c: Likewise.
3452         * pe-dll.c: Likewise.
3454         * pe-dll.c: Revert some formatting fixes.
3456 2000-10-08  Kazu Hirata  <kazu@hxi.com>
3458         * pe-dll.c: Fix formatting.
3460 2000-10-05  Kazu Hirata  <kazu@hxi.com>
3462         * ldlang.c: Fix formatting.
3464 2000-10-03  DJ Delorie  <dj@redhat.com>
3466         * pe-dll.c (fill_edata): initialize entire block
3467         (make_one): fill in correct section.
3469 2000-10-03  Kazu Hirata  <kazu@hxi.com>
3471         * ldexp.c: Fix formatting.
3473 2000-10-02  DJ Delorie  <dj@redhat.com>
3475         * emultempl/pe.em (gld_*_after_open): detect case where there two
3476         import libraries for same dll; rename one to ensure proper link
3477         order.
3479         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3480         typo
3481         (generate_edata): fix typo
3483 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
3485         * scripttempl/crisaout.sc (ENTRY): Now __start.
3486         (.text): Add default setting for __start.
3487         Remove CONSTRUCTORS handling.
3488         (/DISCARD/): Add .gnu.warning.*.
3489         * emulparams/crislinux.sh (ENTRY): Now __start.
3490         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3491         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3492         (ENTRY): Now __start.
3493         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3494         (EXECUTABLE_SYMBOLS): Add default setting for __start.
3496 2000-09-29  Kazu Hirata  <kazu@hxi.com>
3498         * deffile.h: Fix formatting.
3499         * ld.h: Likewise.
3500         * ldcref.c: Likewise.
3501         * ldctor.c: Likewise.
3502         * ldctor.h: Likewise.
3503         * ldemul.c: Likewise.
3504         * ldemul.h: Likewise.
3505         * ldexp.c: Likewise.
3506         * ldexp.h: Likewise.
3507         * ldfile.c: Likewise.
3508         * ldfile.h: Likewise.
3509         * ldlang.c: Likewise.
3510         * ldlang.h: Likewise.
3511         * lexsup.c: Likewise.
3512         * mri.c: Likewise.
3513         * pe-dll.c: Likewise.
3515 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3517         * pe-dll.c (process_def_file): Uninitialized data wasn't
3518         exported with --export-all-symbols switch.
3520 2000-09-28  DJ Delorie  <dj@redhat.com>
3522         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3523         noname work properly.
3525 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
3527         * ld.texinfo (HPPA ELF32): New section.
3529         * emultempl/hppaelf.em (group_size): New.
3530         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3531         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3532         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
3533         options to prevent abbreviations matching.
3534         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
3535         (PARSE_AND_LIST_ARGS_CASES): Handle it.
3537 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3539         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3540         on the m68*-*-elf target.  Make it support COFF input objects.
3542 2000-09-21  Kazu Hirata  <kazu@hxi.com>
3544         * ldmain.c: Fix formatting.
3545         * ldmisc.c: Likewise.
3546         * ldver.c: Likewise.
3547         * ldwrite.c: Likewise.
3549 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3551         * ldwrite.c (clone_section): Silence gcc warnings.
3553 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3555         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3556         out of memory failure.
3558         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3559         (clone_section): Handle out of memory failures.  Rename var to
3560         avoid c++ reserved word.
3562 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3564         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3565         stub_name param to stub_sec_name.
3566         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3568 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3570         * emultempl/m68kelf.em: New file.
3571         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3572         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3573         * Makefile.in: Regenerate.
3575 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3577         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3578         only as needed.
3580 2000-09-13  Nick Clifton  <nickc@redhat.com>
3582         * ldmain.c (multiple_definition): Disable relaxation if
3583         multiple symbol definitions are encountered - otherwise the
3584         linker could abort with an assertion failure.
3586 2000-09-10  Nick Clifton  <nickc@redhat.com>
3588         * mri.c: Fix formatting.
3590 2000-09-07  H.J. Lu  <hjl@gnu.org>
3592         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3593         * configure: Rebuild.
3595 2000-09-07  H.J. Lu  <hjl@gnu.org>
3597         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3598         * Makefile.in: Rebuild.
3600 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
3602         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3603         broken list handling.  Create __start_SECNAME and __stop_SECNAME
3604         when no place-holder.  Add some comments.  Test both SEC_CODE and
3605         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3606         Handle case where no output section statement created.
3608 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
3610         * configure.tgt (sh-*-linux*): Added.
3611         * Makefile.am: Added eshelf_linux and eshlelf_linux.
3612         * Makefile.in: Rebuilt.
3613         * emulparams/shelf_linux.sh: New file.
3614         * emulparams/shlelf_linux.sh: New file.
3616 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
3618         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3619         try shuffling sections when the orphan happens to be the place
3620         holder.  Keep count of unique section names generated so we speed
3621         the search for a new name.
3623 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
3625         * configure: Rebuilt with new libtool.m4.
3627 2000-09-05  Nick Clifton  <nickc@redhat.com>
3629         * Makefile.in: Regenerate.
3630         * aclocal.m4: Regenerate.
3631         * configure: Regenerate.
3632         * config.in: Regenerate.
3633         * po/ld.pot: Regenerate.
3635         * ldint.texinfo: Remove CVS revision marker - it foils local
3636         comparisons.
3638         * emultempl/ticoff.em: Remove extraneous comma.
3640 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
3642         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3643         to stub section flags.
3644         (hppa_for_each_input_file_wrapper): New.
3645         (hppa_lang_for_each_input_file): New.
3646         (lang_for_each_input_file): Define to call above.
3647         (multi_subspace): New.
3648         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3649         (PARSE_AND_LIST_PROLOGUE): Define.
3650         (PARSE_AND_LIST_LONGOPTS): Define.
3651         (PARSE_AND_LIST_OPTIONS): Define.
3652         (PARSE_AND_LIST_ARGS_CASES): Define.
3653         (hppaelf_finish): Call elf32_hppa_set_gp.
3654         (hppaelf_set_output_arch): Remove.
3655         (LDEMUL_SET_OUTPUT_ARCH): Remove.
3657         * emulparams/hppalinux.sh (ELFSIZE): Define.
3658         (MACHINE): Define.
3659         (OTHER_READONLY_SECTIONS): Define.
3660         (DATA_PLT): Define.
3661         (GENERATE_SHLIB_SCRIPT): Define.
3663         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
3664         to const throughout.  Change `void *' to `PTR' throughout.
3665         (lang_memory_default): Function is local to file, add `static'.
3667         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3668         (ehppalinux.c): Likewise.
3669         (earmelf.c): Likewise.
3670         (earmelf_linux.c): Likewise.
3671         (earmelf_linux26.c): Likewise.
3672         * Makefile.in: Regenerate.
3674         * ld.h (ld_config_type): Add unique_orphan_sections.
3675         * lexsup.c (OPTION_UNIQUE): Define.
3676         (ld_options): Add "--unique".
3677         (parse_args): Handle it.
3678         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3679         search for an existing output section if unique_orphan_sections is
3680         set.  Make use of bfd_get_unique_section_name rather than
3681         duplicating code here.
3682         * ld.texinfo: Describe --unique.
3684         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3685         optional arg to split-by-file.
3686         (parse_args): Handle them.
3687         * ld.texinfo: Update description of these options.
3688         * ldwrite.c (clone_section): Pass in the section name.  Replace
3689         local code with bfd_get_unique_section_name.
3690         (split_sections): Tidy code and comments.  Use a list traversal
3691         more appropriate to the list construction.  Handle cooked section
3692         sizes.  Split when split_by_reloc reached rather than exceeded.
3693         Track section size and split when split_by_file reached.  Fix
3694         link_order_tail (even though it's not used).
3695         (ldwrite): Modify condition for calling split_sections to suit
3696         changed split_by_reloc and split_by_file.
3697         * ldmain.c (main): Init config.split_by_reloc and
3698         config.split_by_file to -1.
3699         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3700         Change split_by_file to bfd_size_type.
3702 2000-09-02  Nick Clifton  <nickc@redhat.com>
3704         * configure.in: Increase version number to 2.10.91.
3705         * NEWS: Mention new ability to support removal of duplicate DWARF2
3706         debug information.
3707         * configure: Regenerate.
3708         * aclocal.m4: Regenerate.
3709         * config.in: Regenerate.
3711 2000-09-02  Daniel Berlin <dberlin@redhat.com>
3713         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3714         sections.
3715         * scripttempl/elf32avr.sc: Ditto.
3716         * scripttempl/elfd10v.sc: Ditto.
3717         * scripttempl/elfd30v.sc: Ditto.
3718         * scripttempl/elfi370.sc: Ditto.
3719         * scripttempl/elfm68hc11.sc: Ditto.
3720         * scripttempl/elfm68hc12.sc: Ditto.
3721         * scripttempl/elfi386beos.sc: Ditto.
3722         * scripttempl/v850.sc: Ditto.
3724 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
3726         * acinclude.m4: Include libtool and gettext macros from the
3727         top level.
3728         * aclocal.m4, configure: Rebuilt.
3730 2000-08-25  Nick Clifton  <nickc@redhat.com>
3732         * ldlang.c (open_output): When choosing the target for a
3733         particular endianness, do nothing if the target is not
3734         supported.
3736 2000-08-25  H.J. Lu  <hjl@gnu.org>
3738         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3739         check -rpath nor LD_RUN_PATH for cross link.
3740         * ld.texinfo: Document the change.
3742 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
3744         * NEWS: Mention support for CRIS.
3746 2000-08-23  H.J. Lu  <hjl@gnu.org>
3748         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3749         the current runpath list from bfd_elf_get_runpath_list ()
3750         before search.
3752 2000-08-22  H.J. Lu  <hjl@gnu.org>
3754         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3755         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3756         LD_LIBRARY_PATH for native linker. Display the needed DSO if
3757         trace_file_tries is non-zero.
3758         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3759         if trace_file_tries is non-zero.
3761         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3762         * NEWS: Mention it.
3764 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
3766         * NEWS: Mention i860 support.
3768 2000-08-14  Andreas Schwab  <schwab@suse.de>
3770         * scripttempl/elf.sc: Fix last change to use correct comment
3771         syntax.
3773 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
3775         * scripttempl/elf.sc: Add a comment giving the correspondence
3776         between sections, per-datum sections, and linkonce sections.  Make
3777         the comment true even for .bss, .sdata, .sdata2, .sbss, and
3778         .sbss2.
3780 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
3782         * emulparams/elf32_i860.sh: New file.
3783         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3784         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3785         (eelf32_i860.c): New rule.
3786         * Makefile.in: Regenerate.
3788 2000-08-10  Nick Clifton  <nickc@cygnus.com>
3790         * emulparams/mipspe.sh (ENTRY): Add definition.
3792 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
3794         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3795         in error message.
3797 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3799         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3800         the final size of .bss section.
3801         * scripttempl/elfm68hc12.sc: Likewise.
3803 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
3805         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3806         gld${EMULATION_NAME}_parse_args for consistency.  Combine
3807         lastoptind and prevoptind vars, and keep track of last optind.
3808         (gld_${EMULATION_NAME}_list_options): Rename to
3809         gld${EMULATION_NAME}_list_options.
3811 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
3813         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3814         (i586-sco-sysv5uw7.1.0).
3816 2000-07-27  H.J. Lu  <hjl@gnu.org>
3818         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3819         (PARSE_AND_LIST_PROLOGUE): New.
3820         (PARSE_AND_LIST_LONGOPTS): Likewise.
3821         (PARSE_AND_LIST_OPTIONS): Likewise.
3822         (PARSE_AND_LIST_ARGS_CASES): Likewise.
3823         (PARSE_AND_LIST_EPILOGUE): Likewise.
3825 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
3827         * emultempl/armelf.em: Elide functions common to elf32.em,
3828         ie. most of the file.
3829         (arm_elf_after_open): New.  Do arm specific things then call
3830         gld${EMULATION_NAME}_after_open.
3831         (arm_elf_before_allocation): New.  Call
3832         gld${EMULATION_NAME}_before_allocation then do arm specifics.
3833         (PARSE_AND_LIST_PROLOGUE): Define.
3834         (PARSE_AND_LIST_SHORTOPTS): Define.
3835         (PARSE_AND_LIST_LONGOPTS): Define.
3836         (PARSE_AND_LIST_OPTIONS): Define.
3837         (PARSE_AND_LIST_ARGS_CASES): Define.
3838         (LDEMUL_AFTER_OPEN): Define.
3839         (LDEMUL_BEFORE_ALLOCATION): Define.
3840         (LDEMUL_BEFORE_PARSE): Define.
3841         (LDEMUL_FINISH): Define.
3843         * emultempl/hppaelf.em: Similarly zap most of this file.
3844         (hppaelf_add_stub_section): Prototype.
3845         (hppaelf_layaout_sections_again): Prototype.
3846         (hook_in_stub): Prototype.
3847         (LDEMUL_SET_OUTPUT_ARCH): Define.
3848         (LDEMUL_FINISH): Define.
3849         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3851         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3852         (EXTRA_EM_FILE): New.
3853         * emulparams/armelf_linux.sh: Likewise.
3854         * emulparams/armelf_linux26.sh: Likewise.
3855         * emulparams/hppalinux.sh: Likewise.
3856         * emulparams/hppaelf.sh: Likewise.
3857         (NOP): Define.
3859         * emultempl/elf32.em: Fix formatting.
3860         (EXTRA_EM_FILE): Source it.
3861         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3862         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3863         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3864         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3865         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3866         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3867         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3868         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3869         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
3870         allow functions in this file to be overridden.
3871         (PARSE_AND_LIST_SHORTOPTS): Handle it.
3873         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3875         * emultempl/elf32.em: Reorganize file.
3877 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
3879         * emulparams/elf64alpha.sh: Implement "-taso" emulation
3880         specific option to fit 64-bit executable in the lower
3881         31-bit address range.  This is done by changing start
3882         address of .interp (the very first section of executable)
3883         and then setting EF_ALPHA_32BIT elf header flag.
3885 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3887         * emultempl/m68kcoff.em: New file.
3888         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3889         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3890         generic.em.
3891         * Makefile.in: Regenerate.
3893 2000-07-20  H.J. Lu  <hjl@gnu.org>
3895         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3896         and "disable-new-dtags" to stop getopt from treating -d/-e as
3897         abbreviations for these options.
3899 2000-07-20  H.J. Lu  <hjl@gnu.org>
3901         * ld.texinfo: Add documentation for --disable-new-dtags and
3902         --enable-new-dtags.
3904         * ldmain.c (main): Initialize link_info.new_dtags to false.
3906         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3907         --disable-new-dtags and --enable-new-dtags.
3908         (gld_${EMULATION_NAME}_list_options): Likewise.
3910 2000-07-05  Kenneth Block  <krblock@computer.org>
3912         * lexsup.c: Add optional style to demangle switch
3913         * ld.texinfo: Document optional style to demangle switch.
3915 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
3917         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3918         ecrislinux.o.
3919         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3920         Regenerate dependencies.
3921         * Makefile.in: Rebuild.
3922         * configure.tgt (cris-*-*): New target.
3923         * emulparams/crisaout.sh, emulparams/criself.sh,
3924         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3925         * po/POTFILES.in, po/ld.pot: Regenerate.
3927 2000-07-20  H.J. Lu  <hjl@gnu.org>
3929         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3930         Print out ignored -z options.
3932 2000-07-19  H.J. Lu  <hjl@gnu.org>
3934         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3935         (PARSE_AND_LIST_PROLOGUE): New.
3936         (PARSE_AND_LIST_LONGOPTS): Likewise.
3937         (PARSE_AND_LIST_OPTIONS): Likewise.
3938         (PARSE_AND_LIST_ARGS_CASES): Likewise.
3940         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3942         * lexsup.c (ld_options): Comment out 'z'.
3943         (parse_args): Likewise.
3945         * emultempl/elf32.em: Include "elf/common.h".
3946         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3947         options.
3948         (gld_${EMULATION_NAME}_list_options): Likewise.
3950         * ld.texinfo: Add documentation for the recognized -z options.
3952 2000-07-19  H.J. Lu  <hjl@gnu.org>
3954         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3955         bfd_elf_set_dt_needed_soname ().
3957 2000-07-18  DJ Delorie  <dj@cygnus.com>
3959         * pe-dll.c (pe_dll_id_target): check object target name also
3961 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
3963         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3964         ${INIT_END} if relocating.
3965         (.fini): Likewise ${FINI_START} and ${FINI_END}.
3967 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
3969         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3970         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3971         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3972         errors introduced by the old dynamic lib search order.
3974 2000-07-17  DJ Delorie  <dj@cygnus.com>
3976         * pe-dll.c (process_def_file): auto-export data items also
3977         (pe_process_import_defs): also see if _imp_ form needed
3979 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
3981         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3982         for dll import libraries
3984 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
3986         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3987         gcc 2.95.2 and later.
3989 2000-07-11  Kazu Hirata  <kazu@hxi.com>
3991         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3992         message.
3994 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
3996         * ldemul.h (struct lang_input_statement_struct): Remove forward
3997         declaration.
3998         (struct search_dirs): Likewise.
3999         * ldfile.h (struct lang_input_statement_struct): Likewise.
4000         Protect file from multiple inclusion.
4001         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4002         declaration from macro to file scope.
4004         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4005         * ldgram.y: Likewise here.
4006         * ldlang.c: And here.
4007         * ldmain.c: And here.
4008         * mpw-elfmips.c: And here.
4009         * mpw-eppcmac.c: And here.
4010         * emultempl/aix.em: And here.
4011         * emultempl/armcoff.em: And here.
4012         * emultempl/armelf.em: And here.
4013         * emultempl/armelf_oabi.em: And here.
4014         * emultempl/beos.em: And here.
4015         * emultempl/elf32.em: And here.
4016         * emultempl/hppaelf.em: And here.
4017         * emultempl/linux.em: And here.
4018         * emultempl/lnk960.em: And here.
4019         * emultempl/pe.em: And here.
4020         * emultempl/sunos.em: And here.
4021         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4022         * mpw-idtmips.c: Ditto.
4023         * emultempl/generic.em: Ditto.
4024         * emultempl/gld960.em: Ditto.
4025         * emultempl/gld960c.em: Ditto.
4026         * emultempl/mipsecoff.em: Ditto.
4027         * emultempl/ticoff.em: Ditto.
4028         * emultempl/vanilla.em: Ditto.
4030         * pe-dll.c: Include ldfile.h
4031         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4033         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4034         arguments to bfd_elf32_size_dynamic_sections call.
4035         (gldelf32ebmip_place_orphan): Add missing arguments to
4036         lang_leave_output_section_statement call.
4038 2000-07-10  H.J. Lu  <hjl@gnu.org>
4040         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4041         DLL_SUPPORT.
4042         (strhash): Likewise.
4043         (compute_dll_image_base): Likewise.
4044         (pe_undef_found_sym): Likewise.
4045         (pe_undef_cdecl_match): Likewise.
4046         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4047         argument "arch" with ATTRIBUTE_UNUSED.
4049 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4051         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4053         From  Ryan Bradetich  <rbradetich@uswest.net>
4054         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4056 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
4058         Changes to create multiple linker stubs, positioned immediately
4059         before the section where they are required.
4060         * emultempl/hppaelf.em: Include elf32-hppa.h.
4061         (stub_sec, file_chain): Delete.
4062         (hppaelf_create_output_section_statements): Don't make a stub
4063         section here.
4064         (hook_stub_info): New struct.
4065         (hook_in_stub): New function.
4066         (hppaelf_add_stub_section): New function.
4067         (hppaelf_finish): Do nothing for relocateable links.  Modify the
4068         call to elf32_hppa_size_stubs.  Move code for updating section
4069         layout from here...
4070         (hppaelf_layaout_sections_again): ..to here, a new function.
4072         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4073         broken list handling.  Pass in a pointer to the list.
4074         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4075         for above changes.
4076         (hppaelf_before_parse): Prototype.
4077         (hppaelf_set_output_arch): Prototype.
4078         (hppaelf_create_output_section_statements): Prototype.
4079         (hppaelf_delete_padding_statements): Prototype.
4080         (hppaelf_finish): Prototype.
4082         Merge from elf32.em
4083         * emultempl/hppaelf.em: Include ctype.h.
4084         (struct orphan_save): New.
4085         (gld${EMULATION_NAME}_place_orphan): New.
4086         (output_rel_find): New.
4087         (hppaelf_get_script): Update from elf32.em.
4088         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4089         Change emulation_name field to "${EMULATION_NAME}".  Add
4090         gld${EMULATION_NAME}_place_orphan.
4092         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
4093         ehppalinux.o, sort it.  Regenerate dependencies.
4094         (ehppalinux.c): Depend on hppaelf.em
4095         * Makefile.in: Regenerate.
4097         * configure.tgt: targ_emul=hppalinux for hppa*linux
4099         * emulparams/hppalinux.sh: New.
4100         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4102 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
4104         * lexsup.c (parse_args): Copy section name.
4106 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
4108         * emultempl/pe.em: institute the following search order for
4109         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4110         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
4111         static lib (libfoo.a) if none of the above are found.
4113 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
4115         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4116         (longopts): New --{enable,disable}-auto-image-base options.
4117         (gld_${EMULATION_NAME}_list_options): Document.
4118         (gld_${EMULATION_NAME}_parse): Handle.
4119         (strhash): New static function.
4120         (compute_dll_image_base): New static function.
4121         (gld_${EMULATION_NAME}_set_symbols): Use.
4123 2000-07-05  DJ Delorie  <dj@redhat.com>
4125         * MAINTAINERS: new
4127 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
4129         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4130         * emulparams/elf32btsmip.sh: New file.
4131         * Makefile.am: Add traditional mips target.
4132         * Makefile.in: Rebuild.
4134 2000-07-01  H.J. Lu  <hjl@gnu.org>
4136         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4137         automake to use YLWRAP.
4138         * Makefile.in: Rebuild.
4140 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
4142         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
4143         (CLEANFILES): Add DEPA.
4144         * Makefile.in: Regenerate.
4146 2000-06-30  Timothy Wall  <twall@ppc>
4148         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4149         the page in the upper octet of the address.
4151 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
4153         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4155 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
4157         * NEWS: arm-elf does --gc-sections too.
4159 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
4161         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4162         find one.
4163         * Makefile.in: Regenerate.
4165 2000-06-21  H.J. Lu  <hjl@gnu.org>
4167         * Makefile.am: Rebuild dependency.
4168         * Makefile.in: Rebuild.
4170 2000-06-20  H.J. Lu  <hjl@gnu.org>
4172         * Makefile.am: Rebuild dependency.
4173         * Makefile.in: Rebuild.
4175 2000-06-20  Timothy Wall  <twall@cygnus.com>
4177         * scripttempl/tic54xcoff.sc: New.
4178         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4179         * gen-doc.texi: Add flag for TI COFF.
4180         * ld.texinfo: Add documentation for TI COFF handling switches.
4181         * emultempl/ticoff.em: New. TI COFF handling.
4182         * configure.tgt: Add tic54x target.
4183         * Makefile.am: Add tic54x target.
4184         * Makefile.in: Ditto.
4186 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
4188         * ldmain.c (set_scripts_dir): Correct pointer comparison when
4189         checking for backslashes.
4191 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
4193         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4195 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
4197         * NEWS: Update list of targets supporting --gc-sections.
4199         * scripttempl/elf.sc: KEEP .eh_frame contents.
4200         * scripttempl/elfd30v.sc: Same here.
4202 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4204         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4205         and m68hc11 (elf).
4206         * Makefile.in: Rebuild.
4207         * configure.tgt: Recognize m68hc12 and m68hc11.
4208         * scripttempl/elfm68hc12.sc: New file.
4209         * emulparams/m68hc12elfb: New emulation.
4210         * emulparams/m68hc12elf: New emulation.
4211         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
4212         (includes a memory.x script to define the ROM and RAM banks).
4213         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4214         New configuration files for support of Motorola 68hc11
4216 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
4218         * ldmain.c (main): Only change SEC_READONLY for final link.
4220 2000-06-13  H.J. Lu  <hjl@gnu.org>
4222         * configure: Regenerate.
4224 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4226         * configure.in (VERSION): Update to show this is the CVS mainline.
4228 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4230         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4231         input objects to be ECOFF.
4232         (check_sections): einfo takes %B, not %P, to print a BFD name.
4234 2000-06-05  Michael Matz <matz@ifh.de>
4236         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4237         version scripts.
4239         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4241 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
4243         * emulparams/avr1200.sh (STACK): Define as 0.
4244         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4245         * emulparams/avr4433.sh (STACK): Likewise.
4246         * emulparams/avr44x4.sh (STACK): Likewise.
4247         * emulparams/avr85xx.sh (STACK): Likewise.
4248         * emulparams/avrmega103.sh (STACK): Likewise.
4249         * emulparams/avrmega161.sh (STACK): Likewise.
4250         * emulparams/avrmega603.sh (STACK): Likewise.
4251         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4252         (__stack): Define from ${STACK} for main().
4254 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4256         * Makefile.am: Update dependencies with "make dep-am"
4257         * Makefile.in: Regenerate.
4259 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
4261         * ldmain.c: Include filenames.h.
4262         (set_scripts_dir): Support backslashes in program name.
4264 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
4266         * ldmain.c (main): When deciding if ".text" section should be
4267         read-only, don't forget to reset SEC_READONLY because it
4268         could be already set.
4270 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
4272         * ld.1: Add documentation for new command line option:
4273                 --section-start <sectionname>=<sectionorg>
4274         This is a generic version of -Ttext etc. which accepts
4275         any section name as a parameter instead of just text/data/
4276         bss.
4277         * ld.texinfo: More docs.
4278         * NEWS: More docs.
4279         * lexsup.c: (parse_args): Recognize new command line option.
4280         (ld_options): Add new option.
4282 2000-05-18  H.J. Lu  <hjl@gnu.org>
4284         * lexsup.c (parse_args): `i' == `r', not `q'.
4286 2000-05-18  Jeffrey A Law  (law@cygnus.com)
4288         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4290 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
4291               Rick Gorton          <gorton@scrugs.lkg.dec.com>
4293         Add support for '-q' == '--emit-relocs' switch.
4294         * ldmain.c (main): Default to false.
4295         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4296         * NEWS: Describe the emitrelocations switch.
4297         * ld.texinfo: Describe the emitrelocations switch.
4299 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
4301         * emultempl/pe.em (_open_dynamic_archive): New function: Search
4302         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4303         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4304         link options.
4306 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
4308         * lexsup.c (parse_args): Update the year in the copyright notice.
4310 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
4312         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4313         Replace defines with those from intl/libgettext.h to quieten gcc
4314         warnings.
4316 2000-05-10  H.J. Lu  <hjl@gnu.org>
4318         * ldlang.c (open_input_bfds): Don't load the same file within
4319         a group again if the whole archive has been loaded already.
4321 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
4323         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4324         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4325         strtoul.
4327 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4329         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4331         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4332         host "ia64-*-linux-gnu*".
4334 2000-04-29  Andreas Jaeger  <aj@suse.de>
4336         * ld.h: Correctly check GCC version.
4338 2000-04-25  Jeffrey A Law  (law@cygnus.com)
4340         * Makefile.am: Add PA64 support.  Add missing dependencies for
4341         PA32 elf support.
4342         * Makefile.in: Rebuilt.
4343         * configure.tgt: Add PA64 support (currently disabled).
4345 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
4347         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4348         (output_rel_find): New function.
4349         (hold_section, hold_use): Delete.
4350         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4351         hold_interp): Make local to place_orphan.
4352         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4353         rather than place_section to find possible previous use of orphan.
4354         Similarly find the place-holder output sections.  Use returned
4355         value from lang_enter_output_section_statement rather than calling
4356         lang_output_section_statement_lookup.
4357         * emultempl/armelf.em: Same here.
4358         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4360         * ldlang.c (lang_enter_output_section_statement): Return output
4361         section statement.
4362         * ldlang.h (lang_enter_output_section_statement): Change
4363         declaration too.
4365         * ldlang.h (lang_output_section_statement): Export it.
4366         * ldlang.c (lang_output_section_statement): Ditto.
4368 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4370         * ld.texinfo (Output Section Data): Add note that section data
4371         commands cannot appear outside of section directives.
4373 2000-04-2  Matthew Green  <mrg@cygnus.com>
4375         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4377 2000-04-21  Richard Henderson  <rth@cygnus.com>
4378             David Mosberger  <davidm@hpl.hp.com>
4380         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4381         (eelf64_ia64.c): New rule.
4382         * Makefile.in: Rebuild.
4383         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4384         * emulparams/elf64_ia64.sh: New file.
4386 2000-04-21  Richard Henderson  <rth@cygnus.com>
4388         * scripttempl/elfd30v.sc: Place .gcc_except_table.
4390 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
4392         * dep-in.sed: Match space at start of file name, not at end.
4394 2000-04-18  H.J. Lu  <hjl@gnu.org>
4396         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4397         lang_leave_output_section_statement () after calling
4398         lang_enter_output_section_statement ().
4399         * emultempl/armelf.em: Likewise.
4401 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
4403         * emultempl/elf32.em (struct orphan_save): Add section field.
4404         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4405         better order, and place first orphan section as we did before the
4406         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
4407         Don't call make_bfd_section here, let wild_doit do the job for us.
4408         Don't build a statement list when we'll only throw it away.
4409         * emultempl/armelf.em: Ditto.
4410         * emultempl/pe.em: Similarly.
4412 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4414         * scripttempl/elfppc.sc: Remove.
4415         * emulparams/elf32ppc.sh: Use elf.sc.
4416         * emulparams/elf32lppc.sh: Use elf.sc.
4417         * emulparams/elf32ppclinux.sh: Use elf.sc.
4418         * emulparams/elf32ppcsim.sh: New file.
4419         * emulparams/elf32lppcsim.sh: New file.
4420         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
4421         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4422         * Makefile.in: Regenerate.
4423         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4425 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
4427         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4428         ~SEC_ALLOC sections too.  Init start address of debug sections.
4429         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4430         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4431         Also set all relocateable section start addresses.
4433 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
4435         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4436         Add new BSS_PLT variable for when .plt need not be contained in
4437         the file.  Move _etext so that it is also after .fini, and provide
4438         both etext and _etext with a leading underscore.  Mark the start
4439         and end of .sbss.
4441 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
4443         * emultempl/elf32.em (struct orphan_save): New.
4444         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4445         hold_interp): Make them struct orphan_save.
4446         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4447         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4448         the end of the relevant section list.  Also add associated section
4449         statements to the end of any previous orphan statements.
4450         * emultempl/armelf.em: Similarly.
4451         * emultempl/pe.em: Similarly.
4453 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
4455         * ld.texinfo (Simple Example): Remove extraneous paragraph.
4457 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
4459         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4460         --enable-build-warnings option.
4461         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4462         * Makefile.in, configure: Re-generate.
4464 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
4466         * po/ld.pot: Regenerate.
4468         * lexsup.c (help): Restore translated part of bug string.
4470         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4471         (DEP): Quote when passing vars to sub-make.  Add warning message
4472         to end.
4473         (DEP1): Rewrite for "gcc -MM".
4474         (CLEANFILES): Add DEP2.
4475         Update dependencies.
4476         * Makefile.in: Regenerate.
4478 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
4480         * ld.h: #include "bin-bugs.h"
4481         * lexsup.c (help): Use REPORT_BUGS_TO.
4483 2000-03-27  Denis Chertykov  <denisc@overta.ru>
4485         * configure.tgt (avr-*-*): New target support.
4486         * Makefile.am: Likewise.
4487         * scripttempl/elf32avr.sc: New script file.
4488         * emulparams/avr1200.sh: New file.
4489         * emulparams/avr23xx.sh: New file.
4490         * emulparams/avr4433.sh New file.
4491         * emulparams/avr44x4.sh New file.
4492         * emulparams/avr85xx.sh New file.
4493         * emulparams/avrmega103.sh New file.
4494         * emulparams/avrmega161.sh New file.
4495         * emulparams/avrmega603.sh New file.
4496         * Makefile.in: Regenerate.
4498 2000-03-09  Andreas Jaeger  <aj@suse.de>
4500         * Makefile.am (check-DEJAGNU): Also unset LANG.
4501         * Makefile.in: Rebuild.
4503 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
4505         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4506         archive.
4508 2000-03-02  H.J. Lu  <hjl@gnu.org>
4510         * emulparams/elf32mcore.sh: Include "getopt.h".
4512 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
4514         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4516 2000-03-01  H.J. Lu  <hjl@gnu.org>
4518         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4519         * emulparams/shpe.sh: Likewise.
4521 2000-03-01  Nick Clifton  <nickc@cygnus.com>
4523         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4524         to unused parameters.
4526         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4527         functions only used by DLL code.
4528         (_place_orphan): Initialise 'dollar'.
4530 2000-03-01  H.J. Lu  <hjl@gnu.org>
4532         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4533         indicate if the undefined symbol is a fatal error or not.
4534         Don't delete the output file if "fatal" is false.
4536 2000-02-29  H.J. Lu  <hjl@gnu.org>
4538         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4539         Set LC_COLLATE and LC_ALL to null and export them. It is for
4540         sort which expects the C locale.
4541         Add $(LIBS) to all $(HOSTING_LIBS).
4542         * Makefile.in: Rebuild.
4544 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
4546         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4547         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4548         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4549         (ld_emulation_xfer_struct): Add missing NULL initialiser for
4550         find_potential_libraries.
4552 2000-02-28  Jim Blandy  <jimb@redhat.com>
4554         * ldgram.y (exclude_name_list): Don't require a comma to separate
4555         list entries; the lexer considers commas to be valid part of a
4556         filename, so in something like `foo, bar' the comma is considered
4557         part of the first filename, `foo,'.
4558         * ld.texinfo: Update section on EXCLUDE_FILE lists.
4560 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
4562         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4563         host "i[3456]86-*-freebsdelf*".
4565 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
4567         * scripttempl/i386go32.sc: Move misplaced semicolons.
4569 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
4571         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4572         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4573         (eelf64hppa.c, ehppaelf.c): Remove targets.
4574         * Makefile.in: Rebuild.
4576 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4578         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4579         GNU/Linux/sparc, but keep the default as 32.
4581         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
4582         it default if sparcv9 or sparc64.
4584 2000-02-24  Nick Clifton  <nickc@cygnus.com>
4586         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4587         * Makefile.in: Regenerate.
4588         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4590         * ldemul.h (ld_emulation_xfer_struct): Add new field:
4591         find_potential_libraries.
4592         * ldemul.c (ldemul_find_potential_libraries): New function.
4594         * ldfile.c (ldfile_open_file_search): Allow function to be
4595         exported.
4596         (ldfile_open_file): Call ldemul_find_potential_libraries.
4597         * ldfile.h: Add prototype for ldfile_open_file_search.
4599         * pe-dll.c: Add support for ARM, MIPS and SH targets.
4601         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
4602         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
4604         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4605         (gld_X_find_potential_libraries): New function.  Search for
4606         libraries called "*.lib".
4608         * scripttempl/pe.sc: Add .pdata section.
4610 2000-02-23  Richard Henderson  <rth@cygnus.com>
4612         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4613         Add and use memory regions.
4615 2000-02-23  Linas Vepstas (linas@linas.org)
4617         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4619         * Makefile.am: Add support for Linux/IBM 370.
4620         * configure.tgt: Likewise.
4622         * Makefile.in: Regenerate.
4624 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
4626         * ldlang.c (print_input_section, print_data_statement,
4627         print_reloc_statement, print_padding_statement, insert_pad,
4628         size_input_section, lang_check_section_addresses,
4629         lang_size_sections, lang_do_assignments, lang_set_startof,
4630         lang_one_common): Change `opb' to unsigned.
4631         (lang_do_assignments): Also change `size' to unsigned.
4633 2000-02-16  Richard Henderson  <rth@cygnus.com>
4635         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4637 2000-02-16  Timothy Wall  <twall@cygnus.com>
4639         * mri.c (mri_draw_tree): Add default LMA region argument to call
4640         to lang_leave_output_section_statement.
4641         * ldlang.h: Update prototypes with LMA region arguments.
4642         * ldlang.c (lang_size_sections): Encapsulate region bounds
4643         checking in os_check_region call.
4644         (os_check_region): New function.
4645         (lang_output_section_statement_lookup): Initialize lma_region.
4646         (lang_leave_output_section_statement): Add LMA region argument.
4647         (lang_leave_overlay): Ditto.
4648         * ldgram.y: Handle LMA region syntax.
4649         * ld.texinfo (Output Section Description): Describe LMA region usage.
4650         * emultempl/armelf.em (gld$place_orphan): Add default value for
4651         lma region in call to lang_leave_output_section_statement.
4652         * emultempl/elf32.em (gld$place_orphan): Add default value for
4653         lma region in call to lang_leave_output_section_statement.
4654         * emultempl/pe.em (gld$place_orphan): Add default value for
4655         lma region in call to lang_leave_output_section_statement.
4658 2000-02-04  Timothy Wall  <twall@redhat.com>
4660         * ldlang.c (lang_check_section_addresses): Use bytes instead of
4661         octets when calculating section end addresses.
4663 2000-02-04  Timothy Wall  <twall@redhat.com>
4665         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4667 2000-02-03  Timothy Wall <twall@redhat.com>
4669         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4670         octet count.
4671         * ldlang.c (print_input_section, print_data_statement,
4672         print_reloc_statement, print_padding_statement): Print target
4673         address values and section sizes as bytes, not octets.
4674         (insert_pad) Calculate padding size in octets, and adjust "dot"
4675         by bytes.
4676         (size_input_section) Always adjust "dot" by bytes, not octets.
4677         (lang_check_section_addresses, lang_do_assignments) Adjust
4678         "dot" by bytes, not octets.  Use the larger of the directive size
4679         or octets_per_byte for the number of octets actually allocated in
4680         the output section.
4681         (lang_set_startof) Make sure STARTOF returns a target address.
4682         (lang_one_common) Record size changes in octets.
4683         (lang_abs_symbol_at_end_of) Section end symbol's value is
4684         recorded in target bytes.
4685         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4686         to be clear about behavior when an octet is smaller than one byte.
4688 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
4690         * ldcref.c (output_cref): Don't pass message strings to printf
4691         as format arg.
4692         Update copyright.
4694         * ldmisc.c (vfinfo): Same here.
4695         Update copyright.
4697 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
4699         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4700         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4701         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4702         Add missing NULL initialisers, and comments.
4704         * testsuite/ld-srec/sr3.cc (__rethrow): New.
4706 2000-01-21  Nick Clifton  <nickc@cygnus.com>
4708         * ldlang.c (lang_size_sections): Fix typo in comment.
4710 2000-01-18  H.J. Lu  <hjl@gnu.org>
4712         * ldlang.c (lang_size_sections): Also update the current
4713         address of a region if the SEC_NEVER_LOAD bit is not set.
4715 2000-01-10  Philip Blundell  <pb@futuretv.com>
4717         * configure.tgt (arm*-*-conix*): New target.
4719 2000-01-07  Nick Clifton  <nickc@cygnus.com>
4721         * ld.texinfo (Options): Remind users to preceed linker command
4722         line switches with -Wl, (or whatever is appropriate) if it is
4723         being invoked by a comnpiler driver program.
4724         Fix description of the behaviour of the -n command line switch.
4726 2000-01-05  Catherine Moore  <clm@cygnus.com>
4728         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
4729         (name_list): New.
4730         * ld.texinfo (EXCLUDE_FILE): Update documentation.
4731         * ldgram.y (wildcard_spec): Support a list of excluded_files.
4732         (exclude_name_list): New.
4733         ldlang.c (walk_wild_section): Support list of excluded files.
4734         (print_wild_statement): Likewise.
4735         (lang_add_wild): Likewise.
4736         * ldlang.h (lang_wild_statement_type): Likewise.
4737         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4739 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
4741         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4742         (process_def_file): Use.
4743         (pe_dll_compat_implib): New variable.
4744         (make_one): Use.
4746         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4747         pe_dll_compat_implib.
4749         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4750         compat-implib options.
4751         (gld_${EMULATION_NAME}_list_options): List new options.
4752         (gld_${EMULATION_NAME}_parse_args): Handle.
4754         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4755         dll.
4757         * deffilep.y (opt_name): Allow "." in name.
4759 For older changes see ChangeLog-9899
4761 Local Variables:
4762 mode: change-log
4763 left-margin: 8
4764 fill-column: 74
4765 version-control: never
4766 End: