Add initX, finiX, ctors, dtors sections to respect C++ constructor/destructor.
[binutils.git] / ld / ChangeLog
blob848853fb22395269ba3cdc2cfbf27f9b1281be96
1 2003-04-09   Dmitry Diky  <diwil@mail.ru>
3         * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
4         sections to respect C++  constructor/destructor. Add ctors/dtors
5         start/stop definitions.
6         * scripttempl/elf32msp430_3.sc: Likewise.
8 2003-04-06  Nick Clifton  <nickc@redhat.com>
10         * ld.texinfo (Options): Add a reminder of the target specific
11         nature to the description of the i386 PE specific options, for
12         readers who have not read all the way through the manual.
14 2003-04-04  Svein E. Seldal  <Svein.Seldal@solidas.com>
16         * configure.tgt: Fixed bug in list of targ_extra_emuls.
17         * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
18         cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
19         * emulparams/tic3xcoff_onchip.sh: Ditto
20         * emulparams/tic4xcoff.sh: Ditto
21         * scripttempl/tic4xcoff.sc: Ditto
23 2003-04-03  Nick Clifton  <nickc@redhat.com>
25         * NEWS: Mention support for Xtensa architecture.
27 2003-04-02  Nick Clifton  <nickc@redhat.com>
29         * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
31 2003-04-01  Danny Smith <dannysmith@users.sourceforge.net>
33         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
34         Don't call pe_dll_build_section() if link_info.relocateable.
35         (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
36         if link_info.relocateable.
38 2003-04-01  Fabrizio Gennari  <fabrizio.ge@tiscalinet.it>
40         * pe-dll.c (process_def_file): Don't create an export
41         section if there are no exports and we're building an exe
42         (pe_dll_build_sections): Ditto
43         (pe_dll_fill_sections): Conditionalize setting
44         abfd->dll true on info->shared
45         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
46         If i386pe or armpe, call pe_dll_build_section()
47         for both exe's and dll's, not just dll's.
48         (gld_${EMULATION_NAME}_finish): For all targets except
49         shpe and mipspe, call pe_dll_fill_sections() for both
50         exe's and dll's, not just dll's.
52 2003-04-02  Bob Wilson  <bob.wilson@acm.org>
54         * emulparams/xtensa-config.sh: Remove comment indicating that this is
55         a generated file.
57 2003-04-01  Bob Wilson  <bob.wilson@acm.org>
59         * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
60         (eelf32xtensa.c): New target.
61         * Makefile.in: Regenerate.
62         * configure.tgt: Handle xtensa-*-*.
63         * gen-doc.texi: Set XTENSA variable.
64         * ld.texinfo: Set XTENSA variable.  Add new Xtensa node.
65         * emulparams/elf32xtensa.sh: New file.
66         * emulparams/xtensa-config.sh: Likewise.
67         * emultempl/xtensaelf.em: Likewise.
68         * scripttempl/elfxtensa.sc: Likewise.
70 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
72         * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
73         targ_extra_libpath.  Add elf64ppc to ppc targ_extra_libpath
74         if --enable-64-bit-bfd.
76 2003-04-01  Nick Clifton  <nickc@redhat.com>
78         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
79         note section.
80         * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
81         name of note section.
83 2003-03-31  Alexandre Oliva  <aoliva@redhat.com>
85         * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
86         --section-start.
88 2003-03-31  David Heine  <dlheine@suif.stanford.edu>
90         * ldfile.c (ldfile_add_library_path): Always allocate space for
91         the filename.
92         * ldlang.c (lang_register_vers_node): Free the node if it cannot
93         be used.
94         * ldmain.c (set_scripts_dir): Always free the constructed
95         directory name.
96         (add_keepsyms_file): Fix memory leak.
97         * ldmisc.c (vfinfo): Likewise.
98         * lexsup.c (parse_args): Likewise       
100 2003-03-25  Stan Cox   <scox@redhat.com>
101             Nick Clifton  <nickc@redhat.com>
102             
103         Contribute support for Intel's iWMMXt chip - an ARM variant:
105         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
106         * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
107         * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
108         (.bss): Likewise.
110 2003-03-25  Alexandre Oliva  <aoliva@redhat.com>
112         * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
113         * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
114         (main): Initialize them.
115         * ldfile.c: Include pathnames.h.
116         (is_sysrooted_pathname): New.
117         (ldfile_add_library_path): Use it.
118         (ldfile_open_file_search): Likewise.  Use IS_ABSOLUTE_PATH.  Don't
119         search_dirs if given an absolute pathname.
120         (ldfile_open_file): Issue error message for sysrooted
121         absolute pathnames.
122         * Makefile.am: Updated dependencies.
123         * Makefile.in: Rebuild.
125 2003-03-24  Daniel NĂ©ri  <dne@mayonnaise.net>
127         * ld.texinfo: Rename all occurances of C54X to TIC54X.
129 2003-03-19  Andreas Schwab  <schwab@suse.de>
131         * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
132         eof.
134 2003-03-18  Danny Smith  <dannysmith@users.sourceforge,net>
136         * defilep.y (opt_base): If no number given, set to default
137         (-1), not 0.
139 2003-03-13  Danny Smith  <dannysmith@users.sourceforge,net> 
141         * deffilep.y (def_import):  Use default extension of "dll"
142         if no extension provided in parsed IMPORT definition.
144         * deffilep.y (def_lex): Revert 2003-03-12 change.
145         (dot_name): New id type and rule.
146         (expline): Use instead of ID.
147         (opt_equal_name): Likewise.
149 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
151         * deffilep.y (def_lex): Accept '.' as valid non-lead char.
153 2003-03-07  Christopher Faylor  <cgf@redhat.com>
155         * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
156         apparent accidental removal on 2003-01-06.
158 2003-03-04  Dmitry Diky  <diwil@mail.ru>
160         * Makefile.am: Add new devices x1122 x1132 emulation
161         * configure.tgt: Likewise.
162         * Makefile.in: Regenerate.
163         * emulparams/msp430x1122.sh: New file.
164         * emulparams/msp430x1132.sh: New file.
166 2003-03-03  Alexandre Oliva  <aoliva@redhat.com>
168         * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
169         well.
171         * ldfile.h (struct search_dirs): Added sysrooted field.
172         * ldlang.h (struct lang_input_statement_struct): Likewise.
173         * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
174         (ldfile_open_file_search): Look for sysrooted filename starting
175         with / in ld_sysroot instead of in the current directory.  Clear
176         sysrooted flag if it's found in the current directory.  Set it
177         from the search directory's sysrooted flag where it is found
178         otherwise.
179         * ldlang.c (ldlang_sysrooted_script): New static variable.
180         (new_afile): Mark search_file_enums as sysrooted if
181         ldlang_sysrooted_script.
182         (load_symbols): Set ldlang_sysrooted_script according to the
183         script's sysrooted field while processing it.
184         * ld.texinfo: Document INPUT behavior in sysroot.
186 2003-03-02  Danny Smith  <dannysmith@users.sourceforge.net>
188         * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
190 2003-03-03  Alan Modra  <amodra@bigpond.net.au>
192         * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
193         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
194         PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
195         PARSE_AND_LIST_EPILOGUE): Don't define.
196         * emultempl/alphaelf.em: New file.
198 2003-03-01  Alan Modra  <amodra@bigpond.net.au>
200         * ldemul.c: Include getopt.h.
201         * emultempl/elf32.em: Include getopt.h earlier.
202         * emultempl/ticoff.em: Likewise.
204 2003-02-28  Alan Modra  <amodra@bigpond.net.au>
206         * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
207         support when scripts read from files.
209 2003-02-28  Alan Modra  <amodra@bigpond.net.au>
211         * ldemul.c (ldemul_parse_args): Return FALSE by default.
212         * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
213         comment.
215         * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
216         (ldemul_parse_args): Return bfd_boolean.  Formatting.
217         * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
218         (ldemul_parse_args): Adjust.
219         (struct ld_emulation_xfer_struct): Add add_options and handle_option.
220         Return bfd_boolean from parse_args.
221         * lexsup.c (parse_args): Malloc shortopts, longopts and
222         really_longopts.  Call ldemul_add_options and ldemul_handle_option.
223         * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
224         gld${EMULATION_NAME}_parse_args.
225         (gld${EMULATION_NAME}_handle_option): Likewise.
226         (ld_${EMULATION_NAME}_emulation): Adjust initializer.
227         * emultempl/armcoff.em: As for aix.em, but remove parse_args.
228         * emultempl/beos.em: Likewise.
229         * emultempl/pe.em: Likewise.
230         * emultempl/ticoff.em: Likewise.
231         * emultempl/elf32.em: Likewise.  Don't duplicate long options either.
232         (gld${EMULATION_NAME}_add_sysroot): Prototype.  
233         * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
234         options.
235         * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
236         * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
237         * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
238         * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
239         initializer.
240         * emultempl/generic.em: Likewise.
241         * emultempl/gld960.em: Likewise.
242         * emultempl/gld960c.em: Likewise.
243         * emultempl/linux.em: Likewise.
244         * emultempl/lnk960.em: Likewise.
245         * emultempl/m68kcoff.em: Likewise.
246         * emultempl/mipsecoff.em: Likewise.
247         * emultempl/sunos.em: Likewise.
248         * emultempl/vanilla.em: Likewise.
249         * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
251 2003-02-25  Alexandre Oliva  <aoliva@redhat.com>
253         * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
254         memory allocation error.
256         * Makefile.am (ldmain.o): Define TOOLBINDIR.
257         * Makefile.in: Rebuilt.
258         * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
260 2003-02-21  Bob Wilson  <bob.wilson@acm.org>
262         * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
263         call os_region_check when it is set.
264         (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
265         lang_size_sections_1.
266         (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
267         only for the last call, not on every relaxation iteration.
268         * ldlang.h (lang_size_sections): Update prototype.
269         * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
270         to lang_size_sections.
271         (pe_exe_fill_sections): Likewise.
272         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
273         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
274         * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
275         (ppc_layout_sections_again): Likewise.
277 2003-02-21  Bob Wilson  <bob.wilson@acm.org>
279         * gen-doc.texi: Set ARM and HPPA variables.
280         * ld.texinfo: Fix typos and obvious texinfo mistakes.  Make section
281         title capitalization more consistent.  Add missing menu entries for
282         machine-specific sections and conditionalize them consistently. 
283         Conditionalize text that is irrelevant when SingleFormat is set.
284         Add @group divisions to improve page breaks in long examples.
285         Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
286         is correct.  Remove "FIXME" comment about not using
287         @raisesections/@lowersections.  Use @raisesections/@lowersections
288         consistently for machine-specific sections.  Change to be more polite
289         about poor bug reports.  Replace FDL appendix with include of fdl.texi.
290         Move WIN32 node to match its order in the menus.
291         * fdl.texi: New file.
293 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
295         * configure.in (TARGET_SYSTEM_ROOT): Set default to
296         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
297         '${exec_prefix}' (in addition to the expansion thereof) as
298         relocatable.
299         * configure: Rebuilt.
301 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
303         * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
305 2003-02-20  Harri Porten  <porten@kde.org>
307         * ldgram.y (vers_defns): Allow optional trailing semicolon in
308         EXTERN NAME block;
310 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
312         * emultempl/ppc32elf.em: New file.
313         * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
314         * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
315         (eelf32lppcnto.c): Likewise.
316         (eelf32lppcsim.c): Likewise.
317         (eelf32ppcnto.c): Likewise.
318         (eelf32ppc.c): Likewise.
319         (eelf32ppc_fbsd.c): Likewise.
320         (eelf32ppcsim.c): Likewise.
321         (eelf32ppclinux.c): Likewise.
322         * Makefile.in: Regenerate.
324 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
326         * ld.texinfo: Remove spaces between @samp and opening brace.
328 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
330         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
331         hash creator.
332         (ppc_before_allocation): Don't do optimizations if wrong hash table.
333         (gld${EMULATION_NAME}_finish): Ditto.
335 2003-02-17  Nick Clifton  <nickc@redhat.com>
337         * ldmain.c (main) Default allow_shlib_undefined to true.
338         * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
339         (parse_args): Parse the new switch.
340         * ld.texinfo: Document new switch and default behaviour of
341         allowing undefined symbols in shared libraries.
343 2003-02-11 Dmitry Diky  <diwil@mail.ru>
345         * scripttempl/elf32msp430.sc: Add new data anchors definitions.
346         * scripttempl/elf32msp430_3.sc: Likewise.
348 2003-02-11  Uwe Stieber  <uwe@wwws.de>
350         * configure.tgt: Add support for kaOS as cross build target
351         system.
353 2003-02-10  John Daivid Anglin  <dave.anglin@nrc-cnrc.gc.ca>
355         * hppaelf.em (group_size): Change default back to 1.
357 2003-02-09  Alan Modra  <amodra@bigpond.net.au>
359         * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
361 2003-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
363         * hppaelf.em (group_size): Change default to -1.
365 2003-02-07  Nick Clifton  <nickc@redhat.com>
367         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
368         opt.
369         (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
370         no-pipeline-knowledge.  This will prevent the getopt package from
371         thinking that there are any shorter abbreviations for
372         --no-pipeline-knowledge.
374 2003-02-07  Jakub Jelinek  <jakub@redhat.com>
376         * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
377         which already have it.  Avoid duplicates.
379 2003-02-06  Jakub Jelinek  <jakub@redhat.com>
381         * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
382         * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
383         * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
385 2003-02-05  Alan Modra  <amodra@bigpond.net.au>
387         * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
388         call ppc64_elf_tls_optimize.
390 2003-02-03  Daniel Jacobowitz  <drow@mvista.com>
392         * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
393         outside of GNU/Linux conditional.
395 2003-01-28  Ralf Habacker  <ralf.habacker@freenet.de>
397         * deffilep.y (def_get_module): New function: locate an already
398         added module.
399         * deffile.h (def_get_module): New prototype.
400         * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
401         a dll multiple times.
403 2003-01-23  Alan Modra  <amodra@bigpond.net.au>
405         * emultempl/sh64elf.em: Include elf32-sh64.h.
406         (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
407         sh64_elf_section_data.
408         (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
410 2003-01-23  Wu Yongwei  <adah@netstd.com>
412         * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
413         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
414         cross-80th-column-margin "an" to the next line.
416 2003-01-21  Nick Clifton  <nickc@redhat.com>
418         * emulparams/tic3xcoff-onchip.sh: Rename to ...z
419         * emulparams/tic3xcoff_onchip.sh: ...this.
420         * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
421         * Makefile.in: Regenerate.
423 2003-01-21  Fabio Alemagna  <falemagn@aros.org>
425         * configure.tgt: Handle i[3456]86-*-aros*
427 2003-01-19  Svein E. Seldal  <Svein.Seldal@solidas.com>
429         * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
430         * Makefile.in: Regenerate
431         * configure.tgt: Added extra target emulations
432         * emulparams/tic3xcoff.sh: Remove old settings
433         * emulparams/tic4xcoff.sh: Ditto
434         * emulparams/tic3xcoff-onchip.sh: Added new
435         * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
436         * scripttempl/tic3xcoff.sc: Remove
438 2003-01-17  Andreas Jaeger  <aj@suse.de>
440         * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
441         skip ':'.
443 2003-01-16  Alan Modra  <amodra@bigpond.net.au>
445         * Makefile.in: Regenerate.
447 2002-01-14  Charles Wilson  <cwilson@ece.gatech.edu>
449         * ld/ld.texinfo (node WIN32): Some clarifications
450         and formatting fixups.
452 2003-01-09  Chris Demetriou  <cgd@broadcom.com>
454         * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
455         order, and handle (ignore) -mips32r2.
457 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
459         * ldmain.c (main): Make sure ld_sysroot is initialized.
461 2003-01-06  Daniel Jacobowitz  <drow@mvista.com>
463         * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
465         * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
466         (GENSCRIPTS): Add @use_sysroot@.
467         * Makefile.in: Regenerated.
468         * configure.host: Move setting of NATIVE_LIB_DIRS to...
469         * configure.tgt: ... here.  Use ${target} instead of ${host}
470         for NATIVE_LIB_DIRS.
471         * configure.in: Add --with-sysroot.
472         * configure: Regenerated.
473         * genscripts.sh: Accept use_sysroot option.  Set new variables
474         NATIVE and USE_LIBPATH.  Prepend "=" to directory names if
475         $use_sysroot.  Don't search $tool_lib if $use_sysroot.
476         * ldfile.c (ldfile_add_library_path): Handle leading '='.
477         * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
478         (ld_sysroot): New variable.
479         (main): Initialize ld_sysroot.
480         * ldmain.h (ld_sysroot): New extern.
481         * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
482         searching $EMULATION_LIBPATH.
483         (gld${EMULATION_NAME}_add_sysroot): New function.
484         (gld${EMULATION_NAME}_check_ld_so_conf): Use it.  Honor ld_sysroot.
485         (gld${EMULATION_NAME}_after_open): Likewise.  Only search
486         environment variables if $NATIVE.
487         * ld.texinfo (Options): Mention "=" prefix in the description of -L.
488         * NEWS: Mention --with-sysroot.
490         * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
491         instead of setting LIB_PATH.
492         * emulparams/elf32ppc.sh: Likewise.
493         * emulparams/elf64_s390.sh: Likewise.
494         * emulparams/elf64_sparc.sh: Likewise.
495         * emulparams/elf64ppc.sh: Likewise.
496         * emulparams/elf_x86_64.sh: Likewise.
498         * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
499         * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
501 2003-01-03  Charles Wilson  <cwilson@ece.gatech.edu>
503         * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
505 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
507         * Makefile.am (ldmain.o): Pass BINDIR.
508         * Makefile.in: Regenerated.
509         * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
510         search path.
512 2003-01-02  Ben Elliston  <bje@redhat.com>
514         * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
515         (eelf32iq2000.c): New target.
516         * Makefile.in: Regenerate.
517         * configure.tgt: Handle iq2000-*-elf.
518         * emulparams/elf32iq10.sh: New file.
519         * emulparams/elf32iq2000.sh: New file.
520         * scripttempl/iq2000.sc: New file.
522 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
524         * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
525         and _pei386_runtime_relocator to the exclude list.
527 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
529         * ldfile.c: Fix comment typos.
530         * ldlang.c: Likewise.
531         * mri.c: Likewise.
532         * pe-dll.c: Likewise.
534 2003-01-01  Daniel Jacobowitz  <drow@mvista.com>
536         Suggested by Manfred Hollstein <manfred.h@gmx.net>:
537         * Makefile.am (ld.1): Depend on configdoc.texi
538         and ldver.texi.
539         * Makefile.in: Regenerated.
541 2002-12-24  Dmitry Diky  <diwil@mail.ru>
543         * Makefile.am: Add msp430 target.
544         * configure.tgt: Likewise.
545         * Makefile.in: Regenerate.
546         * emulparams/msp430x???.sh: New files.  Linker script parameters
547         for various msp430 configurations.
548         * gen-doc.texi: Enable msp430 documenation.
549         * ld.texinfo: Document msp430 sections.
550         * scripttempl/elf32msp430.sc: New file.  Linker script for msp430.
551         * scripttempl/elf32msp430_3.sc: New file.  Linker script for msp430.
553 2002-12-30  Ralf Habacker  <Ralf.Habacker@freenet.de>
554             Charles Wilson  <cwilson@ece.gatech.edu>
556         * ld/config.in (HAVE_REALPATH): New entry.
557         (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
559 2002-12-30  Ralf Habacker  <ralf.habacker@freenet.de>
561         * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
562         symbols'.
564 2002-12-23  Alan Modra  <amodra@bigpond.net.au>
566         * ldmain.c (main): Init "strip_discarded".
567         * lexsup.c (OPTION_STRIP_DISCARDED): Define.
568         (OPTION_NO_STRIP_DISCARDED): Define.
569         (ld_options): Add "strip-discarded" and "no-strip-discarded".
570         (parse_args): Handle them.
572 2002-12-23  Nick Clifton  <nickc@redhat.com>
574         * ld.h (struct args_type): Add new field
575         'accept_unknown_input_architecture'.
576         * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
577         to false.
578         * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
579         bfd_arch_get_compatible.
580         * ldfile.c (ldfile_try_open_bfd): Likewise.
581         * lexsup.c (ld_options): Add new command line switch
582         --accept-unknown-input-architecture and its inverse.
583         (parse_args): Handle --accept-unknown-input-architecture.
584         * ld.texinfo: Document new linker option.
585         * NEWS: Mention new linker option.
587 2002-12-20  Alan Modra  <amodra@bigpond.net.au>
589         * ldmain.c (main): Re-order link_info initialization.  Init all
590         fields.
592 2002-12-19  Charles Wilson  <cwilson@ece.gatech.edu>
594         * ld.texinfo: Clarify and extend the documentation
595         in the Machine Dependent, WIN32 section.
597 2002-12-18  Ralf Habacker  <ralf.habacker@freenet.de>
599         * ld.texinfo: Add win32 machine depending section.
600         * gen-doc.texi: Enable win32 machine depending section.
602         * configure.host: Add win32 library search path.
604 2002-12-17  Ralf Habacker  <ralf.habacker@freenet.de>
606         * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
607         import when auto-import is disabled.
609 2002-12-17  Danny Smith  <dannysmith@users.sourceforge.net>
611         * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
612         account for trailing '\0'.
614 2002-12-17  Nick Clifton  <nickc@redhat.com>
616         * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
617         so that it is not confused with -c.
619 2002-12-13  Ralf Habacker  <Ralf.Habacker@freenet.de>
620             Charles Wilson  <cwilson@ece.gatech.edu>
622         * configure.in: Add check for realpath function.
623         * configure: Regenerate.
624         * config.in: Regenerate.
625         * aclocal.m4: Regenerate.
626         * deffile.h: Add .data field to def_file_import
627         structure.
628         * pe-dll.c (pe_proces_import_defs): Use .data field of
629         def_file_import structure to initialize flag_data field of
630         def_file_export structure.
631         (pe_implied_import_dll): New variables exp_funcbase and
632         [data|bss]_[start|end].  Use DLL's internal name to set dll_name,
633         not filename (which may be a symlink).  Scan the sections and
634         initialize [data|bss]_[start|end].  When scanning the export
635         table, skip _nm_ symbols, and mark any symbols whose rva indicates
636         that it is in the .bss or .data sections as data.
637         * sysdep.h: Include limits.h and sys/param.h, and define
638         LD_PATHMAX as appropriate.  Also define REALPATH as realpath if it
639         exists, NULL otherwise.
640         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
641         pe_process_import_defs before pe_find_data_imports, so that
642         auto-import will check the virtual implib as well as "real"
643         implibs.
644         (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
645         symlinks to their target; check that the target's extension is
646         .dll before calling pe_implied_import_dll(), not the filename
647         itself (which may be a symlink).
649 2002-12-10  Alan Modra  <amodra@bigpond.net.au>
651         * emultempl/elf32.em (struct orphan_save): Add os_tail field.
652         (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
653         list too.
655 2002-12-08  Alan Modra  <amodra@bigpond.net.au>
657         * ldlang.h: Formatting.
659 2002-12-07  Alan Modra  <amodra@bigpond.net.au>
661         * ldlang.c (init_os): Ensure sections mentioned in load_base
662         are initialized.
664 2002-12-05  Alan Modra  <amodra@bigpond.net.au>
666         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
667         load_base for orphans that follow a section with load_base set.
669 2002-12-01  H.J. Lu <hjl@gnu.org>
671         * ld.texinfo: Remove the extra `;' in sample version script.
673 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
675         * configure.host: Correct dynamic-linker for powerpc64 hosts.
677         * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
678         * Makefile.in: Regenerate.
680         * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
681         ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
682         ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
683         emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
684         emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
685         emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
686         emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
687         emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
688         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
689         emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
690         emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
691         boolean with bfd_boolean, true with TRUE, false with FALSE.  Simplify
692         comparisons of bfd_boolean vars with TRUE/FALSE.  Formatting.
694 2002-11-27  David O'Brien  <obrien@FreeBSD.org>
696         * configure.host: Fix generic FreeBSD configuration entry.
698 2002-11-27  H.J. Lu <hjl@gnu.org>
700         * ld.texinfo: Add the missing `;' to sample version scripts.
702 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
704         * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
706 2002-11-14  Egor Duda  <deo@logos-m.ru>
708         * ldmain.c (main): Make runtime relocs disabled by default. Remove
709         assignment which has no effect.
710         * pe-dll.h (pe_create_import_fixup): Change prototype.
711         * pe-dll.c (make_runtime_pseudo_reloc): New function.
712         (pe_create_runtime_relocator_reference): Ditto.
713         (pe_create_import_fixup): Handle relocations with non-zero addends.
714         * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
715         --disable-runtime-pseudo-reloc.
716         (make_import_fixup): Handle relocations with non-zero addends. Create
717         an external reference to _pei386_runtime_relocator symbol if at least
718         one pseudo reloc was created.
719         * ld.texinfo: Document --enable-runtime-pseudo-reloc and
720         --disable-runtime-pseudo-reloc options.
722 2002-11-12  Earl Chew <earl_chew@agilent.com>
724         * ldlang.c (lang_add_section): Discard debugging sections that have
725         been marked SEC_EXCLUDE.
727 2002-11-12  Nick Clifton  <nickc@redhat.com>
729         * configure.in (ALL_LINGUAS): Add da.
730         * configure: Regenerate.
731         * po/da.po: New Danish translation.
733 2002-11-12  Alan Modra  <amodra@bigpond.net.au>
735         * emultempl/ppc64elf.em (ppc_before_allocation): New function.
736         (LDEMUL_BEFORE_ALLOCATION): Define.
737         (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
738         linking.
739         * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
741 2002-11-11  Christopher Faylor  <cgf@redhat.com>
743         * configure.tgt (LIB_PATH): Default to searching w32api directory under
744         cygwin.
746 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
748         * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
749         of restricted auto-export libs.
751 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
753         * pe-dll.c (autofilter_liblist): Generalize library names to catch more
754         creative library naming instances like, e.g., libstdc++-2.a.
756 2002-11-06  Alexandre Oliva  <aoliva@redhat.com>
758         * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
759         * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
761 2002-11-07  Danny Smith  <dannysmith@users.sourceforge.net>
763         * deffilep.y (def_lex): Handle '@' as first character of an ID.
764         * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
765         (make_one): Don't prefix decorated fastcall symbols with '_'.
766         (pe_process_import_defs): Likewise.
767         * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
768         symbols to cdecl names or vise-versa.
770 2002-10-13  Eric Kohl  <ekohl@rz-online.de>
772         * pe-dll.c (process_def_file): Handle fastcall symbols when
773         generating undecorated aliases.  Don't prefix decorated fastcall
774         symbols with '_'.
775         (fill_exported_offsets): Don't prefix decorated fastcall symbols
776         with '_'.
778 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
780         * emultempl/aix.em: Use include <> for generated headers.
781         * emultempl/beos.em: Likewise.
782         * emultempl/elf32.em: Likewise.
783         * emultempl/pe.em: Likewise.
784         * ldctor.c: Likewise.
785         * ldexp.c: Likewise.
786         * ldfile.c: Likewise.
787         * ldlang.c: Likewise.
788         * ldlex.c: Likewise.
789         * ldlex.l: Likewise.
790         * ldmain.c: Likewise.
791         * ldmisc.c: Likewise.
792         * ldwrite.c: Likewise.
793         * lexsup.c: Likewise.
794         * mri.c: Likewise.
795         * pe-dll.c: Likewise.
797 2002-10-23  Jakub Jelinek  <jakub@redhat.com>
799         * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
800         sections into .rel{,a}.dyn.
802 2002-10-23  Nick Clifton  <nickc@redhat.com>
804         * lexsup.c (OPTION_NO_OMAGIC): Define.
805         (ld_options): Add "no-omagic" option.
806         (parse_args): Parse --no-omagic.
807         * ld.texinfo: Document --no-omagic.
808         * NEWS: Mention new option.
810 2002-10-21  Danny Smith  <dannysmith@users.sourceforeg.net>
812         * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
813         __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
815 2002-10-22  Alexandre Oliva  <aoliva@redhat.com>
817         * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
818         emulation name.  Set LIB_PATH only for native tools, and
819         search the ABI-specific versions of NATIVE_LIB_DIRS before the
820         .../lib variants, not instead of them.  Mostly copied from...
821         * emulparams/elf32ppc.sh: ... here.  Fixed typo.
822         * emulparams/elf64bmip-defs.sh: Backed out.
823         * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
824         * emulparams/elf64btsmip.sh: Likewise.
825         (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
826         TEXT_DYNAMIC): Removed.
828 2002-10-17  Alexandre Oliva  <aoliva@redhat.com>
830         * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
831         (GENERATE_SHLIB_SCRIPT): Set to yes.
832         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
833         * emulparams/elf32bmipn32.sh: here.
834         (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
835         * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
836         * emulparams/elf64bmip-defs.sh: New file.  Extend
837         elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
838         * emulparams/elf64bmip.sh: Bring in definitions from
839         elf64bmip-defs.sh.
840         (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
841         settings.
842         (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
843         * emulparams/elf64btsmip.sh: Bring in definitions from
844         elf64bmip-defs.sh.
845         (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
846         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
848 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
850         * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
851         (s390-*-linux*): Add elf64_s390 emulation if want64.
852         * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
853         genscript.sh changes.
854         * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
855         * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
857 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
859         * ldlang.c (load_symbols): Revert last change.
861 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
863         * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
864         just_syms_flag.
865         (lang_reasonable_defaults): Don't compare against false.
866         (size_input_section): Likewise.
867         (lang_size_sections_1): Likewise.
868         (lang_do_assignments): Likewise.
869         (lang_add_output): Likewise.
871         * Makefile.am: Run "make dep-am".
872         * Makefile.in: Regenerate.
873         * ldver.c: #include "bfdver.h".
875 2002-10-13  Stephane Carrez  <stcarrez@nerim.fr>
877         * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
878         .finiN section.
879         * scripttempl/elfm68hc12.sc: Likewise.
881 2002-10-11  Alan Modra  <amodra@bigpond.net.au>
883         * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
885         * ldgram.y (memory_spec): Provide empty action.
886         (section <NAME>): Likewise.
888 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
890         * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
891         they have OUTPUT_FORMAT not matching actual output format.
892         * ldlang.c (lang_get_output_target): New function.
893         (open_output): Use it.
894         * ldlang.h (lang_get_output_target): New prototype.
896 2002-10-10  Alan Modra  <amodra@bigpond.net.au>
898         * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
899         when orphan is .rel, .rela when orphan is .rela.
900         (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
901         first.  Remove outsecname var.
903 2002-10-09  Richard Shann <richard.shann@superh.com>
904             Stephen Clarke <stephen.clarke@superh.com>
906         * Makefile.am: Add eshelf32_linux.o and
907         eshlelf32_linux.o, new emulations for sh64 Linux.
908         * Makefile.in: Regenerate.
909         * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
910         * emulparams/shelf32_linux.sh: New file.
911         * emulparams/shlelf32_linux.sh: New file.
913 2002-10-08  H.J. Lu <hjl@gnu.org>
915         * ldlang.c (lang_file_exist): Removed.
916         (new_afile): Revert the last change.
917         * ldlang.h (lang_file_exist): Removed.
918         * lexsup.c (parse_args): Revert the last change.
920 2002-10-07  Ralf Habacker  <Ralf.Habacker@freenet.de>
922         * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
923         auto-import symbols.
924         (make_one): Create _nm_<symbol> for data only.
926 2002-10-05  Elias Athanasopoulos  <eathan@otenet.gr>
928         * ldlang.c (lang_file_exist): New function.
929         (new_afile): Abort if the filename to be added matches the linker
930         output filename.
931         * ldlang.h: Add prototype for lang_file_exist.
932         * lexsup.c (parse_args): Abort if the output filename matches
933         one of the input filenames.
935 2002-10-02  Alan Modra  <amodra@bigpond.net.au>
937         * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
939 2002-09-30  Alan Modra  <amodra@bigpond.net.au>
941         * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
942         * scripttempl/elfm68hc11.sc: Likewise.
943         * scripttempl/elfm68hc12.sc: Likewise.
945         * emultempl/elf32.em (output_rel_find): Always place orphan loadable
946         reloc sections just before .rel.plt/.rela.plt.
947         (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
948         Only put loadable reloc sections in hold_rel.
950 2002-09-29  H.J. Lu <hjl@gnu.org>
952         * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
954 2002-09-25  Daniel Jacobowitz  <drow@mvista.com>
956         From "Anita Kulkarni" <AnitaK@kpit.com>
957         * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
958         sections.
960 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
962         * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
963         TARGET_PAGE_SIZE.
964         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
965         SEGMENT_SIZE alignment.
966         * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
967         (SEGMENT_SIZE): Define.
969         * ldexp.c (fold_unary): New.  Split out from exp_fold_tree.
970         (fold_binary): Correct abs - non-abs case.
971         (fold_trinary): New.  Split out from exp_fold_tree.
973 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
975         * emulparams/elf64ppc.sh (DATA_ADDR): Define.
976         * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
977         for start of .data, instead align up to 256M boundary.
978         * scripttempl/aix.sc: Likewise.
980 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
982         * scripttempl/i386go32.sc: Handle bss unique sections.
984 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
986         * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
988 2002-09-17  Stan Cox  <scox@redhat.com>
990         * emulparams/elf32bmipn32-defs.sh: New file.
991         * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
992         * emulparams/elf32btsmipn32.sh: Likewise.
993         * emulparams/elf64bmip.sh: Likewise.
994         * emulparams/elf64btsmip.sh: Likewise.
996 2002-09-16  Bruno Haible  <bruno@clisp.org>
998         * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
999         elf32-i386-freebsd.
1000         * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1001         elf64-alpha-freebsd.
1003 2002-09-11  Nick Clifton  <nickc@redhat.com>
1005         * NEWS: New TI port supports both C4x and C3x series of DSPs.
1007         * po/tr.po: Updated Turkish translation.
1009 2002-09-06  Jeffrey A Law  (law@redhat.com)
1011         * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1013 2002-09-02  Nick Clifton  <nickc@redhat.com>
1015         * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1016         __ep.
1017         * emulparams/v850.sh (TEMPLATE_NAME): Define.
1019 2002-08-30  Nick Clifton  <nickc@redhat.com>
1021         * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1022         used.  Change INSN to start at 0x01000000 and extend for
1023         256K (ignoring holes).  Start the STACK on a word aligned
1024         boundary.
1025         (.rodata): Start it at the READONLY_START_ADDR.
1027 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
1029         * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1031 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
1033         * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1034         added makefile targets for this file.
1035         * Makefile.in: Regenerate.
1036         * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1037         * NEWS: Mention new port.
1039 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1041         * emulparams/tic3xcoff.sh: New file.
1042         * emulparams/tic4xcoff.sh: New file.
1043         * scripttempl/tic3xcoff.sc: New file.
1044         * scripttempl/tic4xcoff.sc: New file.
1046 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
1048         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1049         strtoul and strtoull with bfd_scan_vma.
1050         (gld${EMULATION_NAME}_read_file): Likewise.
1052 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
1054         * configure.tgt: Remove h8[35]00-*-hms*.  Add h8500-*-rtems*.
1056 2002-08-27  Egor Duda  <deo@logos-m.ru>
1058         * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1059         Add symbols for application to access them.
1061 2002-08-27  Nick Clifton  <nickc@redhat.com>
1063         * emultempl/armelf.em:  Revert this patch, it is not needed.
1065         2002-08-22  Adam Nemet  <anemet@lnxw.com>
1067 2002-08-20 Dan Kegel <dank@kegel.com>
1069         * configure.in: added --with-lib-path argument to ld's configure
1070         to set LIB_PATH.
1071         * ld/NEWS: Document new switch.
1072         * ld/README: Mention new switch.
1073         * configure: Regenerate.
1074         * Makefile.in: Regenerate.
1076         Based on this patch:
1077         2001-04-25  Christopher Faylor <cgf@cygnus.com>
1079         * Makefile.in (LIB_PATH): Make configurable.
1080         (GENSCRIPTS): Set LIB_PATH in environment.
1081         * configure.in: Substitute LIB_PATH.
1083 2002-08-22  Adam Nemet  <anemet@lnxw.com>
1085         * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1086         (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1087         depending on the type of the function.
1088         (arm_elf_convert_thumb_symbol_to_address): New function.
1090 2002-08-22  Graeme Peterson  <gp@qnx.com>
1092         * Makefile.am: Add esh{l}elf_nto.o files.
1093         * Makefile.in: Regenerate.
1094         * configure.tgt: Add support for sh-**-nto* targets.
1095         * emulparams/shelf_nto.sh: New file.
1096         * emulparams/shlelf_nto.sh: New file.
1098 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1100         * ldlang.c (offsetof): Define if not defined.
1102 2002-08-14  H.J. Lu <hjl@gnu.org>
1104         * configure.tgt: Always enable 64bit emulations for 32bit
1105         Linux/mips.
1107 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
1109         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1110         (MAXPAGESIZE): Set to 1.
1112         * ld.h (ALIGN_N): Delete.
1113         * ldexp.h (align_n): Declare.
1114         * ldexp.c (align_n): New function.
1115         (fold_binary): Use align_n instead of ALIGN_N.
1116         (exp_fold_tree): Likewise.
1117         * ldlang.c (lang_size_sections_1): Likewise.
1118         (lang_one_common): Likewise.
1119         * ld.texinfo (ALIGN): Remove power of 2 restriction.
1121 2002-07-31  Graeme Peterson  <gp@qnx.com>
1123         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1124         * Makefile.am: Add eelf32{l}ppcnto.o files.
1125         * Makefile.in: Regenerate.
1126         * emulparams/elf32lppcnto.sh: New file.
1127         * emulparams/elf32ppcnto.sh: New file.
1129 2002-08-07  H.J. Lu <hjl@gnu.org>
1131         * ld.texinfo: Document --no-undefined-version.
1133         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1134         `script.' fields to 0.
1136         * ldmain.c (main): Initialize the allow_undefined_version to
1137         true.
1139         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1140         (ld_options): Add --no-undefined-version.
1141         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1143 2002-08-07  Nick Clifton  <nickc@redhat.com>
1145         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1146         an interworking bfd if there are input bfds. (107501)
1148 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
1150         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
1151         2002-05-10 change.
1153 2002-08-01  Nick Clifton  <nickc@redhat.com>
1155         * emulparams/armelf.sh: Revert previous delta.
1156         * scripttempl/elf.sc: Revert previous delta.
1158 2002-07-31  H.J. Lu <hjl@gnu.org>
1160         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1161         --enable-64-bit-bfd.
1163 2002-07-31  H.J. Lu <hjl@gnu.org>
1165         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1166         64bit BFD is selected.
1168 2002-07-31  H.J. Lu <hjl@gnu.org>
1170         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1171         if 64bit BFD is selected.
1173 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
1175         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1176         link_info.common_skip_ar_aymbols.
1177         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1179         * ldmain.c (main): Initialize new field
1180         link_info.common_skip_ar_aymbols.
1182 2002-07-31  Adam Nemet  <anemet@lnxw.com>
1184         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
1185         to .plt.thumb.
1186         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
1187         used.
1189 2002-07-31  Nick Clifton  <nickc@redhat.com>
1191         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1192         of the PDP-11 and 2.11BSD a.out support.
1194 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1196         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1197         for n32 ABI support.
1198         * Makefile.in: Regenerate.
1199         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1200         n32 ABI emulations for these 64 bit targets.
1201         * emulparams/elf32bmipn32.sh: Expand comment.
1202         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1203         n32 ABI.
1204         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1206 2002-07-30  Graeme Peterson  <gp@qnx.com>
1208         * configure.tgt: Add support for arm-*-nto target.
1209         * Makefile.am: Add earmnto.o file.
1210         * Makefile.in: Regenerate.
1211         * NEWS: Mention port of ARM support to QNX.
1212         * emulparams/armnto.sh: New file.
1214 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
1216         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1217         for relocatable link.
1218         (lang_size_sections_1): Don't make .tbss zero size for relocatable
1219         link.
1221 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
1223         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1224         (STACK_ADDR): New.
1226 2002-07-25  Nick Clifton  <nickc@redhat.com>
1228         * po/sv.po: Updated Swedish translation.
1229         * po/es.po: Updated Spanish translation.
1230         * po/fr.po: Updated French translation.
1232 2002-07-24  Nick Clifton  <nickc@redhat.com>
1234         * po/sv.po: Updated Swedish translation.
1235         * po/es.po: Updated Spanish translation.
1237 2002-07-23  Nick Clifton  <nickc@redhat.com>
1239         * po/fr.po: Updated French translation.
1241 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
1243         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1244         bomb on /DISCARD/ input section.
1245         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1246         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1248 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
1250         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1251         output section.
1253 2002-07-16  Denis Chertykov  <denisc@overta.ru>
1254             Nick Clifton  <nickc@redhat.com>
1255             Frank Ch. Eigler  <fche@redhat.com>
1256             John Healy  <jhealy@redhat.com>
1258         * configure.tgt: Add support for ip2k-elf.
1259         * Makefile.am: Add support for ip2k-elf.
1260         * Makefile.in: Regenerate.
1261         * emulparams/elf32ip2k.sh: New file.
1262         * scripttempl/ip2k.sc: New file
1263         * NEWS: Mention support for new port.
1265 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
1267         * NEWS: Add 'Changes in 2.13'.
1269 2002-07-14  H.J. Lu <hjl@gnu.org>
1271         * ld.texinfo: Document a .symver takes precedence over a
1272         version script.
1274 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
1276         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1277         (COMMONPAGESIZE): Define.
1279 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
1281         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1283 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
1285         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1286         powerpc-*-openbsd* and sparc64-*-openbsd*.
1287         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1288         * Makefile.in: Regenerate.
1289         * emulparams/hppaobsd.sh: New file.
1291 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
1293         * ldlang.c (print_wild_statement): Fix output formatting.
1295 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
1297         * ldlang.c: (strip_excluded_output_sections): New function.
1298         (lang_process): Call it.
1299         (lang_size_sections_1): Revert 2002-06-10 change.
1301 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
1303         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1304         Run "make dep-am".
1305         * Makefile.in: Regenerate.
1307 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
1309         * ldfile.c (ldfile_try_open_bfd): Formatting.
1311         * ldmisc.c (demangle): Move so that it doesn't intrude between
1312         vfinfo comment and body.  Add comment.
1314 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1316         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1318 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
1320         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1321         * ldlang.c (entry_sym): Likewise.
1322         (ldlang_undef_chain_list_type): Likewise.
1323         (lang_finish): Adjust references to entry_symbol.
1324         (lang_add_entry): Likewise.
1325         (lang_gc_sections): Use link_info.gc_sym_list.
1326         (lang_process): Set link_info.gc_sym_list.
1327         * ldlex.l: Include bfdlink.h.
1328         * ldmain.c (main): Init link_info.gc_sym_list.
1329         * emultempl/aix.em: Adjust references to entry_symbol.
1330         * emultempl/armcoff.em: Likewise.
1331         * emultempl/armelf.em: Likewise.
1332         * emultempl/pe.em: Likewise.
1333         * emultempl/ppc64elf.em (ppc_after_open): New function.
1334         (LDEMUL_AFTER_OPEN): Define.
1335         * emulparams/elf64ppc.sh: KEEP .opd sections.
1337 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
1339         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1340         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1341         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1342         (EEPROM_START_ADDR): Define.
1343         (EEPROM_MEMORY): Define.
1344         * emulparams/m68hc12elf.sh: Likewise.
1345         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1346         section to put soft registers in .page0.
1347         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1349 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1351         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1352         section.  Add ${RELOCATING-0}.
1354 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
1356         * emulparams/shelf.sh (STACK_ADDR): Don't define.
1357         (OTHER_SECTIONS): Define.
1358         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1359         (OTHER_SECTIONS): Undef.
1361 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
1363         * ldmisc.c (demangle): Restore dots stripped from sym name.
1365 2002-06-25  H.J. Lu <hjl@gnu.org>
1367         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1368         * Makefile.in: Regenerated.
1370 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
1372         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1373         the size of attached object files, to allow make the object files
1374         available via FTP or HTTP and to mention that the mail will be
1375         sent to a mailing list.
1377 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
1379         * ld/configure.host (romp): Drop support.
1381 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
1383         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1384         section flags for SEC_DATA, rather than for SEC_CODE being unset.
1386 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
1388         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1389         format specifier used to print BFD name.
1391 2002-06-18  Dave Brolley  <brolley@redhat.com>
1393         From Catherine Moore, Michael Meissner, Jim Blandy:
1394         * emulparams/elf32frv.sh: New file.
1395         * configure.tgt: Support frv-*-*.
1396         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1397         (eelf32frv.c): New target.
1399 2002-06-17  Tom Rix  <trix@redhat.com>
1401         * emultempl/elf32.em: gld*_get_script:  Check for
1402         GENERATE_COMBRELOC_SCRIPT.
1403         * scripttempl/elfd10v.sc : Fix STACK and INSN.
1404         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1406 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
1408         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1410 2002-06-12  H.J. Lu <hjl@gnu.org>
1412         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1413         false if xvec doesn't match.
1415 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
1417         * ldlang.c (lang_size_sections_1): Skip removed output sections.
1419 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
1421         * ldexp.c: Replace CONST with const.
1422         * ldfile.c: Likewise.
1423         * ldfile.h: Likewise.
1424         * ldlex.l: Likewise.
1425         * mri.c: Likewise.
1426         * pe-dll.h: Likewise.
1428 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
1430         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1432 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
1434         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1435         to -1 == implicit enable.
1436         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1437         initialize link_info.pei386_auto_import to -1 == implicit
1438         enable.
1439         (gld_${EMULATION_NAME}_parse_args): When processing
1440         --enable-auto-import and --disable-auto-import options, use
1441         '1' and '0' instead of 'true' and 'false'.
1442         (pe_find_data_imports): Only issue message about auto-import
1443         when the feature is implicitly enabled.  Downgrade message to
1444         informational instead of warning.
1446 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
1448         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1450 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1452         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1453         HOSTING_CRT0 and HOSTING_LIBS.
1455 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
1457         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1459 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
1461         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1462         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1464 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
1466         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1467         SEC_EXCLUDE sections when doing a relocatable link.
1469 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
1471         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1472         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1473         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1474         (eshlelf64_nbsd.c): New rules.
1475         * Makefile.in: Regenerate.
1476         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1477         (sh64-*-netbsd*): New targets.
1478         * emulparams/shelf32_nbsd.sh: New file.
1479         * emulparams/shelf64_nbsd.sh: New file.
1480         * emulparams/shlelf32_nbsd.sh: New file.
1481         * emulparams/shlelf64_nbsd.sh: New file.
1483 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
1485         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
1487 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1489         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1490         C++ constructors/destructors, loosely based on the m68hc11 port.
1492 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
1494         * Makefile.in: Regenerate.
1495         * aclocal.m4: Regenerate.
1496         * config.in: Regenerate.
1497         * configure: Regenerate.
1499 2002-05-31  Graeme Peterson  <gp@qnx.com>
1501         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1502         (ei386nto.c): Add rule.
1503         * Makefile.in: Regenerate.
1504         * configure.tgt: Add i[3456]86-*-nto-qnx*.
1505         * emulparams/i386nto.sh: New file.
1507 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
1509         * NEWS: Add entry for VAX ELF support.
1511 2002-05-29  Matt Thomas  <matt@3am-software.com>
1512             Jason Thorpe  <thorpej@wasabisystems.com>
1514         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1515         (eelf32vax.c)
1516         (evaxnbsd.c): New rules.
1517         * Makefile.in: Regenerate.
1518         * configure.tgt (vax-*-netbsdelf*)
1519         (vax-*-netbsdaout*)
1520         (vax-*-netbsd*): New targets.
1521         * emulparams/elf32vax.sh: New file.
1522         * emulparams/vaxnbsd.sh: New file.
1524 2002-05-29  Adam Nemet  <anemet@lnxw.com>
1526         * emultempl/armelf.em (arm_elf_after_open): Don't determine
1527         bfd_for_interwork, instead add glue sections to each input bfd.
1528         (bfd_for_interwork): New global.
1529         (arm_elf_set_bfd_for_interworking): New function.
1530         (arm_elf_before_allocation): Use it.
1532 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
1534         * Makefile.am: Add DLX make target.
1535         * configure.tgt: Add DLX configuration.
1536         * Makefile.in: Regenerate.
1537         * emulparams/elf32_dlx.sh: New file
1538         * scripttempl/dlx.sc: New file
1540 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
1542         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1543         * Makefile.in: Regenerate.
1544         * emulparams/elf_chaos.sh: Use elf_chaos script.
1545         * scripttempl/elf_chaos.sc: New file.
1547 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
1549         * ldlang.c (lang_size_sections_1): Move check for conflicting load
1550         addresses and regions from here...
1551         (lang_get_regions): ...to this new function.
1552         (lang_leave_output_section_statement): Use lang_get_regions.
1553         (lang_leave_overlay): Likewise.
1554         * mri.c (mri_draw_tree): Pass null as last argument to
1555         lang_leave_output_section_statement.
1556         * emultempl/elf32.em (gld*_place_orphan): Likewise.
1557         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1558         * emultempl/pe.em (gld*_place_orphan): Likewise.
1560 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1562         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1564 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1566         * ldemul.c: Fix formatting.
1567         * ldfile.c: Likewise.
1568         * pe-dll.c: Likewise.
1569         * pe-dll.h: Likewise.
1571 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
1573         * ldlang.c (lang_process): Formatting, grammar.
1575         * ldlex.l: Use #include "" instead of <> for local header files.
1577 2002-05-24  TAMURA Kent <kent@netbsd.org>
1579         * configure.tgt: Add a target for i386-netbsdpe.
1581 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1583         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1584         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1585         output section if necessary.  Handle .tbss.
1586         (lang_size_sections): Clear _raw_size for .tbss section
1587         (it allocates space in PT_TLS segment only).
1588         * ldwrite.c (build_link_order): Build link order for .tbss too.
1590 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1592         * configure.in: Correct spelling of AC_PREREQ.
1594 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
1596         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1597         default.
1598         (autofilter_objlist): Add crtbegin.o, crtend.o.
1600 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
1602         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1603         (longopts): Add new option --exclude-libs.
1604         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1605         (gld_${EMULATION_NAME}_parse_args): Use it.
1606         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1607         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1608         from whole archives.
1609         (pe_dll_add_excludes): Set excludes->type.
1610         (auto_export): Add new variable libname and set to archive basename if
1611         abfd.  Use it when filtering default and user-specified libarary
1612         excludes.  Let string "ALL" mean all libs when filtering user-specified
1613         libs.
1614         * ld.texinfo: Document --exclude-libs.
1616 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
1618         * ldemul.c (ldemul_new_vers_pattern): New function.
1619         * ldemul.h (ldemul_new_vers_pattern): Declare.
1620         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1621         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1622         * emultempl/ppc64elf.em (dotsyms): New static var.
1623         (gld${EMULATION_NAME}_new_vers_pattern): New function.
1624         (LDEMUL_NEW_VERS_PATTERN): Define.
1625         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1626         (PARSE_AND_LIST_LONGOPTS): Likewise.
1627         (PARSE_AND_LIST_ARGS_CASES): Handle them.
1628         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1629         initialiser.
1630         * emultempl/armcoff.em: Likewise.
1631         * emultempl/armelf_oabi.em: Likewise.
1632         * emultempl/beos.em: Likewise.
1633         * emultempl/elf32.em: Likewise.
1634         * emultempl/generic.em: Likewise.
1635         * emultempl/gld960.em: Likewise.
1636         * emultempl/gld960c.em: Likewise.
1637         * emultempl/linux.em: Likewise.
1638         * emultempl/lnk960.em: Likewise.
1639         * emultempl/m68kcoff.em: Likewise.
1640         * emultempl/mipsecoff.em: Likewise.
1641         * emultempl/pe.em: Likewise.
1642         * emultempl/sunos.em: Likewise.
1643         * emultempl/ticoff.em: Likewise.
1644         * emultempl/vanilla.em: Likewise.
1646 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
1648         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1649         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
1650         (LIB_SEARCH_DIRS): No need to use "tr".
1651         (COMPILE_IN): Only set for native targets.
1652         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1653         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1654         * configure.tgt (powerpc*): Set tdir_*.
1655         (powerpcle*): Correct targ_extra_emuls.
1656         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1657         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1659 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
1661         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1662         calling lang_add_entry.
1664 2002-05-21  H.J. Lu  (hjl@gnu.org)
1666         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1667         "-z muldefs".
1668         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1670         * ld.texinfo: Updated for --allow-multiple-definition and
1671         "-z muldefs".
1673         * ldmain.c (main): Initialize the allow_multiple_definition
1674         field to false.
1676         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1677         (ld_options): Add --allow-multiple-definition.
1678         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1680 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
1682         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1683         (earmelfb_nbsd.c): New rule.
1684         * Makefile.in: Regenerate.
1685         * configure.tgt (armeb-*-netbsdelf*): New target.
1686         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1687         (arm-*-netbsd*): Likewise.
1688         * emulparams/armelfb_nbsd.sh: New file.
1690 2002-05-18  Tom Rix  <trix@redhat.com>
1692         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1693         support.
1695 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1697         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1698         * Makefile.in: Regenerate.
1699         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1701 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1703         * emulparams/avr1.sh: New file.
1704         * emulparams/avr2.sh: New file.
1705         * emulparams/avr3.sh: New file.
1706         * emulparams/avr4.sh: New file.
1707         * emulparams/avr5.sh: New file.
1708         * scripttempl/avr.sc: New file.
1710 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
1712         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1713         (lang_place_orphans): Abort if just_syms_flag.
1715 2002-05-10  Tom Rix  <trix@redhat.com>
1717         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1718         architecture and machine information in the output bfd.
1719         (gld*_before_parse): Remove old arch and machine code.
1720         (choose_target): Rename to gld*_choose_target.
1721         (rtld): Change type to int.
1722         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1723         objects in XCOFF archives.
1724         * ldfile.h: Update copyright date.
1726 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
1728         * ldmain.c (main): Enable -z combreloc by default.
1730 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
1732         * Makefile.am: Honour DESTDIR.
1733         * Makefile.in: Regenerate.
1735 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
1737         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1738         (lang_enter_overlay): Remove the last two parameters.
1739         (lang_leave_overlay): Take them here instead.
1740         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1741         (section): Pass LMA and crossref flag to lang_leave_overlay rather
1742         than lang_enter_overlay.
1743         * ldlang.c (lang_memory_region_lookup): Return null for null names.
1744         (lang_output_section_statement_lookup): Initialize update_dot_tree.
1745         (lang_size_sections_1): Evaluate it.
1746         (lang_leave_output_section_statement): Rework LMA lookup.
1747         (overlay_lma, overlay_nocrossrefs): Remove.
1748         (lang_enter_overlay): Remove LMA and crossref arguments.
1749         (lang_enter_overlay_section): Don't set the LMA here.
1750         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
1751         assignment to the last section's update_dot_tree.  Unconditionally
1752         use the load and run-time regions specified in the OVERLAY statement.
1753         Likewise the first section's LMA.  Only set the other sections' LMAs
1754         when no load region is given.
1756 2002-05-06  Nick Clifton <nickc@redhat.com>
1758         * po/sv.po: New translation.
1760 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
1762         * emultempl/hppaelf.em (build_section_lists): New function.
1763         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1764         and build_section_lists.
1766 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
1768         * ld.h: Fix formatting.
1769         * ldexp.c: Likewise.
1770         * ldfile.c: Likewise.
1771         * ldlang.c: Likewise.
1772         * ldmain.c: Likewise.
1773         * lexsup.c: Likewise.
1774         * pe-dll.c: Likewise.
1776 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
1778         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1779         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
1780         (build_section_lists): Do output_section tests here.
1782 2002-04-30  Tom Rix  <trix@redhat.com>
1784         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1786 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
1788         Long branch stubs, multiple stub sections.
1789         * emultempl/ppc64elf.em: Include ldctor.h.
1790         (stub_file): New var.
1791         (group_size): New var.
1792         (ppc_create_output_section_statements): New function.
1793         (struct hook_stub_info): New.
1794         (hook_in_stub): New function.
1795         (ppc_add_stub_section): New function.
1796         (ppc_layout_sections_again): New function.
1797         (build_section_lists): New function.
1798         (gld${EMULATION_NAME}_finish): Rewrite.
1799         (real_func): New var.
1800         (ppc_for_each_input_file_wrapper): New function.
1801         (ppc_lang_for_each_input_file): New function.
1802         (lang_for_each_input_file): Define.
1803         (PARSE_AND_LIST_PROLOGUE): Define.
1804         (PARSE_AND_LIST_LONGOPTS): Define.
1805         (PARSE_AND_LIST_OPTIONS): Define.
1806         (PARSE_AND_LIST_ARGS_CASES): Define.
1807         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1809 2002-04-30  Tom Rix  <trix@redhat.com>
1811         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1812         -blibpath, -bnolibpath support.
1814 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
1816         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1817         (eelf32ppcwindiss.c): New target.
1818         * Makefile.in: Regenerated.
1819         * configure.tgt: Add support for powerpc-*-windiss.
1820         * emulparams/elf32ppcwindiss.sh: New file.
1822 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
1824         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1825         * ldexp.c (exp_print_token): Add "infix_p" argument.
1826         (exp_print_tree): Update accordingly.
1828 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
1830         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1831         * Makefile.in: Regenerate.
1832         * mpw-elfmips.c: Delete.
1833         * mpw-eppcmac.c: Delete.
1834         * mpw-esh.c: Delete.
1835         * mpw-idtmips.c: Delete.
1837 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
1839         * emulparams/shelf32.sh (MACHINE): Now sh5.
1841 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1843         * ldgram.y: Fix syntax warning.
1845 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
1847         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1848         to prevent "-n" from being taken as an abbreviation for
1849         "--no-pipeline-knowledge".
1851 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1853         * ldlang.c (lang_size_sections_1): Don't complain about
1854         SEC_NEVER_LOAD sections having no memory region specified.
1856         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1858 2002-04-07  matthew green  <mrg@redhat.com>
1860         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1862 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1864         * dep-in.sed: Cope with absolute paths.
1865         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1866         Run "make dep-am".
1867         * Makefile.in: Regenerate.
1869 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1871         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1873 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1875         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1876         is smaller than maximum, round dot up to common page boundary.
1878 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
1880         * configure.host: Set up for generic hosts first, then tweak as
1881         necessary in more specific targets.
1882         (HOSTING_LIBS): Include libgcc_eh.a if found.
1884 2002-03-23  Andreas Jaeger  <aj@suse.de>
1886         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1888 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
1890         * Makefile.am: Run "make dep-am".
1891         * Makefile.in: Regenerate.
1893 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
1895         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1897 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
1899         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1900         add the symbol to the linker hash table immediately.
1901         (lang_place_undefineds): Split symbol creation out..
1902         (insert_undefined): ..to here.
1904 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
1906         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1907         the contents of the buffer returned from basename function will are
1908         getting overwritten while still being used.
1910 2002-03-18  Jan Hubicka  <jh@suse.cz>
1911             Andreas Jaeger  <aj@suse.de>
1912             Andreas Schwab  <schwab@suse.de>
1914         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1915         * elf_x86_64.sh (ARCH): Set to i386:x86-64
1916         set libraries to default to lib64 paths.
1918 2002-03-18  Tom Rix  <trix@redhat.com>
1920         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1921         * configure.tgt : Same.
1922         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1923         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1924         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1925         emulation parameters for better -b32, -b64 support.
1926         * emulparms/aixrs6.sh : Same.
1927         * emulparms/ppcmacos.sh : Same.
1928         * emultempl/aix.em (choose_target) : Use new emulation parameters
1929         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1930         * Makefile.in : Regenerate.
1932 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
1934         * po/fr.po: Updated version.
1936 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
1938         * ldmain.c (main): Move .text readonly flag fudges from here..
1939         * ldlang.c (lang_process): ..to here.
1941 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
1943         * ldlang.c (lang_check): Remove the word size check added in last
1944         change.  Treat emitrelocations case as for relocatable links.
1946 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
1948         * po/fr.po: Updated version.
1950 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
1952         * ldlang.c (lang_check): Do relocatable link checks first, so that
1953         warn_mismatch can't override.  Check compatible and word size too.
1955 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
1957         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1959 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
1961         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1962         DATA_SEGMENT_ALIGN.
1964 2002-03-04  H.J. Lu <hjl@gnu.org>
1966         * scripttempl/elf.sc: Put .preinit_array, .init_array and
1967         .fini_array in the data segment.
1969 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
1971         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1973 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
1975         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1976         .init_array, and .fini_array.
1978 2002-02-20  Andreas Schwab  <schwab@suse.de>
1980         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1981         .IA64_unwind* in a relocatable link.
1983 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
1985         * NEWS: Mark 2.12 branch.
1987 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1989         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1990         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1992 2002-02-18  Tom Rix  <trix@redhat.com>
1994         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1995         (gld*_before_allocation): Same.
1996         (gld*_create_output_section_statements): Generate
1997         __rtinit if run time linking.  Add librtl.a to the link.
1998         (gld*_read_file): Clean.
2000 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
2002         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2004 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
2006         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2007         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2008         and eelf64alpha_fbsd.
2009         * Makefile.in: Regenerate.
2010         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2011         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2012         use a FreeBSD-specific emulation rather than the psABI one.
2013         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2014         for all FreeBSD ELF systems.
2015         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2016         emulation.
2017         * emulparams/elf32ppc_fbsd.sh: Likewise.
2018         * emulparams/elf64_ia64_fbsd.sh: Likewise.
2019         * emulparams/elf64_sparc_fbsd.sh: Likewise.
2020         * emulparams/elf64alpha_fbsd.sh: Likewise.
2021         * emulparams/elf_i386_fbsd.sh: Likewise.
2022         * emulparams/elf_x86_64_fbsd.sh: Likewise.
2024 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
2026         * po/tr.po: Updated version.
2028 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
2030         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2031         (FILL): Likewise.
2033 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
2035         * emultempl/mmo.em (mmo_after_open): Don't call
2036         _bfd_mmix_check_all_relocs when producing ELF output.
2038 2002-02-15  Richard Henderson  <rth@redhat.com>
2040         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2041         definition.  Emit a unop+nop pair.
2043 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
2045         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2046         for presence of .MMIX.reg_contents.linker_allocated before early
2047         exit.
2049         * NEWS: Mention support for MMIX.
2051 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
2053         Support arbitrary length fill patterns.
2054         * ld.texinfo (Output Section Fill): Describe fill expressions.
2055         (FILL): Refer to the above.
2056         * ldexp.h (etree_value_type): Add "str" field.
2057         (union etree_union): Add "str" to "value" struct.
2058         (exp_bigintop): Declare.
2059         (exp_get_fill): Declare.
2060         * ldexp.c: Include "safe-ctype.h".
2061         (exp_intop): Set value.str to NULL.
2062         (exp_bigintop): New function.
2063         (new_rel): Pass in "str", and set new.str from it.
2064         (new_rel_from_section): Set new.str to NULL.
2065         (fold_name): Adjust calls to new_rel.
2066         (exp_fold_tree): Likewise.
2067         (exp_get_fill): New function.
2068         * ldgram.y (struct big_int bigint, fill_type *fill): New.
2069         (INT): Returns a "bigint".  Adjust all code handling INTs.
2070         (fill_opt): Returns a "fill".
2071         (fill_exp): Split out of fill_opt, use for FILL.
2072         * ldlang.h (struct _fill_type): New.
2073         (fill_type): Move typedef to ldexp.h.
2074         (lang_output_section_statement_type): "fill" is now a pointer.
2075         (lang_fill_statement_type): Likewise.
2076         (lang_padding_statement_type): Likewise.
2077         (lang_add_fill): Now takes a "fill_type *" param.
2078         (lang_leave_output_section_statement): Likewise.
2079         (lang_do_assignments): Likewise.
2080         (lang_size_sections): Likewise.
2081         (lang_leave_overlay_section): Likewise.
2082         (lang_leave_overlay): Likewise.
2083         * ldlang.c: Include ldgram.h after ldexp.h.
2084         (lang_output_section_statement_lookup): Adjust for fill_type change.
2085         (print_fill_statement): Likewise.
2086         (print_padding_statement): Likewise.
2087         (insert_pad): Now takes a "fill_type *" arg.
2088         (size_input_section): Likewise.
2089         (lang_size_sections_1): Likewise.
2090         (lang_size_sections): Likewise.
2091         (lang_do_assignments): Likewise.
2092         (lang_add_fill): Likewise.
2093         (lang_leave_output_section_statement): Likewise.
2094         (lang_leave_overlay_section): Likewise.
2095         (lang_leave_overlay): Likewise.
2096         Adjust all callers of the above function.
2097         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
2098         starting with "0X" as well as "0x".  Return bigint.str for hex
2099         numbers starting with "0x" or "0X", zero bigint.str otherwise.
2100         Always use base 16 for numbers starting with "$".
2101         * ldmain.c: Include ldgram.h after ldexp.h.
2102         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2103         of bfd_fill_link_order.
2104         * pe-dll.c: Adjust lang_do_assignments calls.
2105         * emultempl/elf32.em: Likewise.
2106         * emultempl/hppaelf.em: Likewise.
2107         * emultempl/ppc64elf.em: Likewise.
2108         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2109         lang_add_assignment call.
2110         * emultempl/pe.em: Likewise.
2112 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
2114         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
2115         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
2116         the pattern in question is not a regexp.
2117         * ldlang.c:  Likewise.
2118         * ldlang.h:  Likewise.
2119         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
2121 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
2123         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2124         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2125         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2126         * ldexp.c (exp_data_seg): New variable.
2127         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2128         (fold_binary): Handle DATA_SEGMENT_ALIGN.
2129         (exp_fold_tree): Handle DATA_SEGMENT_END.
2130         Pass allocation_done when recursing instead of hardcoding
2131         lang_allocating_phase_enum.
2132         * ldexp.h (exp_data_seg): New.
2133         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2134         (lang_size_sections): New.
2135         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2136         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2137         if COMMONPAGESIZE is defined.
2138         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2139         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2140         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2141         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2142         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2143         libraries only.
2145 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
2147         * Makefile.in: Regenerate.
2149 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
2151         * lexsup.c: Remove strtoul declaration.
2153 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
2155         * ldmain.c: Add prototype for main ().
2156         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2157         * emultempl/lnk960.em (lnk960_choose_target): Function should
2158         take two arguments.
2160 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
2162         * ldlang.c (entry_section): New initialised variable.
2163         (lang_finish): Use it.
2164         * ldlang.h (entry_section): Declare.
2165         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2166         entry_section to ".opd".
2168 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
2170         * ld.texinfo (Options): Add back in -nostdlib documentation,
2171         which had been inadvertently removed.
2173 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
2175         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2176         register section vma to a sane value after emitting error.  Make
2177         fatal conditions cause program exit when emitting message.
2179 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
2181         * configure.tgt: Add or32-*-rtems target.
2183 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
2185         Contribute sh64-elf.
2186         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
2187         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2188         in OTHER_RELOCATABLE_SECTIONS.
2189         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
2190         * emulparams/shelf32.sh (STACK_ADDR): Define.
2191         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2192         (OTHER_SECTIONS): this.  Removed stack settings.
2193         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2194         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2195         2001-03-12  DJ Delorie  <dj@redhat.com>
2196         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2197         relaxing if any shmedia or mixed sections are found.
2198         2001-03-07  DJ Delorie  <dj@redhat.com>
2199         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2200         einfo.  Gracefully decline to output to non-elf formats.
2201         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
2202         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2203         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2204         * emulparams/shelf32.sh: Ditto.
2205         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
2206         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2207         comment.
2208         2001-01-10  Ben Elliston  <bje@redhat.com>
2209         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2210         non-portable shell constructs. From Hans-Peter Nilsson.
2211         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
2212         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2213         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2214         dependencies to the shell script include chain.
2215         * Makefile.in: Regenerate.
2216         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
2217         * emultempl/sh64elf.em: Update and tweak comments.
2218         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2219         make a .cranges section SEC_IN_MEMORY.
2220         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
2221         * emultempl/sh64elf.em
2222         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2223         .cranges section found to be necessary; continue and set stored
2224         section contents flags for sections with non-mixed contents.
2225         Use a struct sh64_section_data container and sh64_elf_section_data
2226         to store contents-type flags.
2227         Remove unused update of "isec".
2228         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2229         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
2230         access contents-type flags.  Assert that the associated container
2231         is initialized.  Use that container, not elf_gp_size, to hold size
2232         of linker-generated cranges contents.
2233         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
2234         * emultempl/sh64elf.em
2235         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2236         there's already a .cranges section.  When section flag difference
2237         is found, don't NULL-check cranges a second time.  Tweak comments.
2238         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2239         merging, not max size, as size of ld-generated .cranges contents.
2240         Don't set ELF section flags in output section.  When checking for
2241         needed .cranges descriptors, don't use a variable; compare
2242         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
2243         comments.
2244         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
2245         * emultempl/sh64elf.em: New file.
2246         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2247         * Makefile.in: Regenerate.
2248         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2249         (OTHER_RELOCATING_SECTIONS): Ditto.
2250         (EXTRA_EM_FILE): New, set to sh64elf if not set.
2251         * emulparams/shlelf32.sh: Stub out all settings except
2252         OUTPUT_FORMAT.  Source shelf32.sh.
2253         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2254         OTHER_RELOCATING_SECTIONS.
2255         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2256         * emulparams/shlelf64.sh: Stub out all settings except
2257         OUTPUT_FORMAT.  Source shelf64.sh.
2258         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
2259         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2260         .cranges section.
2261         (DATA_START_SYMBOLS): Define, provide ___data.
2262         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2263         for consecutive .data section.
2264         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2265         section after .data section.
2266         * emulparams/shlelf64.sh: Ditto.
2267         * emulparams/shelf32.sh: Ditto.
2268         (ALIGNMENT): Define to 8.
2269         * emulparams/shelf32.sh: Ditto.
2270         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
2271         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2272         built-in linker scripts.
2273         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
2274         * emulparams/shlelf64.sh: New.
2275         * emulparams/shelf64.sh: New.
2276         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2277         targ_extra_emuls.
2278         * Makefile.am: Add support for shlelf64 and shelf64.
2279         * Makefile.in: Regenerate.
2280         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
2281         * configure.tgt (sh64-*-elf*): Add shelf as default.
2282         Add shlelf to targ_extra_emuls.
2283         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
2284         * emulparams/shelf32.sh: New file.
2285         * emulparams/shlelf32.sh: New file.
2286         * Makefile.am: Add support for shlelf32 and shelf32.
2287         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2288         * Makefile.in: Regenerate.
2290 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
2292         * ldlang.c (lang_reset_memory_regions): Rename from
2293         reset_memory_regions.  Change all callers.  Make public.
2294         * ldlang.h (lang_reset_memory_regions): Prototype.
2295         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2296         lang_reset_memory_regions before lang_size_sections.
2297         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2298         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2300 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
2302         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2303         arithmetic when checking for too many global registers.
2305 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
2307         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2308         (ehppanbsd.c): New rule.
2309         * Makefile.in: Regenerate.
2310         * configure.tgt (hppa*-*-netbsd*): New target.
2311         * emulparams/hppalinux.sh: Add comment to check other files
2312         that source this file it is modified, and list which
2313         files that do.
2314         * emulparams/hppanbsd.sh: New file.
2316 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
2318         * scripttempl/xstormy16.sc: Don't allocate extra space for the
2319         stack.
2321 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
2323         Support on-demand global register allocation from
2324         R_MMIX_BASE_PLUS_OFFSET relocs.
2325         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2326         mmix_set_reg_section_vma.  Call
2327         _bfd_mmix_finalize_linker_allocated_gregs.
2328         (mmix_before_allocation): New function.
2329         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2330         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2331         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2332         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2333         before .MMIX.reg_contents.
2334         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2335         (mmo_after_open): New function.
2336         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2337         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
2338         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2340 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
2342         * emulparams/or32.sh: New file.
2343         * emulparams/or32elf.sh: New file.
2344         * scripttempl/or32.sc: New file.
2345         * configure.tgt : Add support for or32.
2346         * configure: Regenerate
2347         * Makefile.am: Add support for or32.
2348         * Makefile.in: Regenerate.
2349         * NEWS: Mention support for or32.
2350         * po/ld.pot: Regenerate.
2352 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
2353             Mitch Lichtenberg  <mpl@broadcom.com>
2355         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2356         * emultempl/mipself.em: New file to handle MIPS ELF embedded
2357         reloc creation (ld --embedded-relocs).
2359 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
2361         * configure: Regenerated.
2363 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
2365         * Makefile.am (install): Depend on install-info.
2366         * Makefile.in: Regenerate.
2368 2002-01-26  Christian Rose  <menthos@menthos.com>
2370         * ldmain.c (main): Use full sentences to ease translation.
2372 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
2374         * po/fr.po: Updated version.
2376 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
2378         * po/es.po: Updated version.
2380 2002-01-25  Andreas Jaeger  <aj@suse.de>
2382         * ldlex.l (yy_input): Correct error check.
2384 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
2386         * ldmisc.c (demangle): Put back dots when string not demangled.
2388 2002-01-22  Richard Henderson  <rth@redhat.com>
2390         * emulparams/elf64alpha.sh (NOP): Use unop.
2392 2002-01-21  Andreas Jaeger  <aj@suse.de>
2394         * ldlex.l: Use fread instead of read.
2396 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
2398         * configure.tgt (ia64-*-netbsd*): New target.
2400 2002-01-21  H.J. Lu <hjl@gnu.org>
2402         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2403         0.
2404         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2406 2002-01-18  Andreas Jaeger  <aj@suse.de>
2408         * ldver.c (ldversion): Update year.
2410 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
2412         * po/ld.pot: Regenerate.
2414 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
2416         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2417         * Makefile.in: Regenerate.
2418         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2419         * emultempl/ppc64elf.em: New file.
2421 2002-01-15  DJ Delorie  <dj@redhat.com>
2423         * scripttempl/pe.sc: Add support for constructor priorities.
2425 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2427         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2428         * emulparams/avr23xx.sh: Likewise.
2429         * emulparams/avr4433.sh: Likewise.
2430         * emulparams/avr44x4.sh: Likewise.
2431         * emulparams/avr85xx.sh: Likewise.
2432         * emulparams/avrmega103.sh: Likewise.
2433         * emulparams/avrmega161.sh: Likewise.
2434         * emulparams/avrmega603.sh: Likewise.
2435         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2437 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
2439         * ldlang.c (walk_wild_section): Exclude object file if enclosing
2440         archive is excluded.
2442 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
2444         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2445         (eshelf_nbsd.c): New rule.
2446         (eshlelf_nbsd.c): New rule.
2447         * Makefile.in: Regenerate.
2448         * configure.tgt (sh*le-*-netbsdelf*): New target.
2449         (sh*-*-netbsdelf*): New target.
2450         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2451         * ld/emulparams/shelf_nbsd.sh: New emulation.
2452         * ld/emulparams/shlelf_nbsd.sh: New emulation.
2454 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
2456         * po/es.po: New file: Spanish translation.
2457         * configure.in (ALL_LINGUAS): Add es.
2458         * configure: Regenerate.
2460 2002-01-06  John Marshall  <jmarshall@acm.org>
2462         * ld.texinfo: Note that --emit-relocs is currently only
2463         implemented for ELF.
2465 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
2467         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2468         of bfd_section_list_remove and bfd_section_list_insert macros.
2469         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2470         * emultempl/mmo.em (mmo_place_orphan): Likewise.
2472 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
2474         * configure.tgt (x86_64-*-netbsd*): New target.
2476 2001-12-21  Tom Rix  <trix@redhat.com>
2478         (gld*_create_output_section_statements): New function.
2479         For -binitfini support.
2480         * emultempl/aix.em (gld*_before_parse): Fix comment.
2481         * emultempl/aix.em (gld*_parse_args): Fix comment.
2483 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
2485         * configure.tgt (mips*-dec-netbsd*): Delete alias for
2486         mips*el-*-netbsd*.
2487         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2489         * configure.tgt (arm-*-netbsdelf*): Add target.
2490         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2491         * emulparams/armelf_nbsd.sh: Added.
2492         * Makefile.am: Add rules for earmelf_nbsd.
2493         * Makefile.in: Regenerate.
2495 2001-12-19  Andreas Jaeger  <aj@suse.de>,
2496             Susanne Oberhauser <froh@suse.de>
2498         * configure.host: Add rules for x86_64-*linux-gnu.  Change
2499         s390x-linux entry to use gcc to report configuration, replace gcc
2500         with $CC in s390-linux
2502 2001-12-19  Andreas Jaeger  <aj@suse.de>
2504         * ld.texinfo (VERSION): Fix markup.
2506 2001-12-18  matthew green  <mrg@eterna.com.au>
2508         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2509         (m68kelfnbsd.c): New rule.
2510         * Makefile.in: Regenerate.
2511         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2512         (m68*-*-netbsd*4k*): .. this.
2513         (m68*-*-netbsdelf*): New target.
2514         (m68*-*-netbsd*): Also include ELF support.
2515         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2516         * emulparams/m68kelfnbsd.sh: New emulation.
2518 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
2520         * ldgram.y (vers_node): Support anonymous version tags.
2521         * ldlang.c (lang_register_vers_node): Ensure anonymous version
2522         tag is not defined together with non-anonymous versions.
2523         * ld.texinfo: Document it.
2525 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
2527         * po/tr.po: New file: Turkish translation.
2528         * configure.in (ALL_LINGUAS): Add tr.
2529         * configure: Regenerate.
2531 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
2533         * Makefile.am: Add rules for eelf64alpha_nbsd.
2534         * Makefile.in: Regenerate.
2535         * configure.tgt (alpha*-*-netbsd*): Set
2536         targ_emul to elf64alpha_nbsd.
2537         * emulparams/elf64alpha_nbsd.sh: Added.
2539 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
2541         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2542         section_tail when fiddling with section list.
2543         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2544         broken into separate strings to make translation easier.
2545         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2546         fiddling with section list.
2547         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2549 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
2551         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2553 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
2555         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2557 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
2559         * emultempl/elf32.em (finish): Supply output_bfd
2560         to bfd_elf*_discard_info.
2561         (OPTION_EH_FRAME_HDR): Define.
2562         (longopts): Add --eh-frame-hdr.
2563         (parse_args): Handle it.
2564         (list_options): Add --eh-frame-hdr to help.
2565         * emultempl/hppaelf.em (finish): Supply output_bfd
2566         to bfd_elf*_discard_info.
2567         * scripttempl/elf.sc (.eh_frame_hdr): Add.
2569 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
2571         * lexsup.c (parse_args): Don't pass shortopts to second call to
2572         getopt functions.  Restore optind rather than decrementing before
2573         second call.  Remove errind as it now duplicates last_optind.
2575 2001-12-11  Christopher Faylor  <cgf@redhat.com>
2577         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2579 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
2580             Richard Henderson  <rth@redhat.com>
2582         * Makefile.am: Add support for xstormy16.
2583         * configure.tgt: Add support for xstormy16.
2584         * Makefile.in: Regenerate.
2585         * emulparams/elf32xstormy16.sh: New file.
2586         * scripttempl/xstormy16.sc: New file.
2588 2001-10-01  Christopher Faylor <cgf@cygnus.com>
2590         * Makefile.in (LIB_PATH): Make configurable.
2591         (GENSCRIPTS): Set LIB_PATH in environment.
2592         * configure.in: Substitute LIB_PATH.
2593         * configure: Regenerate.
2594         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2595         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2597 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
2599         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2600         describing the -N option so that it is easier to translate into
2601         foreign languages.
2603 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
2605         * emultempl/pe.em (..._list_options): Replace multiple fprintf
2606         statements describing a single option with a single, newline
2607         escaped fprintf.  This allows better translation into other
2608         languages.
2610         * ldmain.c (add_archive_element): Combine multiple strings
2611         into a single string to permit better translation into other
2612         languages.
2614 2001-12-05  Tom Rix  <trix@redhat.com>
2616         * Makefile.am: Remove eaixppc64.
2617         * Makefile.in: Regenerate.
2619 2001-12-04  Tom Rix  <trix@redhat.com>
2621         * emultempl/aix.em (choose_target): Change default target to
2622         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
2623         warning.
2624         (gld*_read_file):  Fix typo.
2625         (change_symbol_mode): Add prototype.
2626         (is_syscall): Same.
2628         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2629         * emulparams/aixrs6.sh : Same.
2630         * emulparams/ppcmacos.sh : Same.
2631         * emulparams/aixppc64.sh : Delete file.
2632         * emultempl/aix.em : Formatting changes.
2634 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
2636         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2637         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2638         __Sbss.
2639         (OTHER_END_SYMBOLS): Fix formatting.
2640         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2641         (OTHER_END_SYMBOLS): Fix formatting.
2643 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
2645         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2647 2001-12-02  Tom Rix  <trix@redhat.com>
2649         * configure.tgt : Remove eaixppc64 emulations.
2650         * Makefile.in : Remove eaixppc64.c
2651         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2652         (ldemul_default_target): Same.
2653         * emultempl/gld960.em (gld960_choose_target):  Same.
2654         * emultempl/gld960c.em (gld960_choose_target):  Same.
2655         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2656         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2657         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2658         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2659         * emultempl/aix.em (choose_target): New function.  Handle emulation of
2660         -b32 and -b64.
2662 2001-11-27  H.J. Lu <hjl@gnu.org>
2664         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2665         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2666         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2667         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2668         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2669         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2670         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2671         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2673         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2674         is not empty.
2675         (SDATA): Likewise.
2676         (REL_SDATA): Likewise.
2677         (REL_SBSS): Likewise.
2678         (REL_SDATA2): Likewise.
2679         (REL_SBSS2): Likewise.
2680         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2681         (SDATA2): Likewise.
2683 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2685         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2686         destructor in rom.
2687         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2689 2001-11-22  H.J. Lu  <hjl@gnu.org>
2691         * Makefile.in: Regenerated with automake based on automake
2692         1.4-8 in RedHat 7.1.
2694 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
2696         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2697         (config.status): Delete rule.
2698         Add extra dependencies to cover sourced emulparams files.
2699         * Makefile.in: Regenerate.
2701         * scripttempl/elf.sc: Order <section>, <section>.* and
2702         corresponding linkonce sections as seen in input files.
2703         Formatting fixes.  Zero vma of all sections if not relocating.
2704         (STACK): Define and insert if STACK_ADDR defined.
2705         (OTHER_RELOCATING_SECTIONS): Delete.
2706         (OTHER_END_SYMBOLS): Define.
2707         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2708         (OTHER_READWRITE_SECTIONS): Likewise.
2709         (OTHER_GOT_SECTIONS): Likewise.
2710         (OTHER_SDATA_SECTIONS): Likewise.
2711         (OTHER_BSS_SECTIONS): Likewise.
2712         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2713         (OTHER_READWRITE_SECTIONS): Likewise.
2714         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2715         (OTHER_READWRITE_SECTIONS): Likewise
2717         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2718         (STACK_ADDR): Define.
2719         * emulparams/armelf_oabi.sh: As for armelf.sh.
2720         * emulparams/elf32mcore.sh: As for armelf.sh.
2721         * emulparams/h8300elf.sh: As for armelf.sh.
2722         * emulparams/mn10200.sh: As for armelf.sh.
2723         * emulparams/shelf.sh: As for armelf.sh.
2725         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2726         (OTHER_END_SYMBOLS): Define.
2727         * emulparams/m32relf.sh: As for elf32fr30.sh.
2728         * emulparams/h8300helf.sh: As for elf32fr30.sh.
2729         * emulparams/h8300self.sh: As for elf32fr30.sh.
2731         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2732         defines with RELOCATING test.
2733         (OTHER_SDATA_SECTIONS): Likewise.
2734         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2735         (OTHER_END_SYMBOLS): ..this.
2736         * emulparams/crislinux.sh: As for criself.sh.
2738         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2739         if not relocating.
2740         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2741         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
2742         normal and linkonce sections as seen in input files.
2743         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2744         (TEXT_DYNAMIC): Likewise.
2745         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2746         (OTHER_SDATA_SECTIONS): Likewise.
2747         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2748         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2749         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2750         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2751         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2752         (OTHER_PLT_RELOC_SECTIONS): Likewise.
2753         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
2754         sections as seen in input files.
2755         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2756         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2757         if not relocating.
2758         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2759         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2760         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2761         (OTHER_SECTIONS): Instead, use this..
2762         (OTHER_END_SYMBOLS): ..and this.
2764         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2765         * emulparams/elf32bsmip.sh: Likewise.
2766         * emulparams/elf32btsmip.sh: Likewise.
2767         * emulparams/elf32ebmip.sh: Likewise.
2768         * emulparams/elf32lmip.sh: Likewise.
2769         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2770         * emulparams/elf32lsmip.sh: Likewise.
2771         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2772         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2773         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2774         * emulparams/elf64btsmip.sh: Likewise.
2775         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2776         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2777         * emulparams/elf32ppclinux.sh: Likewise.
2778         * emulparams/elf32ppcsim.sh: Likewise.
2779         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2780         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2781         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2782         * emulparams/h8300self.sh: Likewise.
2783         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2784         * emulparams/sh.sh: Comment.
2785         * emulparams/shl.sh: Source sh.sh, remove duplicates.
2786         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2787         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2789 2001-11-21  David Heine <dlheine@tensilica.com>
2790             Alan Modra  <amodra@bigpond.net.au>
2792         * ldlang.c (map_input_to_output_sections): Replace "break"
2793         accidentally removed with 2001-08-03 change.
2794         (lang_gc_sections_1): Likewise.
2796 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
2798         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2800 2001-11-20  Angela Marie Thomas <angela@redhat.com>
2802         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2803         of false when calling lang_size_sections.
2804         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2806 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
2808         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2809         function when LDEMUL_FINISH isn't set to the same name.  Don't
2810         call ${LDEMUL_FINISH}.
2811         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2812         * emultempl/armelf.em (arm_elf_finish): Call
2813         gld${EMULATION_NAME}_finish.
2814         * emultempl/hppaelf.em (hppaelf_finish): Rename to
2815         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
2816         hppaelf_layout_sections_again if necessary.
2817         (need_laying_out): New var.
2818         (hppaelf_layaout_sections_again): Rename to
2819         hppaelf_layout_sections_again.  Clear need_laying_out.
2820         (PARSE_AND_LIST_OPTIONS): Format text.
2822 2001-11-14  H.J. Lu  <hjl@gnu.org>
2824         * emultempl/armelf.em (arm_elf_finish): Renamed from
2825         gld${EMULATION_NAME}_finish.
2826         (LDEMUL_FINISH): Set to arm_elf_finish.
2828 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
2830         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2831         (struct ld_emulation_xfer_struct): Use it.
2833 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
2835         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2836         additional symbols referenced by newer crt0.o files from HP.
2838 2001-11-12  Anthony Green  <green@redhat.com>
2840         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2842 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
2844         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2845         * Makefile.in: Regenerate.
2847 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2849         * ld.texinfo: Use @command for commands, @option for options.
2850         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2851         the page man title.
2852         * Makefile.in: Rebuild.
2854 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
2856         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2857         Add support for targets.
2859 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
2861         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2862         * configure: Regernate.
2863         * po/fr.po: New file.
2864         * po/sv.po: New file.
2866 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
2868         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2869         as little endian default and to support big endian.
2871 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
2873         * ld.texinfo (Options): Document new option, -nostdlib.
2874         * lexsup.c (OPTION_NOSTDLIB): New definition.
2875         (ld_options): Add entry for "nostdlib".
2876         (parse_args): Handle OPTIONS_NOSTDLIB.
2877         * ldfile.c (ldfile_add_library_path): Don't add directories
2878         to the search path if they weren't specified on the command line
2879         and -nostdlib was specified.
2880         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2882 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
2884         * lexsup.c (parse_args): Prevent infinite parsing loop when
2885         "-rpath.a" is specified on the command line.
2886         Replace calls to fprintf with calls to einfo.
2888 2001-10-31  John Marshall  <jmarshall@acm.org>
2890         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2891         appear only once across all the linker scripts involved in a link
2892         invocation no longer applies.  Make the documentation reflect
2893         that.
2895 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
2897         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2898         targets.
2899         (sh-*-linux*): Added targ_extra_libpath.
2901 2001-10-31  David Heine  <dlheine@tensilica.com>
2903         * ldlang.c (lang_size_sections): Keep a valid output_offset field
2904         for padding statements.
2906 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
2908         * configure.tgt (mmix-*-*): New target.
2909         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2910         Add dependencies to match.
2911         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2912         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2913         scripttempl/mmo.sc: New files.
2914         * gen-doc.texi: @set MMIX.
2915         * ld.texinfo: Ditto.
2916         [MMIX] Add MMIX node.
2917         * Makefile.in: Regenerate.
2919 2001-10-29  Kazu Hirata  <kazu@hxi.com>
2921         * ldlang.c: Fix a comment typo.
2923 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
2925         * configure.host: Move alpha*-*-linux-gnu* entry to generic
2926         entries, and match *-*-linux*.
2928 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
2930         * ldgram.y (mri_script_command): Surround processing of INCLUDE
2931         with ldlex_script, ldlex_popstate.
2932         (ifile_p1): Likewise.
2933         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
2934         correct slot.
2935         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
2936         to 1.  Don't BEGIN(SCRIPT).
2937         (lex_redirect): Similarly.
2938         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2940 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
2942         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2943         __EH_FRAME_END__ and accept eh frames into data section.
2944         Add ctor and dtor sections.
2946 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2948         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2949         (auto-export): Fix indentation.
2951 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2953         * pe-dll.c (autofilter_objectlist):  Add startup objects
2954         for profiling.
2955         (auto-export): Constify char * p.
2956         Extract file basename and use strcmp rather than ststr
2957         for object lookup.
2959 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
2961         * ldmain.c (get_emulation): Improve comment about the handling
2962         of -mipsN options.
2964 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
2966         * po/POTFILES.in: Regenerate.
2968 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
2970         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2971         -z nocopyreloc and -z nocombreloc usage strings.
2973 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
2975         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2976         in usage.
2978 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
2980         * scripttempl/armaout.sc: Place .bss section after end of aligned
2981         data section to match behaviour of aout code in constructrion of
2982         header.
2984 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2986         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2987         startup files for mingw32 dlls to list.
2989 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
2991         * emultempl/elf32.em: Fix shell 'if' usage for portability.
2993 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
2995         * configure.tgt (targ): Add arm9e-*-elf.
2997 2001-10-05  H.J. Lu  <hjl@gnu.org>
2999         * genscripts.sh: Fix a typo in the last change.
3001 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
3003         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3004         -z nocombreloc in usage.
3006 2001-10-03  Jim Blandy  <jimb@redhat.com>
3008         * genscripts.sh: Include a comment at the top of each generated
3009         script, explaining its purpose.
3011 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
3013         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3014         * NEWS: Mention -z nocopyreloc.
3015         * ld.texinfo (Options): Describe nocopyreloc.
3017 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
3019         * configure: Regenerate.
3021 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
3023         * ldver.h (ld_program_version): Remove declaration.
3024         * lexsup.c (parse_args): Move printing of copyright message..
3025         * ldver.c (ldversion): .. to here.
3026         Use BFD_VERSION_STRING in place of BFD_VERSION.
3027         (ld_program_version): Remove.
3028         * Makefile.am (Makefile): Depend on bfd/configure.in.
3029         Run "make dep-am".
3030         * Makefile.in: Regenerate.
3032 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3034         * Makefile.am: Update dependencies with "make dep-am".
3035         * Makefile.in: Regenerate.
3037 2001-09-29  John Reiser  <jreiser@BitWagon.com>
3039         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3040         * lexsup.c: Add --no-define-common commandline option.
3041         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3042         * ldlex.l: Likewise.
3043         * ld.h: Add command_line.inhibit_common_definition.
3044         * ldmain.c (main): Initialize.
3045         * ld.texinfo: Document.
3047 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
3049         * ldlang.c (section_already_linked): Remove assignment to kept_section.
3051 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
3053         * ldmisc.c (USE_STDARG): Remove.
3054         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3055         (einfo): Likewise.
3056         (minfo): Likewise.
3057         (lfinfo): Likewise.
3059         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3060         declarations.  Update copyright.
3062 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
3064         * pe-dll.c: Remove obsoleted declaration of
3065         pe_get_data_import_dll_name.
3066         (pe_create_import_fixup): Fix thinko.
3068         * ld.texinfo(enable-auto-import): Clarify the explanation.
3070 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
3072         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3073         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3074         DLL_SUPPORT controlled code.
3076 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
3078         * emultempl/pe.em(pe_data_import_dll): Make static.
3079         (pe_get_data_import_dll_name): New accessor function.
3080         * pe-dll.c(pe_create_import_fixup): call
3081         pe_get_data_import_dll_name() from pe.em, instead of
3082         directly accessing pe_data_import_dll variable from pe.em.
3084 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
3086         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3087         (def_file_add_directive): Use ISSPACE instead of isspace.
3088         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3089         isdigit/isxdigit/isalpha/isalnum.
3090         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3091         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3092         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3093         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3094         isalnum.
3095         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3096         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3097         isupper/tolower.
3098         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3099         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3100         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3101         (ctor_prio): Use ISDIGIT instead of isdigit.
3102         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3103         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3104         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3105         isupper/tolower.
3106         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3107         (stricpy): Use TOLOWER instead of isupper/tolower.
3108         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3109         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3110         (lex_warn_invalid): Use ISPRINT instead of isprint.
3111         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3112         (main): For gettext, also set the LC_CTYPE locate facet.
3113         (add_keepsyms_file): Use ISSPACE instead of isspace.
3114         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3115         (is_num, parse_args): Use ISDIGIT instead of isdigit.
3116         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3117         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3118         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3119         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3120         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3121         (quoteput): Use ISSPACE instead of isspace.
3122         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3123         instead of isalnum.
3125 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
3127         * deffilep.y (def_stash_module): Constify "name" param.
3129         * pe-dll.c: Replace CONST with const throughout.
3130         (quick_symbol): Constify "n1", "n2", "n3" params.
3131         (make_singleton_name_thunk): Constify "import" param.  Make
3132         "buffer_len" a size_t.
3133         (make_import_fixup_entry): Constify "name", "fixup_name",
3134         "dll_symname" params.
3135         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
3136         (pe_get32): Likewise.
3137         (pe_implied_import_dll): Likewise.
3139         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3140         (sort_by_section_name): Likewise.
3142         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3143         (make_import_fixup): Cast printf arg, rel->address to long rather
3144         than int.
3145         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3147 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
3149         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3150         defines BufferSize.  Increase buffer size by one.
3152 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
3154         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3156 2001-09-14  Kevin Lo <kevlo@openbsd.org>
3158         * configure.tgt: Add arm-openbsd target.
3160 2001-09-12  H.J. Lu  <hjl@gnu.org>
3162         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3163         eelf64lppc.o to ...
3164         (ALL_64_EMULATIONS): Here.
3165         * Makefile.in: Regenerated.
3167 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3169         * emultempl/pe.em(make_import_fixup): change signature to
3170         take asection as well as arelec; we need this for proper
3171         error reporting.  Only call pe_create_import_fixup() if
3172         there is no attempt to add a constant addend to the reloc;
3173         otherwise, report error condition.
3174         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3175         since final argument is a pointer to make_import_fixup().
3176         Change call to cb() to match make_import_fixup() signature.
3177         (make_import_fixup_mark): make buffer_len unsigned.
3178         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3180 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
3182         * ld.texinfo: add verbose documentation for auto-import
3183         direct-addressing workaround, to compliment the terse
3184         error message.
3186 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
3188         * scripttempl/v850.sc: Add gcc_except_table sections.
3190 2001-09-11  Jeffrey A Law  (law@cygnus.com)
3192         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3193         * emulparams/h8300self.sh: Similarly.
3195 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3197         * ld.texinfo (Options, --stack): Correct default value for stack
3198         reserve.
3200 2001-09-05  Tom Rix <trix@redhat.com>
3202         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3204 2001-09-03  Andreas Jaeger  <aj@suse.de>
3206         * emultempl/beos.em: Declare prototypes for comparions functions,
3207         adjust definitions.
3209 2001-09-02  Andreas Jaeger  <aj@suse.de>
3211         * emultempl/aix.em: Add missing prototype.
3212         * emultempl/lnk960.em: Likewise.
3213         * emultempl/vanilla.em: Likewise.
3214         * emultempl/armcoff.em: Likewise.
3215         * emultempl/armelf_oabi.em: Likewise.
3216         * emultempl/beos.em: Likewise.
3217         * emultempl/gld960c.em: Likewise.
3218         * emultempl/gld960.em: Likewise.
3220         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3221         for prototype declaration.
3223 2001-08-31  Eric Christopher  <echristo@redhat.com>
3224             Jason Eckhardt  <jle@redhat.com>
3226         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3228 2001-08-31  Andreas Jaeger  <aj@suse.de>
3230         * emultempl/pe.em: Add missing prototypes.
3231         (gld_${EMULATION_NAME}_after_open): Remove extra args to
3232         pe_find_data_imports.
3233         (pr_sym): Add unused attribute.
3235 2001-08-29  Joel Sherrill <joel@OARcorp.com>
3237         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3238         default from coff to elf.
3240 2001-08-29  Jeff Law <law@redhat.com>
3242         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
3243         ARCH specification.
3244         * emulparams/h8300self.sh: Similarly.
3246 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
3248         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3249         eh8300self.o .
3250         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3251         * configure.tgt (h8300-*-elf*): New case.
3252         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3253         * emulparams/h8300self.sh: New file.
3254         * Makefile.in: Regenerated.
3256 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
3258         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3259         with macro name.
3261 2001-08-27  Linus Nordberg  <linus@swox.com>
3262             Alan Modra  <amodra@bigpond.net.au>
3264         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3265         (eelf64ppc.c, eelf64lppc.c): Add make targets.
3266         Run "make dep-am"
3267         * Makefile.in: Regenerate.
3268         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
3269         entries to correct alphabetical position.
3270         * emulparams/elf64ppc.sh: New.
3271         * emulparams/elf64lppc.sh: New.
3273 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
3275         * ldmain.c (main): Declare BSIZE as static.
3277 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3279         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3280         into .rel.dyn resp. .rela.dyn if combreloc.
3281         (get_script): If .x linker script is equal to .xn, only put it
3282         once into the binary.
3283         Add .xc and .xsc scripts.
3284         (parse_args): Handle -z combreloc and -z nocombreloc.
3285         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3286         For .xc and .xsc scripts put all .rel* or .rela* input sections
3287         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3288         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3289         is elf.
3290         Strip trailing whitespace from script.
3291         Generate .xc and .xsc scripts if requested.
3292         * ldmain.c (main): Initialize link_info.combreloc and
3293         link_info.spare_dynamic_tags.
3294         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3295         (ld_options): Add --spare-dynamic-tags option.
3296         (parse_args): Likewise.
3297         * ld.texinfo: Document -z combreloc and -z nocombreloc.
3298         * ldint.texinfo: Document .xc and .xsc linker scripts.
3299         * NEWS: Add notes about -z combreloc and SHF_MERGE.
3301 2001-08-22  H.J. Lu  <hjl@gnu.org>
3303         * emulparams/elf32fr30.sh: Add a newline.
3305 2001-08-21  Andreas Jaeger  <aj@suse.de>
3307         * deffilep.y: Add missing prototypes.
3308         * pe-dll.c: Likewise.
3310 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
3312         * ldlang.c (insert_pad): Fix typos in last patch.
3314         * ldlang.c: When traversing lang_statement_union_type lists,
3315         consistently use "header.next" rather than "next".
3316         * mpw-eppcmac.c: Likewise.
3317         * emultempl/beos.em: Likewise.
3318         * emultempl/hppaelf.em: Likewise.
3319         * emultempl/pe.em: Likewise.
3320         * ldlang.h (union lang_statement_union): Remove "next" field.
3322         * ldlang.c (insert_pad): Use offsetof macro.
3323         (lang_size_sections): Always neuter padding statements.
3324         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3326         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3327         passed to lang_size_sections.
3328         (pe_exe_fill_sections): Likewise.
3329         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3330         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3332 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
3334         * emultempl/aix.em: Formatting fixes.
3336 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
3338         * ldlang.c (insert_pad): Make use of an existing pad statement if
3339         available.  Move code calculating alignment, adjusting section
3340         alignment power, and adjusting dot to ..
3341         (size_input_section): .. here.  Remove unused relax param.
3342         (lang_size_sections): Change boolean `relax' param to boolean *.
3343         Adjust call to size_input_section.  Make use of insert_pad to
3344         place pad after the assignment statement.  If relaxing, zap
3345         padding statements.
3346         (reset_memory_regions): Reset output_bfd section sizes too.
3347         (relax_again): Move to..
3348         (lang_process): ..here.  Adjust call to lang_size_sections, and
3349         remove duplicated code.
3350         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3352 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
3354         * ld.texinfo: Document that fill values now use the four least
3355         significant bytes.
3356         * emulparams/elf32fr30.sh (NOP): Update.
3357         * emulparams/elf32mcore.sh: Likewise.
3358         * emulparams/elf64_s390.sh: Likewise.
3359         * emulparams/elf_i386.sh: Likewise.
3360         * emulparams/elf_i386_be.sh: Likewise.
3361         * emulparams/elf_i386_chaos.sh: Likewise.
3362         * emulparams/elf_i386_ldso.sh: Likewise.
3363         * emulparams/elf_s390.sh: Likewise.
3364         * emulparams/elf_x86_64.sh: Likewise.
3365         * emulparams/i386moss.sh: Likewise.
3366         * emulparams/i386nw.sh: Likewise.
3367         * emulparams/m68kelf.sh: Likewise.
3368         * scripttempl/elf.sc: Update NOP comment.
3369         * scripttempl/elfi370.sc: Likewise.
3370         * scripttempl/elfm68hc11.sc: Likewise.
3371         * scripttempl/elfm68hc12.sc: Likewise.
3372         * scripttempl/nw.sc: Likewise.
3374 2001-08-15  Tom Rix <trix@redhat.com>
3376         * ldgram.y (saved_script_handle): Initialize to NULL.
3377         * ldmain.c (main): Change check on saved_script_handle.
3379 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
3381         * emultempl/elf32.em: Formatting fixes.
3382         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
3383         looking at sec->owner.
3384         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3385         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
3386         unused code, and reorganize orphan section placement code.
3388         * ldlang.c (wild_doit): Rename to lang_add_section.
3389         * ldlang.h: Here too.
3390         * mpw-elfmips.c: And here.
3391         * emultempl/beos.em: And here.
3392         * emultempl/elf32.em: And here.
3393         * emultempl/hppaelf.em: And here.
3394         * emultempl/pe.em: And here.
3396 2001-08-13  Richard Henderson  <rth@redhat.com>
3398         * emultempl/needrelax.em: New file.
3399         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3400         * Makefile.am (eelf64_ia64.c): Depend on it.
3401         * Makefile.in: Rebuild.
3403 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
3405         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3406         output_section is set non-NULL.
3408         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3409         `true' for SEC_EXCLUDE sections so that the generic code doesn't
3410         needlessly create an output_section_statement.  Treat a correctly
3411         named output_section_statement with NULL bfd_section as compatible.
3413 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
3415         * emultempl/generic.em: Support EXTRA_EM_FILE.
3416         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3417         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3418         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3419         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3420         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3421         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3422         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3423         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3424         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3425         LDEMUL_FIND_POTENTIAL_LIBRARIES.
3427 2001-08-12  Richard Henderson  <rth@redhat.com>
3429         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3430         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3431         scripttempl/v850.sc: Keep .jcr data.
3433 2001-08-12  H.J. Lu  <hjl@gnu.org>
3434             Andrew Haley  <aph@cambridge.redhat.com>
3435             Nick Clifton  <nickc@redhat.com>
3437         * ldgram.y (had_script): Change name to saved_script_handle.
3438         Change type to file handle.
3439         * ld.h (had_script): Rename and retype.
3440         * ldfile.c (ldfile_open_command_file): Save the file handle
3441         used in saved_script_handle.
3442         * lexsup.c (parse_args): Do not allow -c option to alter
3443         saved_script_handle.
3444         * ldmain.c (main): Print out the linker script used if
3445         --verbose is given.  Check saved_script_handle to obtain the
3446         external linker script used, or if NULL, dump the builtin
3447         script.
3448         * ld.texinfo: Document that --verbose now dumps the linker
3449         script used, regardless of whether it was an internal or an
3450         external script.
3452 2001-08-10  Andreas Jaeger  <aj@suse.de>
3454         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3455         to build warnings.
3456         * configure: Regenerate.
3458 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
3460         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3462         * scripttempl/elf.sc: Move non-text .dynamic section before
3463         .plt/.got/.sdata* group.
3464         (OTHER_GOT_SECTIONS): Move to immediately after .got.
3465         (OTHER_SDATA_SECTIONS): Add.
3466         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3467         OTHER_GOT_SECTIONS.
3468         * emulparams/crislinux.sh: Likewise.
3469         * emulparams/elf32b4300.sh: Likewise.
3470         * emulparams/elf32bmip.sh: Likewise.
3471         * emulparams/elf32bmipn32.sh: Likewise.
3472         * emulparams/elf32bsmip.sh: Likewise.
3473         * emulparams/elf32btsmip.sh: Likewise.
3474         * emulparams/elf32ebmip.sh: Likewise.
3475         * emulparams/elf32elmip.sh: Likewise.
3476         * emulparams/elf32l4300.sh: Likewise.
3477         * emulparams/elf32lmip.sh: Likewise.
3478         * emulparams/elf32lsmip.sh: Likewise.
3479         * emulparams/elf32ltsmip.sh: Likewise.
3480         * emulparams/elf64bmip.sh: Likewise.
3481         * emulparams/elf64btsmip.sh: Likewise.
3482         * emulparams/elf64ltsmip.sh: Likewise.
3484 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
3486         * genscripts.sh: Source the emulparams script before each output
3487         script is generated so that variables like `RELOCATING' may affect
3488         variables defined in the emulparams script.
3490 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
3492         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3493         order.
3495         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3496         ie. iterate over wild_statement.section_list.
3497         (gld${EMULATION_NAME}_place_orphan): Likewise.
3499 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3501         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3502         .fini[0-4] sections used by _exit
3503         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3504         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3505         * scripttempl/elfm68hc11.sc: Likewise.
3507 2001-08-03  H.J. Lu  <hjl@gnu.org>
3509         * emultempl/beos.em (init): Add the missing initialization.
3511 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
3513         * ld.texinfo (Input Section Basics): Clarify ordering of output
3514         sections.
3515         * ldlang.c (callback_t): Add wildcard_list param.
3516         (walk_wild_section): Remove "section" param.  Rewrite for
3517         lang_wild_statement_type change.  Remove unique_section_p test.
3518         (walk_wild_file): Remove "section" param.
3519         (walk_wild): Remove "section" and "file" params.
3520         (lang_gc_wild): Likewise.
3521         (wild): Likewise.  Modify for lang_wild_statement_type change.
3522         (wild_sort): Likewise.  Add "sec" param.
3523         (gc_section_callback): Likewise.
3524         (output_section_callback): Likewise.  Do unique_section_p test.
3525         (map_input_to_output_sections): Modify call to wild.
3526         (lang_gc_sections_1): Likewise.
3527         (print_wild_statement): Modify for lang_wild_statement_type
3528         change.
3529         (lang_add_wild): Replace filename, filenames_sorted param with
3530         filespec.  Replace section_name, sections_sorted,
3531         exclude_filename_list with section_list.
3532         * ldlang.h (lang_add_wild): Here too.
3533         (lang_wild_statement_type): Replace section_name, sections_sorted,
3534         and exclude_filename_list with section_list.
3535         * ldgram.y (current_file): Delete.
3536         (%union): Add wildcard_list.
3537         (file_NAME_list): Set type to wildcard_list.  Build a linked list
3538         rather than calling lang_add_wild for each entry.
3539         (input_section_spec_no_keep): Call lang_add_wild here instead.
3540         * ld.h (struct wildcard_list): Declare.
3541         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3543 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
3545         * ldmain.c (main): initialize link_info.pei386_auto_import
3546         * pe-dll.c: new tables for auto-export filtering
3547         (auto_export): change API, pass abfd for contextual filtering.
3548         Loop thru tables of excluded symbols instead of comparing
3549         "by hand".
3551 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
3553         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3554         static variable current_sec (static struct sec *). Add
3555         forward declaration for add_bfd_to_link.
3556         (process_def_file): Don't export undefined symbols. Do not
3557         export symbols starting with  "_imp__".  Call auto_export()
3558         with new API.
3559         (pe_walk_relocs_of_symbol): New function.
3560         (generate_reloc): add optional extra debugging
3561         (pe_dll_generate_def_file): eliminate extraneous initial blank
3562         line in output
3563         (make_one): enlarge symtab to make room for __nm__ symbols
3564         (DATA auto-import support).
3565         (make_singleton_name_thunk): New function.
3566         (make_import_fixup_mark): New function.
3567         (make_import_fixup_entry): New function.
3568         (pe_create_import_fixup): New function.
3569         (add_bfd_to_link): Specify that 'name' argument is a CONST
3570         char *.
3571         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3572         declare new functions pe_walk_relocs_of_symbol and
3573         pe_create_import_fixup.
3574         * emultempl/pe.em: add new options --enable-auto-import,
3575         --disable-auto-import, and --enable-extra-pe-debug.
3576         (make_import_fixup): New function.
3577         (pe_find_data_imports): New function.
3578         (pr_sym): New function.
3579         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3580         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
3581         CODE.
3583 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
3585         * ld.texinfo: add additional documentation for
3586         --export-all-symbols.  Document --out-implib,
3587         --enable-auto-image-base, --disable-auto-image-base,
3588         --dll-search-prefix, --enable-auto-import, and
3589         --disable-auto-import.
3590         * ldint.texinfo: Add detailed documentation on auto-import
3591         implementation.
3593 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
3595         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3596         example.
3598 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
3600         * Makefile.am: Update dependencies with "make dep-am".
3601         * Makefile.in: Regenerate
3603 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
3605         * ldcref.c (check_section_sym_xref): New function.
3606         (check_nocrossrefs): Call it.
3607         (check_nocrossref): Interate over h->refs here instead of..
3608         (check_refs): ..here.  Pass in the symbol name, section, and bfd
3609         rather than hash_entry pointers.
3610         (struct check_refs_info): Keep symbol name rather than hash entry.
3611         Remove "same".
3612         (check_reloc_refs): Tweak for above changes in check_refs_info.
3613         Only report references to section syms when symname is NULL to
3614         prevent duplicate messages for the same reloc.
3616 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
3618         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3619         available.  Do not print NULL trees.
3620         (exp_print_token): Print unknown tokens with values > 126 as
3621         decimal values not ASCII characters.
3623         * ldlang.c (lang_leave_overlay): If a region is specified assign
3624         it to all sections inside the overlay unless they have been
3625         assigned to the own, non-default, memory region.
3627         * README: Add header for consistency with other README files.
3629 2001-07-14  H.J. Lu  <hjl@gnu.org>
3631         * emultempl/elf32.em (output_prev_sec_find): Never return
3632         bfd_abs_section_ptr, bfd_com_section_ptr nor
3633         bfd_und_section_ptr.
3635 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
3637         * Makefile.am (em32relf.c): Change dependency from generic.em to
3638         elf32.em.
3639         * Makefile.in: Regenerate.
3641 2001-07-14  matthew green  <mrg@eterna.com.au>
3643         * configure.tgt (i386-*-netbsdelf*): New target.
3644         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3646 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
3648         * emultempl/elf32.em (output_prev_sec_find): New.
3649         (place_orphan): Use it.
3651 2001-07-11  H.J. Lu  <hjl@gnu.org>
3653         * ldmain.c (main): Fix typos in the last change.
3655 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
3657         * ldmain.c (main): Disallow -F and -f without -shared.
3659 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
3661         * emultempl/pe.em (after_open): Check for the output_bfd not
3662         having any coff_data structure allocated to it.
3664 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
3666         * emultempl/elf32.em: Do not assuming that contents of the buffer
3667         returned from basename function will remain unchanged accross other
3668         function calls.
3670 2001-07-03  H.J. Lu  <hjl@gnu.org>
3672         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3673         2001-07-03. It creates dynamic entries even for static binaries.
3675 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
3677         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3678         (DYNAMIC): Use it to reserve few dynamic entries for
3679         post-linking tools.
3681 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
3683         * emulparams/hppa64linux.sh: New file.
3684         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3685         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3686         (ehppa64linux.c): Add rule to make it.
3687         Run "make dep-am".
3688         * Makefile.in: Regenerate.
3690 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
3692         * ld.texinfo (Options, -r): Mention restrictions when using
3693         different object formats.
3695 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
3697         * ldlang.c (lang_check): Emit fatal error if relocatable link
3698         between different object flavours with relocations in input.
3700 2001-06-19  H.J. Lu  <hjl@gnu.org>
3702         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3703         (--version-script): Mention the language support.
3705 2001-06-19  H.J. Lu <hjl@gnu.org>
3707         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3709 2001-06-18  H.J. Lu <hjl@gnu.org>
3711         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3712         (diststuff): Add $(MANS).
3713         * Makefile.in: Regenerated.
3715         * ld.1: Removed.
3717 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
3719         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3720         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3721         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3722         * ld.h (args_type): Remove member export_dynamic.  All users
3723         changed to use struct bfd_link_info member.
3725         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3726         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3727         * Makefile.in: Regenerate.
3729 2001-06-18  H.J. Lu  <hjl@gnu.org>
3731         * ldlang.c (init_os): Add the newline to the einfo call.
3732         (lang_check): Likewise.
3733         (lang_do_version_exports_section): Likewise.
3735 2001-06-15  H.J. Lu  <hjl@gnu.org>
3737         * lexsup.c (parse_args); Save optind to report unrecognized
3738         option.
3740 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
3742         * ldlang.c (lang_check): Emit fatal error if relocatable link
3743         between different object flavours.
3745         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3746         Set new link_info member export_dynamic.
3747         * ldmain.c (main): Initialize new link_info member export_dynamic.
3749 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
3751         * ldlang.c (walk_wild): Only call walk_wild_file if
3752         lookup_name returns something.
3753         (lookup_name): If load_symbols fails, return NULL.
3754         (load_symbols): Change to a boolean function.
3755         (open_input_bfds): If load_symbols fails then do not make the
3756         executable.
3758 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
3760         * ldlang.c (record_bfd_errors): Remove.
3762         * emultempl/aix.em: Fix copyright dates.
3764 2001-06-07  Andreas Jaeger  <aj@suse.de>
3766         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3767         (TEXT_START_ADDR): Likewise.
3769 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
3771         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3773 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3775         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3777 2001-05-31  H.J. Lu  <hjl@gnu.org>
3779         * ldlang.c (open_input_bfds): Don't change the bfd error
3780         handler whilst loading symbols.
3782 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
3784         * configure.tgt: Remove i370-mvs architecture, it is not currently
3785         supported.
3787 2001-05-25  H.J. Lu  <hjl@gnu.org>
3789         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3790         like emulparams/aixppc.sh.
3792 2001-05-25  H.J. Lu  <hjl@gnu.org>
3794         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3795         setting of output_filename after bfd_scan_arch.
3796         * emultempl/pe.em: Likewise.
3798 2001-05-25  H.J. Lu  <hjl@gnu.org>
3800         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3801         like emulparams/aixppc.sh.
3803         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3804         instead of ${srcdir}/emultempl/stringify.sed.
3806 2001-05-25  Timothy Wall  <twall@oculustech.com>
3808         * emulparams/elf64_aix.sh: Change settings to match IBM linker
3809         output.
3811 2001-05-25  Alan Modra  <amodra@one.net.au>
3813         * configure.host: Replace linuxoldld with linux*oldld.
3814         * configure.tgt: Likewise.
3816 2001-05-24  H.J. Lu  <hjl@gnu.org>
3818         * emultempl/stringify.sed: Removed again.
3820 2001-05-24  H.J. Lu  <hjl@gnu.org>
3822         * emultempl/aix.em (OUTPUT_ARCH): Defined.
3823         (gld${EMULATION_NAME}_before_parse): Initialize
3824         ldfile_output_architecture, ldfile_output_machine and
3825         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3826         * emultempl/beos.em: Likewise.
3827         * emultempl/elf32.em: Likewise.
3828         * emultempl/linux.em: Likewise.
3829         * emultempl/mipsecoff.em: Likewise.
3830         * emultempl/pe.em: Likewise.
3831         * emultempl/sunos.em: Likewise.
3833 2001-05-24 Tom Rix <trix@redhat.com>
3835         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3836         udate import file format.
3837         (change_symbol_mode) New, same
3838         (is_syscall) New, same
3839         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3840         * emulparams/aixppc64.sh : same
3841         * emulparams/aixrs6.sh : same
3842         * emulparams/ppcmacos.sh : same
3843         * emultempl/aix.em : use strtoull to parse options
3844         * Makefile.am : add eaixppc64 emulation for xcoff64
3845         * Makefile.in : same
3846         * configure.tgt : same
3848         * scripttempl/aix.sc : default text section offset to 0x10000000
3849         default data section offset to 0x20000000
3850         add .sv3264 and .sv64 pseudo sections
3851         loader and debug sections use the currect section offset.
3853         * emultempl/aix.em : Add xcoff64 support
3854         Add -binitfini support
3855         (gld${EMULATION_NAME}_before_parse) -binitfini
3856         (gld${EMULATION_NAME}_parse_args) same
3857         (gld${EMULATION_NAME}_before_allocation) format change for special
3858         sections
3860         * emulparams/aixppc64.sh : New file for xcoff64 support
3862 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
3864         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3865         variable to avoid non-portable shell construct.
3867 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3869         * ldmain.c (get_emulation): Add -mips5 command line argument.
3871 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
3873         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3874         (ELF_INTERPRETER_NAME): Define it.
3875         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3876         it.
3877         * configure.tgt (targ_emul, targ_extra_emuls)
3878         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3879         as primary, elf_i386 as extra.
3880         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3881         (eelf_i386_ldso.c): New rule.
3882         * Makefile.in: Rebuilt.
3884 2001-05-22  Nick Clifton  <nickc@redhat.com>
3886         * lexsup.c (ld_options):  Allow -I to be an alias for
3887         --dynamic-linker.  This is for Solaris compatability.
3888         * ld.texinfo: Document that -I can be used.
3889         * ld.1: Regenerate.
3891 2001-05-16  Alan Modra  <amodra@one.net.au>
3893         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3894         whether an input section is the first one assigned to an output
3895         section.
3896         Assorted formatting fixes.
3898 2001-05-14  DJ Delorie  <dj@delorie.com>
3900         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3901         * Makefile.in: Ditto.
3903 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3905         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3906         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3907         output sections.
3908         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3910 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3912         * ldlang.c (lang_process): Call bfd_merge_sections.
3914 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3916         * ldgram.y: Fix typo.
3918 2001-05-03  H.J. Lu  <hjl@gnu.org>
3920         * emultempl/elf32.em: Include "libiberty.h".
3921         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3922         basename of the bfd filename.
3923         (gld${EMULATION_NAME}_stat_needed): Likewise.
3924         (gld${EMULATION_NAME}_try_needed): Likewise.
3925         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3927 2001-05-02  H.J. Lu  <hjl@gnu.org>
3929         * emultempl/pe.em: Include <ctype.h>.
3931 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
3933         * emulparams/elf32openrisc.sh: New file.
3935         * Makefile.am: Add OpenRISC target.
3936         * Makefile.in: Regenerated.
3938         * configure.tgt: Add openrisc-*-* mapping.
3940 2001-05-02  Nick Clifton  <nickc@redhat.com>
3942         * emultempl/aix.em: Replace buystring with xstrdup.
3943         * emultempl/beos.em: Replace buystring with xstrdup.
3945 2001-05-02  H.J. Lu  <hjl@gnu.org>
3947         * ldfile.c: Include "libiberty.h".
3948         * ldlex.l: Likewise.
3950         * ldmisc.c (buystring): Removed.
3951         * ldmisc.h: Likewise.
3953         * ldfile.c: Replace buystring with xstrdup.
3954         * ldlang.c: Likewise.
3955         * ldlex.l: Likewise.
3956         * ldmain.c: Likewise.
3957         * ldmisc.c: Likewise.
3958         * lexsup.c: Likewise.
3959         * mpw-eppcmac.c: Likewise.
3961 2001-04-30  Andreas Jaeger  <aj@suse.de>
3963         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3965 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3967         * ldlang.c (load_symbols): Give emulation a chance
3968         to process unrecognized file before fatal error is
3969         reported, not after.
3971 2001-04-27  Sean McNeil <sean@mcneil.com>
3973         * configure.tgt: Add arm-vxworks target.
3974         * scripttempl/armcoff.sc: Support .text or .data as a section name
3975         prefix.
3976         Define _etext.
3978 2001-04-13  J.T. Conklin  <jtc@redback.com>
3980         * ld.texinfo: Document --fatal-warnings.
3981         * ld.1: Regenerate.
3983         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3984         warnings have been turned into errors.
3985         * lexsup.c (OPTION_WARN_FATAL): Define.
3986         (ld_options): Entry for --fatal-warnings.
3987         (parse_args): Handle OPTION_WARN_FATAL.
3988         * ld.h (ld_config_type): Add fatal_warnings field.
3990 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
3992         * ldmain.c (main): Default to discard_sec_merge.
3993         * lexsup.c (OPTION_DISCARD_NONE): Define.
3994         (ld_options): Add --discard-none.
3995         (parse_args): Handle OPTION_DISCARD_NONE.
3996         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3997         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3998         all its input sections match.
4000 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
4002         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4003         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4004         (eelf32ltsmip.c): New target.
4005         (eelf64btsmip.c): Likewise.
4006         (eelf64ltsmip.c): Likewise.
4007         * Makefile.in: Regenerated.
4009         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4010         target.
4011         (mips*-*-linux-gnu*): Likewise.
4013         * emulparams/elf32ltsmip.sh: New. Traditional little endian
4014         MIPS taget.
4015         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4016         target.
4017         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4018         endian target.
4020 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
4022         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4023         correct value of __Stext here.
4024         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4025         .startup section.
4027         * emulparams/crislinux.sh: Remove FIXME.
4029 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
4031         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4032         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4034 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
4036         * configure.tgt (cris-*-*): Change default emulation to criself.
4037         (cris-*-*aout*): New rule.
4039 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
4041         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4042         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4044 2001-03-26  Andreas Jaeger  <aj@suse.de>
4046         * ld.texinfo (Overview): Fix syntax in texi code.
4048 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4050         * ld.texinfo: Put @c man indications to generate the ld man page.
4051         When generating man, define all the variables.  Define SEEALSO
4052         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
4053         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4054         (ld.1): Generate from ld.texinfo.
4055         * Makefile.in: Regenerate.
4057 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
4059         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4060         and '-fdata-sections'. Set the VMA of STABS sections to zero.
4062 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
4064         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4065         is an absolute path look only for this file and not along the path.
4067 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
4069         * emultempl/elf32.em (OPTION_GROUP): New macro.
4070         Add new option Bgroup to longopts.
4071         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4072         (gld*_list_options): Add -Bgroup and -z defs.
4073         * ld.1: Document -Bgroup and -z defs.
4074         * ld.texinfo: Likewise.
4076 2001-03-07  Michael Meissner  <meissner@redhat.com>
4078         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4079         with sections created by -fdata-sections.
4080         (.dynbss,.bss): Ditto.
4082 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
4084         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4085         after_allocation_default, not gld..._before_allocation.
4087 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
4089         * configure.in (BFD_VERSION): New.
4090         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4091         * configure: Regenerate.
4092         * Makefile.am: Run "make dep-am"
4093         * Makefile.in: Regenerate.
4095 2001-02-26  Timothy Wall  <twall@cygnus.com>
4097         * emulparams/elf64_aix.sh: Add additional read-only sections;
4098         uncomment lines which are now required.
4100 2001-02-26  H.J. Lu  <hjl@gnu.org>
4102         * ldlang.c (open_input_bfds): Set the bfd error handler so
4103         that problems can be caught whilst loading symbols.
4104         (record_bfd_errors): New function: Report BFD errors and mark
4105         the executable output as being invalid.
4107 2001-02-22  Timothy Wall  <twall@cygnus.com>
4109         * configure.host: Add configuration for ia64-*-aix*.
4110         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4111         Add dependencies for eelf64_aix.c.
4112         * Makefile.in: Regenerate.
4113         * configure.tgt: Add ia64-*-aix* mapping.
4114         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4116 2001-02-20  H.J. Lu  <hjl@gnu.org>
4118         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4119         false if we found the file.
4121 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
4123         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4124         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4126 2001-02-18  lars brinkhoff  <lars@nocrew.org>
4128         * Makefile.am: Add PDP-11 target.
4129         * configure.tgt: Likewise.
4130         * emulparams/pdp11.sh: New file.
4132 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
4134         * configure.host: Add a generic FreeBSD configuration entry such that
4135         all [modern] FreeBSD systems on all platforms will look the same.
4137 2001-02-14  H.J. Lu  <hjl@gnu.org>
4139         * configure.tgt: Remove mention of earmelf_linux26.
4141 2001-02-13  Richard Henderson  <rth@redhat.com>
4143         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4145 2001-02-13  H.J. Lu  <hjl@gnu.org>
4147         * ldexp.h (node_type): Add etree_provided.
4148         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4149         type to etree_provided if defined by PROVIDE. Allow updating
4150         for etree_provided.
4151         (exp_print_tree): Handle etree_provided.
4152         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4153         etree_provided.
4155 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
4157         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4158         .IA_64.unwind.* pattern to unwind table section and
4159         .IA_64.unwind_info* pattern to unwind info section.
4161 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4163         * Makefile.am: Add linux target for S/390.
4164         * Makefile.in: Likewise.
4165         * configure.host: Likewise.
4166         * configure.tgt: Likewise.
4167         * emulparams/elf64_s390.sh: New file.
4168         * emulparams/elf_s390.sh: New file.
4170 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
4172         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4173         targ_extra_libpath.
4174         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4176 2001-02-06  Philip Blundell  <philb@gnu.org>
4178         * Makefile.am: Remove mention of earmelf_linux26.
4179         * Makefile.in: Regenerate.
4181 2001-02-04  Philip Blundell  <philb@gnu.org>
4183         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4184         * emulparams/armelf_linux26.sh: Delete.
4185         * configure.tgt: Remove mention of armelf_linux26 emulation.
4187 2001-02-01  Nick Clifton  <nickc@redhat.com>
4189         * ld.1: Replace occurances of -oformat with --oformat.
4191 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
4193         * ldlang.c (lang_leave_overlay): Don't set lma_region when
4194         load_base is specified.
4196 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
4198         * emultempl/elf32.em: Correct spelling in comments and listed
4199         options.
4201 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
4203         * ldlang.c (lang_leave_overlay): Only set lma_region from the
4204         default for the first section of a group of overlay sections.
4206 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
4208         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4209         * Makefile.in: Regenerate.
4210         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4211         Check for null tool_dir.
4213 2001-01-16  Jim Wilson  <wilson@redhat.com>
4215         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4216         and IA_64.unwind.info.
4218 2001-01-16  H.J. Lu  <hjl@gnu.org>
4220         * ldlang.c (lang_check): Merge the private data only if the
4221         input file has contents.
4223 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
4225         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4227         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4228         enabling search for libmilli.  On a relocatable link, make .text
4229         sections unique.
4230         (LDEMUL_AFTER_PARSE): Define.
4231         (hppaelf_finish): Correct spelling of relocatable in comments.
4233         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4234         rummage through the script for sections on the unique list.
4235         Correct length of strncmp for ".note".
4236         (gld${EMULATION_NAME}_check_needed): Rearrange function.
4238         * ldlang.c (unique_section_list): New var.
4239         (unique_section_p): New function.
4240         (walk_wild_section): Don't match sections on unique_section_list.
4241         (lang_add_unique): New function.
4242         Correct spelling of relocatable in comments.
4244         * ldlang.h (struct unique_sections): Declare.
4245         (unique_section_list): Declare.
4246         (unique_section_p): Declare.
4247         (lang_add_unique): Declare.
4249         * lexsup.c (ld_options): Allow --unique to take an optional arg.
4250         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4252         * ld.texinfo (--unique): Update.
4254 2001-01-13  Nick Clifton  <nickc@redhat.com>
4256         * lexsup.c (parse_args): Remove spurious white space.
4258 2001-01-12  Nick Clifton  <nickc@redhat.com>
4260         * lexsup.c (parse_args): Update copyright date.
4262 2001-01-12  Philip Blundell  <pb@futuretv.com>
4264         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4266 2001-01-10  Kazu Hirata  <kazu@hxi.com>
4268         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
4269         * scripttempl/h8300h.sc: Fix formatting.
4270         * scripttempl/h8300s.sc: Likewise.
4271         * scripttempl/h8500.sc: Likewise.
4272         * scripttempl/h8500b.sc: Likewise.
4273         * scripttempl/h8500c.sc: Likewise.
4274         * scripttempl/h8500m.sc: Likewise.
4275         * scripttempl/h8500s.sc: Likewise.
4277 2000-01-07  David O'Brien  <obrien@BSDi.com>
4279         * emultempl/elf32.em: Only perform Linux ld hints processing when
4280         targeting Linux.
4282 2001-01-07  Philip Blundell  <philb@gnu.org>
4284         * ld.texinfo (Bug Reporting): Update email address for reports.
4286 2000-12-31  Nick Clifton  <nickc@redhat.com>
4288         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4289         options by checking for a return value of '?' not -1.
4291 2000-12-28  Nick Clifton  <nickc@redhat.com>
4293         * lexsup.c (struct ld_option): Add new enum value:
4294         EXACTLY_TWO_DASHES.
4295         (ld_options[]): Change -omagic, -output and -oformat options
4296         to be EXACTLY_TWO_DASHES.
4297         (OUTPUT_COUNT): Use ARRAY_SIZE.
4298         (parse_args): Change parameter 'argc' to unsigned.
4299         Place EXACTLY_TWO_DASHES options into new really_longopts
4300         array.
4301         If getopt_long_only fails, try calling getopt_long using the
4302         really_longopts array.
4303         (help): Print a double dash for both EXACTLY_TWO_DASHES and
4304         TWO_DASHES options.
4306         * ldlex.h: Fix prototype of parse_args.
4308         * ld.texinfo: Document that long options starting with 'o'
4309         must be preceeded by two dashes.  Change example of a single
4310         dashed long option from -oformat to -trace-symbol.
4312 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4314         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4315         (longopts[]): New --no-default-excludes option.
4316         (gld_${EMULATION_NAME}_list_options): Document.
4317         (gld_${EMULATION_NAME}_parse_args): Handle.
4319 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4321         * ldlang.c (new_stat): Revert the last beautification with "innocent"
4322         whitespace, it breaks the K&R C preprocessor.
4324 2000-12-11  DJ Delorie  <dj@redhat.com>
4326         * ld.texinfo: Add notes about --whole-archive and gcc.
4328 2000-11-18  Fred Fish  <fnf@be.com>
4330         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4331         (ld_options): Entry for --allow-shlib-undefined.
4332         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4333         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4334         to false.
4335         * ld.texinfo: Document new command line switch.
4337 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
4339         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4340         .fixup is actually read/write.
4341         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4342         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4343         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4345 2000-12-11  Jan Hubicka  <jh@suse.cz>
4347         * NEWS: Add note about x86_64 architecture.
4349 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
4351         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4352         Set DWARF2 sections to a VMA of zero.
4354 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
4356         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4357         New targets.
4358         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4359         (sparc*-*-rtems*): Switched from a.out to ELF.
4361 2000-11-30  Jan Hubicka  <jh@suse.cz>
4363         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4364         (eelf_x86_64.c): New.
4365         * Makefile.in: Regenerate.
4366         * configure.tgt: Add support for x86_64-*-linux-gnu*.
4367         * emulparams/elf_x86_64.sh: New.
4369 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
4371         * emulparams/crislinux.sh (ENTRY): Change back to _start.
4372         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4374         * scripttempl/crisaout.sc: Change all RELOCATING not related to
4375         merging non-a.out sections into CONSTRUCTING.
4377 2000-11-28  Nick Clifton  <nickc@redhat.com>
4379         * ld.1 (COPYING): Mention that the GNU Free Documentation
4380         License is present in the sources, but not the output, and
4381         also available from the GNU website.
4382         (GNU Free Documentation License): Comment out this section.
4384 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
4386         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4387         does not use them.
4389 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
4391         * ld.1: Remove old date so it does not give the impression the manpage
4392         is way out of date.
4394 2000-11-24  Nick Clifton  <nickc@redhat.com>
4396         * configure.tgt (xscale-coff): Add target.
4397         (xscale-elf): Add target.
4399 2000-11-24  Fred Fish  <fnf@be.com>
4401         * ldmain.c (main): Remove redundant init of config.make_executable
4402         to true.
4404 2000-11-15  Richard Henderson  <rth@redhat.com>
4406         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4408 2000-11-14  Kazu Hirata  <kazu@hxi.com>
4410         * scripttempl/h8300.sc: Fix formatting.
4411         * scripttempl/h8300h.sc: Likewise.
4412         * scripttempl/h8300s.sc: Likewise.
4414 2000-11-14  Denis Chertykov  <denisc@overta.ru>
4416         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4418 2000-11-09  Philip Blundell  <pb@futuretv.com>
4420         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4421         around orphan sections whose names can be represented in C.
4423 2000-11-07  Jim Wilson  <wilson@redhat.com>
4425         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4426         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
4428 2000-11-06  Nick Clifton  <nickc@redhat.com>
4430         * ld.texinfo: Add GNU Free Documentation License.
4431         * ldint.texinfo: Add GNU Free Documentation License.
4432         * ld.1: Add GNU Free Documentation License.
4434 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
4436         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4437         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4439         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4440         Move 2000-11-02 Makefile.in changes to this file.
4441         * Makefile.in: Regenerate.
4443 2000-11-03  Nick Clifton  <nickc@redhat.com>
4445         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4446         constructors and destructors.
4447         * scripttempl/h8300h.sc: Ditto.
4448         * scripttempl/h8300s.sc: Ditto.
4449         * scripttempl/h8500.sc: Ditto.
4450         * scripttempl/h8500b.sc: Ditto.
4451         * scripttempl/h8500c.sc: Ditto.
4452         * scripttempl/h8500m.sc: Ditto.
4453         * scripttempl/h8500s.sc: Ditto.
4454         * scripttempl/v850.sc: Ditto.
4455         * scripttempl/w65.sc: Ditto.
4456         * scripttempl/z8000.sc: Ditto.
4458 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
4460         * Makefile.in (e_i386_chaos.c): New rule.
4461         (ALL_EMULATIONS): Added e_i386_chaos.o.
4462         * emulparams/elf_i386_chaos.sh: New file.
4463         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4465 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
4467         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4468         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4469         Fix sed invocation, so that it coped with '/' in Solaris 64bit
4470         library path suffix.
4471         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4473 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
4475         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4476         for consecutive sections.
4478 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
4480         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4481         options.
4482         * ld.texinfo: Added notes about this new option.
4484 2000-10-16  Nick Clifton  <nickc@redhat.com>
4486         * emultempl/pe.em (_after_open): Add tests of return values from
4487         bfd functions.  Emit appropriate error messages if necessary.
4489 2000-10-13  Nick Clifton  <nickc@redhat.com>
4491         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4492         local variables - they are not used, but leave in the call to
4493         bfd_canonicalize_symtab.
4494         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4495         pe_dll_search_prefix.
4497 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
4499         * emultempl/pe.em (pe_dll_search_prefix): New variable,
4500         (longopts): New --dll-search-prefix option.
4501         (gld_${EMULATION_NAME}_list_options): Document.
4502         (gld_${EMULATION_NAME}_parse_args): Handle.
4503         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4504         dynamically, search for a dll named '<prefix><basename>.dll'
4505         in preference to 'lib<basename>.dll' if --dll-search-prefix
4506         is specified.
4508 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
4510         * ldlang.c (section_already_linked): Set kept_section instead of
4511         sec->comdat->sec.
4513 2000-10-10  Kazu Hirata  <kazu@hxi.com>
4515         * deffile.h: Fix formatting.
4516         * lexsup.c: Likewise.
4517         * mri.c: Likewise.
4519 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
4521         * pe-dll.c (make_one): Do not generate code thunk for DATA
4522         exports.
4523         (process_def_file): deduce DATA flag for auto-export sumbols.
4525 2000-10-09  Kazu Hirata  <kazu@hxi.com>
4527         * ld.h: Fix formatting.
4528         * ldcref.c: Likewise.
4529         * ldctor.h: Likewise.
4530         * ldemul.c: Likewise.
4531         * ldemul.h: Likewise.
4532         * ldexp.c: Likewise.
4533         * ldexp.h: Likewise.
4534         * ldfile.c: Likewise.
4535         * ldfile.h: Likewise.
4536         * ldlang.c: Likewise.
4537         * ldlang.h: Likewise.
4538         * ldmain.c: Likewise.
4539         * pe-dll.c: Likewise.
4541         * pe-dll.c: Revert some formatting fixes.
4543 2000-10-08  Kazu Hirata  <kazu@hxi.com>
4545         * pe-dll.c: Fix formatting.
4547 2000-10-05  Kazu Hirata  <kazu@hxi.com>
4549         * ldlang.c: Fix formatting.
4551 2000-10-03  DJ Delorie  <dj@redhat.com>
4553         * pe-dll.c (fill_edata): initialize entire block
4554         (make_one): fill in correct section.
4556 2000-10-03  Kazu Hirata  <kazu@hxi.com>
4558         * ldexp.c: Fix formatting.
4560 2000-10-02  DJ Delorie  <dj@redhat.com>
4562         * emultempl/pe.em (gld_*_after_open): detect case where there two
4563         import libraries for same dll; rename one to ensure proper link
4564         order.
4566         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4567         typo
4568         (generate_edata): fix typo
4570 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
4572         * scripttempl/crisaout.sc (ENTRY): Now __start.
4573         (.text): Add default setting for __start.
4574         Remove CONSTRUCTORS handling.
4575         (/DISCARD/): Add .gnu.warning.*.
4576         * emulparams/crislinux.sh (ENTRY): Now __start.
4577         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4578         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4579         (ENTRY): Now __start.
4580         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4581         (EXECUTABLE_SYMBOLS): Add default setting for __start.
4583 2000-09-29  Kazu Hirata  <kazu@hxi.com>
4585         * deffile.h: Fix formatting.
4586         * ld.h: Likewise.
4587         * ldcref.c: Likewise.
4588         * ldctor.c: Likewise.
4589         * ldctor.h: Likewise.
4590         * ldemul.c: Likewise.
4591         * ldemul.h: Likewise.
4592         * ldexp.c: Likewise.
4593         * ldexp.h: Likewise.
4594         * ldfile.c: Likewise.
4595         * ldfile.h: Likewise.
4596         * ldlang.c: Likewise.
4597         * ldlang.h: Likewise.
4598         * lexsup.c: Likewise.
4599         * mri.c: Likewise.
4600         * pe-dll.c: Likewise.
4602 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
4604         * pe-dll.c (process_def_file): Uninitialized data wasn't
4605         exported with --export-all-symbols switch.
4607 2000-09-28  DJ Delorie  <dj@redhat.com>
4609         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4610         noname work properly.
4612 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
4614         * ld.texinfo (HPPA ELF32): New section.
4616         * emultempl/hppaelf.em (group_size): New.
4617         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4618         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4619         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
4620         options to prevent abbreviations matching.
4621         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
4622         (PARSE_AND_LIST_ARGS_CASES): Handle it.
4624 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4626         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4627         on the m68*-*-elf target.  Make it support COFF input objects.
4629 2000-09-21  Kazu Hirata  <kazu@hxi.com>
4631         * ldmain.c: Fix formatting.
4632         * ldmisc.c: Likewise.
4633         * ldver.c: Likewise.
4634         * ldwrite.c: Likewise.
4636 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
4638         * ldwrite.c (clone_section): Silence gcc warnings.
4640 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
4642         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4643         out of memory failure.
4645         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4646         (clone_section): Handle out of memory failures.  Rename var to
4647         avoid c++ reserved word.
4649 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
4651         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4652         stub_name param to stub_sec_name.
4653         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4655 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4657         * emultempl/m68kelf.em: New file.
4658         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4659         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4660         * Makefile.in: Regenerate.
4662 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
4664         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4665         only as needed.
4667 2000-09-13  Nick Clifton  <nickc@redhat.com>
4669         * ldmain.c (multiple_definition): Disable relaxation if
4670         multiple symbol definitions are encountered - otherwise the
4671         linker could abort with an assertion failure.
4673 2000-09-10  Nick Clifton  <nickc@redhat.com>
4675         * mri.c: Fix formatting.
4677 2000-09-07  H.J. Lu  <hjl@gnu.org>
4679         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4680         * configure: Rebuild.
4682 2000-09-07  H.J. Lu  <hjl@gnu.org>
4684         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4685         * Makefile.in: Rebuild.
4687 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
4689         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4690         broken list handling.  Create __start_SECNAME and __stop_SECNAME
4691         when no place-holder.  Add some comments.  Test both SEC_CODE and
4692         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4693         Handle case where no output section statement created.
4695 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
4697         * configure.tgt (sh-*-linux*): Added.
4698         * Makefile.am: Added eshelf_linux and eshlelf_linux.
4699         * Makefile.in: Rebuilt.
4700         * emulparams/shelf_linux.sh: New file.
4701         * emulparams/shlelf_linux.sh: New file.
4703 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
4705         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4706         try shuffling sections when the orphan happens to be the place
4707         holder.  Keep count of unique section names generated so we speed
4708         the search for a new name.
4710 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
4712         * configure: Rebuilt with new libtool.m4.
4714 2000-09-05  Nick Clifton  <nickc@redhat.com>
4716         * Makefile.in: Regenerate.
4717         * aclocal.m4: Regenerate.
4718         * configure: Regenerate.
4719         * config.in: Regenerate.
4720         * po/ld.pot: Regenerate.
4722         * ldint.texinfo: Remove CVS revision marker - it foils local
4723         comparisons.
4725         * emultempl/ticoff.em: Remove extraneous comma.
4727 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
4729         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4730         to stub section flags.
4731         (hppa_for_each_input_file_wrapper): New.
4732         (hppa_lang_for_each_input_file): New.
4733         (lang_for_each_input_file): Define to call above.
4734         (multi_subspace): New.
4735         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4736         (PARSE_AND_LIST_PROLOGUE): Define.
4737         (PARSE_AND_LIST_LONGOPTS): Define.
4738         (PARSE_AND_LIST_OPTIONS): Define.
4739         (PARSE_AND_LIST_ARGS_CASES): Define.
4740         (hppaelf_finish): Call elf32_hppa_set_gp.
4741         (hppaelf_set_output_arch): Remove.
4742         (LDEMUL_SET_OUTPUT_ARCH): Remove.
4744         * emulparams/hppalinux.sh (ELFSIZE): Define.
4745         (MACHINE): Define.
4746         (OTHER_READONLY_SECTIONS): Define.
4747         (DATA_PLT): Define.
4748         (GENERATE_SHLIB_SCRIPT): Define.
4750         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
4751         to const throughout.  Change `void *' to `PTR' throughout.
4752         (lang_memory_default): Function is local to file, add `static'.
4754         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4755         (ehppalinux.c): Likewise.
4756         (earmelf.c): Likewise.
4757         (earmelf_linux.c): Likewise.
4758         (earmelf_linux26.c): Likewise.
4759         * Makefile.in: Regenerate.
4761         * ld.h (ld_config_type): Add unique_orphan_sections.
4762         * lexsup.c (OPTION_UNIQUE): Define.
4763         (ld_options): Add "--unique".
4764         (parse_args): Handle it.
4765         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4766         search for an existing output section if unique_orphan_sections is
4767         set.  Make use of bfd_get_unique_section_name rather than
4768         duplicating code here.
4769         * ld.texinfo: Describe --unique.
4771         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4772         optional arg to split-by-file.
4773         (parse_args): Handle them.
4774         * ld.texinfo: Update description of these options.
4775         * ldwrite.c (clone_section): Pass in the section name.  Replace
4776         local code with bfd_get_unique_section_name.
4777         (split_sections): Tidy code and comments.  Use a list traversal
4778         more appropriate to the list construction.  Handle cooked section
4779         sizes.  Split when split_by_reloc reached rather than exceeded.
4780         Track section size and split when split_by_file reached.  Fix
4781         link_order_tail (even though it's not used).
4782         (ldwrite): Modify condition for calling split_sections to suit
4783         changed split_by_reloc and split_by_file.
4784         * ldmain.c (main): Init config.split_by_reloc and
4785         config.split_by_file to -1.
4786         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4787         Change split_by_file to bfd_size_type.
4789 2000-09-02  Nick Clifton  <nickc@redhat.com>
4791         * configure.in: Increase version number to 2.10.91.
4792         * NEWS: Mention new ability to support removal of duplicate DWARF2
4793         debug information.
4794         * configure: Regenerate.
4795         * aclocal.m4: Regenerate.
4796         * config.in: Regenerate.
4798 2000-09-02  Daniel Berlin <dberlin@redhat.com>
4800         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4801         sections.
4802         * scripttempl/elf32avr.sc: Ditto.
4803         * scripttempl/elfd10v.sc: Ditto.
4804         * scripttempl/elfd30v.sc: Ditto.
4805         * scripttempl/elfi370.sc: Ditto.
4806         * scripttempl/elfm68hc11.sc: Ditto.
4807         * scripttempl/elfm68hc12.sc: Ditto.
4808         * scripttempl/elfi386beos.sc: Ditto.
4809         * scripttempl/v850.sc: Ditto.
4811 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
4813         * acinclude.m4: Include libtool and gettext macros from the
4814         top level.
4815         * aclocal.m4, configure: Rebuilt.
4817 2000-08-25  Nick Clifton  <nickc@redhat.com>
4819         * ldlang.c (open_output): When choosing the target for a
4820         particular endianness, do nothing if the target is not
4821         supported.
4823 2000-08-25  H.J. Lu  <hjl@gnu.org>
4825         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4826         check -rpath nor LD_RUN_PATH for cross link.
4827         * ld.texinfo: Document the change.
4829 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
4831         * NEWS: Mention support for CRIS.
4833 2000-08-23  H.J. Lu  <hjl@gnu.org>
4835         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4836         the current runpath list from bfd_elf_get_runpath_list ()
4837         before search.
4839 2000-08-22  H.J. Lu  <hjl@gnu.org>
4841         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4842         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4843         LD_LIBRARY_PATH for native linker. Display the needed DSO if
4844         trace_file_tries is non-zero.
4845         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4846         if trace_file_tries is non-zero.
4848         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4849         * NEWS: Mention it.
4851 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
4853         * NEWS: Mention i860 support.
4855 2000-08-14  Andreas Schwab  <schwab@suse.de>
4857         * scripttempl/elf.sc: Fix last change to use correct comment
4858         syntax.
4860 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
4862         * scripttempl/elf.sc: Add a comment giving the correspondence
4863         between sections, per-datum sections, and linkonce sections.  Make
4864         the comment true even for .bss, .sdata, .sdata2, .sbss, and
4865         .sbss2.
4867 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
4869         * emulparams/elf32_i860.sh: New file.
4870         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4871         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4872         (eelf32_i860.c): New rule.
4873         * Makefile.in: Regenerate.
4875 2000-08-10  Nick Clifton  <nickc@cygnus.com>
4877         * emulparams/mipspe.sh (ENTRY): Add definition.
4879 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
4881         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4882         in error message.
4884 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4886         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4887         the final size of .bss section.
4888         * scripttempl/elfm68hc12.sc: Likewise.
4890 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
4892         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4893         gld${EMULATION_NAME}_parse_args for consistency.  Combine
4894         lastoptind and prevoptind vars, and keep track of last optind.
4895         (gld_${EMULATION_NAME}_list_options): Rename to
4896         gld${EMULATION_NAME}_list_options.
4898 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
4900         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4901         (i586-sco-sysv5uw7.1.0).
4903 2000-07-27  H.J. Lu  <hjl@gnu.org>
4905         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4906         (PARSE_AND_LIST_PROLOGUE): New.
4907         (PARSE_AND_LIST_LONGOPTS): Likewise.
4908         (PARSE_AND_LIST_OPTIONS): Likewise.
4909         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4910         (PARSE_AND_LIST_EPILOGUE): Likewise.
4912 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
4914         * emultempl/armelf.em: Elide functions common to elf32.em,
4915         ie. most of the file.
4916         (arm_elf_after_open): New.  Do arm specific things then call
4917         gld${EMULATION_NAME}_after_open.
4918         (arm_elf_before_allocation): New.  Call
4919         gld${EMULATION_NAME}_before_allocation then do arm specifics.
4920         (PARSE_AND_LIST_PROLOGUE): Define.
4921         (PARSE_AND_LIST_SHORTOPTS): Define.
4922         (PARSE_AND_LIST_LONGOPTS): Define.
4923         (PARSE_AND_LIST_OPTIONS): Define.
4924         (PARSE_AND_LIST_ARGS_CASES): Define.
4925         (LDEMUL_AFTER_OPEN): Define.
4926         (LDEMUL_BEFORE_ALLOCATION): Define.
4927         (LDEMUL_BEFORE_PARSE): Define.
4928         (LDEMUL_FINISH): Define.
4930         * emultempl/hppaelf.em: Similarly zap most of this file.
4931         (hppaelf_add_stub_section): Prototype.
4932         (hppaelf_layaout_sections_again): Prototype.
4933         (hook_in_stub): Prototype.
4934         (LDEMUL_SET_OUTPUT_ARCH): Define.
4935         (LDEMUL_FINISH): Define.
4936         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4938         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4939         (EXTRA_EM_FILE): New.
4940         * emulparams/armelf_linux.sh: Likewise.
4941         * emulparams/armelf_linux26.sh: Likewise.
4942         * emulparams/hppalinux.sh: Likewise.
4943         * emulparams/hppaelf.sh: Likewise.
4944         (NOP): Define.
4946         * emultempl/elf32.em: Fix formatting.
4947         (EXTRA_EM_FILE): Source it.
4948         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4949         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4950         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4951         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4952         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4953         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4954         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4955         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4956         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
4957         allow functions in this file to be overridden.
4958         (PARSE_AND_LIST_SHORTOPTS): Handle it.
4960         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4962         * emultempl/elf32.em: Reorganize file.
4964 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
4966         * emulparams/elf64alpha.sh: Implement "-taso" emulation
4967         specific option to fit 64-bit executable in the lower
4968         31-bit address range.  This is done by changing start
4969         address of .interp (the very first section of executable)
4970         and then setting EF_ALPHA_32BIT elf header flag.
4972 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4974         * emultempl/m68kcoff.em: New file.
4975         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4976         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4977         generic.em.
4978         * Makefile.in: Regenerate.
4980 2000-07-20  H.J. Lu  <hjl@gnu.org>
4982         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4983         and "disable-new-dtags" to stop getopt from treating -d/-e as
4984         abbreviations for these options.
4986 2000-07-20  H.J. Lu  <hjl@gnu.org>
4988         * ld.texinfo: Add documentation for --disable-new-dtags and
4989         --enable-new-dtags.
4991         * ldmain.c (main): Initialize link_info.new_dtags to false.
4993         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4994         --disable-new-dtags and --enable-new-dtags.
4995         (gld_${EMULATION_NAME}_list_options): Likewise.
4997 2000-07-05  Kenneth Block  <krblock@computer.org>
4999         * lexsup.c: Add optional style to demangle switch
5000         * ld.texinfo: Document optional style to demangle switch.
5002 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
5004         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5005         ecrislinux.o.
5006         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5007         Regenerate dependencies.
5008         * Makefile.in: Rebuild.
5009         * configure.tgt (cris-*-*): New target.
5010         * emulparams/crisaout.sh, emulparams/criself.sh,
5011         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5012         * po/POTFILES.in, po/ld.pot: Regenerate.
5014 2000-07-20  H.J. Lu  <hjl@gnu.org>
5016         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5017         Print out ignored -z options.
5019 2000-07-19  H.J. Lu  <hjl@gnu.org>
5021         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5022         (PARSE_AND_LIST_PROLOGUE): New.
5023         (PARSE_AND_LIST_LONGOPTS): Likewise.
5024         (PARSE_AND_LIST_OPTIONS): Likewise.
5025         (PARSE_AND_LIST_ARGS_CASES): Likewise.
5027         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5029         * lexsup.c (ld_options): Comment out 'z'.
5030         (parse_args): Likewise.
5032         * emultempl/elf32.em: Include "elf/common.h".
5033         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5034         options.
5035         (gld_${EMULATION_NAME}_list_options): Likewise.
5037         * ld.texinfo: Add documentation for the recognized -z options.
5039 2000-07-19  H.J. Lu  <hjl@gnu.org>
5041         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5042         bfd_elf_set_dt_needed_soname ().
5044 2000-07-18  DJ Delorie  <dj@cygnus.com>
5046         * pe-dll.c (pe_dll_id_target): check object target name also
5048 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
5050         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5051         ${INIT_END} if relocating.
5052         (.fini): Likewise ${FINI_START} and ${FINI_END}.
5054 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
5056         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5057         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5058         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5059         errors introduced by the old dynamic lib search order.
5061 2000-07-17  DJ Delorie  <dj@cygnus.com>
5063         * pe-dll.c (process_def_file): auto-export data items also
5064         (pe_process_import_defs): also see if _imp_ form needed
5066 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
5068         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5069         for dll import libraries
5071 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
5073         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5074         gcc 2.95.2 and later.
5076 2000-07-11  Kazu Hirata  <kazu@hxi.com>
5078         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5079         message.
5081 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
5083         * ldemul.h (struct lang_input_statement_struct): Remove forward
5084         declaration.
5085         (struct search_dirs): Likewise.
5086         * ldfile.h (struct lang_input_statement_struct): Likewise.
5087         Protect file from multiple inclusion.
5088         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5089         declaration from macro to file scope.
5091         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5092         * ldgram.y: Likewise here.
5093         * ldlang.c: And here.
5094         * ldmain.c: And here.
5095         * mpw-elfmips.c: And here.
5096         * mpw-eppcmac.c: And here.
5097         * emultempl/aix.em: And here.
5098         * emultempl/armcoff.em: And here.
5099         * emultempl/armelf.em: And here.
5100         * emultempl/armelf_oabi.em: And here.
5101         * emultempl/beos.em: And here.
5102         * emultempl/elf32.em: And here.
5103         * emultempl/hppaelf.em: And here.
5104         * emultempl/linux.em: And here.
5105         * emultempl/lnk960.em: And here.
5106         * emultempl/pe.em: And here.
5107         * emultempl/sunos.em: And here.
5108         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5109         * mpw-idtmips.c: Ditto.
5110         * emultempl/generic.em: Ditto.
5111         * emultempl/gld960.em: Ditto.
5112         * emultempl/gld960c.em: Ditto.
5113         * emultempl/mipsecoff.em: Ditto.
5114         * emultempl/ticoff.em: Ditto.
5115         * emultempl/vanilla.em: Ditto.
5117         * pe-dll.c: Include ldfile.h
5118         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5120         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5121         arguments to bfd_elf32_size_dynamic_sections call.
5122         (gldelf32ebmip_place_orphan): Add missing arguments to
5123         lang_leave_output_section_statement call.
5125 2000-07-10  H.J. Lu  <hjl@gnu.org>
5127         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5128         DLL_SUPPORT.
5129         (strhash): Likewise.
5130         (compute_dll_image_base): Likewise.
5131         (pe_undef_found_sym): Likewise.
5132         (pe_undef_cdecl_match): Likewise.
5133         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5134         argument "arch" with ATTRIBUTE_UNUSED.
5136 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
5138         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5140         From  Ryan Bradetich  <rbradetich@uswest.net>
5141         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5143 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
5145         Changes to create multiple linker stubs, positioned immediately
5146         before the section where they are required.
5147         * emultempl/hppaelf.em: Include elf32-hppa.h.
5148         (stub_sec, file_chain): Delete.
5149         (hppaelf_create_output_section_statements): Don't make a stub
5150         section here.
5151         (hook_stub_info): New struct.
5152         (hook_in_stub): New function.
5153         (hppaelf_add_stub_section): New function.
5154         (hppaelf_finish): Do nothing for relocateable links.  Modify the
5155         call to elf32_hppa_size_stubs.  Move code for updating section
5156         layout from here...
5157         (hppaelf_layaout_sections_again): ..to here, a new function.
5159         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5160         broken list handling.  Pass in a pointer to the list.
5161         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5162         for above changes.
5163         (hppaelf_before_parse): Prototype.
5164         (hppaelf_set_output_arch): Prototype.
5165         (hppaelf_create_output_section_statements): Prototype.
5166         (hppaelf_delete_padding_statements): Prototype.
5167         (hppaelf_finish): Prototype.
5169         Merge from elf32.em
5170         * emultempl/hppaelf.em: Include ctype.h.
5171         (struct orphan_save): New.
5172         (gld${EMULATION_NAME}_place_orphan): New.
5173         (output_rel_find): New.
5174         (hppaelf_get_script): Update from elf32.em.
5175         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5176         Change emulation_name field to "${EMULATION_NAME}".  Add
5177         gld${EMULATION_NAME}_place_orphan.
5179         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
5180         ehppalinux.o, sort it.  Regenerate dependencies.
5181         (ehppalinux.c): Depend on hppaelf.em
5182         * Makefile.in: Regenerate.
5184         * configure.tgt: targ_emul=hppalinux for hppa*linux
5186         * emulparams/hppalinux.sh: New.
5187         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5189 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
5191         * lexsup.c (parse_args): Copy section name.
5193 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
5195         * emultempl/pe.em: institute the following search order for
5196         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5197         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
5198         static lib (libfoo.a) if none of the above are found.
5200 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
5202         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5203         (longopts): New --{enable,disable}-auto-image-base options.
5204         (gld_${EMULATION_NAME}_list_options): Document.
5205         (gld_${EMULATION_NAME}_parse): Handle.
5206         (strhash): New static function.
5207         (compute_dll_image_base): New static function.
5208         (gld_${EMULATION_NAME}_set_symbols): Use.
5210 2000-07-05  DJ Delorie  <dj@redhat.com>
5212         * MAINTAINERS: new
5214 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
5216         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5217         * emulparams/elf32btsmip.sh: New file.
5218         * Makefile.am: Add traditional mips target.
5219         * Makefile.in: Rebuild.
5221 2000-07-01  H.J. Lu  <hjl@gnu.org>
5223         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5224         automake to use YLWRAP.
5225         * Makefile.in: Rebuild.
5227 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
5229         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
5230         (CLEANFILES): Add DEPA.
5231         * Makefile.in: Regenerate.
5233 2000-06-30  Timothy Wall  <twall@ppc>
5235         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5236         the page in the upper octet of the address.
5238 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
5240         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5242 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
5244         * NEWS: arm-elf does --gc-sections too.
5246 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
5248         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5249         find one.
5250         * Makefile.in: Regenerate.
5252 2000-06-21  H.J. Lu  <hjl@gnu.org>
5254         * Makefile.am: Rebuild dependency.
5255         * Makefile.in: Rebuild.
5257 2000-06-20  H.J. Lu  <hjl@gnu.org>
5259         * Makefile.am: Rebuild dependency.
5260         * Makefile.in: Rebuild.
5262 2000-06-20  Timothy Wall  <twall@cygnus.com>
5264         * scripttempl/tic54xcoff.sc: New.
5265         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5266         * gen-doc.texi: Add flag for TI COFF.
5267         * ld.texinfo: Add documentation for TI COFF handling switches.
5268         * emultempl/ticoff.em: New. TI COFF handling.
5269         * configure.tgt: Add tic54x target.
5270         * Makefile.am: Add tic54x target.
5271         * Makefile.in: Ditto.
5273 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
5275         * ldmain.c (set_scripts_dir): Correct pointer comparison when
5276         checking for backslashes.
5278 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
5280         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5282 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
5284         * NEWS: Update list of targets supporting --gc-sections.
5286         * scripttempl/elf.sc: KEEP .eh_frame contents.
5287         * scripttempl/elfd30v.sc: Same here.
5289 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
5291         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5292         and m68hc11 (elf).
5293         * Makefile.in: Rebuild.
5294         * configure.tgt: Recognize m68hc12 and m68hc11.
5295         * scripttempl/elfm68hc12.sc: New file.
5296         * emulparams/m68hc12elfb: New emulation.
5297         * emulparams/m68hc12elf: New emulation.
5298         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
5299         (includes a memory.x script to define the ROM and RAM banks).
5300         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5301         New configuration files for support of Motorola 68hc11
5303 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
5305         * ldmain.c (main): Only change SEC_READONLY for final link.
5307 2000-06-13  H.J. Lu  <hjl@gnu.org>
5309         * configure: Regenerate.
5311 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
5313         * configure.in (VERSION): Update to show this is the CVS mainline.
5315 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5317         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5318         input objects to be ECOFF.
5319         (check_sections): einfo takes %B, not %P, to print a BFD name.
5321 2000-06-05  Michael Matz <matz@ifh.de>
5323         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5324         version scripts.
5326         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5328 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
5330         * emulparams/avr1200.sh (STACK): Define as 0.
5331         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5332         * emulparams/avr4433.sh (STACK): Likewise.
5333         * emulparams/avr44x4.sh (STACK): Likewise.
5334         * emulparams/avr85xx.sh (STACK): Likewise.
5335         * emulparams/avrmega103.sh (STACK): Likewise.
5336         * emulparams/avrmega161.sh (STACK): Likewise.
5337         * emulparams/avrmega603.sh (STACK): Likewise.
5338         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5339         (__stack): Define from ${STACK} for main().
5341 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
5343         * Makefile.am: Update dependencies with "make dep-am"
5344         * Makefile.in: Regenerate.
5346 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
5348         * ldmain.c: Include filenames.h.
5349         (set_scripts_dir): Support backslashes in program name.
5351 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
5353         * ldmain.c (main): When deciding if ".text" section should be
5354         read-only, don't forget to reset SEC_READONLY because it
5355         could be already set.
5357 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
5359         * ld.1: Add documentation for new command line option:
5360                 --section-start <sectionname>=<sectionorg>
5361         This is a generic version of -Ttext etc. which accepts
5362         any section name as a parameter instead of just text/data/
5363         bss.
5364         * ld.texinfo: More docs.
5365         * NEWS: More docs.
5366         * lexsup.c: (parse_args): Recognize new command line option.
5367         (ld_options): Add new option.
5369 2000-05-18  H.J. Lu  <hjl@gnu.org>
5371         * lexsup.c (parse_args): `i' == `r', not `q'.
5373 2000-05-18  Jeffrey A Law  (law@cygnus.com)
5375         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5377 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
5378               Rick Gorton          <gorton@scrugs.lkg.dec.com>
5380         Add support for '-q' == '--emit-relocs' switch.
5381         * ldmain.c (main): Default to false.
5382         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5383         * NEWS: Describe the emitrelocations switch.
5384         * ld.texinfo: Describe the emitrelocations switch.
5386 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
5388         * emultempl/pe.em (_open_dynamic_archive): New function: Search
5389         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5390         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5391         link options.
5393 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
5395         * lexsup.c (parse_args): Update the year in the copyright notice.
5397 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
5399         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5400         Replace defines with those from intl/libgettext.h to quieten gcc
5401         warnings.
5403 2000-05-10  H.J. Lu  <hjl@gnu.org>
5405         * ldlang.c (open_input_bfds): Don't load the same file within
5406         a group again if the whole archive has been loaded already.
5408 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
5410         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5411         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5412         strtoul.
5414 2000-05-01  Jim Wilson  <wilson@cygnus.com>
5416         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5418         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5419         host "ia64-*-linux-gnu*".
5421 2000-04-29  Andreas Jaeger  <aj@suse.de>
5423         * ld.h: Correctly check GCC version.
5425 2000-04-25  Jeffrey A Law  (law@cygnus.com)
5427         * Makefile.am: Add PA64 support.  Add missing dependencies for
5428         PA32 elf support.
5429         * Makefile.in: Rebuilt.
5430         * configure.tgt: Add PA64 support (currently disabled).
5432 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
5434         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5435         (output_rel_find): New function.
5436         (hold_section, hold_use): Delete.
5437         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5438         hold_interp): Make local to place_orphan.
5439         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5440         rather than place_section to find possible previous use of orphan.
5441         Similarly find the place-holder output sections.  Use returned
5442         value from lang_enter_output_section_statement rather than calling
5443         lang_output_section_statement_lookup.
5444         * emultempl/armelf.em: Same here.
5445         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5447         * ldlang.c (lang_enter_output_section_statement): Return output
5448         section statement.
5449         * ldlang.h (lang_enter_output_section_statement): Change
5450         declaration too.
5452         * ldlang.h (lang_output_section_statement): Export it.
5453         * ldlang.c (lang_output_section_statement): Ditto.
5455 2000-04-24  Nick Clifton  <nickc@cygnus.com>
5457         * ld.texinfo (Output Section Data): Add note that section data
5458         commands cannot appear outside of section directives.
5460 2000-04-2  Matthew Green  <mrg@cygnus.com>
5462         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5464 2000-04-21  Richard Henderson  <rth@cygnus.com>
5465             David Mosberger  <davidm@hpl.hp.com>
5467         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5468         (eelf64_ia64.c): New rule.
5469         * Makefile.in: Rebuild.
5470         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5471         * emulparams/elf64_ia64.sh: New file.
5473 2000-04-21  Richard Henderson  <rth@cygnus.com>
5475         * scripttempl/elfd30v.sc: Place .gcc_except_table.
5477 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
5479         * dep-in.sed: Match space at start of file name, not at end.
5481 2000-04-18  H.J. Lu  <hjl@gnu.org>
5483         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5484         lang_leave_output_section_statement () after calling
5485         lang_enter_output_section_statement ().
5486         * emultempl/armelf.em: Likewise.
5488 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
5490         * emultempl/elf32.em (struct orphan_save): Add section field.
5491         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5492         better order, and place first orphan section as we did before the
5493         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
5494         Don't call make_bfd_section here, let wild_doit do the job for us.
5495         Don't build a statement list when we'll only throw it away.
5496         * emultempl/armelf.em: Ditto.
5497         * emultempl/pe.em: Similarly.
5499 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
5501         * scripttempl/elfppc.sc: Remove.
5502         * emulparams/elf32ppc.sh: Use elf.sc.
5503         * emulparams/elf32lppc.sh: Use elf.sc.
5504         * emulparams/elf32ppclinux.sh: Use elf.sc.
5505         * emulparams/elf32ppcsim.sh: New file.
5506         * emulparams/elf32lppcsim.sh: New file.
5507         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
5508         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5509         * Makefile.in: Regenerate.
5510         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5512 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
5514         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5515         ~SEC_ALLOC sections too.  Init start address of debug sections.
5516         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5517         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5518         Also set all relocateable section start addresses.
5520 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
5522         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5523         Add new BSS_PLT variable for when .plt need not be contained in
5524         the file.  Move _etext so that it is also after .fini, and provide
5525         both etext and _etext with a leading underscore.  Mark the start
5526         and end of .sbss.
5528 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
5530         * emultempl/elf32.em (struct orphan_save): New.
5531         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5532         hold_interp): Make them struct orphan_save.
5533         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5534         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5535         the end of the relevant section list.  Also add associated section
5536         statements to the end of any previous orphan statements.
5537         * emultempl/armelf.em: Similarly.
5538         * emultempl/pe.em: Similarly.
5540 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
5542         * ld.texinfo (Simple Example): Remove extraneous paragraph.
5544 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
5546         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
5547         --enable-build-warnings option.
5548         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5549         * Makefile.in, configure: Re-generate.
5551 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
5553         * po/ld.pot: Regenerate.
5555         * lexsup.c (help): Restore translated part of bug string.
5557         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5558         (DEP): Quote when passing vars to sub-make.  Add warning message
5559         to end.
5560         (DEP1): Rewrite for "gcc -MM".
5561         (CLEANFILES): Add DEP2.
5562         Update dependencies.
5563         * Makefile.in: Regenerate.
5565 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
5567         * ld.h: #include "bin-bugs.h"
5568         * lexsup.c (help): Use REPORT_BUGS_TO.
5570 2000-03-27  Denis Chertykov  <denisc@overta.ru>
5572         * configure.tgt (avr-*-*): New target support.
5573         * Makefile.am: Likewise.
5574         * scripttempl/elf32avr.sc: New script file.
5575         * emulparams/avr1200.sh: New file.
5576         * emulparams/avr23xx.sh: New file.
5577         * emulparams/avr4433.sh New file.
5578         * emulparams/avr44x4.sh New file.
5579         * emulparams/avr85xx.sh New file.
5580         * emulparams/avrmega103.sh New file.
5581         * emulparams/avrmega161.sh New file.
5582         * emulparams/avrmega603.sh New file.
5583         * Makefile.in: Regenerate.
5585 2000-03-09  Andreas Jaeger  <aj@suse.de>
5587         * Makefile.am (check-DEJAGNU): Also unset LANG.
5588         * Makefile.in: Rebuild.
5590 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
5592         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5593         archive.
5595 2000-03-02  H.J. Lu  <hjl@gnu.org>
5597         * emulparams/elf32mcore.sh: Include "getopt.h".
5599 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
5601         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5603 2000-03-01  H.J. Lu  <hjl@gnu.org>
5605         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5606         * emulparams/shpe.sh: Likewise.
5608 2000-03-01  Nick Clifton  <nickc@cygnus.com>
5610         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5611         to unused parameters.
5613         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5614         functions only used by DLL code.
5615         (_place_orphan): Initialise 'dollar'.
5617 2000-03-01  H.J. Lu  <hjl@gnu.org>
5619         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5620         indicate if the undefined symbol is a fatal error or not.
5621         Don't delete the output file if "fatal" is false.
5623 2000-02-29  H.J. Lu  <hjl@gnu.org>
5625         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5626         Set LC_COLLATE and LC_ALL to null and export them. It is for
5627         sort which expects the C locale.
5628         Add $(LIBS) to all $(HOSTING_LIBS).
5629         * Makefile.in: Rebuild.
5631 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
5633         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5634         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5635         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5636         (ld_emulation_xfer_struct): Add missing NULL initialiser for
5637         find_potential_libraries.
5639 2000-02-28  Jim Blandy  <jimb@redhat.com>
5641         * ldgram.y (exclude_name_list): Don't require a comma to separate
5642         list entries; the lexer considers commas to be valid part of a
5643         filename, so in something like `foo, bar' the comma is considered
5644         part of the first filename, `foo,'.
5645         * ld.texinfo: Update section on EXCLUDE_FILE lists.
5647 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
5649         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5650         host "i[3456]86-*-freebsdelf*".
5652 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
5654         * scripttempl/i386go32.sc: Move misplaced semicolons.
5656 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
5658         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5659         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5660         (eelf64hppa.c, ehppaelf.c): Remove targets.
5661         * Makefile.in: Rebuild.
5663 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
5665         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5666         GNU/Linux/sparc, but keep the default as 32.
5668         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
5669         it default if sparcv9 or sparc64.
5671 2000-02-24  Nick Clifton  <nickc@cygnus.com>
5673         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5674         * Makefile.in: Regenerate.
5675         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5677         * ldemul.h (ld_emulation_xfer_struct): Add new field:
5678         find_potential_libraries.
5679         * ldemul.c (ldemul_find_potential_libraries): New function.
5681         * ldfile.c (ldfile_open_file_search): Allow function to be
5682         exported.
5683         (ldfile_open_file): Call ldemul_find_potential_libraries.
5684         * ldfile.h: Add prototype for ldfile_open_file_search.
5686         * pe-dll.c: Add support for ARM, MIPS and SH targets.
5688         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
5689         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
5691         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5692         (gld_X_find_potential_libraries): New function.  Search for
5693         libraries called "*.lib".
5695         * scripttempl/pe.sc: Add .pdata section.
5697 2000-02-23  Richard Henderson  <rth@cygnus.com>
5699         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5700         Add and use memory regions.
5702 2000-02-23  Linas Vepstas (linas@linas.org)
5704         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5706         * Makefile.am: Add support for Linux/IBM 370.
5707         * configure.tgt: Likewise.
5709         * Makefile.in: Regenerate.
5711 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
5713         * ldlang.c (print_input_section, print_data_statement,
5714         print_reloc_statement, print_padding_statement, insert_pad,
5715         size_input_section, lang_check_section_addresses,
5716         lang_size_sections, lang_do_assignments, lang_set_startof,
5717         lang_one_common): Change `opb' to unsigned.
5718         (lang_do_assignments): Also change `size' to unsigned.
5720 2000-02-16  Richard Henderson  <rth@cygnus.com>
5722         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5724 2000-02-16  Timothy Wall  <twall@cygnus.com>
5726         * mri.c (mri_draw_tree): Add default LMA region argument to call
5727         to lang_leave_output_section_statement.
5728         * ldlang.h: Update prototypes with LMA region arguments.
5729         * ldlang.c (lang_size_sections): Encapsulate region bounds
5730         checking in os_check_region call.
5731         (os_check_region): New function.
5732         (lang_output_section_statement_lookup): Initialize lma_region.
5733         (lang_leave_output_section_statement): Add LMA region argument.
5734         (lang_leave_overlay): Ditto.
5735         * ldgram.y: Handle LMA region syntax.
5736         * ld.texinfo (Output Section Description): Describe LMA region usage.
5737         * emultempl/armelf.em (gld$place_orphan): Add default value for
5738         lma region in call to lang_leave_output_section_statement.
5739         * emultempl/elf32.em (gld$place_orphan): Add default value for
5740         lma region in call to lang_leave_output_section_statement.
5741         * emultempl/pe.em (gld$place_orphan): Add default value for
5742         lma region in call to lang_leave_output_section_statement.
5745 2000-02-04  Timothy Wall  <twall@redhat.com>
5747         * ldlang.c (lang_check_section_addresses): Use bytes instead of
5748         octets when calculating section end addresses.
5750 2000-02-04  Timothy Wall  <twall@redhat.com>
5752         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5754 2000-02-03  Timothy Wall <twall@redhat.com>
5756         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5757         octet count.
5758         * ldlang.c (print_input_section, print_data_statement,
5759         print_reloc_statement, print_padding_statement): Print target
5760         address values and section sizes as bytes, not octets.
5761         (insert_pad) Calculate padding size in octets, and adjust "dot"
5762         by bytes.
5763         (size_input_section) Always adjust "dot" by bytes, not octets.
5764         (lang_check_section_addresses, lang_do_assignments) Adjust
5765         "dot" by bytes, not octets.  Use the larger of the directive size
5766         or octets_per_byte for the number of octets actually allocated in
5767         the output section.
5768         (lang_set_startof) Make sure STARTOF returns a target address.
5769         (lang_one_common) Record size changes in octets.
5770         (lang_abs_symbol_at_end_of) Section end symbol's value is
5771         recorded in target bytes.
5772         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5773         to be clear about behavior when an octet is smaller than one byte.
5775 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
5777         * ldcref.c (output_cref): Don't pass message strings to printf
5778         as format arg.
5779         Update copyright.
5781         * ldmisc.c (vfinfo): Same here.
5782         Update copyright.
5784 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
5786         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5787         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5788         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5789         Add missing NULL initialisers, and comments.
5791 2000-01-21  Nick Clifton  <nickc@cygnus.com>
5793         * ldlang.c (lang_size_sections): Fix typo in comment.
5795 2000-01-18  H.J. Lu  <hjl@gnu.org>
5797         * ldlang.c (lang_size_sections): Also update the current
5798         address of a region if the SEC_NEVER_LOAD bit is not set.
5800 2000-01-10  Philip Blundell  <pb@futuretv.com>
5802         * configure.tgt (arm*-*-conix*): New target.
5804 2000-01-07  Nick Clifton  <nickc@cygnus.com>
5806         * ld.texinfo (Options): Remind users to preceed linker command
5807         line switches with -Wl, (or whatever is appropriate) if it is
5808         being invoked by a comnpiler driver program.
5809         Fix description of the behaviour of the -n command line switch.
5811 2000-01-05  Catherine Moore  <clm@cygnus.com>
5813         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
5814         (name_list): New.
5815         * ld.texinfo (EXCLUDE_FILE): Update documentation.
5816         * ldgram.y (wildcard_spec): Support a list of excluded_files.
5817         (exclude_name_list): New.
5818         ldlang.c (walk_wild_section): Support list of excluded files.
5819         (print_wild_statement): Likewise.
5820         (lang_add_wild): Likewise.
5821         * ldlang.h (lang_wild_statement_type): Likewise.
5822         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5824 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
5826         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5827         (process_def_file): Use.
5828         (pe_dll_compat_implib): New variable.
5829         (make_one): Use.
5831         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5832         pe_dll_compat_implib.
5834         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5835         compat-implib options.
5836         (gld_${EMULATION_NAME}_list_options): List new options.
5837         (gld_${EMULATION_NAME}_parse_args): Handle.
5839         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5840         dll.
5842         * deffilep.y (opt_name): Allow "." in name.
5844 For older changes see ChangeLog-9899
5846 Local Variables:
5847 mode: change-log
5848 left-margin: 8
5849 fill-column: 74
5850 version-control: never
5851 End: