Add support for h8300hn and h8300sn
[binutils.git] / ld / ChangeLog
blobb215a3733be16f411be899b486d5ddbf4853b669
1 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com> 
2         
3         * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o, 
4         eh8300hnelf.o, eh8300snelf.o and respective rules.
5         * Makefile.in: Regenerate.
6         * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
7         * emulparams/h8300hn.sh: New
8         * emulparams/h8300sn.sh: New
9         * emulparams/h8300hnelf.sh: New 
10         * emulparams/h8300snelf.sh: New
11         * scripttempl/h8300hn.sc: new
12         * scripttempl/h8300sn.sc: new
14 2003-04-23  H.J. Lu <hjl@gnu.org>
16         * ldmain.c (link_callbacks): Initialize error_handler.
18         * ldmisc.c (error_handler): New function.
20         * ldmisc.h (error_handler): New prototype.
22 2003-04-21  Stephane Carrez  <stcarrez@nerim.fr>
24         * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
25         * emulparams/m68hc11elfb.sh: Likewise.
26         * emulparams/m68hc12elf.sh: Likewise.
27         * emulparams/m68hc12elfb.sh: Likewise.
29 2003-04-19  Stephane Carrez  <stcarrez@nerim.fr>
31         * emultempl/m68hc1xelf.em: New file to generate far trampolines on
32         68HC11 and 68HC12.
33         (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
34         generate.
35         (LDEMUL_FINISH): Override to generate the trampolines after gc and
36         linker relaxation.
37         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
38         stub file for trampolines.
39         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
40         --no-trampoline and --bank-window to control the memory bank window.
42 2003-04-18  H.J. Lu <hjl@gnu.org>
44         * ldfile.c (ldfile_add_library_path): Remove the unused
45         variable.
47 2003-04-18  Andrew Haley  <aph@cambridge.redhat.com>
49         * scripttempl/xstormy16.sc (__data, __rdata): New.
51 2003-04-16  Nick Clifton  <nickc@redhat.com>
53         * scripttempl/xstormy16.sc: Add .jcr section mapping.
55 2003-04-15  H.J. Lu <hjl@gnu.org>
57         From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
59         * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
61 2003-04-15  Rohit Kumar Srivastava <rohits@kpitcummins.com>
63         * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
64         * ld.texinfo: Likewise.
66 2003-04-14  Alan Modra  <amodra@bigpond.net.au>
68         From Prashanth Tamraparni <prashanth_t@in.ibm.com>
69         * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
70         other variants of crtbegin.o, crtend.o.
71         (DTOR): Likewise.
72         * scripttempl/crisaout.sc (ctors, dtors): Likewise.
73         * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
74         * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
75         * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
76         * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
77         * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
78         * scripttempl/mmo.sc (ctors, dtors): Likewise.
79         * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
81 2003-04-09   Dmitry Diky  <diwil@mail.ru>
83         * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
84         sections to respect C++  constructor/destructor. Add ctors/dtors
85         start/stop definitions.
86         * scripttempl/elf32msp430_3.sc: Likewise.
88 2003-04-06  Nick Clifton  <nickc@redhat.com>
90         * ld.texinfo (Options): Add a reminder of the target specific
91         nature to the description of the i386 PE specific options, for
92         readers who have not read all the way through the manual.
94 2003-04-04  Svein E. Seldal  <Svein.Seldal@solidas.com>
96         * configure.tgt: Fixed bug in list of targ_extra_emuls.
97         * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
98         cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
99         * emulparams/tic3xcoff_onchip.sh: Ditto
100         * emulparams/tic4xcoff.sh: Ditto
101         * scripttempl/tic4xcoff.sc: Ditto
103 2003-04-03  Nick Clifton  <nickc@redhat.com>
105         * NEWS: Mention support for Xtensa architecture.
107 2003-04-02  Nick Clifton  <nickc@redhat.com>
109         * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
111 2003-04-01  Danny Smith <dannysmith@users.sourceforge.net>
113         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
114         Don't call pe_dll_build_section() if link_info.relocateable.
115         (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
116         if link_info.relocateable.
118 2003-04-01  Fabrizio Gennari  <fabrizio.ge@tiscalinet.it>
120         * pe-dll.c (process_def_file): Don't create an export
121         section if there are no exports and we're building an exe
122         (pe_dll_build_sections): Ditto
123         (pe_dll_fill_sections): Conditionalize setting
124         abfd->dll true on info->shared
125         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
126         If i386pe or armpe, call pe_dll_build_section()
127         for both exe's and dll's, not just dll's.
128         (gld_${EMULATION_NAME}_finish): For all targets except
129         shpe and mipspe, call pe_dll_fill_sections() for both
130         exe's and dll's, not just dll's.
132 2003-04-02  Bob Wilson  <bob.wilson@acm.org>
134         * emulparams/xtensa-config.sh: Remove comment indicating that this is
135         a generated file.
137 2003-04-01  Bob Wilson  <bob.wilson@acm.org>
139         * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
140         (eelf32xtensa.c): New target.
141         * Makefile.in: Regenerate.
142         * configure.tgt: Handle xtensa-*-*.
143         * gen-doc.texi: Set XTENSA variable.
144         * ld.texinfo: Set XTENSA variable.  Add new Xtensa node.
145         * emulparams/elf32xtensa.sh: New file.
146         * emulparams/xtensa-config.sh: Likewise.
147         * emultempl/xtensaelf.em: Likewise.
148         * scripttempl/elfxtensa.sc: Likewise.
150 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
152         * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
153         targ_extra_libpath.  Add elf64ppc to ppc targ_extra_libpath
154         if --enable-64-bit-bfd.
156 2003-04-01  Nick Clifton  <nickc@redhat.com>
158         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
159         note section.
160         * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
161         name of note section.
163 2003-03-31  Alexandre Oliva  <aoliva@redhat.com>
165         * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
166         --section-start.
168 2003-03-31  David Heine  <dlheine@suif.stanford.edu>
170         * ldfile.c (ldfile_add_library_path): Always allocate space for
171         the filename.
172         * ldlang.c (lang_register_vers_node): Free the node if it cannot
173         be used.
174         * ldmain.c (set_scripts_dir): Always free the constructed
175         directory name.
176         (add_keepsyms_file): Fix memory leak.
177         * ldmisc.c (vfinfo): Likewise.
178         * lexsup.c (parse_args): Likewise.
180 2003-03-25  Stan Cox   <scox@redhat.com>
181             Nick Clifton  <nickc@redhat.com>
183         Contribute support for Intel's iWMMXt chip - an ARM variant:
185         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
186         * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
187         * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
188         (.bss): Likewise.
190 2003-03-25  Alexandre Oliva  <aoliva@redhat.com>
192         * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
193         * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
194         (main): Initialize them.
195         * ldfile.c: Include pathnames.h.
196         (is_sysrooted_pathname): New.
197         (ldfile_add_library_path): Use it.
198         (ldfile_open_file_search): Likewise.  Use IS_ABSOLUTE_PATH.  Don't
199         search_dirs if given an absolute pathname.
200         (ldfile_open_file): Issue error message for sysrooted
201         absolute pathnames.
202         * Makefile.am: Updated dependencies.
203         * Makefile.in: Rebuild.
205 2003-03-24  Daniel NĂ©ri  <dne@mayonnaise.net>
207         * ld.texinfo: Rename all occurances of C54X to TIC54X.
209 2003-03-19  Andreas Schwab  <schwab@suse.de>
211         * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
212         eof.
214 2003-03-18  Danny Smith  <dannysmith@users.sourceforge.net>
216         * defilep.y (opt_base): If no number given, set to default
217         (-1), not 0.
219 2003-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
221         * deffilep.y (def_import):  Use default extension of "dll"
222         if no extension provided in parsed IMPORT definition.
224         * deffilep.y (def_lex): Revert 2003-03-12 change.
225         (dot_name): New id type and rule.
226         (expline): Use instead of ID.
227         (opt_equal_name): Likewise.
229 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
231         * deffilep.y (def_lex): Accept '.' as valid non-lead char.
233 2003-03-07  Christopher Faylor  <cgf@redhat.com>
235         * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
236         apparent accidental removal on 2003-01-06.
238 2003-03-04  Dmitry Diky  <diwil@mail.ru>
240         * Makefile.am: Add new devices x1122 x1132 emulation
241         * configure.tgt: Likewise.
242         * Makefile.in: Regenerate.
243         * emulparams/msp430x1122.sh: New file.
244         * emulparams/msp430x1132.sh: New file.
246 2003-03-03  Alexandre Oliva  <aoliva@redhat.com>
248         * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
249         well.
251         * ldfile.h (struct search_dirs): Added sysrooted field.
252         * ldlang.h (struct lang_input_statement_struct): Likewise.
253         * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
254         (ldfile_open_file_search): Look for sysrooted filename starting
255         with / in ld_sysroot instead of in the current directory.  Clear
256         sysrooted flag if it's found in the current directory.  Set it
257         from the search directory's sysrooted flag where it is found
258         otherwise.
259         * ldlang.c (ldlang_sysrooted_script): New static variable.
260         (new_afile): Mark search_file_enums as sysrooted if
261         ldlang_sysrooted_script.
262         (load_symbols): Set ldlang_sysrooted_script according to the
263         script's sysrooted field while processing it.
264         * ld.texinfo: Document INPUT behavior in sysroot.
266 2003-03-02  Danny Smith  <dannysmith@users.sourceforge.net>
268         * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
270 2003-03-03  Alan Modra  <amodra@bigpond.net.au>
272         * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
273         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
274         PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
275         PARSE_AND_LIST_EPILOGUE): Don't define.
276         * emultempl/alphaelf.em: New file.
278 2003-03-01  Alan Modra  <amodra@bigpond.net.au>
280         * ldemul.c: Include getopt.h.
281         * emultempl/elf32.em: Include getopt.h earlier.
282         * emultempl/ticoff.em: Likewise.
284 2003-02-28  Alan Modra  <amodra@bigpond.net.au>
286         * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
287         support when scripts read from files.
289 2003-02-28  Alan Modra  <amodra@bigpond.net.au>
291         * ldemul.c (ldemul_parse_args): Return FALSE by default.
292         * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
293         comment.
295         * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
296         (ldemul_parse_args): Return bfd_boolean.  Formatting.
297         * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
298         (ldemul_parse_args): Adjust.
299         (struct ld_emulation_xfer_struct): Add add_options and handle_option.
300         Return bfd_boolean from parse_args.
301         * lexsup.c (parse_args): Malloc shortopts, longopts and
302         really_longopts.  Call ldemul_add_options and ldemul_handle_option.
303         * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
304         gld${EMULATION_NAME}_parse_args.
305         (gld${EMULATION_NAME}_handle_option): Likewise.
306         (ld_${EMULATION_NAME}_emulation): Adjust initializer.
307         * emultempl/armcoff.em: As for aix.em, but remove parse_args.
308         * emultempl/beos.em: Likewise.
309         * emultempl/pe.em: Likewise.
310         * emultempl/ticoff.em: Likewise.
311         * emultempl/elf32.em: Likewise.  Don't duplicate long options either.
312         (gld${EMULATION_NAME}_add_sysroot): Prototype.
313         * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
314         options.
315         * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
316         * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
317         * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
318         * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
319         initializer.
320         * emultempl/generic.em: Likewise.
321         * emultempl/gld960.em: Likewise.
322         * emultempl/gld960c.em: Likewise.
323         * emultempl/linux.em: Likewise.
324         * emultempl/lnk960.em: Likewise.
325         * emultempl/m68kcoff.em: Likewise.
326         * emultempl/mipsecoff.em: Likewise.
327         * emultempl/sunos.em: Likewise.
328         * emultempl/vanilla.em: Likewise.
329         * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
331 2003-02-25  Alexandre Oliva  <aoliva@redhat.com>
333         * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
334         memory allocation error.
336         * Makefile.am (ldmain.o): Define TOOLBINDIR.
337         * Makefile.in: Rebuilt.
338         * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
340 2003-02-21  Bob Wilson  <bob.wilson@acm.org>
342         * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
343         call os_region_check when it is set.
344         (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
345         lang_size_sections_1.
346         (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
347         only for the last call, not on every relaxation iteration.
348         * ldlang.h (lang_size_sections): Update prototype.
349         * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
350         to lang_size_sections.
351         (pe_exe_fill_sections): Likewise.
352         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
353         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
354         * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
355         (ppc_layout_sections_again): Likewise.
357 2003-02-21  Bob Wilson  <bob.wilson@acm.org>
359         * gen-doc.texi: Set ARM and HPPA variables.
360         * ld.texinfo: Fix typos and obvious texinfo mistakes.  Make section
361         title capitalization more consistent.  Add missing menu entries for
362         machine-specific sections and conditionalize them consistently.
363         Conditionalize text that is irrelevant when SingleFormat is set.
364         Add @group divisions to improve page breaks in long examples.
365         Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
366         is correct.  Remove "FIXME" comment about not using
367         @raisesections/@lowersections.  Use @raisesections/@lowersections
368         consistently for machine-specific sections.  Change to be more polite
369         about poor bug reports.  Replace FDL appendix with include of fdl.texi.
370         Move WIN32 node to match its order in the menus.
371         * fdl.texi: New file.
373 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
375         * configure.in (TARGET_SYSTEM_ROOT): Set default to
376         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
377         '${exec_prefix}' (in addition to the expansion thereof) as
378         relocatable.
379         * configure: Rebuilt.
381 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
383         * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
385 2003-02-20  Harri Porten  <porten@kde.org>
387         * ldgram.y (vers_defns): Allow optional trailing semicolon in
388         EXTERN NAME block;
390 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
392         * emultempl/ppc32elf.em: New file.
393         * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
394         * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
395         (eelf32lppcnto.c): Likewise.
396         (eelf32lppcsim.c): Likewise.
397         (eelf32ppcnto.c): Likewise.
398         (eelf32ppc.c): Likewise.
399         (eelf32ppc_fbsd.c): Likewise.
400         (eelf32ppcsim.c): Likewise.
401         (eelf32ppclinux.c): Likewise.
402         * Makefile.in: Regenerate.
404 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
406         * ld.texinfo: Remove spaces between @samp and opening brace.
408 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
410         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
411         hash creator.
412         (ppc_before_allocation): Don't do optimizations if wrong hash table.
413         (gld${EMULATION_NAME}_finish): Ditto.
415 2003-02-17  Nick Clifton  <nickc@redhat.com>
417         * ldmain.c (main) Default allow_shlib_undefined to true.
418         * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
419         (parse_args): Parse the new switch.
420         * ld.texinfo: Document new switch and default behaviour of
421         allowing undefined symbols in shared libraries.
423 2003-02-11 Dmitry Diky  <diwil@mail.ru>
425         * scripttempl/elf32msp430.sc: Add new data anchors definitions.
426         * scripttempl/elf32msp430_3.sc: Likewise.
428 2003-02-11  Uwe Stieber  <uwe@wwws.de>
430         * configure.tgt: Add support for kaOS as cross build target
431         system.
433 2003-02-10  John Daivid Anglin  <dave.anglin@nrc-cnrc.gc.ca>
435         * hppaelf.em (group_size): Change default back to 1.
437 2003-02-09  Alan Modra  <amodra@bigpond.net.au>
439         * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
441 2003-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
443         * hppaelf.em (group_size): Change default to -1.
445 2003-02-07  Nick Clifton  <nickc@redhat.com>
447         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
448         opt.
449         (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
450         no-pipeline-knowledge.  This will prevent the getopt package from
451         thinking that there are any shorter abbreviations for
452         --no-pipeline-knowledge.
454 2003-02-07  Jakub Jelinek  <jakub@redhat.com>
456         * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
457         which already have it.  Avoid duplicates.
459 2003-02-06  Jakub Jelinek  <jakub@redhat.com>
461         * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
462         * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
463         * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
465 2003-02-05  Alan Modra  <amodra@bigpond.net.au>
467         * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
468         call ppc64_elf_tls_optimize.
470 2003-02-03  Daniel Jacobowitz  <drow@mvista.com>
472         * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
473         outside of GNU/Linux conditional.
475 2003-01-28  Ralf Habacker  <ralf.habacker@freenet.de>
477         * deffilep.y (def_get_module): New function: locate an already
478         added module.
479         * deffile.h (def_get_module): New prototype.
480         * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
481         a dll multiple times.
483 2003-01-23  Alan Modra  <amodra@bigpond.net.au>
485         * emultempl/sh64elf.em: Include elf32-sh64.h.
486         (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
487         sh64_elf_section_data.
488         (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
490 2003-01-23  Wu Yongwei  <adah@netstd.com>
492         * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
493         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
494         cross-80th-column-margin "an" to the next line.
496 2003-01-21  Nick Clifton  <nickc@redhat.com>
498         * emulparams/tic3xcoff-onchip.sh: Rename to ...z
499         * emulparams/tic3xcoff_onchip.sh: ...this.
500         * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
501         * Makefile.in: Regenerate.
503 2003-01-21  Fabio Alemagna  <falemagn@aros.org>
505         * configure.tgt: Handle i[3456]86-*-aros*
507 2003-01-19  Svein E. Seldal  <Svein.Seldal@solidas.com>
509         * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
510         * Makefile.in: Regenerate
511         * configure.tgt: Added extra target emulations
512         * emulparams/tic3xcoff.sh: Remove old settings
513         * emulparams/tic4xcoff.sh: Ditto
514         * emulparams/tic3xcoff-onchip.sh: Added new
515         * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
516         * scripttempl/tic3xcoff.sc: Remove
518 2003-01-17  Andreas Jaeger  <aj@suse.de>
520         * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
521         skip ':'.
523 2003-01-16  Alan Modra  <amodra@bigpond.net.au>
525         * Makefile.in: Regenerate.
527 2002-01-14  Charles Wilson  <cwilson@ece.gatech.edu>
529         * ld/ld.texinfo (node WIN32): Some clarifications
530         and formatting fixups.
532 2003-01-09  Chris Demetriou  <cgd@broadcom.com>
534         * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
535         order, and handle (ignore) -mips32r2.
537 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
539         * ldmain.c (main): Make sure ld_sysroot is initialized.
541 2003-01-06  Daniel Jacobowitz  <drow@mvista.com>
543         * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
545         * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
546         (GENSCRIPTS): Add @use_sysroot@.
547         * Makefile.in: Regenerated.
548         * configure.host: Move setting of NATIVE_LIB_DIRS to...
549         * configure.tgt: ... here.  Use ${target} instead of ${host}
550         for NATIVE_LIB_DIRS.
551         * configure.in: Add --with-sysroot.
552         * configure: Regenerated.
553         * genscripts.sh: Accept use_sysroot option.  Set new variables
554         NATIVE and USE_LIBPATH.  Prepend "=" to directory names if
555         $use_sysroot.  Don't search $tool_lib if $use_sysroot.
556         * ldfile.c (ldfile_add_library_path): Handle leading '='.
557         * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
558         (ld_sysroot): New variable.
559         (main): Initialize ld_sysroot.
560         * ldmain.h (ld_sysroot): New extern.
561         * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
562         searching $EMULATION_LIBPATH.
563         (gld${EMULATION_NAME}_add_sysroot): New function.
564         (gld${EMULATION_NAME}_check_ld_so_conf): Use it.  Honor ld_sysroot.
565         (gld${EMULATION_NAME}_after_open): Likewise.  Only search
566         environment variables if $NATIVE.
567         * ld.texinfo (Options): Mention "=" prefix in the description of -L.
568         * NEWS: Mention --with-sysroot.
570         * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
571         instead of setting LIB_PATH.
572         * emulparams/elf32ppc.sh: Likewise.
573         * emulparams/elf64_s390.sh: Likewise.
574         * emulparams/elf64_sparc.sh: Likewise.
575         * emulparams/elf64ppc.sh: Likewise.
576         * emulparams/elf_x86_64.sh: Likewise.
578         * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
579         * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
581 2003-01-03  Charles Wilson  <cwilson@ece.gatech.edu>
583         * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
585 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
587         * Makefile.am (ldmain.o): Pass BINDIR.
588         * Makefile.in: Regenerated.
589         * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
590         search path.
592 2003-01-02  Ben Elliston  <bje@redhat.com>
594         * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
595         (eelf32iq2000.c): New target.
596         * Makefile.in: Regenerate.
597         * configure.tgt: Handle iq2000-*-elf.
598         * emulparams/elf32iq10.sh: New file.
599         * emulparams/elf32iq2000.sh: New file.
600         * scripttempl/iq2000.sc: New file.
602 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
604         * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
605         and _pei386_runtime_relocator to the exclude list.
607 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
609         * ldfile.c: Fix comment typos.
610         * ldlang.c: Likewise.
611         * mri.c: Likewise.
612         * pe-dll.c: Likewise.
614 2003-01-01  Daniel Jacobowitz  <drow@mvista.com>
616         Suggested by Manfred Hollstein <manfred.h@gmx.net>:
617         * Makefile.am (ld.1): Depend on configdoc.texi
618         and ldver.texi.
619         * Makefile.in: Regenerated.
621 2002-12-24  Dmitry Diky  <diwil@mail.ru>
623         * Makefile.am: Add msp430 target.
624         * configure.tgt: Likewise.
625         * Makefile.in: Regenerate.
626         * emulparams/msp430x???.sh: New files.  Linker script parameters
627         for various msp430 configurations.
628         * gen-doc.texi: Enable msp430 documenation.
629         * ld.texinfo: Document msp430 sections.
630         * scripttempl/elf32msp430.sc: New file.  Linker script for msp430.
631         * scripttempl/elf32msp430_3.sc: New file.  Linker script for msp430.
633 2002-12-30  Ralf Habacker  <Ralf.Habacker@freenet.de>
634             Charles Wilson  <cwilson@ece.gatech.edu>
636         * ld/config.in (HAVE_REALPATH): New entry.
637         (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
639 2002-12-30  Ralf Habacker  <ralf.habacker@freenet.de>
641         * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
642         symbols'.
644 2002-12-23  Alan Modra  <amodra@bigpond.net.au>
646         * ldmain.c (main): Init "strip_discarded".
647         * lexsup.c (OPTION_STRIP_DISCARDED): Define.
648         (OPTION_NO_STRIP_DISCARDED): Define.
649         (ld_options): Add "strip-discarded" and "no-strip-discarded".
650         (parse_args): Handle them.
652 2002-12-23  Nick Clifton  <nickc@redhat.com>
654         * ld.h (struct args_type): Add new field
655         'accept_unknown_input_architecture'.
656         * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
657         to false.
658         * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
659         bfd_arch_get_compatible.
660         * ldfile.c (ldfile_try_open_bfd): Likewise.
661         * lexsup.c (ld_options): Add new command line switch
662         --accept-unknown-input-architecture and its inverse.
663         (parse_args): Handle --accept-unknown-input-architecture.
664         * ld.texinfo: Document new linker option.
665         * NEWS: Mention new linker option.
667 2002-12-20  Alan Modra  <amodra@bigpond.net.au>
669         * ldmain.c (main): Re-order link_info initialization.  Init all
670         fields.
672 2002-12-19  Charles Wilson  <cwilson@ece.gatech.edu>
674         * ld.texinfo: Clarify and extend the documentation
675         in the Machine Dependent, WIN32 section.
677 2002-12-18  Ralf Habacker  <ralf.habacker@freenet.de>
679         * ld.texinfo: Add win32 machine depending section.
680         * gen-doc.texi: Enable win32 machine depending section.
682         * configure.host: Add win32 library search path.
684 2002-12-17  Ralf Habacker  <ralf.habacker@freenet.de>
686         * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
687         import when auto-import is disabled.
689 2002-12-17  Danny Smith  <dannysmith@users.sourceforge.net>
691         * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
692         account for trailing '\0'.
694 2002-12-17  Nick Clifton  <nickc@redhat.com>
696         * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
697         so that it is not confused with -c.
699 2002-12-13  Ralf Habacker  <Ralf.Habacker@freenet.de>
700             Charles Wilson  <cwilson@ece.gatech.edu>
702         * configure.in: Add check for realpath function.
703         * configure: Regenerate.
704         * config.in: Regenerate.
705         * aclocal.m4: Regenerate.
706         * deffile.h: Add .data field to def_file_import
707         structure.
708         * pe-dll.c (pe_proces_import_defs): Use .data field of
709         def_file_import structure to initialize flag_data field of
710         def_file_export structure.
711         (pe_implied_import_dll): New variables exp_funcbase and
712         [data|bss]_[start|end].  Use DLL's internal name to set dll_name,
713         not filename (which may be a symlink).  Scan the sections and
714         initialize [data|bss]_[start|end].  When scanning the export
715         table, skip _nm_ symbols, and mark any symbols whose rva indicates
716         that it is in the .bss or .data sections as data.
717         * sysdep.h: Include limits.h and sys/param.h, and define
718         LD_PATHMAX as appropriate.  Also define REALPATH as realpath if it
719         exists, NULL otherwise.
720         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
721         pe_process_import_defs before pe_find_data_imports, so that
722         auto-import will check the virtual implib as well as "real"
723         implibs.
724         (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
725         symlinks to their target; check that the target's extension is
726         .dll before calling pe_implied_import_dll(), not the filename
727         itself (which may be a symlink).
729 2002-12-10  Alan Modra  <amodra@bigpond.net.au>
731         * emultempl/elf32.em (struct orphan_save): Add os_tail field.
732         (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
733         list too.
735 2002-12-08  Alan Modra  <amodra@bigpond.net.au>
737         * ldlang.h: Formatting.
739 2002-12-07  Alan Modra  <amodra@bigpond.net.au>
741         * ldlang.c (init_os): Ensure sections mentioned in load_base
742         are initialized.
744 2002-12-05  Alan Modra  <amodra@bigpond.net.au>
746         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
747         load_base for orphans that follow a section with load_base set.
749 2002-12-01  H.J. Lu <hjl@gnu.org>
751         * ld.texinfo: Remove the extra `;' in sample version script.
753 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
755         * configure.host: Correct dynamic-linker for powerpc64 hosts.
757         * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
758         * Makefile.in: Regenerate.
760         * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
761         ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
762         ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
763         emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
764         emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
765         emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
766         emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
767         emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
768         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
769         emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
770         emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
771         boolean with bfd_boolean, true with TRUE, false with FALSE.  Simplify
772         comparisons of bfd_boolean vars with TRUE/FALSE.  Formatting.
774 2002-11-27  David O'Brien  <obrien@FreeBSD.org>
776         * configure.host: Fix generic FreeBSD configuration entry.
778 2002-11-27  H.J. Lu <hjl@gnu.org>
780         * ld.texinfo: Add the missing `;' to sample version scripts.
782 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
784         * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
786 2002-11-14  Egor Duda  <deo@logos-m.ru>
788         * ldmain.c (main): Make runtime relocs disabled by default. Remove
789         assignment which has no effect.
790         * pe-dll.h (pe_create_import_fixup): Change prototype.
791         * pe-dll.c (make_runtime_pseudo_reloc): New function.
792         (pe_create_runtime_relocator_reference): Ditto.
793         (pe_create_import_fixup): Handle relocations with non-zero addends.
794         * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
795         --disable-runtime-pseudo-reloc.
796         (make_import_fixup): Handle relocations with non-zero addends. Create
797         an external reference to _pei386_runtime_relocator symbol if at least
798         one pseudo reloc was created.
799         * ld.texinfo: Document --enable-runtime-pseudo-reloc and
800         --disable-runtime-pseudo-reloc options.
802 2002-11-12  Earl Chew <earl_chew@agilent.com>
804         * ldlang.c (lang_add_section): Discard debugging sections that have
805         been marked SEC_EXCLUDE.
807 2002-11-12  Nick Clifton  <nickc@redhat.com>
809         * configure.in (ALL_LINGUAS): Add da.
810         * configure: Regenerate.
811         * po/da.po: New Danish translation.
813 2002-11-12  Alan Modra  <amodra@bigpond.net.au>
815         * emultempl/ppc64elf.em (ppc_before_allocation): New function.
816         (LDEMUL_BEFORE_ALLOCATION): Define.
817         (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
818         linking.
819         * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
821 2002-11-11  Christopher Faylor  <cgf@redhat.com>
823         * configure.tgt (LIB_PATH): Default to searching w32api directory under
824         cygwin.
826 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
828         * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
829         of restricted auto-export libs.
831 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
833         * pe-dll.c (autofilter_liblist): Generalize library names to catch more
834         creative library naming instances like, e.g., libstdc++-2.a.
836 2002-11-06  Alexandre Oliva  <aoliva@redhat.com>
838         * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
839         * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
841 2002-11-07  Danny Smith  <dannysmith@users.sourceforge.net>
843         * deffilep.y (def_lex): Handle '@' as first character of an ID.
844         * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
845         (make_one): Don't prefix decorated fastcall symbols with '_'.
846         (pe_process_import_defs): Likewise.
847         * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
848         symbols to cdecl names or vise-versa.
850 2002-10-13  Eric Kohl  <ekohl@rz-online.de>
852         * pe-dll.c (process_def_file): Handle fastcall symbols when
853         generating undecorated aliases.  Don't prefix decorated fastcall
854         symbols with '_'.
855         (fill_exported_offsets): Don't prefix decorated fastcall symbols
856         with '_'.
858 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
860         * emultempl/aix.em: Use include <> for generated headers.
861         * emultempl/beos.em: Likewise.
862         * emultempl/elf32.em: Likewise.
863         * emultempl/pe.em: Likewise.
864         * ldctor.c: Likewise.
865         * ldexp.c: Likewise.
866         * ldfile.c: Likewise.
867         * ldlang.c: Likewise.
868         * ldlex.c: Likewise.
869         * ldlex.l: Likewise.
870         * ldmain.c: Likewise.
871         * ldmisc.c: Likewise.
872         * ldwrite.c: Likewise.
873         * lexsup.c: Likewise.
874         * mri.c: Likewise.
875         * pe-dll.c: Likewise.
877 2002-10-23  Jakub Jelinek  <jakub@redhat.com>
879         * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
880         sections into .rel{,a}.dyn.
882 2002-10-23  Nick Clifton  <nickc@redhat.com>
884         * lexsup.c (OPTION_NO_OMAGIC): Define.
885         (ld_options): Add "no-omagic" option.
886         (parse_args): Parse --no-omagic.
887         * ld.texinfo: Document --no-omagic.
888         * NEWS: Mention new option.
890 2002-10-21  Danny Smith  <dannysmith@users.sourceforeg.net>
892         * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
893         __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
895 2002-10-22  Alexandre Oliva  <aoliva@redhat.com>
897         * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
898         emulation name.  Set LIB_PATH only for native tools, and
899         search the ABI-specific versions of NATIVE_LIB_DIRS before the
900         .../lib variants, not instead of them.  Mostly copied from...
901         * emulparams/elf32ppc.sh: ... here.  Fixed typo.
902         * emulparams/elf64bmip-defs.sh: Backed out.
903         * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
904         * emulparams/elf64btsmip.sh: Likewise.
905         (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
906         TEXT_DYNAMIC): Removed.
908 2002-10-17  Alexandre Oliva  <aoliva@redhat.com>
910         * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
911         (GENERATE_SHLIB_SCRIPT): Set to yes.
912         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
913         * emulparams/elf32bmipn32.sh: here.
914         (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
915         * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
916         * emulparams/elf64bmip-defs.sh: New file.  Extend
917         elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
918         * emulparams/elf64bmip.sh: Bring in definitions from
919         elf64bmip-defs.sh.
920         (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
921         settings.
922         (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
923         * emulparams/elf64btsmip.sh: Bring in definitions from
924         elf64bmip-defs.sh.
925         (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
926         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
928 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
930         * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
931         (s390-*-linux*): Add elf64_s390 emulation if want64.
932         * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
933         genscript.sh changes.
934         * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
935         * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
937 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
939         * ldlang.c (load_symbols): Revert last change.
941 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
943         * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
944         just_syms_flag.
945         (lang_reasonable_defaults): Don't compare against false.
946         (size_input_section): Likewise.
947         (lang_size_sections_1): Likewise.
948         (lang_do_assignments): Likewise.
949         (lang_add_output): Likewise.
951         * Makefile.am: Run "make dep-am".
952         * Makefile.in: Regenerate.
953         * ldver.c: #include "bfdver.h".
955 2002-10-13  Stephane Carrez  <stcarrez@nerim.fr>
957         * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
958         .finiN section.
959         * scripttempl/elfm68hc12.sc: Likewise.
961 2002-10-11  Alan Modra  <amodra@bigpond.net.au>
963         * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
965         * ldgram.y (memory_spec): Provide empty action.
966         (section <NAME>): Likewise.
968 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
970         * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
971         they have OUTPUT_FORMAT not matching actual output format.
972         * ldlang.c (lang_get_output_target): New function.
973         (open_output): Use it.
974         * ldlang.h (lang_get_output_target): New prototype.
976 2002-10-10  Alan Modra  <amodra@bigpond.net.au>
978         * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
979         when orphan is .rel, .rela when orphan is .rela.
980         (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
981         first.  Remove outsecname var.
983 2002-10-09  Richard Shann <richard.shann@superh.com>
984             Stephen Clarke <stephen.clarke@superh.com>
986         * Makefile.am: Add eshelf32_linux.o and
987         eshlelf32_linux.o, new emulations for sh64 Linux.
988         * Makefile.in: Regenerate.
989         * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
990         * emulparams/shelf32_linux.sh: New file.
991         * emulparams/shlelf32_linux.sh: New file.
993 2002-10-08  H.J. Lu <hjl@gnu.org>
995         * ldlang.c (lang_file_exist): Removed.
996         (new_afile): Revert the last change.
997         * ldlang.h (lang_file_exist): Removed.
998         * lexsup.c (parse_args): Revert the last change.
1000 2002-10-07  Ralf Habacker  <Ralf.Habacker@freenet.de>
1002         * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1003         auto-import symbols.
1004         (make_one): Create _nm_<symbol> for data only.
1006 2002-10-05  Elias Athanasopoulos  <eathan@otenet.gr>
1008         * ldlang.c (lang_file_exist): New function.
1009         (new_afile): Abort if the filename to be added matches the linker
1010         output filename.
1011         * ldlang.h: Add prototype for lang_file_exist.
1012         * lexsup.c (parse_args): Abort if the output filename matches
1013         one of the input filenames.
1015 2002-10-02  Alan Modra  <amodra@bigpond.net.au>
1017         * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1019 2002-09-30  Alan Modra  <amodra@bigpond.net.au>
1021         * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1022         * scripttempl/elfm68hc11.sc: Likewise.
1023         * scripttempl/elfm68hc12.sc: Likewise.
1025         * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1026         reloc sections just before .rel.plt/.rela.plt.
1027         (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1028         Only put loadable reloc sections in hold_rel.
1030 2002-09-29  H.J. Lu <hjl@gnu.org>
1032         * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1034 2002-09-25  Daniel Jacobowitz  <drow@mvista.com>
1036         From "Anita Kulkarni" <AnitaK@kpit.com>
1037         * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1038         sections.
1040 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
1042         * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1043         TARGET_PAGE_SIZE.
1044         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1045         SEGMENT_SIZE alignment.
1046         * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1047         (SEGMENT_SIZE): Define.
1049         * ldexp.c (fold_unary): New.  Split out from exp_fold_tree.
1050         (fold_binary): Correct abs - non-abs case.
1051         (fold_trinary): New.  Split out from exp_fold_tree.
1053 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
1055         * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1056         * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1057         for start of .data, instead align up to 256M boundary.
1058         * scripttempl/aix.sc: Likewise.
1060 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
1062         * scripttempl/i386go32.sc: Handle bss unique sections.
1064 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
1066         * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1068 2002-09-17  Stan Cox  <scox@redhat.com>
1070         * emulparams/elf32bmipn32-defs.sh: New file.
1071         * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1072         * emulparams/elf32btsmipn32.sh: Likewise.
1073         * emulparams/elf64bmip.sh: Likewise.
1074         * emulparams/elf64btsmip.sh: Likewise.
1076 2002-09-16  Bruno Haible  <bruno@clisp.org>
1078         * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1079         elf32-i386-freebsd.
1080         * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1081         elf64-alpha-freebsd.
1083 2002-09-11  Nick Clifton  <nickc@redhat.com>
1085         * NEWS: New TI port supports both C4x and C3x series of DSPs.
1087         * po/tr.po: Updated Turkish translation.
1089 2002-09-06  Jeffrey A Law  (law@redhat.com)
1091         * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1093 2002-09-02  Nick Clifton  <nickc@redhat.com>
1095         * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1096         __ep.
1097         * emulparams/v850.sh (TEMPLATE_NAME): Define.
1099 2002-08-30  Nick Clifton  <nickc@redhat.com>
1101         * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1102         used.  Change INSN to start at 0x01000000 and extend for
1103         256K (ignoring holes).  Start the STACK on a word aligned
1104         boundary.
1105         (.rodata): Start it at the READONLY_START_ADDR.
1107 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
1109         * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1111 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
1113         * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1114         added makefile targets for this file.
1115         * Makefile.in: Regenerate.
1116         * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1117         * NEWS: Mention new port.
1119 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1121         * emulparams/tic3xcoff.sh: New file.
1122         * emulparams/tic4xcoff.sh: New file.
1123         * scripttempl/tic3xcoff.sc: New file.
1124         * scripttempl/tic4xcoff.sc: New file.
1126 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
1128         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1129         strtoul and strtoull with bfd_scan_vma.
1130         (gld${EMULATION_NAME}_read_file): Likewise.
1132 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
1134         * configure.tgt: Remove h8[35]00-*-hms*.  Add h8500-*-rtems*.
1136 2002-08-27  Egor Duda  <deo@logos-m.ru>
1138         * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1139         Add symbols for application to access them.
1141 2002-08-27  Nick Clifton  <nickc@redhat.com>
1143         * emultempl/armelf.em:  Revert this patch, it is not needed.
1145         2002-08-22  Adam Nemet  <anemet@lnxw.com>
1147 2002-08-20 Dan Kegel <dank@kegel.com>
1149         * configure.in: added --with-lib-path argument to ld's configure
1150         to set LIB_PATH.
1151         * ld/NEWS: Document new switch.
1152         * ld/README: Mention new switch.
1153         * configure: Regenerate.
1154         * Makefile.in: Regenerate.
1156         Based on this patch:
1157         2001-04-25  Christopher Faylor <cgf@cygnus.com>
1159         * Makefile.in (LIB_PATH): Make configurable.
1160         (GENSCRIPTS): Set LIB_PATH in environment.
1161         * configure.in: Substitute LIB_PATH.
1163 2002-08-22  Adam Nemet  <anemet@lnxw.com>
1165         * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1166         (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1167         depending on the type of the function.
1168         (arm_elf_convert_thumb_symbol_to_address): New function.
1170 2002-08-22  Graeme Peterson  <gp@qnx.com>
1172         * Makefile.am: Add esh{l}elf_nto.o files.
1173         * Makefile.in: Regenerate.
1174         * configure.tgt: Add support for sh-**-nto* targets.
1175         * emulparams/shelf_nto.sh: New file.
1176         * emulparams/shlelf_nto.sh: New file.
1178 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1180         * ldlang.c (offsetof): Define if not defined.
1182 2002-08-14  H.J. Lu <hjl@gnu.org>
1184         * configure.tgt: Always enable 64bit emulations for 32bit
1185         Linux/mips.
1187 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
1189         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1190         (MAXPAGESIZE): Set to 1.
1192         * ld.h (ALIGN_N): Delete.
1193         * ldexp.h (align_n): Declare.
1194         * ldexp.c (align_n): New function.
1195         (fold_binary): Use align_n instead of ALIGN_N.
1196         (exp_fold_tree): Likewise.
1197         * ldlang.c (lang_size_sections_1): Likewise.
1198         (lang_one_common): Likewise.
1199         * ld.texinfo (ALIGN): Remove power of 2 restriction.
1201 2002-07-31  Graeme Peterson  <gp@qnx.com>
1203         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1204         * Makefile.am: Add eelf32{l}ppcnto.o files.
1205         * Makefile.in: Regenerate.
1206         * emulparams/elf32lppcnto.sh: New file.
1207         * emulparams/elf32ppcnto.sh: New file.
1209 2002-08-07  H.J. Lu <hjl@gnu.org>
1211         * ld.texinfo: Document --no-undefined-version.
1213         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1214         `script.' fields to 0.
1216         * ldmain.c (main): Initialize the allow_undefined_version to
1217         true.
1219         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1220         (ld_options): Add --no-undefined-version.
1221         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1223 2002-08-07  Nick Clifton  <nickc@redhat.com>
1225         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1226         an interworking bfd if there are input bfds. (107501)
1228 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
1230         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
1231         2002-05-10 change.
1233 2002-08-01  Nick Clifton  <nickc@redhat.com>
1235         * emulparams/armelf.sh: Revert previous delta.
1236         * scripttempl/elf.sc: Revert previous delta.
1238 2002-07-31  H.J. Lu <hjl@gnu.org>
1240         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1241         --enable-64-bit-bfd.
1243 2002-07-31  H.J. Lu <hjl@gnu.org>
1245         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1246         64bit BFD is selected.
1248 2002-07-31  H.J. Lu <hjl@gnu.org>
1250         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1251         if 64bit BFD is selected.
1253 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
1255         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1256         link_info.common_skip_ar_aymbols.
1257         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1259         * ldmain.c (main): Initialize new field
1260         link_info.common_skip_ar_aymbols.
1262 2002-07-31  Adam Nemet  <anemet@lnxw.com>
1264         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
1265         to .plt.thumb.
1266         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
1267         used.
1269 2002-07-31  Nick Clifton  <nickc@redhat.com>
1271         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1272         of the PDP-11 and 2.11BSD a.out support.
1274 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1276         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1277         for n32 ABI support.
1278         * Makefile.in: Regenerate.
1279         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1280         n32 ABI emulations for these 64 bit targets.
1281         * emulparams/elf32bmipn32.sh: Expand comment.
1282         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1283         n32 ABI.
1284         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1286 2002-07-30  Graeme Peterson  <gp@qnx.com>
1288         * configure.tgt: Add support for arm-*-nto target.
1289         * Makefile.am: Add earmnto.o file.
1290         * Makefile.in: Regenerate.
1291         * NEWS: Mention port of ARM support to QNX.
1292         * emulparams/armnto.sh: New file.
1294 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
1296         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1297         for relocatable link.
1298         (lang_size_sections_1): Don't make .tbss zero size for relocatable
1299         link.
1301 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
1303         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1304         (STACK_ADDR): New.
1306 2002-07-25  Nick Clifton  <nickc@redhat.com>
1308         * po/sv.po: Updated Swedish translation.
1309         * po/es.po: Updated Spanish translation.
1310         * po/fr.po: Updated French translation.
1312 2002-07-24  Nick Clifton  <nickc@redhat.com>
1314         * po/sv.po: Updated Swedish translation.
1315         * po/es.po: Updated Spanish translation.
1317 2002-07-23  Nick Clifton  <nickc@redhat.com>
1319         * po/fr.po: Updated French translation.
1321 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
1323         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1324         bomb on /DISCARD/ input section.
1325         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1326         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1328 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
1330         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1331         output section.
1333 2002-07-16  Denis Chertykov  <denisc@overta.ru>
1334             Nick Clifton  <nickc@redhat.com>
1335             Frank Ch. Eigler  <fche@redhat.com>
1336             John Healy  <jhealy@redhat.com>
1338         * configure.tgt: Add support for ip2k-elf.
1339         * Makefile.am: Add support for ip2k-elf.
1340         * Makefile.in: Regenerate.
1341         * emulparams/elf32ip2k.sh: New file.
1342         * scripttempl/ip2k.sc: New file
1343         * NEWS: Mention support for new port.
1345 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
1347         * NEWS: Add 'Changes in 2.13'.
1349 2002-07-14  H.J. Lu <hjl@gnu.org>
1351         * ld.texinfo: Document a .symver takes precedence over a
1352         version script.
1354 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
1356         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1357         (COMMONPAGESIZE): Define.
1359 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
1361         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1363 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
1365         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1366         powerpc-*-openbsd* and sparc64-*-openbsd*.
1367         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1368         * Makefile.in: Regenerate.
1369         * emulparams/hppaobsd.sh: New file.
1371 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
1373         * ldlang.c (print_wild_statement): Fix output formatting.
1375 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
1377         * ldlang.c: (strip_excluded_output_sections): New function.
1378         (lang_process): Call it.
1379         (lang_size_sections_1): Revert 2002-06-10 change.
1381 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
1383         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1384         Run "make dep-am".
1385         * Makefile.in: Regenerate.
1387 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
1389         * ldfile.c (ldfile_try_open_bfd): Formatting.
1391         * ldmisc.c (demangle): Move so that it doesn't intrude between
1392         vfinfo comment and body.  Add comment.
1394 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1396         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1398 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
1400         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1401         * ldlang.c (entry_sym): Likewise.
1402         (ldlang_undef_chain_list_type): Likewise.
1403         (lang_finish): Adjust references to entry_symbol.
1404         (lang_add_entry): Likewise.
1405         (lang_gc_sections): Use link_info.gc_sym_list.
1406         (lang_process): Set link_info.gc_sym_list.
1407         * ldlex.l: Include bfdlink.h.
1408         * ldmain.c (main): Init link_info.gc_sym_list.
1409         * emultempl/aix.em: Adjust references to entry_symbol.
1410         * emultempl/armcoff.em: Likewise.
1411         * emultempl/armelf.em: Likewise.
1412         * emultempl/pe.em: Likewise.
1413         * emultempl/ppc64elf.em (ppc_after_open): New function.
1414         (LDEMUL_AFTER_OPEN): Define.
1415         * emulparams/elf64ppc.sh: KEEP .opd sections.
1417 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
1419         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1420         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1421         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1422         (EEPROM_START_ADDR): Define.
1423         (EEPROM_MEMORY): Define.
1424         * emulparams/m68hc12elf.sh: Likewise.
1425         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1426         section to put soft registers in .page0.
1427         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1429 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1431         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1432         section.  Add ${RELOCATING-0}.
1434 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
1436         * emulparams/shelf.sh (STACK_ADDR): Don't define.
1437         (OTHER_SECTIONS): Define.
1438         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1439         (OTHER_SECTIONS): Undef.
1441 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
1443         * ldmisc.c (demangle): Restore dots stripped from sym name.
1445 2002-06-25  H.J. Lu <hjl@gnu.org>
1447         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1448         * Makefile.in: Regenerated.
1450 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
1452         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1453         the size of attached object files, to allow make the object files
1454         available via FTP or HTTP and to mention that the mail will be
1455         sent to a mailing list.
1457 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
1459         * ld/configure.host (romp): Drop support.
1461 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
1463         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1464         section flags for SEC_DATA, rather than for SEC_CODE being unset.
1466 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
1468         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1469         format specifier used to print BFD name.
1471 2002-06-18  Dave Brolley  <brolley@redhat.com>
1473         From Catherine Moore, Michael Meissner, Jim Blandy:
1474         * emulparams/elf32frv.sh: New file.
1475         * configure.tgt: Support frv-*-*.
1476         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1477         (eelf32frv.c): New target.
1479 2002-06-17  Tom Rix  <trix@redhat.com>
1481         * emultempl/elf32.em: gld*_get_script:  Check for
1482         GENERATE_COMBRELOC_SCRIPT.
1483         * scripttempl/elfd10v.sc : Fix STACK and INSN.
1484         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1486 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
1488         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1490 2002-06-12  H.J. Lu <hjl@gnu.org>
1492         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1493         false if xvec doesn't match.
1495 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
1497         * ldlang.c (lang_size_sections_1): Skip removed output sections.
1499 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
1501         * ldexp.c: Replace CONST with const.
1502         * ldfile.c: Likewise.
1503         * ldfile.h: Likewise.
1504         * ldlex.l: Likewise.
1505         * mri.c: Likewise.
1506         * pe-dll.h: Likewise.
1508 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
1510         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1512 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
1514         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1515         to -1 == implicit enable.
1516         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1517         initialize link_info.pei386_auto_import to -1 == implicit
1518         enable.
1519         (gld_${EMULATION_NAME}_parse_args): When processing
1520         --enable-auto-import and --disable-auto-import options, use
1521         '1' and '0' instead of 'true' and 'false'.
1522         (pe_find_data_imports): Only issue message about auto-import
1523         when the feature is implicitly enabled.  Downgrade message to
1524         informational instead of warning.
1526 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
1528         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1530 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1532         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1533         HOSTING_CRT0 and HOSTING_LIBS.
1535 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
1537         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1539 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
1541         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1542         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1544 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
1546         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1547         SEC_EXCLUDE sections when doing a relocatable link.
1549 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
1551         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1552         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1553         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1554         (eshlelf64_nbsd.c): New rules.
1555         * Makefile.in: Regenerate.
1556         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1557         (sh64-*-netbsd*): New targets.
1558         * emulparams/shelf32_nbsd.sh: New file.
1559         * emulparams/shelf64_nbsd.sh: New file.
1560         * emulparams/shlelf32_nbsd.sh: New file.
1561         * emulparams/shlelf64_nbsd.sh: New file.
1563 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
1565         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
1567 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1569         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1570         C++ constructors/destructors, loosely based on the m68hc11 port.
1572 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
1574         * Makefile.in: Regenerate.
1575         * aclocal.m4: Regenerate.
1576         * config.in: Regenerate.
1577         * configure: Regenerate.
1579 2002-05-31  Graeme Peterson  <gp@qnx.com>
1581         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1582         (ei386nto.c): Add rule.
1583         * Makefile.in: Regenerate.
1584         * configure.tgt: Add i[3456]86-*-nto-qnx*.
1585         * emulparams/i386nto.sh: New file.
1587 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
1589         * NEWS: Add entry for VAX ELF support.
1591 2002-05-29  Matt Thomas  <matt@3am-software.com>
1592             Jason Thorpe  <thorpej@wasabisystems.com>
1594         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1595         (eelf32vax.c)
1596         (evaxnbsd.c): New rules.
1597         * Makefile.in: Regenerate.
1598         * configure.tgt (vax-*-netbsdelf*)
1599         (vax-*-netbsdaout*)
1600         (vax-*-netbsd*): New targets.
1601         * emulparams/elf32vax.sh: New file.
1602         * emulparams/vaxnbsd.sh: New file.
1604 2002-05-29  Adam Nemet  <anemet@lnxw.com>
1606         * emultempl/armelf.em (arm_elf_after_open): Don't determine
1607         bfd_for_interwork, instead add glue sections to each input bfd.
1608         (bfd_for_interwork): New global.
1609         (arm_elf_set_bfd_for_interworking): New function.
1610         (arm_elf_before_allocation): Use it.
1612 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
1614         * Makefile.am: Add DLX make target.
1615         * configure.tgt: Add DLX configuration.
1616         * Makefile.in: Regenerate.
1617         * emulparams/elf32_dlx.sh: New file
1618         * scripttempl/dlx.sc: New file
1620 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
1622         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1623         * Makefile.in: Regenerate.
1624         * emulparams/elf_chaos.sh: Use elf_chaos script.
1625         * scripttempl/elf_chaos.sc: New file.
1627 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
1629         * ldlang.c (lang_size_sections_1): Move check for conflicting load
1630         addresses and regions from here...
1631         (lang_get_regions): ...to this new function.
1632         (lang_leave_output_section_statement): Use lang_get_regions.
1633         (lang_leave_overlay): Likewise.
1634         * mri.c (mri_draw_tree): Pass null as last argument to
1635         lang_leave_output_section_statement.
1636         * emultempl/elf32.em (gld*_place_orphan): Likewise.
1637         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1638         * emultempl/pe.em (gld*_place_orphan): Likewise.
1640 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1642         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1644 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1646         * ldemul.c: Fix formatting.
1647         * ldfile.c: Likewise.
1648         * pe-dll.c: Likewise.
1649         * pe-dll.h: Likewise.
1651 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
1653         * ldlang.c (lang_process): Formatting, grammar.
1655         * ldlex.l: Use #include "" instead of <> for local header files.
1657 2002-05-24  TAMURA Kent <kent@netbsd.org>
1659         * configure.tgt: Add a target for i386-netbsdpe.
1661 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1663         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1664         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1665         output section if necessary.  Handle .tbss.
1666         (lang_size_sections): Clear _raw_size for .tbss section
1667         (it allocates space in PT_TLS segment only).
1668         * ldwrite.c (build_link_order): Build link order for .tbss too.
1670 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1672         * configure.in: Correct spelling of AC_PREREQ.
1674 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
1676         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1677         default.
1678         (autofilter_objlist): Add crtbegin.o, crtend.o.
1680 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
1682         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1683         (longopts): Add new option --exclude-libs.
1684         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1685         (gld_${EMULATION_NAME}_parse_args): Use it.
1686         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1687         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1688         from whole archives.
1689         (pe_dll_add_excludes): Set excludes->type.
1690         (auto_export): Add new variable libname and set to archive basename if
1691         abfd.  Use it when filtering default and user-specified libarary
1692         excludes.  Let string "ALL" mean all libs when filtering user-specified
1693         libs.
1694         * ld.texinfo: Document --exclude-libs.
1696 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
1698         * ldemul.c (ldemul_new_vers_pattern): New function.
1699         * ldemul.h (ldemul_new_vers_pattern): Declare.
1700         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1701         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1702         * emultempl/ppc64elf.em (dotsyms): New static var.
1703         (gld${EMULATION_NAME}_new_vers_pattern): New function.
1704         (LDEMUL_NEW_VERS_PATTERN): Define.
1705         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1706         (PARSE_AND_LIST_LONGOPTS): Likewise.
1707         (PARSE_AND_LIST_ARGS_CASES): Handle them.
1708         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1709         initialiser.
1710         * emultempl/armcoff.em: Likewise.
1711         * emultempl/armelf_oabi.em: Likewise.
1712         * emultempl/beos.em: Likewise.
1713         * emultempl/elf32.em: Likewise.
1714         * emultempl/generic.em: Likewise.
1715         * emultempl/gld960.em: Likewise.
1716         * emultempl/gld960c.em: Likewise.
1717         * emultempl/linux.em: Likewise.
1718         * emultempl/lnk960.em: Likewise.
1719         * emultempl/m68kcoff.em: Likewise.
1720         * emultempl/mipsecoff.em: Likewise.
1721         * emultempl/pe.em: Likewise.
1722         * emultempl/sunos.em: Likewise.
1723         * emultempl/ticoff.em: Likewise.
1724         * emultempl/vanilla.em: Likewise.
1726 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
1728         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1729         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
1730         (LIB_SEARCH_DIRS): No need to use "tr".
1731         (COMPILE_IN): Only set for native targets.
1732         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1733         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1734         * configure.tgt (powerpc*): Set tdir_*.
1735         (powerpcle*): Correct targ_extra_emuls.
1736         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1737         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1739 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
1741         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1742         calling lang_add_entry.
1744 2002-05-21  H.J. Lu  (hjl@gnu.org)
1746         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1747         "-z muldefs".
1748         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1750         * ld.texinfo: Updated for --allow-multiple-definition and
1751         "-z muldefs".
1753         * ldmain.c (main): Initialize the allow_multiple_definition
1754         field to false.
1756         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1757         (ld_options): Add --allow-multiple-definition.
1758         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1760 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
1762         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1763         (earmelfb_nbsd.c): New rule.
1764         * Makefile.in: Regenerate.
1765         * configure.tgt (armeb-*-netbsdelf*): New target.
1766         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1767         (arm-*-netbsd*): Likewise.
1768         * emulparams/armelfb_nbsd.sh: New file.
1770 2002-05-18  Tom Rix  <trix@redhat.com>
1772         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1773         support.
1775 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1777         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1778         * Makefile.in: Regenerate.
1779         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1781 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1783         * emulparams/avr1.sh: New file.
1784         * emulparams/avr2.sh: New file.
1785         * emulparams/avr3.sh: New file.
1786         * emulparams/avr4.sh: New file.
1787         * emulparams/avr5.sh: New file.
1788         * scripttempl/avr.sc: New file.
1790 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
1792         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1793         (lang_place_orphans): Abort if just_syms_flag.
1795 2002-05-10  Tom Rix  <trix@redhat.com>
1797         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1798         architecture and machine information in the output bfd.
1799         (gld*_before_parse): Remove old arch and machine code.
1800         (choose_target): Rename to gld*_choose_target.
1801         (rtld): Change type to int.
1802         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1803         objects in XCOFF archives.
1804         * ldfile.h: Update copyright date.
1806 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
1808         * ldmain.c (main): Enable -z combreloc by default.
1810 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
1812         * Makefile.am: Honour DESTDIR.
1813         * Makefile.in: Regenerate.
1815 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
1817         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1818         (lang_enter_overlay): Remove the last two parameters.
1819         (lang_leave_overlay): Take them here instead.
1820         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1821         (section): Pass LMA and crossref flag to lang_leave_overlay rather
1822         than lang_enter_overlay.
1823         * ldlang.c (lang_memory_region_lookup): Return null for null names.
1824         (lang_output_section_statement_lookup): Initialize update_dot_tree.
1825         (lang_size_sections_1): Evaluate it.
1826         (lang_leave_output_section_statement): Rework LMA lookup.
1827         (overlay_lma, overlay_nocrossrefs): Remove.
1828         (lang_enter_overlay): Remove LMA and crossref arguments.
1829         (lang_enter_overlay_section): Don't set the LMA here.
1830         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
1831         assignment to the last section's update_dot_tree.  Unconditionally
1832         use the load and run-time regions specified in the OVERLAY statement.
1833         Likewise the first section's LMA.  Only set the other sections' LMAs
1834         when no load region is given.
1836 2002-05-06  Nick Clifton <nickc@redhat.com>
1838         * po/sv.po: New translation.
1840 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
1842         * emultempl/hppaelf.em (build_section_lists): New function.
1843         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1844         and build_section_lists.
1846 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
1848         * ld.h: Fix formatting.
1849         * ldexp.c: Likewise.
1850         * ldfile.c: Likewise.
1851         * ldlang.c: Likewise.
1852         * ldmain.c: Likewise.
1853         * lexsup.c: Likewise.
1854         * pe-dll.c: Likewise.
1856 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
1858         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1859         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
1860         (build_section_lists): Do output_section tests here.
1862 2002-04-30  Tom Rix  <trix@redhat.com>
1864         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1866 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
1868         Long branch stubs, multiple stub sections.
1869         * emultempl/ppc64elf.em: Include ldctor.h.
1870         (stub_file): New var.
1871         (group_size): New var.
1872         (ppc_create_output_section_statements): New function.
1873         (struct hook_stub_info): New.
1874         (hook_in_stub): New function.
1875         (ppc_add_stub_section): New function.
1876         (ppc_layout_sections_again): New function.
1877         (build_section_lists): New function.
1878         (gld${EMULATION_NAME}_finish): Rewrite.
1879         (real_func): New var.
1880         (ppc_for_each_input_file_wrapper): New function.
1881         (ppc_lang_for_each_input_file): New function.
1882         (lang_for_each_input_file): Define.
1883         (PARSE_AND_LIST_PROLOGUE): Define.
1884         (PARSE_AND_LIST_LONGOPTS): Define.
1885         (PARSE_AND_LIST_OPTIONS): Define.
1886         (PARSE_AND_LIST_ARGS_CASES): Define.
1887         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1889 2002-04-30  Tom Rix  <trix@redhat.com>
1891         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1892         -blibpath, -bnolibpath support.
1894 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
1896         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1897         (eelf32ppcwindiss.c): New target.
1898         * Makefile.in: Regenerated.
1899         * configure.tgt: Add support for powerpc-*-windiss.
1900         * emulparams/elf32ppcwindiss.sh: New file.
1902 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
1904         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1905         * ldexp.c (exp_print_token): Add "infix_p" argument.
1906         (exp_print_tree): Update accordingly.
1908 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
1910         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1911         * Makefile.in: Regenerate.
1912         * mpw-elfmips.c: Delete.
1913         * mpw-eppcmac.c: Delete.
1914         * mpw-esh.c: Delete.
1915         * mpw-idtmips.c: Delete.
1917 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
1919         * emulparams/shelf32.sh (MACHINE): Now sh5.
1921 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1923         * ldgram.y: Fix syntax warning.
1925 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
1927         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1928         to prevent "-n" from being taken as an abbreviation for
1929         "--no-pipeline-knowledge".
1931 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1933         * ldlang.c (lang_size_sections_1): Don't complain about
1934         SEC_NEVER_LOAD sections having no memory region specified.
1936         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1938 2002-04-07  matthew green  <mrg@redhat.com>
1940         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1942 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1944         * dep-in.sed: Cope with absolute paths.
1945         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1946         Run "make dep-am".
1947         * Makefile.in: Regenerate.
1949 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1951         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1953 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1955         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1956         is smaller than maximum, round dot up to common page boundary.
1958 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
1960         * configure.host: Set up for generic hosts first, then tweak as
1961         necessary in more specific targets.
1962         (HOSTING_LIBS): Include libgcc_eh.a if found.
1964 2002-03-23  Andreas Jaeger  <aj@suse.de>
1966         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1968 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
1970         * Makefile.am: Run "make dep-am".
1971         * Makefile.in: Regenerate.
1973 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
1975         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1977 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
1979         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1980         add the symbol to the linker hash table immediately.
1981         (lang_place_undefineds): Split symbol creation out..
1982         (insert_undefined): ..to here.
1984 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
1986         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1987         the contents of the buffer returned from basename function will are
1988         getting overwritten while still being used.
1990 2002-03-18  Jan Hubicka  <jh@suse.cz>
1991             Andreas Jaeger  <aj@suse.de>
1992             Andreas Schwab  <schwab@suse.de>
1994         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1995         * elf_x86_64.sh (ARCH): Set to i386:x86-64
1996         set libraries to default to lib64 paths.
1998 2002-03-18  Tom Rix  <trix@redhat.com>
2000         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2001         * configure.tgt : Same.
2002         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2003         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2004         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2005         emulation parameters for better -b32, -b64 support.
2006         * emulparms/aixrs6.sh : Same.
2007         * emulparms/ppcmacos.sh : Same.
2008         * emultempl/aix.em (choose_target) : Use new emulation parameters
2009         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2010         * Makefile.in : Regenerate.
2012 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
2014         * po/fr.po: Updated version.
2016 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
2018         * ldmain.c (main): Move .text readonly flag fudges from here..
2019         * ldlang.c (lang_process): ..to here.
2021 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
2023         * ldlang.c (lang_check): Remove the word size check added in last
2024         change.  Treat emitrelocations case as for relocatable links.
2026 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
2028         * po/fr.po: Updated version.
2030 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
2032         * ldlang.c (lang_check): Do relocatable link checks first, so that
2033         warn_mismatch can't override.  Check compatible and word size too.
2035 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
2037         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2039 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
2041         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2042         DATA_SEGMENT_ALIGN.
2044 2002-03-04  H.J. Lu <hjl@gnu.org>
2046         * scripttempl/elf.sc: Put .preinit_array, .init_array and
2047         .fini_array in the data segment.
2049 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
2051         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2053 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
2055         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2056         .init_array, and .fini_array.
2058 2002-02-20  Andreas Schwab  <schwab@suse.de>
2060         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2061         .IA64_unwind* in a relocatable link.
2063 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
2065         * NEWS: Mark 2.12 branch.
2067 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2069         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2070         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2072 2002-02-18  Tom Rix  <trix@redhat.com>
2074         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2075         (gld*_before_allocation): Same.
2076         (gld*_create_output_section_statements): Generate
2077         __rtinit if run time linking.  Add librtl.a to the link.
2078         (gld*_read_file): Clean.
2080 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
2082         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2084 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
2086         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2087         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2088         and eelf64alpha_fbsd.
2089         * Makefile.in: Regenerate.
2090         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2091         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2092         use a FreeBSD-specific emulation rather than the psABI one.
2093         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2094         for all FreeBSD ELF systems.
2095         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2096         emulation.
2097         * emulparams/elf32ppc_fbsd.sh: Likewise.
2098         * emulparams/elf64_ia64_fbsd.sh: Likewise.
2099         * emulparams/elf64_sparc_fbsd.sh: Likewise.
2100         * emulparams/elf64alpha_fbsd.sh: Likewise.
2101         * emulparams/elf_i386_fbsd.sh: Likewise.
2102         * emulparams/elf_x86_64_fbsd.sh: Likewise.
2104 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
2106         * po/tr.po: Updated version.
2108 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
2110         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2111         (FILL): Likewise.
2113 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
2115         * emultempl/mmo.em (mmo_after_open): Don't call
2116         _bfd_mmix_check_all_relocs when producing ELF output.
2118 2002-02-15  Richard Henderson  <rth@redhat.com>
2120         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2121         definition.  Emit a unop+nop pair.
2123 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
2125         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2126         for presence of .MMIX.reg_contents.linker_allocated before early
2127         exit.
2129         * NEWS: Mention support for MMIX.
2131 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
2133         Support arbitrary length fill patterns.
2134         * ld.texinfo (Output Section Fill): Describe fill expressions.
2135         (FILL): Refer to the above.
2136         * ldexp.h (etree_value_type): Add "str" field.
2137         (union etree_union): Add "str" to "value" struct.
2138         (exp_bigintop): Declare.
2139         (exp_get_fill): Declare.
2140         * ldexp.c: Include "safe-ctype.h".
2141         (exp_intop): Set value.str to NULL.
2142         (exp_bigintop): New function.
2143         (new_rel): Pass in "str", and set new.str from it.
2144         (new_rel_from_section): Set new.str to NULL.
2145         (fold_name): Adjust calls to new_rel.
2146         (exp_fold_tree): Likewise.
2147         (exp_get_fill): New function.
2148         * ldgram.y (struct big_int bigint, fill_type *fill): New.
2149         (INT): Returns a "bigint".  Adjust all code handling INTs.
2150         (fill_opt): Returns a "fill".
2151         (fill_exp): Split out of fill_opt, use for FILL.
2152         * ldlang.h (struct _fill_type): New.
2153         (fill_type): Move typedef to ldexp.h.
2154         (lang_output_section_statement_type): "fill" is now a pointer.
2155         (lang_fill_statement_type): Likewise.
2156         (lang_padding_statement_type): Likewise.
2157         (lang_add_fill): Now takes a "fill_type *" param.
2158         (lang_leave_output_section_statement): Likewise.
2159         (lang_do_assignments): Likewise.
2160         (lang_size_sections): Likewise.
2161         (lang_leave_overlay_section): Likewise.
2162         (lang_leave_overlay): Likewise.
2163         * ldlang.c: Include ldgram.h after ldexp.h.
2164         (lang_output_section_statement_lookup): Adjust for fill_type change.
2165         (print_fill_statement): Likewise.
2166         (print_padding_statement): Likewise.
2167         (insert_pad): Now takes a "fill_type *" arg.
2168         (size_input_section): Likewise.
2169         (lang_size_sections_1): Likewise.
2170         (lang_size_sections): Likewise.
2171         (lang_do_assignments): Likewise.
2172         (lang_add_fill): Likewise.
2173         (lang_leave_output_section_statement): Likewise.
2174         (lang_leave_overlay_section): Likewise.
2175         (lang_leave_overlay): Likewise.
2176         Adjust all callers of the above function.
2177         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
2178         starting with "0X" as well as "0x".  Return bigint.str for hex
2179         numbers starting with "0x" or "0X", zero bigint.str otherwise.
2180         Always use base 16 for numbers starting with "$".
2181         * ldmain.c: Include ldgram.h after ldexp.h.
2182         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2183         of bfd_fill_link_order.
2184         * pe-dll.c: Adjust lang_do_assignments calls.
2185         * emultempl/elf32.em: Likewise.
2186         * emultempl/hppaelf.em: Likewise.
2187         * emultempl/ppc64elf.em: Likewise.
2188         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2189         lang_add_assignment call.
2190         * emultempl/pe.em: Likewise.
2192 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
2194         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
2195         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
2196         the pattern in question is not a regexp.
2197         * ldlang.c:  Likewise.
2198         * ldlang.h:  Likewise.
2199         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
2201 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
2203         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2204         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2205         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2206         * ldexp.c (exp_data_seg): New variable.
2207         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2208         (fold_binary): Handle DATA_SEGMENT_ALIGN.
2209         (exp_fold_tree): Handle DATA_SEGMENT_END.
2210         Pass allocation_done when recursing instead of hardcoding
2211         lang_allocating_phase_enum.
2212         * ldexp.h (exp_data_seg): New.
2213         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2214         (lang_size_sections): New.
2215         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2216         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2217         if COMMONPAGESIZE is defined.
2218         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2219         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2220         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2221         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2222         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2223         libraries only.
2225 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
2227         * Makefile.in: Regenerate.
2229 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
2231         * lexsup.c: Remove strtoul declaration.
2233 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
2235         * ldmain.c: Add prototype for main ().
2236         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2237         * emultempl/lnk960.em (lnk960_choose_target): Function should
2238         take two arguments.
2240 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
2242         * ldlang.c (entry_section): New initialised variable.
2243         (lang_finish): Use it.
2244         * ldlang.h (entry_section): Declare.
2245         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2246         entry_section to ".opd".
2248 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
2250         * ld.texinfo (Options): Add back in -nostdlib documentation,
2251         which had been inadvertently removed.
2253 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
2255         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2256         register section vma to a sane value after emitting error.  Make
2257         fatal conditions cause program exit when emitting message.
2259 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
2261         * configure.tgt: Add or32-*-rtems target.
2263 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
2265         Contribute sh64-elf.
2266         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
2267         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2268         in OTHER_RELOCATABLE_SECTIONS.
2269         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
2270         * emulparams/shelf32.sh (STACK_ADDR): Define.
2271         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2272         (OTHER_SECTIONS): this.  Removed stack settings.
2273         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2274         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2275         2001-03-12  DJ Delorie  <dj@redhat.com>
2276         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2277         relaxing if any shmedia or mixed sections are found.
2278         2001-03-07  DJ Delorie  <dj@redhat.com>
2279         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2280         einfo.  Gracefully decline to output to non-elf formats.
2281         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
2282         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2283         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2284         * emulparams/shelf32.sh: Ditto.
2285         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
2286         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2287         comment.
2288         2001-01-10  Ben Elliston  <bje@redhat.com>
2289         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2290         non-portable shell constructs. From Hans-Peter Nilsson.
2291         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
2292         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2293         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2294         dependencies to the shell script include chain.
2295         * Makefile.in: Regenerate.
2296         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
2297         * emultempl/sh64elf.em: Update and tweak comments.
2298         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2299         make a .cranges section SEC_IN_MEMORY.
2300         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
2301         * emultempl/sh64elf.em
2302         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2303         .cranges section found to be necessary; continue and set stored
2304         section contents flags for sections with non-mixed contents.
2305         Use a struct sh64_section_data container and sh64_elf_section_data
2306         to store contents-type flags.
2307         Remove unused update of "isec".
2308         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2309         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
2310         access contents-type flags.  Assert that the associated container
2311         is initialized.  Use that container, not elf_gp_size, to hold size
2312         of linker-generated cranges contents.
2313         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
2314         * emultempl/sh64elf.em
2315         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2316         there's already a .cranges section.  When section flag difference
2317         is found, don't NULL-check cranges a second time.  Tweak comments.
2318         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2319         merging, not max size, as size of ld-generated .cranges contents.
2320         Don't set ELF section flags in output section.  When checking for
2321         needed .cranges descriptors, don't use a variable; compare
2322         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
2323         comments.
2324         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
2325         * emultempl/sh64elf.em: New file.
2326         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2327         * Makefile.in: Regenerate.
2328         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2329         (OTHER_RELOCATING_SECTIONS): Ditto.
2330         (EXTRA_EM_FILE): New, set to sh64elf if not set.
2331         * emulparams/shlelf32.sh: Stub out all settings except
2332         OUTPUT_FORMAT.  Source shelf32.sh.
2333         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2334         OTHER_RELOCATING_SECTIONS.
2335         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2336         * emulparams/shlelf64.sh: Stub out all settings except
2337         OUTPUT_FORMAT.  Source shelf64.sh.
2338         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
2339         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2340         .cranges section.
2341         (DATA_START_SYMBOLS): Define, provide ___data.
2342         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2343         for consecutive .data section.
2344         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2345         section after .data section.
2346         * emulparams/shlelf64.sh: Ditto.
2347         * emulparams/shelf32.sh: Ditto.
2348         (ALIGNMENT): Define to 8.
2349         * emulparams/shelf32.sh: Ditto.
2350         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
2351         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2352         built-in linker scripts.
2353         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
2354         * emulparams/shlelf64.sh: New.
2355         * emulparams/shelf64.sh: New.
2356         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2357         targ_extra_emuls.
2358         * Makefile.am: Add support for shlelf64 and shelf64.
2359         * Makefile.in: Regenerate.
2360         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
2361         * configure.tgt (sh64-*-elf*): Add shelf as default.
2362         Add shlelf to targ_extra_emuls.
2363         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
2364         * emulparams/shelf32.sh: New file.
2365         * emulparams/shlelf32.sh: New file.
2366         * Makefile.am: Add support for shlelf32 and shelf32.
2367         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2368         * Makefile.in: Regenerate.
2370 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
2372         * ldlang.c (lang_reset_memory_regions): Rename from
2373         reset_memory_regions.  Change all callers.  Make public.
2374         * ldlang.h (lang_reset_memory_regions): Prototype.
2375         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2376         lang_reset_memory_regions before lang_size_sections.
2377         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2378         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2380 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
2382         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2383         arithmetic when checking for too many global registers.
2385 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
2387         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2388         (ehppanbsd.c): New rule.
2389         * Makefile.in: Regenerate.
2390         * configure.tgt (hppa*-*-netbsd*): New target.
2391         * emulparams/hppalinux.sh: Add comment to check other files
2392         that source this file it is modified, and list which
2393         files that do.
2394         * emulparams/hppanbsd.sh: New file.
2396 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
2398         * scripttempl/xstormy16.sc: Don't allocate extra space for the
2399         stack.
2401 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
2403         Support on-demand global register allocation from
2404         R_MMIX_BASE_PLUS_OFFSET relocs.
2405         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2406         mmix_set_reg_section_vma.  Call
2407         _bfd_mmix_finalize_linker_allocated_gregs.
2408         (mmix_before_allocation): New function.
2409         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2410         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2411         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2412         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2413         before .MMIX.reg_contents.
2414         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2415         (mmo_after_open): New function.
2416         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2417         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
2418         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2420 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
2422         * emulparams/or32.sh: New file.
2423         * emulparams/or32elf.sh: New file.
2424         * scripttempl/or32.sc: New file.
2425         * configure.tgt : Add support for or32.
2426         * configure: Regenerate
2427         * Makefile.am: Add support for or32.
2428         * Makefile.in: Regenerate.
2429         * NEWS: Mention support for or32.
2430         * po/ld.pot: Regenerate.
2432 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
2433             Mitch Lichtenberg  <mpl@broadcom.com>
2435         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2436         * emultempl/mipself.em: New file to handle MIPS ELF embedded
2437         reloc creation (ld --embedded-relocs).
2439 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
2441         * configure: Regenerated.
2443 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
2445         * Makefile.am (install): Depend on install-info.
2446         * Makefile.in: Regenerate.
2448 2002-01-26  Christian Rose  <menthos@menthos.com>
2450         * ldmain.c (main): Use full sentences to ease translation.
2452 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
2454         * po/fr.po: Updated version.
2456 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
2458         * po/es.po: Updated version.
2460 2002-01-25  Andreas Jaeger  <aj@suse.de>
2462         * ldlex.l (yy_input): Correct error check.
2464 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
2466         * ldmisc.c (demangle): Put back dots when string not demangled.
2468 2002-01-22  Richard Henderson  <rth@redhat.com>
2470         * emulparams/elf64alpha.sh (NOP): Use unop.
2472 2002-01-21  Andreas Jaeger  <aj@suse.de>
2474         * ldlex.l: Use fread instead of read.
2476 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
2478         * configure.tgt (ia64-*-netbsd*): New target.
2480 2002-01-21  H.J. Lu <hjl@gnu.org>
2482         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2483         0.
2484         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2486 2002-01-18  Andreas Jaeger  <aj@suse.de>
2488         * ldver.c (ldversion): Update year.
2490 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
2492         * po/ld.pot: Regenerate.
2494 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
2496         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2497         * Makefile.in: Regenerate.
2498         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2499         * emultempl/ppc64elf.em: New file.
2501 2002-01-15  DJ Delorie  <dj@redhat.com>
2503         * scripttempl/pe.sc: Add support for constructor priorities.
2505 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2507         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2508         * emulparams/avr23xx.sh: Likewise.
2509         * emulparams/avr4433.sh: Likewise.
2510         * emulparams/avr44x4.sh: Likewise.
2511         * emulparams/avr85xx.sh: Likewise.
2512         * emulparams/avrmega103.sh: Likewise.
2513         * emulparams/avrmega161.sh: Likewise.
2514         * emulparams/avrmega603.sh: Likewise.
2515         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2517 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
2519         * ldlang.c (walk_wild_section): Exclude object file if enclosing
2520         archive is excluded.
2522 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
2524         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2525         (eshelf_nbsd.c): New rule.
2526         (eshlelf_nbsd.c): New rule.
2527         * Makefile.in: Regenerate.
2528         * configure.tgt (sh*le-*-netbsdelf*): New target.
2529         (sh*-*-netbsdelf*): New target.
2530         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2531         * ld/emulparams/shelf_nbsd.sh: New emulation.
2532         * ld/emulparams/shlelf_nbsd.sh: New emulation.
2534 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
2536         * po/es.po: New file: Spanish translation.
2537         * configure.in (ALL_LINGUAS): Add es.
2538         * configure: Regenerate.
2540 2002-01-06  John Marshall  <jmarshall@acm.org>
2542         * ld.texinfo: Note that --emit-relocs is currently only
2543         implemented for ELF.
2545 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
2547         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2548         of bfd_section_list_remove and bfd_section_list_insert macros.
2549         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2550         * emultempl/mmo.em (mmo_place_orphan): Likewise.
2552 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
2554         * configure.tgt (x86_64-*-netbsd*): New target.
2556 2001-12-21  Tom Rix  <trix@redhat.com>
2558         (gld*_create_output_section_statements): New function.
2559         For -binitfini support.
2560         * emultempl/aix.em (gld*_before_parse): Fix comment.
2561         * emultempl/aix.em (gld*_parse_args): Fix comment.
2563 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
2565         * configure.tgt (mips*-dec-netbsd*): Delete alias for
2566         mips*el-*-netbsd*.
2567         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2569         * configure.tgt (arm-*-netbsdelf*): Add target.
2570         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2571         * emulparams/armelf_nbsd.sh: Added.
2572         * Makefile.am: Add rules for earmelf_nbsd.
2573         * Makefile.in: Regenerate.
2575 2001-12-19  Andreas Jaeger  <aj@suse.de>,
2576             Susanne Oberhauser <froh@suse.de>
2578         * configure.host: Add rules for x86_64-*linux-gnu.  Change
2579         s390x-linux entry to use gcc to report configuration, replace gcc
2580         with $CC in s390-linux
2582 2001-12-19  Andreas Jaeger  <aj@suse.de>
2584         * ld.texinfo (VERSION): Fix markup.
2586 2001-12-18  matthew green  <mrg@eterna.com.au>
2588         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2589         (m68kelfnbsd.c): New rule.
2590         * Makefile.in: Regenerate.
2591         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2592         (m68*-*-netbsd*4k*): .. this.
2593         (m68*-*-netbsdelf*): New target.
2594         (m68*-*-netbsd*): Also include ELF support.
2595         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2596         * emulparams/m68kelfnbsd.sh: New emulation.
2598 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
2600         * ldgram.y (vers_node): Support anonymous version tags.
2601         * ldlang.c (lang_register_vers_node): Ensure anonymous version
2602         tag is not defined together with non-anonymous versions.
2603         * ld.texinfo: Document it.
2605 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
2607         * po/tr.po: New file: Turkish translation.
2608         * configure.in (ALL_LINGUAS): Add tr.
2609         * configure: Regenerate.
2611 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
2613         * Makefile.am: Add rules for eelf64alpha_nbsd.
2614         * Makefile.in: Regenerate.
2615         * configure.tgt (alpha*-*-netbsd*): Set
2616         targ_emul to elf64alpha_nbsd.
2617         * emulparams/elf64alpha_nbsd.sh: Added.
2619 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
2621         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2622         section_tail when fiddling with section list.
2623         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2624         broken into separate strings to make translation easier.
2625         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2626         fiddling with section list.
2627         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2629 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
2631         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2633 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
2635         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2637 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
2639         * emultempl/elf32.em (finish): Supply output_bfd
2640         to bfd_elf*_discard_info.
2641         (OPTION_EH_FRAME_HDR): Define.
2642         (longopts): Add --eh-frame-hdr.
2643         (parse_args): Handle it.
2644         (list_options): Add --eh-frame-hdr to help.
2645         * emultempl/hppaelf.em (finish): Supply output_bfd
2646         to bfd_elf*_discard_info.
2647         * scripttempl/elf.sc (.eh_frame_hdr): Add.
2649 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
2651         * lexsup.c (parse_args): Don't pass shortopts to second call to
2652         getopt functions.  Restore optind rather than decrementing before
2653         second call.  Remove errind as it now duplicates last_optind.
2655 2001-12-11  Christopher Faylor  <cgf@redhat.com>
2657         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2659 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
2660             Richard Henderson  <rth@redhat.com>
2662         * Makefile.am: Add support for xstormy16.
2663         * configure.tgt: Add support for xstormy16.
2664         * Makefile.in: Regenerate.
2665         * emulparams/elf32xstormy16.sh: New file.
2666         * scripttempl/xstormy16.sc: New file.
2668 2001-10-01  Christopher Faylor <cgf@cygnus.com>
2670         * Makefile.in (LIB_PATH): Make configurable.
2671         (GENSCRIPTS): Set LIB_PATH in environment.
2672         * configure.in: Substitute LIB_PATH.
2673         * configure: Regenerate.
2674         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2675         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2677 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
2679         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2680         describing the -N option so that it is easier to translate into
2681         foreign languages.
2683 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
2685         * emultempl/pe.em (..._list_options): Replace multiple fprintf
2686         statements describing a single option with a single, newline
2687         escaped fprintf.  This allows better translation into other
2688         languages.
2690         * ldmain.c (add_archive_element): Combine multiple strings
2691         into a single string to permit better translation into other
2692         languages.
2694 2001-12-05  Tom Rix  <trix@redhat.com>
2696         * Makefile.am: Remove eaixppc64.
2697         * Makefile.in: Regenerate.
2699 2001-12-04  Tom Rix  <trix@redhat.com>
2701         * emultempl/aix.em (choose_target): Change default target to
2702         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
2703         warning.
2704         (gld*_read_file):  Fix typo.
2705         (change_symbol_mode): Add prototype.
2706         (is_syscall): Same.
2708         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2709         * emulparams/aixrs6.sh : Same.
2710         * emulparams/ppcmacos.sh : Same.
2711         * emulparams/aixppc64.sh : Delete file.
2712         * emultempl/aix.em : Formatting changes.
2714 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
2716         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2717         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2718         __Sbss.
2719         (OTHER_END_SYMBOLS): Fix formatting.
2720         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2721         (OTHER_END_SYMBOLS): Fix formatting.
2723 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
2725         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2727 2001-12-02  Tom Rix  <trix@redhat.com>
2729         * configure.tgt : Remove eaixppc64 emulations.
2730         * Makefile.in : Remove eaixppc64.c
2731         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2732         (ldemul_default_target): Same.
2733         * emultempl/gld960.em (gld960_choose_target):  Same.
2734         * emultempl/gld960c.em (gld960_choose_target):  Same.
2735         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2736         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2737         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2738         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2739         * emultempl/aix.em (choose_target): New function.  Handle emulation of
2740         -b32 and -b64.
2742 2001-11-27  H.J. Lu <hjl@gnu.org>
2744         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2745         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2746         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2747         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2748         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2749         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2750         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2751         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2753         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2754         is not empty.
2755         (SDATA): Likewise.
2756         (REL_SDATA): Likewise.
2757         (REL_SBSS): Likewise.
2758         (REL_SDATA2): Likewise.
2759         (REL_SBSS2): Likewise.
2760         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2761         (SDATA2): Likewise.
2763 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2765         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2766         destructor in rom.
2767         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2769 2001-11-22  H.J. Lu  <hjl@gnu.org>
2771         * Makefile.in: Regenerated with automake based on automake
2772         1.4-8 in RedHat 7.1.
2774 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
2776         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2777         (config.status): Delete rule.
2778         Add extra dependencies to cover sourced emulparams files.
2779         * Makefile.in: Regenerate.
2781         * scripttempl/elf.sc: Order <section>, <section>.* and
2782         corresponding linkonce sections as seen in input files.
2783         Formatting fixes.  Zero vma of all sections if not relocating.
2784         (STACK): Define and insert if STACK_ADDR defined.
2785         (OTHER_RELOCATING_SECTIONS): Delete.
2786         (OTHER_END_SYMBOLS): Define.
2787         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2788         (OTHER_READWRITE_SECTIONS): Likewise.
2789         (OTHER_GOT_SECTIONS): Likewise.
2790         (OTHER_SDATA_SECTIONS): Likewise.
2791         (OTHER_BSS_SECTIONS): Likewise.
2792         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2793         (OTHER_READWRITE_SECTIONS): Likewise.
2794         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2795         (OTHER_READWRITE_SECTIONS): Likewise
2797         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2798         (STACK_ADDR): Define.
2799         * emulparams/armelf_oabi.sh: As for armelf.sh.
2800         * emulparams/elf32mcore.sh: As for armelf.sh.
2801         * emulparams/h8300elf.sh: As for armelf.sh.
2802         * emulparams/mn10200.sh: As for armelf.sh.
2803         * emulparams/shelf.sh: As for armelf.sh.
2805         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2806         (OTHER_END_SYMBOLS): Define.
2807         * emulparams/m32relf.sh: As for elf32fr30.sh.
2808         * emulparams/h8300helf.sh: As for elf32fr30.sh.
2809         * emulparams/h8300self.sh: As for elf32fr30.sh.
2811         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2812         defines with RELOCATING test.
2813         (OTHER_SDATA_SECTIONS): Likewise.
2814         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2815         (OTHER_END_SYMBOLS): ..this.
2816         * emulparams/crislinux.sh: As for criself.sh.
2818         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2819         if not relocating.
2820         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2821         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
2822         normal and linkonce sections as seen in input files.
2823         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2824         (TEXT_DYNAMIC): Likewise.
2825         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2826         (OTHER_SDATA_SECTIONS): Likewise.
2827         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2828         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2829         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2830         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2831         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2832         (OTHER_PLT_RELOC_SECTIONS): Likewise.
2833         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
2834         sections as seen in input files.
2835         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2836         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2837         if not relocating.
2838         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2839         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2840         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2841         (OTHER_SECTIONS): Instead, use this..
2842         (OTHER_END_SYMBOLS): ..and this.
2844         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2845         * emulparams/elf32bsmip.sh: Likewise.
2846         * emulparams/elf32btsmip.sh: Likewise.
2847         * emulparams/elf32ebmip.sh: Likewise.
2848         * emulparams/elf32lmip.sh: Likewise.
2849         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2850         * emulparams/elf32lsmip.sh: Likewise.
2851         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2852         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2853         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2854         * emulparams/elf64btsmip.sh: Likewise.
2855         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2856         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2857         * emulparams/elf32ppclinux.sh: Likewise.
2858         * emulparams/elf32ppcsim.sh: Likewise.
2859         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2860         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2861         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2862         * emulparams/h8300self.sh: Likewise.
2863         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2864         * emulparams/sh.sh: Comment.
2865         * emulparams/shl.sh: Source sh.sh, remove duplicates.
2866         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2867         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2869 2001-11-21  David Heine <dlheine@tensilica.com>
2870             Alan Modra  <amodra@bigpond.net.au>
2872         * ldlang.c (map_input_to_output_sections): Replace "break"
2873         accidentally removed with 2001-08-03 change.
2874         (lang_gc_sections_1): Likewise.
2876 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
2878         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2880 2001-11-20  Angela Marie Thomas <angela@redhat.com>
2882         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2883         of false when calling lang_size_sections.
2884         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2886 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
2888         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2889         function when LDEMUL_FINISH isn't set to the same name.  Don't
2890         call ${LDEMUL_FINISH}.
2891         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2892         * emultempl/armelf.em (arm_elf_finish): Call
2893         gld${EMULATION_NAME}_finish.
2894         * emultempl/hppaelf.em (hppaelf_finish): Rename to
2895         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
2896         hppaelf_layout_sections_again if necessary.
2897         (need_laying_out): New var.
2898         (hppaelf_layaout_sections_again): Rename to
2899         hppaelf_layout_sections_again.  Clear need_laying_out.
2900         (PARSE_AND_LIST_OPTIONS): Format text.
2902 2001-11-14  H.J. Lu  <hjl@gnu.org>
2904         * emultempl/armelf.em (arm_elf_finish): Renamed from
2905         gld${EMULATION_NAME}_finish.
2906         (LDEMUL_FINISH): Set to arm_elf_finish.
2908 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
2910         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2911         (struct ld_emulation_xfer_struct): Use it.
2913 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
2915         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2916         additional symbols referenced by newer crt0.o files from HP.
2918 2001-11-12  Anthony Green  <green@redhat.com>
2920         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2922 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
2924         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2925         * Makefile.in: Regenerate.
2927 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2929         * ld.texinfo: Use @command for commands, @option for options.
2930         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2931         the page man title.
2932         * Makefile.in: Rebuild.
2934 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
2936         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2937         Add support for targets.
2939 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
2941         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2942         * configure: Regernate.
2943         * po/fr.po: New file.
2944         * po/sv.po: New file.
2946 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
2948         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2949         as little endian default and to support big endian.
2951 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
2953         * ld.texinfo (Options): Document new option, -nostdlib.
2954         * lexsup.c (OPTION_NOSTDLIB): New definition.
2955         (ld_options): Add entry for "nostdlib".
2956         (parse_args): Handle OPTIONS_NOSTDLIB.
2957         * ldfile.c (ldfile_add_library_path): Don't add directories
2958         to the search path if they weren't specified on the command line
2959         and -nostdlib was specified.
2960         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2962 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
2964         * lexsup.c (parse_args): Prevent infinite parsing loop when
2965         "-rpath.a" is specified on the command line.
2966         Replace calls to fprintf with calls to einfo.
2968 2001-10-31  John Marshall  <jmarshall@acm.org>
2970         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2971         appear only once across all the linker scripts involved in a link
2972         invocation no longer applies.  Make the documentation reflect
2973         that.
2975 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
2977         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2978         targets.
2979         (sh-*-linux*): Added targ_extra_libpath.
2981 2001-10-31  David Heine  <dlheine@tensilica.com>
2983         * ldlang.c (lang_size_sections): Keep a valid output_offset field
2984         for padding statements.
2986 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
2988         * configure.tgt (mmix-*-*): New target.
2989         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2990         Add dependencies to match.
2991         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2992         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2993         scripttempl/mmo.sc: New files.
2994         * gen-doc.texi: @set MMIX.
2995         * ld.texinfo: Ditto.
2996         [MMIX] Add MMIX node.
2997         * Makefile.in: Regenerate.
2999 2001-10-29  Kazu Hirata  <kazu@hxi.com>
3001         * ldlang.c: Fix a comment typo.
3003 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
3005         * configure.host: Move alpha*-*-linux-gnu* entry to generic
3006         entries, and match *-*-linux*.
3008 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
3010         * ldgram.y (mri_script_command): Surround processing of INCLUDE
3011         with ldlex_script, ldlex_popstate.
3012         (ifile_p1): Likewise.
3013         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
3014         correct slot.
3015         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
3016         to 1.  Don't BEGIN(SCRIPT).
3017         (lex_redirect): Similarly.
3018         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3020 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
3022         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3023         __EH_FRAME_END__ and accept eh frames into data section.
3024         Add ctor and dtor sections.
3026 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3028         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3029         (auto-export): Fix indentation.
3031 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3033         * pe-dll.c (autofilter_objectlist):  Add startup objects
3034         for profiling.
3035         (auto-export): Constify char * p.
3036         Extract file basename and use strcmp rather than ststr
3037         for object lookup.
3039 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
3041         * ldmain.c (get_emulation): Improve comment about the handling
3042         of -mipsN options.
3044 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
3046         * po/POTFILES.in: Regenerate.
3048 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
3050         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3051         -z nocopyreloc and -z nocombreloc usage strings.
3053 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
3055         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3056         in usage.
3058 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
3060         * scripttempl/armaout.sc: Place .bss section after end of aligned
3061         data section to match behaviour of aout code in constructrion of
3062         header.
3064 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3066         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3067         startup files for mingw32 dlls to list.
3069 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
3071         * emultempl/elf32.em: Fix shell 'if' usage for portability.
3073 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
3075         * configure.tgt (targ): Add arm9e-*-elf.
3077 2001-10-05  H.J. Lu  <hjl@gnu.org>
3079         * genscripts.sh: Fix a typo in the last change.
3081 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
3083         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3084         -z nocombreloc in usage.
3086 2001-10-03  Jim Blandy  <jimb@redhat.com>
3088         * genscripts.sh: Include a comment at the top of each generated
3089         script, explaining its purpose.
3091 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
3093         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3094         * NEWS: Mention -z nocopyreloc.
3095         * ld.texinfo (Options): Describe nocopyreloc.
3097 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
3099         * configure: Regenerate.
3101 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
3103         * ldver.h (ld_program_version): Remove declaration.
3104         * lexsup.c (parse_args): Move printing of copyright message..
3105         * ldver.c (ldversion): .. to here.
3106         Use BFD_VERSION_STRING in place of BFD_VERSION.
3107         (ld_program_version): Remove.
3108         * Makefile.am (Makefile): Depend on bfd/configure.in.
3109         Run "make dep-am".
3110         * Makefile.in: Regenerate.
3112 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3114         * Makefile.am: Update dependencies with "make dep-am".
3115         * Makefile.in: Regenerate.
3117 2001-09-29  John Reiser  <jreiser@BitWagon.com>
3119         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3120         * lexsup.c: Add --no-define-common commandline option.
3121         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3122         * ldlex.l: Likewise.
3123         * ld.h: Add command_line.inhibit_common_definition.
3124         * ldmain.c (main): Initialize.
3125         * ld.texinfo: Document.
3127 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
3129         * ldlang.c (section_already_linked): Remove assignment to kept_section.
3131 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
3133         * ldmisc.c (USE_STDARG): Remove.
3134         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3135         (einfo): Likewise.
3136         (minfo): Likewise.
3137         (lfinfo): Likewise.
3139         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3140         declarations.  Update copyright.
3142 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
3144         * pe-dll.c: Remove obsoleted declaration of
3145         pe_get_data_import_dll_name.
3146         (pe_create_import_fixup): Fix thinko.
3148         * ld.texinfo(enable-auto-import): Clarify the explanation.
3150 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
3152         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3153         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3154         DLL_SUPPORT controlled code.
3156 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
3158         * emultempl/pe.em(pe_data_import_dll): Make static.
3159         (pe_get_data_import_dll_name): New accessor function.
3160         * pe-dll.c(pe_create_import_fixup): call
3161         pe_get_data_import_dll_name() from pe.em, instead of
3162         directly accessing pe_data_import_dll variable from pe.em.
3164 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
3166         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3167         (def_file_add_directive): Use ISSPACE instead of isspace.
3168         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3169         isdigit/isxdigit/isalpha/isalnum.
3170         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3171         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3172         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3173         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3174         isalnum.
3175         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3176         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3177         isupper/tolower.
3178         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3179         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3180         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3181         (ctor_prio): Use ISDIGIT instead of isdigit.
3182         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3183         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3184         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3185         isupper/tolower.
3186         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3187         (stricpy): Use TOLOWER instead of isupper/tolower.
3188         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3189         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3190         (lex_warn_invalid): Use ISPRINT instead of isprint.
3191         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3192         (main): For gettext, also set the LC_CTYPE locate facet.
3193         (add_keepsyms_file): Use ISSPACE instead of isspace.
3194         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3195         (is_num, parse_args): Use ISDIGIT instead of isdigit.
3196         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3197         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3198         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3199         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3200         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3201         (quoteput): Use ISSPACE instead of isspace.
3202         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3203         instead of isalnum.
3205 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
3207         * deffilep.y (def_stash_module): Constify "name" param.
3209         * pe-dll.c: Replace CONST with const throughout.
3210         (quick_symbol): Constify "n1", "n2", "n3" params.
3211         (make_singleton_name_thunk): Constify "import" param.  Make
3212         "buffer_len" a size_t.
3213         (make_import_fixup_entry): Constify "name", "fixup_name",
3214         "dll_symname" params.
3215         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
3216         (pe_get32): Likewise.
3217         (pe_implied_import_dll): Likewise.
3219         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3220         (sort_by_section_name): Likewise.
3222         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3223         (make_import_fixup): Cast printf arg, rel->address to long rather
3224         than int.
3225         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3227 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
3229         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3230         defines BufferSize.  Increase buffer size by one.
3232 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
3234         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3236 2001-09-14  Kevin Lo <kevlo@openbsd.org>
3238         * configure.tgt: Add arm-openbsd target.
3240 2001-09-12  H.J. Lu  <hjl@gnu.org>
3242         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3243         eelf64lppc.o to ...
3244         (ALL_64_EMULATIONS): Here.
3245         * Makefile.in: Regenerated.
3247 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3249         * emultempl/pe.em(make_import_fixup): change signature to
3250         take asection as well as arelec; we need this for proper
3251         error reporting.  Only call pe_create_import_fixup() if
3252         there is no attempt to add a constant addend to the reloc;
3253         otherwise, report error condition.
3254         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3255         since final argument is a pointer to make_import_fixup().
3256         Change call to cb() to match make_import_fixup() signature.
3257         (make_import_fixup_mark): make buffer_len unsigned.
3258         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3260 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
3262         * ld.texinfo: add verbose documentation for auto-import
3263         direct-addressing workaround, to compliment the terse
3264         error message.
3266 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
3268         * scripttempl/v850.sc: Add gcc_except_table sections.
3270 2001-09-11  Jeffrey A Law  (law@cygnus.com)
3272         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3273         * emulparams/h8300self.sh: Similarly.
3275 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3277         * ld.texinfo (Options, --stack): Correct default value for stack
3278         reserve.
3280 2001-09-05  Tom Rix <trix@redhat.com>
3282         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3284 2001-09-03  Andreas Jaeger  <aj@suse.de>
3286         * emultempl/beos.em: Declare prototypes for comparions functions,
3287         adjust definitions.
3289 2001-09-02  Andreas Jaeger  <aj@suse.de>
3291         * emultempl/aix.em: Add missing prototype.
3292         * emultempl/lnk960.em: Likewise.
3293         * emultempl/vanilla.em: Likewise.
3294         * emultempl/armcoff.em: Likewise.
3295         * emultempl/armelf_oabi.em: Likewise.
3296         * emultempl/beos.em: Likewise.
3297         * emultempl/gld960c.em: Likewise.
3298         * emultempl/gld960.em: Likewise.
3300         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3301         for prototype declaration.
3303 2001-08-31  Eric Christopher  <echristo@redhat.com>
3304             Jason Eckhardt  <jle@redhat.com>
3306         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3308 2001-08-31  Andreas Jaeger  <aj@suse.de>
3310         * emultempl/pe.em: Add missing prototypes.
3311         (gld_${EMULATION_NAME}_after_open): Remove extra args to
3312         pe_find_data_imports.
3313         (pr_sym): Add unused attribute.
3315 2001-08-29  Joel Sherrill <joel@OARcorp.com>
3317         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3318         default from coff to elf.
3320 2001-08-29  Jeff Law <law@redhat.com>
3322         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
3323         ARCH specification.
3324         * emulparams/h8300self.sh: Similarly.
3326 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
3328         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3329         eh8300self.o .
3330         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3331         * configure.tgt (h8300-*-elf*): New case.
3332         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3333         * emulparams/h8300self.sh: New file.
3334         * Makefile.in: Regenerated.
3336 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
3338         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3339         with macro name.
3341 2001-08-27  Linus Nordberg  <linus@swox.com>
3342             Alan Modra  <amodra@bigpond.net.au>
3344         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3345         (eelf64ppc.c, eelf64lppc.c): Add make targets.
3346         Run "make dep-am"
3347         * Makefile.in: Regenerate.
3348         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
3349         entries to correct alphabetical position.
3350         * emulparams/elf64ppc.sh: New.
3351         * emulparams/elf64lppc.sh: New.
3353 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
3355         * ldmain.c (main): Declare BSIZE as static.
3357 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3359         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3360         into .rel.dyn resp. .rela.dyn if combreloc.
3361         (get_script): If .x linker script is equal to .xn, only put it
3362         once into the binary.
3363         Add .xc and .xsc scripts.
3364         (parse_args): Handle -z combreloc and -z nocombreloc.
3365         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3366         For .xc and .xsc scripts put all .rel* or .rela* input sections
3367         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3368         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3369         is elf.
3370         Strip trailing whitespace from script.
3371         Generate .xc and .xsc scripts if requested.
3372         * ldmain.c (main): Initialize link_info.combreloc and
3373         link_info.spare_dynamic_tags.
3374         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3375         (ld_options): Add --spare-dynamic-tags option.
3376         (parse_args): Likewise.
3377         * ld.texinfo: Document -z combreloc and -z nocombreloc.
3378         * ldint.texinfo: Document .xc and .xsc linker scripts.
3379         * NEWS: Add notes about -z combreloc and SHF_MERGE.
3381 2001-08-22  H.J. Lu  <hjl@gnu.org>
3383         * emulparams/elf32fr30.sh: Add a newline.
3385 2001-08-21  Andreas Jaeger  <aj@suse.de>
3387         * deffilep.y: Add missing prototypes.
3388         * pe-dll.c: Likewise.
3390 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
3392         * ldlang.c (insert_pad): Fix typos in last patch.
3394         * ldlang.c: When traversing lang_statement_union_type lists,
3395         consistently use "header.next" rather than "next".
3396         * mpw-eppcmac.c: Likewise.
3397         * emultempl/beos.em: Likewise.
3398         * emultempl/hppaelf.em: Likewise.
3399         * emultempl/pe.em: Likewise.
3400         * ldlang.h (union lang_statement_union): Remove "next" field.
3402         * ldlang.c (insert_pad): Use offsetof macro.
3403         (lang_size_sections): Always neuter padding statements.
3404         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3406         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3407         passed to lang_size_sections.
3408         (pe_exe_fill_sections): Likewise.
3409         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3410         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3412 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
3414         * emultempl/aix.em: Formatting fixes.
3416 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
3418         * ldlang.c (insert_pad): Make use of an existing pad statement if
3419         available.  Move code calculating alignment, adjusting section
3420         alignment power, and adjusting dot to ..
3421         (size_input_section): .. here.  Remove unused relax param.
3422         (lang_size_sections): Change boolean `relax' param to boolean *.
3423         Adjust call to size_input_section.  Make use of insert_pad to
3424         place pad after the assignment statement.  If relaxing, zap
3425         padding statements.
3426         (reset_memory_regions): Reset output_bfd section sizes too.
3427         (relax_again): Move to..
3428         (lang_process): ..here.  Adjust call to lang_size_sections, and
3429         remove duplicated code.
3430         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3432 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
3434         * ld.texinfo: Document that fill values now use the four least
3435         significant bytes.
3436         * emulparams/elf32fr30.sh (NOP): Update.
3437         * emulparams/elf32mcore.sh: Likewise.
3438         * emulparams/elf64_s390.sh: Likewise.
3439         * emulparams/elf_i386.sh: Likewise.
3440         * emulparams/elf_i386_be.sh: Likewise.
3441         * emulparams/elf_i386_chaos.sh: Likewise.
3442         * emulparams/elf_i386_ldso.sh: Likewise.
3443         * emulparams/elf_s390.sh: Likewise.
3444         * emulparams/elf_x86_64.sh: Likewise.
3445         * emulparams/i386moss.sh: Likewise.
3446         * emulparams/i386nw.sh: Likewise.
3447         * emulparams/m68kelf.sh: Likewise.
3448         * scripttempl/elf.sc: Update NOP comment.
3449         * scripttempl/elfi370.sc: Likewise.
3450         * scripttempl/elfm68hc11.sc: Likewise.
3451         * scripttempl/elfm68hc12.sc: Likewise.
3452         * scripttempl/nw.sc: Likewise.
3454 2001-08-15  Tom Rix <trix@redhat.com>
3456         * ldgram.y (saved_script_handle): Initialize to NULL.
3457         * ldmain.c (main): Change check on saved_script_handle.
3459 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
3461         * emultempl/elf32.em: Formatting fixes.
3462         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
3463         looking at sec->owner.
3464         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3465         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
3466         unused code, and reorganize orphan section placement code.
3468         * ldlang.c (wild_doit): Rename to lang_add_section.
3469         * ldlang.h: Here too.
3470         * mpw-elfmips.c: And here.
3471         * emultempl/beos.em: And here.
3472         * emultempl/elf32.em: And here.
3473         * emultempl/hppaelf.em: And here.
3474         * emultempl/pe.em: And here.
3476 2001-08-13  Richard Henderson  <rth@redhat.com>
3478         * emultempl/needrelax.em: New file.
3479         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3480         * Makefile.am (eelf64_ia64.c): Depend on it.
3481         * Makefile.in: Rebuild.
3483 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
3485         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3486         output_section is set non-NULL.
3488         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3489         `true' for SEC_EXCLUDE sections so that the generic code doesn't
3490         needlessly create an output_section_statement.  Treat a correctly
3491         named output_section_statement with NULL bfd_section as compatible.
3493 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
3495         * emultempl/generic.em: Support EXTRA_EM_FILE.
3496         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3497         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3498         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3499         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3500         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3501         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3502         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3503         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3504         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3505         LDEMUL_FIND_POTENTIAL_LIBRARIES.
3507 2001-08-12  Richard Henderson  <rth@redhat.com>
3509         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3510         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3511         scripttempl/v850.sc: Keep .jcr data.
3513 2001-08-12  H.J. Lu  <hjl@gnu.org>
3514             Andrew Haley  <aph@cambridge.redhat.com>
3515             Nick Clifton  <nickc@redhat.com>
3517         * ldgram.y (had_script): Change name to saved_script_handle.
3518         Change type to file handle.
3519         * ld.h (had_script): Rename and retype.
3520         * ldfile.c (ldfile_open_command_file): Save the file handle
3521         used in saved_script_handle.
3522         * lexsup.c (parse_args): Do not allow -c option to alter
3523         saved_script_handle.
3524         * ldmain.c (main): Print out the linker script used if
3525         --verbose is given.  Check saved_script_handle to obtain the
3526         external linker script used, or if NULL, dump the builtin
3527         script.
3528         * ld.texinfo: Document that --verbose now dumps the linker
3529         script used, regardless of whether it was an internal or an
3530         external script.
3532 2001-08-10  Andreas Jaeger  <aj@suse.de>
3534         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3535         to build warnings.
3536         * configure: Regenerate.
3538 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
3540         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3542         * scripttempl/elf.sc: Move non-text .dynamic section before
3543         .plt/.got/.sdata* group.
3544         (OTHER_GOT_SECTIONS): Move to immediately after .got.
3545         (OTHER_SDATA_SECTIONS): Add.
3546         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3547         OTHER_GOT_SECTIONS.
3548         * emulparams/crislinux.sh: Likewise.
3549         * emulparams/elf32b4300.sh: Likewise.
3550         * emulparams/elf32bmip.sh: Likewise.
3551         * emulparams/elf32bmipn32.sh: Likewise.
3552         * emulparams/elf32bsmip.sh: Likewise.
3553         * emulparams/elf32btsmip.sh: Likewise.
3554         * emulparams/elf32ebmip.sh: Likewise.
3555         * emulparams/elf32elmip.sh: Likewise.
3556         * emulparams/elf32l4300.sh: Likewise.
3557         * emulparams/elf32lmip.sh: Likewise.
3558         * emulparams/elf32lsmip.sh: Likewise.
3559         * emulparams/elf32ltsmip.sh: Likewise.
3560         * emulparams/elf64bmip.sh: Likewise.
3561         * emulparams/elf64btsmip.sh: Likewise.
3562         * emulparams/elf64ltsmip.sh: Likewise.
3564 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
3566         * genscripts.sh: Source the emulparams script before each output
3567         script is generated so that variables like `RELOCATING' may affect
3568         variables defined in the emulparams script.
3570 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
3572         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3573         order.
3575         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3576         ie. iterate over wild_statement.section_list.
3577         (gld${EMULATION_NAME}_place_orphan): Likewise.
3579 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3581         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3582         .fini[0-4] sections used by _exit
3583         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3584         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3585         * scripttempl/elfm68hc11.sc: Likewise.
3587 2001-08-03  H.J. Lu  <hjl@gnu.org>
3589         * emultempl/beos.em (init): Add the missing initialization.
3591 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
3593         * ld.texinfo (Input Section Basics): Clarify ordering of output
3594         sections.
3595         * ldlang.c (callback_t): Add wildcard_list param.
3596         (walk_wild_section): Remove "section" param.  Rewrite for
3597         lang_wild_statement_type change.  Remove unique_section_p test.
3598         (walk_wild_file): Remove "section" param.
3599         (walk_wild): Remove "section" and "file" params.
3600         (lang_gc_wild): Likewise.
3601         (wild): Likewise.  Modify for lang_wild_statement_type change.
3602         (wild_sort): Likewise.  Add "sec" param.
3603         (gc_section_callback): Likewise.
3604         (output_section_callback): Likewise.  Do unique_section_p test.
3605         (map_input_to_output_sections): Modify call to wild.
3606         (lang_gc_sections_1): Likewise.
3607         (print_wild_statement): Modify for lang_wild_statement_type
3608         change.
3609         (lang_add_wild): Replace filename, filenames_sorted param with
3610         filespec.  Replace section_name, sections_sorted,
3611         exclude_filename_list with section_list.
3612         * ldlang.h (lang_add_wild): Here too.
3613         (lang_wild_statement_type): Replace section_name, sections_sorted,
3614         and exclude_filename_list with section_list.
3615         * ldgram.y (current_file): Delete.
3616         (%union): Add wildcard_list.
3617         (file_NAME_list): Set type to wildcard_list.  Build a linked list
3618         rather than calling lang_add_wild for each entry.
3619         (input_section_spec_no_keep): Call lang_add_wild here instead.
3620         * ld.h (struct wildcard_list): Declare.
3621         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3623 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
3625         * ldmain.c (main): initialize link_info.pei386_auto_import
3626         * pe-dll.c: new tables for auto-export filtering
3627         (auto_export): change API, pass abfd for contextual filtering.
3628         Loop thru tables of excluded symbols instead of comparing
3629         "by hand".
3631 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
3633         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3634         static variable current_sec (static struct sec *). Add
3635         forward declaration for add_bfd_to_link.
3636         (process_def_file): Don't export undefined symbols. Do not
3637         export symbols starting with  "_imp__".  Call auto_export()
3638         with new API.
3639         (pe_walk_relocs_of_symbol): New function.
3640         (generate_reloc): add optional extra debugging
3641         (pe_dll_generate_def_file): eliminate extraneous initial blank
3642         line in output
3643         (make_one): enlarge symtab to make room for __nm__ symbols
3644         (DATA auto-import support).
3645         (make_singleton_name_thunk): New function.
3646         (make_import_fixup_mark): New function.
3647         (make_import_fixup_entry): New function.
3648         (pe_create_import_fixup): New function.
3649         (add_bfd_to_link): Specify that 'name' argument is a CONST
3650         char *.
3651         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3652         declare new functions pe_walk_relocs_of_symbol and
3653         pe_create_import_fixup.
3654         * emultempl/pe.em: add new options --enable-auto-import,
3655         --disable-auto-import, and --enable-extra-pe-debug.
3656         (make_import_fixup): New function.
3657         (pe_find_data_imports): New function.
3658         (pr_sym): New function.
3659         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3660         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
3661         CODE.
3663 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
3665         * ld.texinfo: add additional documentation for
3666         --export-all-symbols.  Document --out-implib,
3667         --enable-auto-image-base, --disable-auto-image-base,
3668         --dll-search-prefix, --enable-auto-import, and
3669         --disable-auto-import.
3670         * ldint.texinfo: Add detailed documentation on auto-import
3671         implementation.
3673 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
3675         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3676         example.
3678 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
3680         * Makefile.am: Update dependencies with "make dep-am".
3681         * Makefile.in: Regenerate
3683 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
3685         * ldcref.c (check_section_sym_xref): New function.
3686         (check_nocrossrefs): Call it.
3687         (check_nocrossref): Interate over h->refs here instead of..
3688         (check_refs): ..here.  Pass in the symbol name, section, and bfd
3689         rather than hash_entry pointers.
3690         (struct check_refs_info): Keep symbol name rather than hash entry.
3691         Remove "same".
3692         (check_reloc_refs): Tweak for above changes in check_refs_info.
3693         Only report references to section syms when symname is NULL to
3694         prevent duplicate messages for the same reloc.
3696 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
3698         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3699         available.  Do not print NULL trees.
3700         (exp_print_token): Print unknown tokens with values > 126 as
3701         decimal values not ASCII characters.
3703         * ldlang.c (lang_leave_overlay): If a region is specified assign
3704         it to all sections inside the overlay unless they have been
3705         assigned to the own, non-default, memory region.
3707         * README: Add header for consistency with other README files.
3709 2001-07-14  H.J. Lu  <hjl@gnu.org>
3711         * emultempl/elf32.em (output_prev_sec_find): Never return
3712         bfd_abs_section_ptr, bfd_com_section_ptr nor
3713         bfd_und_section_ptr.
3715 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
3717         * Makefile.am (em32relf.c): Change dependency from generic.em to
3718         elf32.em.
3719         * Makefile.in: Regenerate.
3721 2001-07-14  matthew green  <mrg@eterna.com.au>
3723         * configure.tgt (i386-*-netbsdelf*): New target.
3724         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3726 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
3728         * emultempl/elf32.em (output_prev_sec_find): New.
3729         (place_orphan): Use it.
3731 2001-07-11  H.J. Lu  <hjl@gnu.org>
3733         * ldmain.c (main): Fix typos in the last change.
3735 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
3737         * ldmain.c (main): Disallow -F and -f without -shared.
3739 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
3741         * emultempl/pe.em (after_open): Check for the output_bfd not
3742         having any coff_data structure allocated to it.
3744 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
3746         * emultempl/elf32.em: Do not assuming that contents of the buffer
3747         returned from basename function will remain unchanged accross other
3748         function calls.
3750 2001-07-03  H.J. Lu  <hjl@gnu.org>
3752         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3753         2001-07-03. It creates dynamic entries even for static binaries.
3755 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
3757         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3758         (DYNAMIC): Use it to reserve few dynamic entries for
3759         post-linking tools.
3761 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
3763         * emulparams/hppa64linux.sh: New file.
3764         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3765         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3766         (ehppa64linux.c): Add rule to make it.
3767         Run "make dep-am".
3768         * Makefile.in: Regenerate.
3770 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
3772         * ld.texinfo (Options, -r): Mention restrictions when using
3773         different object formats.
3775 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
3777         * ldlang.c (lang_check): Emit fatal error if relocatable link
3778         between different object flavours with relocations in input.
3780 2001-06-19  H.J. Lu  <hjl@gnu.org>
3782         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3783         (--version-script): Mention the language support.
3785 2001-06-19  H.J. Lu <hjl@gnu.org>
3787         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3789 2001-06-18  H.J. Lu <hjl@gnu.org>
3791         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3792         (diststuff): Add $(MANS).
3793         * Makefile.in: Regenerated.
3795         * ld.1: Removed.
3797 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
3799         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3800         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3801         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3802         * ld.h (args_type): Remove member export_dynamic.  All users
3803         changed to use struct bfd_link_info member.
3805         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3806         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3807         * Makefile.in: Regenerate.
3809 2001-06-18  H.J. Lu  <hjl@gnu.org>
3811         * ldlang.c (init_os): Add the newline to the einfo call.
3812         (lang_check): Likewise.
3813         (lang_do_version_exports_section): Likewise.
3815 2001-06-15  H.J. Lu  <hjl@gnu.org>
3817         * lexsup.c (parse_args); Save optind to report unrecognized
3818         option.
3820 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
3822         * ldlang.c (lang_check): Emit fatal error if relocatable link
3823         between different object flavours.
3825         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3826         Set new link_info member export_dynamic.
3827         * ldmain.c (main): Initialize new link_info member export_dynamic.
3829 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
3831         * ldlang.c (walk_wild): Only call walk_wild_file if
3832         lookup_name returns something.
3833         (lookup_name): If load_symbols fails, return NULL.
3834         (load_symbols): Change to a boolean function.
3835         (open_input_bfds): If load_symbols fails then do not make the
3836         executable.
3838 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
3840         * ldlang.c (record_bfd_errors): Remove.
3842         * emultempl/aix.em: Fix copyright dates.
3844 2001-06-07  Andreas Jaeger  <aj@suse.de>
3846         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3847         (TEXT_START_ADDR): Likewise.
3849 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
3851         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3853 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3855         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3857 2001-05-31  H.J. Lu  <hjl@gnu.org>
3859         * ldlang.c (open_input_bfds): Don't change the bfd error
3860         handler whilst loading symbols.
3862 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
3864         * configure.tgt: Remove i370-mvs architecture, it is not currently
3865         supported.
3867 2001-05-25  H.J. Lu  <hjl@gnu.org>
3869         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3870         like emulparams/aixppc.sh.
3872 2001-05-25  H.J. Lu  <hjl@gnu.org>
3874         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3875         setting of output_filename after bfd_scan_arch.
3876         * emultempl/pe.em: Likewise.
3878 2001-05-25  H.J. Lu  <hjl@gnu.org>
3880         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3881         like emulparams/aixppc.sh.
3883         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3884         instead of ${srcdir}/emultempl/stringify.sed.
3886 2001-05-25  Timothy Wall  <twall@oculustech.com>
3888         * emulparams/elf64_aix.sh: Change settings to match IBM linker
3889         output.
3891 2001-05-25  Alan Modra  <amodra@one.net.au>
3893         * configure.host: Replace linuxoldld with linux*oldld.
3894         * configure.tgt: Likewise.
3896 2001-05-24  H.J. Lu  <hjl@gnu.org>
3898         * emultempl/stringify.sed: Removed again.
3900 2001-05-24  H.J. Lu  <hjl@gnu.org>
3902         * emultempl/aix.em (OUTPUT_ARCH): Defined.
3903         (gld${EMULATION_NAME}_before_parse): Initialize
3904         ldfile_output_architecture, ldfile_output_machine and
3905         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3906         * emultempl/beos.em: Likewise.
3907         * emultempl/elf32.em: Likewise.
3908         * emultempl/linux.em: Likewise.
3909         * emultempl/mipsecoff.em: Likewise.
3910         * emultempl/pe.em: Likewise.
3911         * emultempl/sunos.em: Likewise.
3913 2001-05-24 Tom Rix <trix@redhat.com>
3915         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3916         udate import file format.
3917         (change_symbol_mode) New, same
3918         (is_syscall) New, same
3919         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3920         * emulparams/aixppc64.sh : same
3921         * emulparams/aixrs6.sh : same
3922         * emulparams/ppcmacos.sh : same
3923         * emultempl/aix.em : use strtoull to parse options
3924         * Makefile.am : add eaixppc64 emulation for xcoff64
3925         * Makefile.in : same
3926         * configure.tgt : same
3928         * scripttempl/aix.sc : default text section offset to 0x10000000
3929         default data section offset to 0x20000000
3930         add .sv3264 and .sv64 pseudo sections
3931         loader and debug sections use the currect section offset.
3933         * emultempl/aix.em : Add xcoff64 support
3934         Add -binitfini support
3935         (gld${EMULATION_NAME}_before_parse) -binitfini
3936         (gld${EMULATION_NAME}_parse_args) same
3937         (gld${EMULATION_NAME}_before_allocation) format change for special
3938         sections
3940         * emulparams/aixppc64.sh : New file for xcoff64 support
3942 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
3944         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3945         variable to avoid non-portable shell construct.
3947 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3949         * ldmain.c (get_emulation): Add -mips5 command line argument.
3951 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
3953         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3954         (ELF_INTERPRETER_NAME): Define it.
3955         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3956         it.
3957         * configure.tgt (targ_emul, targ_extra_emuls)
3958         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3959         as primary, elf_i386 as extra.
3960         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3961         (eelf_i386_ldso.c): New rule.
3962         * Makefile.in: Rebuilt.
3964 2001-05-22  Nick Clifton  <nickc@redhat.com>
3966         * lexsup.c (ld_options):  Allow -I to be an alias for
3967         --dynamic-linker.  This is for Solaris compatability.
3968         * ld.texinfo: Document that -I can be used.
3969         * ld.1: Regenerate.
3971 2001-05-16  Alan Modra  <amodra@one.net.au>
3973         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3974         whether an input section is the first one assigned to an output
3975         section.
3976         Assorted formatting fixes.
3978 2001-05-14  DJ Delorie  <dj@delorie.com>
3980         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3981         * Makefile.in: Ditto.
3983 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3985         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3986         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3987         output sections.
3988         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3990 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
3992         * ldlang.c (lang_process): Call bfd_merge_sections.
3994 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3996         * ldgram.y: Fix typo.
3998 2001-05-03  H.J. Lu  <hjl@gnu.org>
4000         * emultempl/elf32.em: Include "libiberty.h".
4001         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4002         basename of the bfd filename.
4003         (gld${EMULATION_NAME}_stat_needed): Likewise.
4004         (gld${EMULATION_NAME}_try_needed): Likewise.
4005         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4007 2001-05-02  H.J. Lu  <hjl@gnu.org>
4009         * emultempl/pe.em: Include <ctype.h>.
4011 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
4013         * emulparams/elf32openrisc.sh: New file.
4015         * Makefile.am: Add OpenRISC target.
4016         * Makefile.in: Regenerated.
4018         * configure.tgt: Add openrisc-*-* mapping.
4020 2001-05-02  Nick Clifton  <nickc@redhat.com>
4022         * emultempl/aix.em: Replace buystring with xstrdup.
4023         * emultempl/beos.em: Replace buystring with xstrdup.
4025 2001-05-02  H.J. Lu  <hjl@gnu.org>
4027         * ldfile.c: Include "libiberty.h".
4028         * ldlex.l: Likewise.
4030         * ldmisc.c (buystring): Removed.
4031         * ldmisc.h: Likewise.
4033         * ldfile.c: Replace buystring with xstrdup.
4034         * ldlang.c: Likewise.
4035         * ldlex.l: Likewise.
4036         * ldmain.c: Likewise.
4037         * ldmisc.c: Likewise.
4038         * lexsup.c: Likewise.
4039         * mpw-eppcmac.c: Likewise.
4041 2001-04-30  Andreas Jaeger  <aj@suse.de>
4043         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4045 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
4047         * ldlang.c (load_symbols): Give emulation a chance
4048         to process unrecognized file before fatal error is
4049         reported, not after.
4051 2001-04-27  Sean McNeil <sean@mcneil.com>
4053         * configure.tgt: Add arm-vxworks target.
4054         * scripttempl/armcoff.sc: Support .text or .data as a section name
4055         prefix.
4056         Define _etext.
4058 2001-04-13  J.T. Conklin  <jtc@redback.com>
4060         * ld.texinfo: Document --fatal-warnings.
4061         * ld.1: Regenerate.
4063         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4064         warnings have been turned into errors.
4065         * lexsup.c (OPTION_WARN_FATAL): Define.
4066         (ld_options): Entry for --fatal-warnings.
4067         (parse_args): Handle OPTION_WARN_FATAL.
4068         * ld.h (ld_config_type): Add fatal_warnings field.
4070 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
4072         * ldmain.c (main): Default to discard_sec_merge.
4073         * lexsup.c (OPTION_DISCARD_NONE): Define.
4074         (ld_options): Add --discard-none.
4075         (parse_args): Handle OPTION_DISCARD_NONE.
4076         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4077         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4078         all its input sections match.
4080 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
4082         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4083         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4084         (eelf32ltsmip.c): New target.
4085         (eelf64btsmip.c): Likewise.
4086         (eelf64ltsmip.c): Likewise.
4087         * Makefile.in: Regenerated.
4089         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4090         target.
4091         (mips*-*-linux-gnu*): Likewise.
4093         * emulparams/elf32ltsmip.sh: New. Traditional little endian
4094         MIPS taget.
4095         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4096         target.
4097         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4098         endian target.
4100 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
4102         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4103         correct value of __Stext here.
4104         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4105         .startup section.
4107         * emulparams/crislinux.sh: Remove FIXME.
4109 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
4111         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4112         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4114 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
4116         * configure.tgt (cris-*-*): Change default emulation to criself.
4117         (cris-*-*aout*): New rule.
4119 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
4121         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4122         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4124 2001-03-26  Andreas Jaeger  <aj@suse.de>
4126         * ld.texinfo (Overview): Fix syntax in texi code.
4128 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4130         * ld.texinfo: Put @c man indications to generate the ld man page.
4131         When generating man, define all the variables.  Define SEEALSO
4132         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
4133         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4134         (ld.1): Generate from ld.texinfo.
4135         * Makefile.in: Regenerate.
4137 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
4139         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4140         and '-fdata-sections'. Set the VMA of STABS sections to zero.
4142 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
4144         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4145         is an absolute path look only for this file and not along the path.
4147 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
4149         * emultempl/elf32.em (OPTION_GROUP): New macro.
4150         Add new option Bgroup to longopts.
4151         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4152         (gld*_list_options): Add -Bgroup and -z defs.
4153         * ld.1: Document -Bgroup and -z defs.
4154         * ld.texinfo: Likewise.
4156 2001-03-07  Michael Meissner  <meissner@redhat.com>
4158         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4159         with sections created by -fdata-sections.
4160         (.dynbss,.bss): Ditto.
4162 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
4164         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4165         after_allocation_default, not gld..._before_allocation.
4167 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
4169         * configure.in (BFD_VERSION): New.
4170         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4171         * configure: Regenerate.
4172         * Makefile.am: Run "make dep-am"
4173         * Makefile.in: Regenerate.
4175 2001-02-26  Timothy Wall  <twall@cygnus.com>
4177         * emulparams/elf64_aix.sh: Add additional read-only sections;
4178         uncomment lines which are now required.
4180 2001-02-26  H.J. Lu  <hjl@gnu.org>
4182         * ldlang.c (open_input_bfds): Set the bfd error handler so
4183         that problems can be caught whilst loading symbols.
4184         (record_bfd_errors): New function: Report BFD errors and mark
4185         the executable output as being invalid.
4187 2001-02-22  Timothy Wall  <twall@cygnus.com>
4189         * configure.host: Add configuration for ia64-*-aix*.
4190         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4191         Add dependencies for eelf64_aix.c.
4192         * Makefile.in: Regenerate.
4193         * configure.tgt: Add ia64-*-aix* mapping.
4194         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4196 2001-02-20  H.J. Lu  <hjl@gnu.org>
4198         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4199         false if we found the file.
4201 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
4203         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4204         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4206 2001-02-18  lars brinkhoff  <lars@nocrew.org>
4208         * Makefile.am: Add PDP-11 target.
4209         * configure.tgt: Likewise.
4210         * emulparams/pdp11.sh: New file.
4212 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
4214         * configure.host: Add a generic FreeBSD configuration entry such that
4215         all [modern] FreeBSD systems on all platforms will look the same.
4217 2001-02-14  H.J. Lu  <hjl@gnu.org>
4219         * configure.tgt: Remove mention of earmelf_linux26.
4221 2001-02-13  Richard Henderson  <rth@redhat.com>
4223         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4225 2001-02-13  H.J. Lu  <hjl@gnu.org>
4227         * ldexp.h (node_type): Add etree_provided.
4228         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4229         type to etree_provided if defined by PROVIDE. Allow updating
4230         for etree_provided.
4231         (exp_print_tree): Handle etree_provided.
4232         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4233         etree_provided.
4235 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
4237         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4238         .IA_64.unwind.* pattern to unwind table section and
4239         .IA_64.unwind_info* pattern to unwind info section.
4241 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4243         * Makefile.am: Add linux target for S/390.
4244         * Makefile.in: Likewise.
4245         * configure.host: Likewise.
4246         * configure.tgt: Likewise.
4247         * emulparams/elf64_s390.sh: New file.
4248         * emulparams/elf_s390.sh: New file.
4250 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
4252         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4253         targ_extra_libpath.
4254         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4256 2001-02-06  Philip Blundell  <philb@gnu.org>
4258         * Makefile.am: Remove mention of earmelf_linux26.
4259         * Makefile.in: Regenerate.
4261 2001-02-04  Philip Blundell  <philb@gnu.org>
4263         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4264         * emulparams/armelf_linux26.sh: Delete.
4265         * configure.tgt: Remove mention of armelf_linux26 emulation.
4267 2001-02-01  Nick Clifton  <nickc@redhat.com>
4269         * ld.1: Replace occurances of -oformat with --oformat.
4271 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
4273         * ldlang.c (lang_leave_overlay): Don't set lma_region when
4274         load_base is specified.
4276 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
4278         * emultempl/elf32.em: Correct spelling in comments and listed
4279         options.
4281 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
4283         * ldlang.c (lang_leave_overlay): Only set lma_region from the
4284         default for the first section of a group of overlay sections.
4286 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
4288         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4289         * Makefile.in: Regenerate.
4290         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4291         Check for null tool_dir.
4293 2001-01-16  Jim Wilson  <wilson@redhat.com>
4295         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4296         and IA_64.unwind.info.
4298 2001-01-16  H.J. Lu  <hjl@gnu.org>
4300         * ldlang.c (lang_check): Merge the private data only if the
4301         input file has contents.
4303 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
4305         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4307         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4308         enabling search for libmilli.  On a relocatable link, make .text
4309         sections unique.
4310         (LDEMUL_AFTER_PARSE): Define.
4311         (hppaelf_finish): Correct spelling of relocatable in comments.
4313         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4314         rummage through the script for sections on the unique list.
4315         Correct length of strncmp for ".note".
4316         (gld${EMULATION_NAME}_check_needed): Rearrange function.
4318         * ldlang.c (unique_section_list): New var.
4319         (unique_section_p): New function.
4320         (walk_wild_section): Don't match sections on unique_section_list.
4321         (lang_add_unique): New function.
4322         Correct spelling of relocatable in comments.
4324         * ldlang.h (struct unique_sections): Declare.
4325         (unique_section_list): Declare.
4326         (unique_section_p): Declare.
4327         (lang_add_unique): Declare.
4329         * lexsup.c (ld_options): Allow --unique to take an optional arg.
4330         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4332         * ld.texinfo (--unique): Update.
4334 2001-01-13  Nick Clifton  <nickc@redhat.com>
4336         * lexsup.c (parse_args): Remove spurious white space.
4338 2001-01-12  Nick Clifton  <nickc@redhat.com>
4340         * lexsup.c (parse_args): Update copyright date.
4342 2001-01-12  Philip Blundell  <pb@futuretv.com>
4344         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4346 2001-01-10  Kazu Hirata  <kazu@hxi.com>
4348         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
4349         * scripttempl/h8300h.sc: Fix formatting.
4350         * scripttempl/h8300s.sc: Likewise.
4351         * scripttempl/h8500.sc: Likewise.
4352         * scripttempl/h8500b.sc: Likewise.
4353         * scripttempl/h8500c.sc: Likewise.
4354         * scripttempl/h8500m.sc: Likewise.
4355         * scripttempl/h8500s.sc: Likewise.
4357 2000-01-07  David O'Brien  <obrien@BSDi.com>
4359         * emultempl/elf32.em: Only perform Linux ld hints processing when
4360         targeting Linux.
4362 2001-01-07  Philip Blundell  <philb@gnu.org>
4364         * ld.texinfo (Bug Reporting): Update email address for reports.
4366 2000-12-31  Nick Clifton  <nickc@redhat.com>
4368         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4369         options by checking for a return value of '?' not -1.
4371 2000-12-28  Nick Clifton  <nickc@redhat.com>
4373         * lexsup.c (struct ld_option): Add new enum value:
4374         EXACTLY_TWO_DASHES.
4375         (ld_options[]): Change -omagic, -output and -oformat options
4376         to be EXACTLY_TWO_DASHES.
4377         (OUTPUT_COUNT): Use ARRAY_SIZE.
4378         (parse_args): Change parameter 'argc' to unsigned.
4379         Place EXACTLY_TWO_DASHES options into new really_longopts
4380         array.
4381         If getopt_long_only fails, try calling getopt_long using the
4382         really_longopts array.
4383         (help): Print a double dash for both EXACTLY_TWO_DASHES and
4384         TWO_DASHES options.
4386         * ldlex.h: Fix prototype of parse_args.
4388         * ld.texinfo: Document that long options starting with 'o'
4389         must be preceeded by two dashes.  Change example of a single
4390         dashed long option from -oformat to -trace-symbol.
4392 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4394         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4395         (longopts[]): New --no-default-excludes option.
4396         (gld_${EMULATION_NAME}_list_options): Document.
4397         (gld_${EMULATION_NAME}_parse_args): Handle.
4399 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4401         * ldlang.c (new_stat): Revert the last beautification with "innocent"
4402         whitespace, it breaks the K&R C preprocessor.
4404 2000-12-11  DJ Delorie  <dj@redhat.com>
4406         * ld.texinfo: Add notes about --whole-archive and gcc.
4408 2000-11-18  Fred Fish  <fnf@be.com>
4410         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4411         (ld_options): Entry for --allow-shlib-undefined.
4412         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4413         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4414         to false.
4415         * ld.texinfo: Document new command line switch.
4417 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
4419         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4420         .fixup is actually read/write.
4421         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4422         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4423         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4425 2000-12-11  Jan Hubicka  <jh@suse.cz>
4427         * NEWS: Add note about x86_64 architecture.
4429 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
4431         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4432         Set DWARF2 sections to a VMA of zero.
4434 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
4436         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4437         New targets.
4438         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4439         (sparc*-*-rtems*): Switched from a.out to ELF.
4441 2000-11-30  Jan Hubicka  <jh@suse.cz>
4443         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4444         (eelf_x86_64.c): New.
4445         * Makefile.in: Regenerate.
4446         * configure.tgt: Add support for x86_64-*-linux-gnu*.
4447         * emulparams/elf_x86_64.sh: New.
4449 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
4451         * emulparams/crislinux.sh (ENTRY): Change back to _start.
4452         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4454         * scripttempl/crisaout.sc: Change all RELOCATING not related to
4455         merging non-a.out sections into CONSTRUCTING.
4457 2000-11-28  Nick Clifton  <nickc@redhat.com>
4459         * ld.1 (COPYING): Mention that the GNU Free Documentation
4460         License is present in the sources, but not the output, and
4461         also available from the GNU website.
4462         (GNU Free Documentation License): Comment out this section.
4464 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
4466         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4467         does not use them.
4469 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
4471         * ld.1: Remove old date so it does not give the impression the manpage
4472         is way out of date.
4474 2000-11-24  Nick Clifton  <nickc@redhat.com>
4476         * configure.tgt (xscale-coff): Add target.
4477         (xscale-elf): Add target.
4479 2000-11-24  Fred Fish  <fnf@be.com>
4481         * ldmain.c (main): Remove redundant init of config.make_executable
4482         to true.
4484 2000-11-15  Richard Henderson  <rth@redhat.com>
4486         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4488 2000-11-14  Kazu Hirata  <kazu@hxi.com>
4490         * scripttempl/h8300.sc: Fix formatting.
4491         * scripttempl/h8300h.sc: Likewise.
4492         * scripttempl/h8300s.sc: Likewise.
4494 2000-11-14  Denis Chertykov  <denisc@overta.ru>
4496         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4498 2000-11-09  Philip Blundell  <pb@futuretv.com>
4500         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4501         around orphan sections whose names can be represented in C.
4503 2000-11-07  Jim Wilson  <wilson@redhat.com>
4505         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4506         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
4508 2000-11-06  Nick Clifton  <nickc@redhat.com>
4510         * ld.texinfo: Add GNU Free Documentation License.
4511         * ldint.texinfo: Add GNU Free Documentation License.
4512         * ld.1: Add GNU Free Documentation License.
4514 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
4516         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4517         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4519         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4520         Move 2000-11-02 Makefile.in changes to this file.
4521         * Makefile.in: Regenerate.
4523 2000-11-03  Nick Clifton  <nickc@redhat.com>
4525         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4526         constructors and destructors.
4527         * scripttempl/h8300h.sc: Ditto.
4528         * scripttempl/h8300s.sc: Ditto.
4529         * scripttempl/h8500.sc: Ditto.
4530         * scripttempl/h8500b.sc: Ditto.
4531         * scripttempl/h8500c.sc: Ditto.
4532         * scripttempl/h8500m.sc: Ditto.
4533         * scripttempl/h8500s.sc: Ditto.
4534         * scripttempl/v850.sc: Ditto.
4535         * scripttempl/w65.sc: Ditto.
4536         * scripttempl/z8000.sc: Ditto.
4538 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
4540         * Makefile.in (e_i386_chaos.c): New rule.
4541         (ALL_EMULATIONS): Added e_i386_chaos.o.
4542         * emulparams/elf_i386_chaos.sh: New file.
4543         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4545 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
4547         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4548         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4549         Fix sed invocation, so that it coped with '/' in Solaris 64bit
4550         library path suffix.
4551         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4553 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
4555         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4556         for consecutive sections.
4558 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
4560         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4561         options.
4562         * ld.texinfo: Added notes about this new option.
4564 2000-10-16  Nick Clifton  <nickc@redhat.com>
4566         * emultempl/pe.em (_after_open): Add tests of return values from
4567         bfd functions.  Emit appropriate error messages if necessary.
4569 2000-10-13  Nick Clifton  <nickc@redhat.com>
4571         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4572         local variables - they are not used, but leave in the call to
4573         bfd_canonicalize_symtab.
4574         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4575         pe_dll_search_prefix.
4577 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
4579         * emultempl/pe.em (pe_dll_search_prefix): New variable,
4580         (longopts): New --dll-search-prefix option.
4581         (gld_${EMULATION_NAME}_list_options): Document.
4582         (gld_${EMULATION_NAME}_parse_args): Handle.
4583         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4584         dynamically, search for a dll named '<prefix><basename>.dll'
4585         in preference to 'lib<basename>.dll' if --dll-search-prefix
4586         is specified.
4588 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
4590         * ldlang.c (section_already_linked): Set kept_section instead of
4591         sec->comdat->sec.
4593 2000-10-10  Kazu Hirata  <kazu@hxi.com>
4595         * deffile.h: Fix formatting.
4596         * lexsup.c: Likewise.
4597         * mri.c: Likewise.
4599 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
4601         * pe-dll.c (make_one): Do not generate code thunk for DATA
4602         exports.
4603         (process_def_file): deduce DATA flag for auto-export sumbols.
4605 2000-10-09  Kazu Hirata  <kazu@hxi.com>
4607         * ld.h: Fix formatting.
4608         * ldcref.c: Likewise.
4609         * ldctor.h: Likewise.
4610         * ldemul.c: Likewise.
4611         * ldemul.h: Likewise.
4612         * ldexp.c: Likewise.
4613         * ldexp.h: Likewise.
4614         * ldfile.c: Likewise.
4615         * ldfile.h: Likewise.
4616         * ldlang.c: Likewise.
4617         * ldlang.h: Likewise.
4618         * ldmain.c: Likewise.
4619         * pe-dll.c: Likewise.
4621         * pe-dll.c: Revert some formatting fixes.
4623 2000-10-08  Kazu Hirata  <kazu@hxi.com>
4625         * pe-dll.c: Fix formatting.
4627 2000-10-05  Kazu Hirata  <kazu@hxi.com>
4629         * ldlang.c: Fix formatting.
4631 2000-10-03  DJ Delorie  <dj@redhat.com>
4633         * pe-dll.c (fill_edata): initialize entire block
4634         (make_one): fill in correct section.
4636 2000-10-03  Kazu Hirata  <kazu@hxi.com>
4638         * ldexp.c: Fix formatting.
4640 2000-10-02  DJ Delorie  <dj@redhat.com>
4642         * emultempl/pe.em (gld_*_after_open): detect case where there two
4643         import libraries for same dll; rename one to ensure proper link
4644         order.
4646         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4647         typo
4648         (generate_edata): fix typo
4650 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
4652         * scripttempl/crisaout.sc (ENTRY): Now __start.
4653         (.text): Add default setting for __start.
4654         Remove CONSTRUCTORS handling.
4655         (/DISCARD/): Add .gnu.warning.*.
4656         * emulparams/crislinux.sh (ENTRY): Now __start.
4657         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4658         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4659         (ENTRY): Now __start.
4660         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4661         (EXECUTABLE_SYMBOLS): Add default setting for __start.
4663 2000-09-29  Kazu Hirata  <kazu@hxi.com>
4665         * deffile.h: Fix formatting.
4666         * ld.h: Likewise.
4667         * ldcref.c: Likewise.
4668         * ldctor.c: Likewise.
4669         * ldctor.h: Likewise.
4670         * ldemul.c: Likewise.
4671         * ldemul.h: Likewise.
4672         * ldexp.c: Likewise.
4673         * ldexp.h: Likewise.
4674         * ldfile.c: Likewise.
4675         * ldfile.h: Likewise.
4676         * ldlang.c: Likewise.
4677         * ldlang.h: Likewise.
4678         * lexsup.c: Likewise.
4679         * mri.c: Likewise.
4680         * pe-dll.c: Likewise.
4682 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
4684         * pe-dll.c (process_def_file): Uninitialized data wasn't
4685         exported with --export-all-symbols switch.
4687 2000-09-28  DJ Delorie  <dj@redhat.com>
4689         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4690         noname work properly.
4692 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
4694         * ld.texinfo (HPPA ELF32): New section.
4696         * emultempl/hppaelf.em (group_size): New.
4697         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4698         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4699         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
4700         options to prevent abbreviations matching.
4701         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
4702         (PARSE_AND_LIST_ARGS_CASES): Handle it.
4704 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4706         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4707         on the m68*-*-elf target.  Make it support COFF input objects.
4709 2000-09-21  Kazu Hirata  <kazu@hxi.com>
4711         * ldmain.c: Fix formatting.
4712         * ldmisc.c: Likewise.
4713         * ldver.c: Likewise.
4714         * ldwrite.c: Likewise.
4716 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
4718         * ldwrite.c (clone_section): Silence gcc warnings.
4720 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
4722         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4723         out of memory failure.
4725         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4726         (clone_section): Handle out of memory failures.  Rename var to
4727         avoid c++ reserved word.
4729 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
4731         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4732         stub_name param to stub_sec_name.
4733         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4735 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4737         * emultempl/m68kelf.em: New file.
4738         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4739         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4740         * Makefile.in: Regenerate.
4742 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
4744         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4745         only as needed.
4747 2000-09-13  Nick Clifton  <nickc@redhat.com>
4749         * ldmain.c (multiple_definition): Disable relaxation if
4750         multiple symbol definitions are encountered - otherwise the
4751         linker could abort with an assertion failure.
4753 2000-09-10  Nick Clifton  <nickc@redhat.com>
4755         * mri.c: Fix formatting.
4757 2000-09-07  H.J. Lu  <hjl@gnu.org>
4759         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4760         * configure: Rebuild.
4762 2000-09-07  H.J. Lu  <hjl@gnu.org>
4764         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4765         * Makefile.in: Rebuild.
4767 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
4769         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4770         broken list handling.  Create __start_SECNAME and __stop_SECNAME
4771         when no place-holder.  Add some comments.  Test both SEC_CODE and
4772         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4773         Handle case where no output section statement created.
4775 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
4777         * configure.tgt (sh-*-linux*): Added.
4778         * Makefile.am: Added eshelf_linux and eshlelf_linux.
4779         * Makefile.in: Rebuilt.
4780         * emulparams/shelf_linux.sh: New file.
4781         * emulparams/shlelf_linux.sh: New file.
4783 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
4785         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4786         try shuffling sections when the orphan happens to be the place
4787         holder.  Keep count of unique section names generated so we speed
4788         the search for a new name.
4790 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
4792         * configure: Rebuilt with new libtool.m4.
4794 2000-09-05  Nick Clifton  <nickc@redhat.com>
4796         * Makefile.in: Regenerate.
4797         * aclocal.m4: Regenerate.
4798         * configure: Regenerate.
4799         * config.in: Regenerate.
4800         * po/ld.pot: Regenerate.
4802         * ldint.texinfo: Remove CVS revision marker - it foils local
4803         comparisons.
4805         * emultempl/ticoff.em: Remove extraneous comma.
4807 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
4809         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4810         to stub section flags.
4811         (hppa_for_each_input_file_wrapper): New.
4812         (hppa_lang_for_each_input_file): New.
4813         (lang_for_each_input_file): Define to call above.
4814         (multi_subspace): New.
4815         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4816         (PARSE_AND_LIST_PROLOGUE): Define.
4817         (PARSE_AND_LIST_LONGOPTS): Define.
4818         (PARSE_AND_LIST_OPTIONS): Define.
4819         (PARSE_AND_LIST_ARGS_CASES): Define.
4820         (hppaelf_finish): Call elf32_hppa_set_gp.
4821         (hppaelf_set_output_arch): Remove.
4822         (LDEMUL_SET_OUTPUT_ARCH): Remove.
4824         * emulparams/hppalinux.sh (ELFSIZE): Define.
4825         (MACHINE): Define.
4826         (OTHER_READONLY_SECTIONS): Define.
4827         (DATA_PLT): Define.
4828         (GENERATE_SHLIB_SCRIPT): Define.
4830         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
4831         to const throughout.  Change `void *' to `PTR' throughout.
4832         (lang_memory_default): Function is local to file, add `static'.
4834         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4835         (ehppalinux.c): Likewise.
4836         (earmelf.c): Likewise.
4837         (earmelf_linux.c): Likewise.
4838         (earmelf_linux26.c): Likewise.
4839         * Makefile.in: Regenerate.
4841         * ld.h (ld_config_type): Add unique_orphan_sections.
4842         * lexsup.c (OPTION_UNIQUE): Define.
4843         (ld_options): Add "--unique".
4844         (parse_args): Handle it.
4845         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4846         search for an existing output section if unique_orphan_sections is
4847         set.  Make use of bfd_get_unique_section_name rather than
4848         duplicating code here.
4849         * ld.texinfo: Describe --unique.
4851         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4852         optional arg to split-by-file.
4853         (parse_args): Handle them.
4854         * ld.texinfo: Update description of these options.
4855         * ldwrite.c (clone_section): Pass in the section name.  Replace
4856         local code with bfd_get_unique_section_name.
4857         (split_sections): Tidy code and comments.  Use a list traversal
4858         more appropriate to the list construction.  Handle cooked section
4859         sizes.  Split when split_by_reloc reached rather than exceeded.
4860         Track section size and split when split_by_file reached.  Fix
4861         link_order_tail (even though it's not used).
4862         (ldwrite): Modify condition for calling split_sections to suit
4863         changed split_by_reloc and split_by_file.
4864         * ldmain.c (main): Init config.split_by_reloc and
4865         config.split_by_file to -1.
4866         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4867         Change split_by_file to bfd_size_type.
4869 2000-09-02  Nick Clifton  <nickc@redhat.com>
4871         * configure.in: Increase version number to 2.10.91.
4872         * NEWS: Mention new ability to support removal of duplicate DWARF2
4873         debug information.
4874         * configure: Regenerate.
4875         * aclocal.m4: Regenerate.
4876         * config.in: Regenerate.
4878 2000-09-02  Daniel Berlin <dberlin@redhat.com>
4880         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4881         sections.
4882         * scripttempl/elf32avr.sc: Ditto.
4883         * scripttempl/elfd10v.sc: Ditto.
4884         * scripttempl/elfd30v.sc: Ditto.
4885         * scripttempl/elfi370.sc: Ditto.
4886         * scripttempl/elfm68hc11.sc: Ditto.
4887         * scripttempl/elfm68hc12.sc: Ditto.
4888         * scripttempl/elfi386beos.sc: Ditto.
4889         * scripttempl/v850.sc: Ditto.
4891 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
4893         * acinclude.m4: Include libtool and gettext macros from the
4894         top level.
4895         * aclocal.m4, configure: Rebuilt.
4897 2000-08-25  Nick Clifton  <nickc@redhat.com>
4899         * ldlang.c (open_output): When choosing the target for a
4900         particular endianness, do nothing if the target is not
4901         supported.
4903 2000-08-25  H.J. Lu  <hjl@gnu.org>
4905         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4906         check -rpath nor LD_RUN_PATH for cross link.
4907         * ld.texinfo: Document the change.
4909 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
4911         * NEWS: Mention support for CRIS.
4913 2000-08-23  H.J. Lu  <hjl@gnu.org>
4915         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4916         the current runpath list from bfd_elf_get_runpath_list ()
4917         before search.
4919 2000-08-22  H.J. Lu  <hjl@gnu.org>
4921         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4922         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4923         LD_LIBRARY_PATH for native linker. Display the needed DSO if
4924         trace_file_tries is non-zero.
4925         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4926         if trace_file_tries is non-zero.
4928         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4929         * NEWS: Mention it.
4931 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
4933         * NEWS: Mention i860 support.
4935 2000-08-14  Andreas Schwab  <schwab@suse.de>
4937         * scripttempl/elf.sc: Fix last change to use correct comment
4938         syntax.
4940 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
4942         * scripttempl/elf.sc: Add a comment giving the correspondence
4943         between sections, per-datum sections, and linkonce sections.  Make
4944         the comment true even for .bss, .sdata, .sdata2, .sbss, and
4945         .sbss2.
4947 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
4949         * emulparams/elf32_i860.sh: New file.
4950         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4951         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4952         (eelf32_i860.c): New rule.
4953         * Makefile.in: Regenerate.
4955 2000-08-10  Nick Clifton  <nickc@cygnus.com>
4957         * emulparams/mipspe.sh (ENTRY): Add definition.
4959 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
4961         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4962         in error message.
4964 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4966         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4967         the final size of .bss section.
4968         * scripttempl/elfm68hc12.sc: Likewise.
4970 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
4972         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4973         gld${EMULATION_NAME}_parse_args for consistency.  Combine
4974         lastoptind and prevoptind vars, and keep track of last optind.
4975         (gld_${EMULATION_NAME}_list_options): Rename to
4976         gld${EMULATION_NAME}_list_options.
4978 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
4980         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4981         (i586-sco-sysv5uw7.1.0).
4983 2000-07-27  H.J. Lu  <hjl@gnu.org>
4985         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4986         (PARSE_AND_LIST_PROLOGUE): New.
4987         (PARSE_AND_LIST_LONGOPTS): Likewise.
4988         (PARSE_AND_LIST_OPTIONS): Likewise.
4989         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4990         (PARSE_AND_LIST_EPILOGUE): Likewise.
4992 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
4994         * emultempl/armelf.em: Elide functions common to elf32.em,
4995         ie. most of the file.
4996         (arm_elf_after_open): New.  Do arm specific things then call
4997         gld${EMULATION_NAME}_after_open.
4998         (arm_elf_before_allocation): New.  Call
4999         gld${EMULATION_NAME}_before_allocation then do arm specifics.
5000         (PARSE_AND_LIST_PROLOGUE): Define.
5001         (PARSE_AND_LIST_SHORTOPTS): Define.
5002         (PARSE_AND_LIST_LONGOPTS): Define.
5003         (PARSE_AND_LIST_OPTIONS): Define.
5004         (PARSE_AND_LIST_ARGS_CASES): Define.
5005         (LDEMUL_AFTER_OPEN): Define.
5006         (LDEMUL_BEFORE_ALLOCATION): Define.
5007         (LDEMUL_BEFORE_PARSE): Define.
5008         (LDEMUL_FINISH): Define.
5010         * emultempl/hppaelf.em: Similarly zap most of this file.
5011         (hppaelf_add_stub_section): Prototype.
5012         (hppaelf_layaout_sections_again): Prototype.
5013         (hook_in_stub): Prototype.
5014         (LDEMUL_SET_OUTPUT_ARCH): Define.
5015         (LDEMUL_FINISH): Define.
5016         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5018         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5019         (EXTRA_EM_FILE): New.
5020         * emulparams/armelf_linux.sh: Likewise.
5021         * emulparams/armelf_linux26.sh: Likewise.
5022         * emulparams/hppalinux.sh: Likewise.
5023         * emulparams/hppaelf.sh: Likewise.
5024         (NOP): Define.
5026         * emultempl/elf32.em: Fix formatting.
5027         (EXTRA_EM_FILE): Source it.
5028         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5029         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5030         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5031         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5032         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5033         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5034         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5035         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5036         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
5037         allow functions in this file to be overridden.
5038         (PARSE_AND_LIST_SHORTOPTS): Handle it.
5040         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5042         * emultempl/elf32.em: Reorganize file.
5044 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
5046         * emulparams/elf64alpha.sh: Implement "-taso" emulation
5047         specific option to fit 64-bit executable in the lower
5048         31-bit address range.  This is done by changing start
5049         address of .interp (the very first section of executable)
5050         and then setting EF_ALPHA_32BIT elf header flag.
5052 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5054         * emultempl/m68kcoff.em: New file.
5055         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5056         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5057         generic.em.
5058         * Makefile.in: Regenerate.
5060 2000-07-20  H.J. Lu  <hjl@gnu.org>
5062         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5063         and "disable-new-dtags" to stop getopt from treating -d/-e as
5064         abbreviations for these options.
5066 2000-07-20  H.J. Lu  <hjl@gnu.org>
5068         * ld.texinfo: Add documentation for --disable-new-dtags and
5069         --enable-new-dtags.
5071         * ldmain.c (main): Initialize link_info.new_dtags to false.
5073         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5074         --disable-new-dtags and --enable-new-dtags.
5075         (gld_${EMULATION_NAME}_list_options): Likewise.
5077 2000-07-05  Kenneth Block  <krblock@computer.org>
5079         * lexsup.c: Add optional style to demangle switch
5080         * ld.texinfo: Document optional style to demangle switch.
5082 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
5084         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5085         ecrislinux.o.
5086         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5087         Regenerate dependencies.
5088         * Makefile.in: Rebuild.
5089         * configure.tgt (cris-*-*): New target.
5090         * emulparams/crisaout.sh, emulparams/criself.sh,
5091         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5092         * po/POTFILES.in, po/ld.pot: Regenerate.
5094 2000-07-20  H.J. Lu  <hjl@gnu.org>
5096         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5097         Print out ignored -z options.
5099 2000-07-19  H.J. Lu  <hjl@gnu.org>
5101         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5102         (PARSE_AND_LIST_PROLOGUE): New.
5103         (PARSE_AND_LIST_LONGOPTS): Likewise.
5104         (PARSE_AND_LIST_OPTIONS): Likewise.
5105         (PARSE_AND_LIST_ARGS_CASES): Likewise.
5107         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5109         * lexsup.c (ld_options): Comment out 'z'.
5110         (parse_args): Likewise.
5112         * emultempl/elf32.em: Include "elf/common.h".
5113         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5114         options.
5115         (gld_${EMULATION_NAME}_list_options): Likewise.
5117         * ld.texinfo: Add documentation for the recognized -z options.
5119 2000-07-19  H.J. Lu  <hjl@gnu.org>
5121         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5122         bfd_elf_set_dt_needed_soname ().
5124 2000-07-18  DJ Delorie  <dj@cygnus.com>
5126         * pe-dll.c (pe_dll_id_target): check object target name also
5128 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
5130         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5131         ${INIT_END} if relocating.
5132         (.fini): Likewise ${FINI_START} and ${FINI_END}.
5134 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
5136         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5137         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5138         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5139         errors introduced by the old dynamic lib search order.
5141 2000-07-17  DJ Delorie  <dj@cygnus.com>
5143         * pe-dll.c (process_def_file): auto-export data items also
5144         (pe_process_import_defs): also see if _imp_ form needed
5146 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
5148         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5149         for dll import libraries
5151 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
5153         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5154         gcc 2.95.2 and later.
5156 2000-07-11  Kazu Hirata  <kazu@hxi.com>
5158         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5159         message.
5161 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
5163         * ldemul.h (struct lang_input_statement_struct): Remove forward
5164         declaration.
5165         (struct search_dirs): Likewise.
5166         * ldfile.h (struct lang_input_statement_struct): Likewise.
5167         Protect file from multiple inclusion.
5168         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5169         declaration from macro to file scope.
5171         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5172         * ldgram.y: Likewise here.
5173         * ldlang.c: And here.
5174         * ldmain.c: And here.
5175         * mpw-elfmips.c: And here.
5176         * mpw-eppcmac.c: And here.
5177         * emultempl/aix.em: And here.
5178         * emultempl/armcoff.em: And here.
5179         * emultempl/armelf.em: And here.
5180         * emultempl/armelf_oabi.em: And here.
5181         * emultempl/beos.em: And here.
5182         * emultempl/elf32.em: And here.
5183         * emultempl/hppaelf.em: And here.
5184         * emultempl/linux.em: And here.
5185         * emultempl/lnk960.em: And here.
5186         * emultempl/pe.em: And here.
5187         * emultempl/sunos.em: And here.
5188         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5189         * mpw-idtmips.c: Ditto.
5190         * emultempl/generic.em: Ditto.
5191         * emultempl/gld960.em: Ditto.
5192         * emultempl/gld960c.em: Ditto.
5193         * emultempl/mipsecoff.em: Ditto.
5194         * emultempl/ticoff.em: Ditto.
5195         * emultempl/vanilla.em: Ditto.
5197         * pe-dll.c: Include ldfile.h
5198         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5200         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5201         arguments to bfd_elf32_size_dynamic_sections call.
5202         (gldelf32ebmip_place_orphan): Add missing arguments to
5203         lang_leave_output_section_statement call.
5205 2000-07-10  H.J. Lu  <hjl@gnu.org>
5207         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5208         DLL_SUPPORT.
5209         (strhash): Likewise.
5210         (compute_dll_image_base): Likewise.
5211         (pe_undef_found_sym): Likewise.
5212         (pe_undef_cdecl_match): Likewise.
5213         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5214         argument "arch" with ATTRIBUTE_UNUSED.
5216 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
5218         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5220         From  Ryan Bradetich  <rbradetich@uswest.net>
5221         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5223 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
5225         Changes to create multiple linker stubs, positioned immediately
5226         before the section where they are required.
5227         * emultempl/hppaelf.em: Include elf32-hppa.h.
5228         (stub_sec, file_chain): Delete.
5229         (hppaelf_create_output_section_statements): Don't make a stub
5230         section here.
5231         (hook_stub_info): New struct.
5232         (hook_in_stub): New function.
5233         (hppaelf_add_stub_section): New function.
5234         (hppaelf_finish): Do nothing for relocateable links.  Modify the
5235         call to elf32_hppa_size_stubs.  Move code for updating section
5236         layout from here...
5237         (hppaelf_layaout_sections_again): ..to here, a new function.
5239         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5240         broken list handling.  Pass in a pointer to the list.
5241         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5242         for above changes.
5243         (hppaelf_before_parse): Prototype.
5244         (hppaelf_set_output_arch): Prototype.
5245         (hppaelf_create_output_section_statements): Prototype.
5246         (hppaelf_delete_padding_statements): Prototype.
5247         (hppaelf_finish): Prototype.
5249         Merge from elf32.em
5250         * emultempl/hppaelf.em: Include ctype.h.
5251         (struct orphan_save): New.
5252         (gld${EMULATION_NAME}_place_orphan): New.
5253         (output_rel_find): New.
5254         (hppaelf_get_script): Update from elf32.em.
5255         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5256         Change emulation_name field to "${EMULATION_NAME}".  Add
5257         gld${EMULATION_NAME}_place_orphan.
5259         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
5260         ehppalinux.o, sort it.  Regenerate dependencies.
5261         (ehppalinux.c): Depend on hppaelf.em
5262         * Makefile.in: Regenerate.
5264         * configure.tgt: targ_emul=hppalinux for hppa*linux
5266         * emulparams/hppalinux.sh: New.
5267         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5269 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
5271         * lexsup.c (parse_args): Copy section name.
5273 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
5275         * emultempl/pe.em: institute the following search order for
5276         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5277         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
5278         static lib (libfoo.a) if none of the above are found.
5280 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
5282         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5283         (longopts): New --{enable,disable}-auto-image-base options.
5284         (gld_${EMULATION_NAME}_list_options): Document.
5285         (gld_${EMULATION_NAME}_parse): Handle.
5286         (strhash): New static function.
5287         (compute_dll_image_base): New static function.
5288         (gld_${EMULATION_NAME}_set_symbols): Use.
5290 2000-07-05  DJ Delorie  <dj@redhat.com>
5292         * MAINTAINERS: new
5294 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
5296         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5297         * emulparams/elf32btsmip.sh: New file.
5298         * Makefile.am: Add traditional mips target.
5299         * Makefile.in: Rebuild.
5301 2000-07-01  H.J. Lu  <hjl@gnu.org>
5303         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5304         automake to use YLWRAP.
5305         * Makefile.in: Rebuild.
5307 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
5309         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
5310         (CLEANFILES): Add DEPA.
5311         * Makefile.in: Regenerate.
5313 2000-06-30  Timothy Wall  <twall@ppc>
5315         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5316         the page in the upper octet of the address.
5318 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
5320         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5322 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
5324         * NEWS: arm-elf does --gc-sections too.
5326 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
5328         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5329         find one.
5330         * Makefile.in: Regenerate.
5332 2000-06-21  H.J. Lu  <hjl@gnu.org>
5334         * Makefile.am: Rebuild dependency.
5335         * Makefile.in: Rebuild.
5337 2000-06-20  H.J. Lu  <hjl@gnu.org>
5339         * Makefile.am: Rebuild dependency.
5340         * Makefile.in: Rebuild.
5342 2000-06-20  Timothy Wall  <twall@cygnus.com>
5344         * scripttempl/tic54xcoff.sc: New.
5345         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5346         * gen-doc.texi: Add flag for TI COFF.
5347         * ld.texinfo: Add documentation for TI COFF handling switches.
5348         * emultempl/ticoff.em: New. TI COFF handling.
5349         * configure.tgt: Add tic54x target.
5350         * Makefile.am: Add tic54x target.
5351         * Makefile.in: Ditto.
5353 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
5355         * ldmain.c (set_scripts_dir): Correct pointer comparison when
5356         checking for backslashes.
5358 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
5360         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5362 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
5364         * NEWS: Update list of targets supporting --gc-sections.
5366         * scripttempl/elf.sc: KEEP .eh_frame contents.
5367         * scripttempl/elfd30v.sc: Same here.
5369 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
5371         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5372         and m68hc11 (elf).
5373         * Makefile.in: Rebuild.
5374         * configure.tgt: Recognize m68hc12 and m68hc11.
5375         * scripttempl/elfm68hc12.sc: New file.
5376         * emulparams/m68hc12elfb: New emulation.
5377         * emulparams/m68hc12elf: New emulation.
5378         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
5379         (includes a memory.x script to define the ROM and RAM banks).
5380         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5381         New configuration files for support of Motorola 68hc11
5383 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
5385         * ldmain.c (main): Only change SEC_READONLY for final link.
5387 2000-06-13  H.J. Lu  <hjl@gnu.org>
5389         * configure: Regenerate.
5391 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
5393         * configure.in (VERSION): Update to show this is the CVS mainline.
5395 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5397         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5398         input objects to be ECOFF.
5399         (check_sections): einfo takes %B, not %P, to print a BFD name.
5401 2000-06-05  Michael Matz <matz@ifh.de>
5403         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5404         version scripts.
5406         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5408 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
5410         * emulparams/avr1200.sh (STACK): Define as 0.
5411         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5412         * emulparams/avr4433.sh (STACK): Likewise.
5413         * emulparams/avr44x4.sh (STACK): Likewise.
5414         * emulparams/avr85xx.sh (STACK): Likewise.
5415         * emulparams/avrmega103.sh (STACK): Likewise.
5416         * emulparams/avrmega161.sh (STACK): Likewise.
5417         * emulparams/avrmega603.sh (STACK): Likewise.
5418         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5419         (__stack): Define from ${STACK} for main().
5421 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
5423         * Makefile.am: Update dependencies with "make dep-am"
5424         * Makefile.in: Regenerate.
5426 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
5428         * ldmain.c: Include filenames.h.
5429         (set_scripts_dir): Support backslashes in program name.
5431 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
5433         * ldmain.c (main): When deciding if ".text" section should be
5434         read-only, don't forget to reset SEC_READONLY because it
5435         could be already set.
5437 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
5439         * ld.1: Add documentation for new command line option:
5440                 --section-start <sectionname>=<sectionorg>
5441         This is a generic version of -Ttext etc. which accepts
5442         any section name as a parameter instead of just text/data/
5443         bss.
5444         * ld.texinfo: More docs.
5445         * NEWS: More docs.
5446         * lexsup.c: (parse_args): Recognize new command line option.
5447         (ld_options): Add new option.
5449 2000-05-18  H.J. Lu  <hjl@gnu.org>
5451         * lexsup.c (parse_args): `i' == `r', not `q'.
5453 2000-05-18  Jeffrey A Law  (law@cygnus.com)
5455         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5457 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
5458               Rick Gorton          <gorton@scrugs.lkg.dec.com>
5460         Add support for '-q' == '--emit-relocs' switch.
5461         * ldmain.c (main): Default to false.
5462         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5463         * NEWS: Describe the emitrelocations switch.
5464         * ld.texinfo: Describe the emitrelocations switch.
5466 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
5468         * emultempl/pe.em (_open_dynamic_archive): New function: Search
5469         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5470         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5471         link options.
5473 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
5475         * lexsup.c (parse_args): Update the year in the copyright notice.
5477 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
5479         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5480         Replace defines with those from intl/libgettext.h to quieten gcc
5481         warnings.
5483 2000-05-10  H.J. Lu  <hjl@gnu.org>
5485         * ldlang.c (open_input_bfds): Don't load the same file within
5486         a group again if the whole archive has been loaded already.
5488 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
5490         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5491         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5492         strtoul.
5494 2000-05-01  Jim Wilson  <wilson@cygnus.com>
5496         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5498         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5499         host "ia64-*-linux-gnu*".
5501 2000-04-29  Andreas Jaeger  <aj@suse.de>
5503         * ld.h: Correctly check GCC version.
5505 2000-04-25  Jeffrey A Law  (law@cygnus.com)
5507         * Makefile.am: Add PA64 support.  Add missing dependencies for
5508         PA32 elf support.
5509         * Makefile.in: Rebuilt.
5510         * configure.tgt: Add PA64 support (currently disabled).
5512 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
5514         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5515         (output_rel_find): New function.
5516         (hold_section, hold_use): Delete.
5517         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5518         hold_interp): Make local to place_orphan.
5519         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5520         rather than place_section to find possible previous use of orphan.
5521         Similarly find the place-holder output sections.  Use returned
5522         value from lang_enter_output_section_statement rather than calling
5523         lang_output_section_statement_lookup.
5524         * emultempl/armelf.em: Same here.
5525         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5527         * ldlang.c (lang_enter_output_section_statement): Return output
5528         section statement.
5529         * ldlang.h (lang_enter_output_section_statement): Change
5530         declaration too.
5532         * ldlang.h (lang_output_section_statement): Export it.
5533         * ldlang.c (lang_output_section_statement): Ditto.
5535 2000-04-24  Nick Clifton  <nickc@cygnus.com>
5537         * ld.texinfo (Output Section Data): Add note that section data
5538         commands cannot appear outside of section directives.
5540 2000-04-2  Matthew Green  <mrg@cygnus.com>
5542         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5544 2000-04-21  Richard Henderson  <rth@cygnus.com>
5545             David Mosberger  <davidm@hpl.hp.com>
5547         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5548         (eelf64_ia64.c): New rule.
5549         * Makefile.in: Rebuild.
5550         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5551         * emulparams/elf64_ia64.sh: New file.
5553 2000-04-21  Richard Henderson  <rth@cygnus.com>
5555         * scripttempl/elfd30v.sc: Place .gcc_except_table.
5557 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
5559         * dep-in.sed: Match space at start of file name, not at end.
5561 2000-04-18  H.J. Lu  <hjl@gnu.org>
5563         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5564         lang_leave_output_section_statement () after calling
5565         lang_enter_output_section_statement ().
5566         * emultempl/armelf.em: Likewise.
5568 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
5570         * emultempl/elf32.em (struct orphan_save): Add section field.
5571         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5572         better order, and place first orphan section as we did before the
5573         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
5574         Don't call make_bfd_section here, let wild_doit do the job for us.
5575         Don't build a statement list when we'll only throw it away.
5576         * emultempl/armelf.em: Ditto.
5577         * emultempl/pe.em: Similarly.
5579 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
5581         * scripttempl/elfppc.sc: Remove.
5582         * emulparams/elf32ppc.sh: Use elf.sc.
5583         * emulparams/elf32lppc.sh: Use elf.sc.
5584         * emulparams/elf32ppclinux.sh: Use elf.sc.
5585         * emulparams/elf32ppcsim.sh: New file.
5586         * emulparams/elf32lppcsim.sh: New file.
5587         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
5588         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5589         * Makefile.in: Regenerate.
5590         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5592 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
5594         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5595         ~SEC_ALLOC sections too.  Init start address of debug sections.
5596         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5597         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5598         Also set all relocateable section start addresses.
5600 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
5602         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5603         Add new BSS_PLT variable for when .plt need not be contained in
5604         the file.  Move _etext so that it is also after .fini, and provide
5605         both etext and _etext with a leading underscore.  Mark the start
5606         and end of .sbss.
5608 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
5610         * emultempl/elf32.em (struct orphan_save): New.
5611         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5612         hold_interp): Make them struct orphan_save.
5613         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5614         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5615         the end of the relevant section list.  Also add associated section
5616         statements to the end of any previous orphan statements.
5617         * emultempl/armelf.em: Similarly.
5618         * emultempl/pe.em: Similarly.
5620 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
5622         * ld.texinfo (Simple Example): Remove extraneous paragraph.
5624 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
5626         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
5627         --enable-build-warnings option.
5628         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5629         * Makefile.in, configure: Re-generate.
5631 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
5633         * po/ld.pot: Regenerate.
5635         * lexsup.c (help): Restore translated part of bug string.
5637         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5638         (DEP): Quote when passing vars to sub-make.  Add warning message
5639         to end.
5640         (DEP1): Rewrite for "gcc -MM".
5641         (CLEANFILES): Add DEP2.
5642         Update dependencies.
5643         * Makefile.in: Regenerate.
5645 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
5647         * ld.h: #include "bin-bugs.h"
5648         * lexsup.c (help): Use REPORT_BUGS_TO.
5650 2000-03-27  Denis Chertykov  <denisc@overta.ru>
5652         * configure.tgt (avr-*-*): New target support.
5653         * Makefile.am: Likewise.
5654         * scripttempl/elf32avr.sc: New script file.
5655         * emulparams/avr1200.sh: New file.
5656         * emulparams/avr23xx.sh: New file.
5657         * emulparams/avr4433.sh New file.
5658         * emulparams/avr44x4.sh New file.
5659         * emulparams/avr85xx.sh New file.
5660         * emulparams/avrmega103.sh New file.
5661         * emulparams/avrmega161.sh New file.
5662         * emulparams/avrmega603.sh New file.
5663         * Makefile.in: Regenerate.
5665 2000-03-09  Andreas Jaeger  <aj@suse.de>
5667         * Makefile.am (check-DEJAGNU): Also unset LANG.
5668         * Makefile.in: Rebuild.
5670 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
5672         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5673         archive.
5675 2000-03-02  H.J. Lu  <hjl@gnu.org>
5677         * emulparams/elf32mcore.sh: Include "getopt.h".
5679 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
5681         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5683 2000-03-01  H.J. Lu  <hjl@gnu.org>
5685         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5686         * emulparams/shpe.sh: Likewise.
5688 2000-03-01  Nick Clifton  <nickc@cygnus.com>
5690         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5691         to unused parameters.
5693         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5694         functions only used by DLL code.
5695         (_place_orphan): Initialise 'dollar'.
5697 2000-03-01  H.J. Lu  <hjl@gnu.org>
5699         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5700         indicate if the undefined symbol is a fatal error or not.
5701         Don't delete the output file if "fatal" is false.
5703 2000-02-29  H.J. Lu  <hjl@gnu.org>
5705         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5706         Set LC_COLLATE and LC_ALL to null and export them. It is for
5707         sort which expects the C locale.
5708         Add $(LIBS) to all $(HOSTING_LIBS).
5709         * Makefile.in: Rebuild.
5711 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
5713         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5714         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5715         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5716         (ld_emulation_xfer_struct): Add missing NULL initialiser for
5717         find_potential_libraries.
5719 2000-02-28  Jim Blandy  <jimb@redhat.com>
5721         * ldgram.y (exclude_name_list): Don't require a comma to separate
5722         list entries; the lexer considers commas to be valid part of a
5723         filename, so in something like `foo, bar' the comma is considered
5724         part of the first filename, `foo,'.
5725         * ld.texinfo: Update section on EXCLUDE_FILE lists.
5727 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
5729         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5730         host "i[3456]86-*-freebsdelf*".
5732 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
5734         * scripttempl/i386go32.sc: Move misplaced semicolons.
5736 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
5738         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5739         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5740         (eelf64hppa.c, ehppaelf.c): Remove targets.
5741         * Makefile.in: Rebuild.
5743 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
5745         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5746         GNU/Linux/sparc, but keep the default as 32.
5748         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
5749         it default if sparcv9 or sparc64.
5751 2000-02-24  Nick Clifton  <nickc@cygnus.com>
5753         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5754         * Makefile.in: Regenerate.
5755         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5757         * ldemul.h (ld_emulation_xfer_struct): Add new field:
5758         find_potential_libraries.
5759         * ldemul.c (ldemul_find_potential_libraries): New function.
5761         * ldfile.c (ldfile_open_file_search): Allow function to be
5762         exported.
5763         (ldfile_open_file): Call ldemul_find_potential_libraries.
5764         * ldfile.h: Add prototype for ldfile_open_file_search.
5766         * pe-dll.c: Add support for ARM, MIPS and SH targets.
5768         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
5769         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
5771         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5772         (gld_X_find_potential_libraries): New function.  Search for
5773         libraries called "*.lib".
5775         * scripttempl/pe.sc: Add .pdata section.
5777 2000-02-23  Richard Henderson  <rth@cygnus.com>
5779         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5780         Add and use memory regions.
5782 2000-02-23  Linas Vepstas (linas@linas.org)
5784         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5786         * Makefile.am: Add support for Linux/IBM 370.
5787         * configure.tgt: Likewise.
5789         * Makefile.in: Regenerate.
5791 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
5793         * ldlang.c (print_input_section, print_data_statement,
5794         print_reloc_statement, print_padding_statement, insert_pad,
5795         size_input_section, lang_check_section_addresses,
5796         lang_size_sections, lang_do_assignments, lang_set_startof,
5797         lang_one_common): Change `opb' to unsigned.
5798         (lang_do_assignments): Also change `size' to unsigned.
5800 2000-02-16  Richard Henderson  <rth@cygnus.com>
5802         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5804 2000-02-16  Timothy Wall  <twall@cygnus.com>
5806         * mri.c (mri_draw_tree): Add default LMA region argument to call
5807         to lang_leave_output_section_statement.
5808         * ldlang.h: Update prototypes with LMA region arguments.
5809         * ldlang.c (lang_size_sections): Encapsulate region bounds
5810         checking in os_check_region call.
5811         (os_check_region): New function.
5812         (lang_output_section_statement_lookup): Initialize lma_region.
5813         (lang_leave_output_section_statement): Add LMA region argument.
5814         (lang_leave_overlay): Ditto.
5815         * ldgram.y: Handle LMA region syntax.
5816         * ld.texinfo (Output Section Description): Describe LMA region usage.
5817         * emultempl/armelf.em (gld$place_orphan): Add default value for
5818         lma region in call to lang_leave_output_section_statement.
5819         * emultempl/elf32.em (gld$place_orphan): Add default value for
5820         lma region in call to lang_leave_output_section_statement.
5821         * emultempl/pe.em (gld$place_orphan): Add default value for
5822         lma region in call to lang_leave_output_section_statement.
5825 2000-02-04  Timothy Wall  <twall@redhat.com>
5827         * ldlang.c (lang_check_section_addresses): Use bytes instead of
5828         octets when calculating section end addresses.
5830 2000-02-04  Timothy Wall  <twall@redhat.com>
5832         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5834 2000-02-03  Timothy Wall <twall@redhat.com>
5836         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5837         octet count.
5838         * ldlang.c (print_input_section, print_data_statement,
5839         print_reloc_statement, print_padding_statement): Print target
5840         address values and section sizes as bytes, not octets.
5841         (insert_pad) Calculate padding size in octets, and adjust "dot"
5842         by bytes.
5843         (size_input_section) Always adjust "dot" by bytes, not octets.
5844         (lang_check_section_addresses, lang_do_assignments) Adjust
5845         "dot" by bytes, not octets.  Use the larger of the directive size
5846         or octets_per_byte for the number of octets actually allocated in
5847         the output section.
5848         (lang_set_startof) Make sure STARTOF returns a target address.
5849         (lang_one_common) Record size changes in octets.
5850         (lang_abs_symbol_at_end_of) Section end symbol's value is
5851         recorded in target bytes.
5852         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5853         to be clear about behavior when an octet is smaller than one byte.
5855 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
5857         * ldcref.c (output_cref): Don't pass message strings to printf
5858         as format arg.
5859         Update copyright.
5861         * ldmisc.c (vfinfo): Same here.
5862         Update copyright.
5864 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
5866         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5867         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5868         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5869         Add missing NULL initialisers, and comments.
5871 2000-01-21  Nick Clifton  <nickc@cygnus.com>
5873         * ldlang.c (lang_size_sections): Fix typo in comment.
5875 2000-01-18  H.J. Lu  <hjl@gnu.org>
5877         * ldlang.c (lang_size_sections): Also update the current
5878         address of a region if the SEC_NEVER_LOAD bit is not set.
5880 2000-01-10  Philip Blundell  <pb@futuretv.com>
5882         * configure.tgt (arm*-*-conix*): New target.
5884 2000-01-07  Nick Clifton  <nickc@cygnus.com>
5886         * ld.texinfo (Options): Remind users to preceed linker command
5887         line switches with -Wl, (or whatever is appropriate) if it is
5888         being invoked by a comnpiler driver program.
5889         Fix description of the behaviour of the -n command line switch.
5891 2000-01-05  Catherine Moore  <clm@cygnus.com>
5893         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
5894         (name_list): New.
5895         * ld.texinfo (EXCLUDE_FILE): Update documentation.
5896         * ldgram.y (wildcard_spec): Support a list of excluded_files.
5897         (exclude_name_list): New.
5898         ldlang.c (walk_wild_section): Support list of excluded files.
5899         (print_wild_statement): Likewise.
5900         (lang_add_wild): Likewise.
5901         * ldlang.h (lang_wild_statement_type): Likewise.
5902         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5904 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
5906         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5907         (process_def_file): Use.
5908         (pe_dll_compat_implib): New variable.
5909         (make_one): Use.
5911         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5912         pe_dll_compat_implib.
5914         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5915         compat-implib options.
5916         (gld_${EMULATION_NAME}_list_options): List new options.
5917         (gld_${EMULATION_NAME}_parse_args): Handle.
5919         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5920         dll.
5922         * deffilep.y (opt_name): Allow "." in name.
5924 For older changes see ChangeLog-9899
5926 Local Variables:
5927 mode: change-log
5928 left-margin: 8
5929 fill-column: 74
5930 version-control: never
5931 End: