1 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
3 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
5 2003-03-07 Christopher Faylor <cgf@redhat.com>
7 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
8 apparent accidental removal on 2003-01-06.
10 2003-03-04 Dmitry Diky <diwil@mail.ru>
12 * Makefile.am: Add new devices x1122 x1132 emulation
13 * configure.tgt: Likewise.
14 * Makefile.in: Regenerate.
15 * emulparams/msp430x1122.sh: New file.
16 * emulparams/msp430x1132.sh: New file.
18 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
20 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
23 * ldfile.h (struct search_dirs): Added sysrooted field.
24 * ldlang.h (struct lang_input_statement_struct): Likewise.
25 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
26 (ldfile_open_file_search): Look for sysrooted filename starting
27 with / in ld_sysroot instead of in the current directory. Clear
28 sysrooted flag if it's found in the current directory. Set it
29 from the search directory's sysrooted flag where it is found
31 * ldlang.c (ldlang_sysrooted_script): New static variable.
32 (new_afile): Mark search_file_enums as sysrooted if
33 ldlang_sysrooted_script.
34 (load_symbols): Set ldlang_sysrooted_script according to the
35 script's sysrooted field while processing it.
36 * ld.texinfo: Document INPUT behavior in sysroot.
38 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
40 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
42 2003-03-03 Alan Modra <amodra@bigpond.net.au>
44 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
45 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
46 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
47 PARSE_AND_LIST_EPILOGUE): Don't define.
48 * emultempl/alphaelf.em: New file.
50 2003-03-01 Alan Modra <amodra@bigpond.net.au>
52 * ldemul.c: Include getopt.h.
53 * emultempl/elf32.em: Include getopt.h earlier.
54 * emultempl/ticoff.em: Likewise.
56 2003-02-28 Alan Modra <amodra@bigpond.net.au>
58 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
59 support when scripts read from files.
61 2003-02-28 Alan Modra <amodra@bigpond.net.au>
63 * ldemul.c (ldemul_parse_args): Return FALSE by default.
64 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
67 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
68 (ldemul_parse_args): Return bfd_boolean. Formatting.
69 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
70 (ldemul_parse_args): Adjust.
71 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
72 Return bfd_boolean from parse_args.
73 * lexsup.c (parse_args): Malloc shortopts, longopts and
74 really_longopts. Call ldemul_add_options and ldemul_handle_option.
75 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
76 gld${EMULATION_NAME}_parse_args.
77 (gld${EMULATION_NAME}_handle_option): Likewise.
78 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
79 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
80 * emultempl/beos.em: Likewise.
81 * emultempl/pe.em: Likewise.
82 * emultempl/ticoff.em: Likewise.
83 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
84 (gld${EMULATION_NAME}_add_sysroot): Prototype.
85 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
87 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
88 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
89 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
90 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
92 * emultempl/generic.em: Likewise.
93 * emultempl/gld960.em: Likewise.
94 * emultempl/gld960c.em: Likewise.
95 * emultempl/linux.em: Likewise.
96 * emultempl/lnk960.em: Likewise.
97 * emultempl/m68kcoff.em: Likewise.
98 * emultempl/mipsecoff.em: Likewise.
99 * emultempl/sunos.em: Likewise.
100 * emultempl/vanilla.em: Likewise.
101 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
103 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
105 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
106 memory allocation error.
108 * Makefile.am (ldmain.o): Define TOOLBINDIR.
109 * Makefile.in: Rebuilt.
110 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
112 2003-02-21 Bob Wilson <bob.wilson@acm.org>
114 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
115 call os_region_check when it is set.
116 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
117 lang_size_sections_1.
118 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
119 only for the last call, not on every relaxation iteration.
120 * ldlang.h (lang_size_sections): Update prototype.
121 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
122 to lang_size_sections.
123 (pe_exe_fill_sections): Likewise.
124 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
125 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
126 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
127 (ppc_layout_sections_again): Likewise.
129 2003-02-21 Bob Wilson <bob.wilson@acm.org>
131 * gen-doc.texi: Set ARM and HPPA variables.
132 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
133 title capitalization more consistent. Add missing menu entries for
134 machine-specific sections and conditionalize them consistently.
135 Conditionalize text that is irrelevant when SingleFormat is set.
136 Add @group divisions to improve page breaks in long examples.
137 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
138 is correct. Remove "FIXME" comment about not using
139 @raisesections/@lowersections. Use @raisesections/@lowersections
140 consistently for machine-specific sections. Change to be more polite
141 about poor bug reports. Replace FDL appendix with include of fdl.texi.
142 Move WIN32 node to match its order in the menus.
143 * fdl.texi: New file.
145 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
147 * configure.in (TARGET_SYSTEM_ROOT): Set default to
148 ${exec_prefix}/${target_alias}/sys-root. Match explicit
149 '${exec_prefix}' (in addition to the expansion thereof) as
151 * configure: Rebuilt.
153 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
155 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
157 2003-02-20 Harri Porten <porten@kde.org>
159 * ldgram.y (vers_defns): Allow optional trailing semicolon in
162 2003-02-18 Alan Modra <amodra@bigpond.net.au>
164 * emultempl/ppc32elf.em: New file.
165 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
166 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
167 (eelf32lppcnto.c): Likewise.
168 (eelf32lppcsim.c): Likewise.
169 (eelf32ppcnto.c): Likewise.
170 (eelf32ppc.c): Likewise.
171 (eelf32ppc_fbsd.c): Likewise.
172 (eelf32ppcsim.c): Likewise.
173 (eelf32ppclinux.c): Likewise.
174 * Makefile.in: Regenerate.
176 2003-02-18 Alan Modra <amodra@bigpond.net.au>
178 * ld.texinfo: Remove spaces between @samp and opening brace.
180 2003-02-18 Alan Modra <amodra@bigpond.net.au>
182 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
184 (ppc_before_allocation): Don't do optimizations if wrong hash table.
185 (gld${EMULATION_NAME}_finish): Ditto.
187 2003-02-17 Nick Clifton <nickc@redhat.com>
189 * ldmain.c (main) Default allow_shlib_undefined to true.
190 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
191 (parse_args): Parse the new switch.
192 * ld.texinfo: Document new switch and default behaviour of
193 allowing undefined symbols in shared libraries.
195 2003-02-11 Dmitry Diky <diwil@mail.ru>
197 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
198 * scripttempl/elf32msp430_3.sc: Likewise.
200 2003-02-11 Uwe Stieber <uwe@wwws.de>
202 * configure.tgt: Add support for kaOS as cross build target
205 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
207 * hppaelf.em (group_size): Change default back to 1.
209 2003-02-09 Alan Modra <amodra@bigpond.net.au>
211 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
213 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
215 * hppaelf.em (group_size): Change default to -1.
217 2003-02-07 Nick Clifton <nickc@redhat.com>
219 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
221 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
222 no-pipeline-knowledge. This will prevent the getopt package from
223 thinking that there are any shorter abbreviations for
224 --no-pipeline-knowledge.
226 2003-02-07 Jakub Jelinek <jakub@redhat.com>
228 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
229 which already have it. Avoid duplicates.
231 2003-02-06 Jakub Jelinek <jakub@redhat.com>
233 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
234 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
235 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
237 2003-02-05 Alan Modra <amodra@bigpond.net.au>
239 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
240 call ppc64_elf_tls_optimize.
242 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
244 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
245 outside of GNU/Linux conditional.
247 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
249 * deffilep.y (def_get_module): New function: locate an already
251 * deffile.h (def_get_module): New prototype.
252 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
253 a dll multiple times.
255 2003-01-23 Alan Modra <amodra@bigpond.net.au>
257 * emultempl/sh64elf.em: Include elf32-sh64.h.
258 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
259 sh64_elf_section_data.
260 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
262 2003-01-23 Wu Yongwei <adah@netstd.com>
264 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
265 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
266 cross-80th-column-margin "an" to the next line.
268 2003-01-21 Nick Clifton <nickc@redhat.com>
270 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
271 * emulparams/tic3xcoff_onchip.sh: ...this.
272 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
273 * Makefile.in: Regenerate.
275 2003-01-21 Fabio Alemagna <falemagn@aros.org>
277 * configure.tgt: Handle i[3456]86-*-aros*
279 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
281 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
282 * Makefile.in: Regenerate
283 * configure.tgt: Added extra target emulations
284 * emulparams/tic3xcoff.sh: Remove old settings
285 * emulparams/tic4xcoff.sh: Ditto
286 * emulparams/tic3xcoff-onchip.sh: Added new
287 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
288 * scripttempl/tic3xcoff.sc: Remove
290 2003-01-17 Andreas Jaeger <aj@suse.de>
292 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
295 2003-01-16 Alan Modra <amodra@bigpond.net.au>
297 * Makefile.in: Regenerate.
299 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
301 * ld/ld.texinfo (node WIN32): Some clarifications
302 and formatting fixups.
304 2003-01-09 Chris Demetriou <cgd@broadcom.com>
306 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
307 order, and handle (ignore) -mips32r2.
309 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
311 * ldmain.c (main): Make sure ld_sysroot is initialized.
313 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
315 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
317 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
318 (GENSCRIPTS): Add @use_sysroot@.
319 * Makefile.in: Regenerated.
320 * configure.host: Move setting of NATIVE_LIB_DIRS to...
321 * configure.tgt: ... here. Use ${target} instead of ${host}
323 * configure.in: Add --with-sysroot.
324 * configure: Regenerated.
325 * genscripts.sh: Accept use_sysroot option. Set new variables
326 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
327 $use_sysroot. Don't search $tool_lib if $use_sysroot.
328 * ldfile.c (ldfile_add_library_path): Handle leading '='.
329 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
330 (ld_sysroot): New variable.
331 (main): Initialize ld_sysroot.
332 * ldmain.h (ld_sysroot): New extern.
333 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
334 searching $EMULATION_LIBPATH.
335 (gld${EMULATION_NAME}_add_sysroot): New function.
336 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
337 (gld${EMULATION_NAME}_after_open): Likewise. Only search
338 environment variables if $NATIVE.
339 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
340 * NEWS: Mention --with-sysroot.
342 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
343 instead of setting LIB_PATH.
344 * emulparams/elf32ppc.sh: Likewise.
345 * emulparams/elf64_s390.sh: Likewise.
346 * emulparams/elf64_sparc.sh: Likewise.
347 * emulparams/elf64ppc.sh: Likewise.
348 * emulparams/elf_x86_64.sh: Likewise.
350 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
351 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
353 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
355 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
357 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
359 * Makefile.am (ldmain.o): Pass BINDIR.
360 * Makefile.in: Regenerated.
361 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
364 2003-01-02 Ben Elliston <bje@redhat.com>
366 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
367 (eelf32iq2000.c): New target.
368 * Makefile.in: Regenerate.
369 * configure.tgt: Handle iq2000-*-elf.
370 * emulparams/elf32iq10.sh: New file.
371 * emulparams/elf32iq2000.sh: New file.
372 * scripttempl/iq2000.sc: New file.
374 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
376 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
377 and _pei386_runtime_relocator to the exclude list.
379 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
381 * ldfile.c: Fix comment typos.
382 * ldlang.c: Likewise.
384 * pe-dll.c: Likewise.
386 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
388 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
389 * Makefile.am (ld.1): Depend on configdoc.texi
391 * Makefile.in: Regenerated.
393 2002-12-24 Dmitry Diky <diwil@mail.ru>
395 * Makefile.am: Add msp430 target.
396 * configure.tgt: Likewise.
397 * Makefile.in: Regenerate.
398 * emulparams/msp430x???.sh: New files. Linker script parameters
399 for various msp430 configurations.
400 * gen-doc.texi: Enable msp430 documenation.
401 * ld.texinfo: Document msp430 sections.
402 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
403 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
405 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
406 Charles Wilson <cwilson@ece.gatech.edu>
408 * ld/config.in (HAVE_REALPATH): New entry.
409 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
411 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
413 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
416 2002-12-23 Alan Modra <amodra@bigpond.net.au>
418 * ldmain.c (main): Init "strip_discarded".
419 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
420 (OPTION_NO_STRIP_DISCARDED): Define.
421 (ld_options): Add "strip-discarded" and "no-strip-discarded".
422 (parse_args): Handle them.
424 2002-12-23 Nick Clifton <nickc@redhat.com>
426 * ld.h (struct args_type): Add new field
427 'accept_unknown_input_architecture'.
428 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
430 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
431 bfd_arch_get_compatible.
432 * ldfile.c (ldfile_try_open_bfd): Likewise.
433 * lexsup.c (ld_options): Add new command line switch
434 --accept-unknown-input-architecture and its inverse.
435 (parse_args): Handle --accept-unknown-input-architecture.
436 * ld.texinfo: Document new linker option.
437 * NEWS: Mention new linker option.
439 2002-12-20 Alan Modra <amodra@bigpond.net.au>
441 * ldmain.c (main): Re-order link_info initialization. Init all
444 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
446 * ld.texinfo: Clarify and extend the documentation
447 in the Machine Dependent, WIN32 section.
449 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
451 * ld.texinfo: Add win32 machine depending section.
452 * gen-doc.texi: Enable win32 machine depending section.
454 * configure.host: Add win32 library search path.
456 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
458 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
459 import when auto-import is disabled.
461 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
463 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
464 account for trailing '\0'.
466 2002-12-17 Nick Clifton <nickc@redhat.com>
468 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
469 so that it is not confused with -c.
471 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
472 Charles Wilson <cwilson@ece.gatech.edu>
474 * configure.in: Add check for realpath function.
475 * configure: Regenerate.
476 * config.in: Regenerate.
477 * aclocal.m4: Regenerate.
478 * deffile.h: Add .data field to def_file_import
480 * pe-dll.c (pe_proces_import_defs): Use .data field of
481 def_file_import structure to initialize flag_data field of
482 def_file_export structure.
483 (pe_implied_import_dll): New variables exp_funcbase and
484 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
485 not filename (which may be a symlink). Scan the sections and
486 initialize [data|bss]_[start|end]. When scanning the export
487 table, skip _nm_ symbols, and mark any symbols whose rva indicates
488 that it is in the .bss or .data sections as data.
489 * sysdep.h: Include limits.h and sys/param.h, and define
490 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
491 exists, NULL otherwise.
492 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
493 pe_process_import_defs before pe_find_data_imports, so that
494 auto-import will check the virtual implib as well as "real"
496 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
497 symlinks to their target; check that the target's extension is
498 .dll before calling pe_implied_import_dll(), not the filename
499 itself (which may be a symlink).
501 2002-12-10 Alan Modra <amodra@bigpond.net.au>
503 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
504 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
507 2002-12-08 Alan Modra <amodra@bigpond.net.au>
509 * ldlang.h: Formatting.
511 2002-12-07 Alan Modra <amodra@bigpond.net.au>
513 * ldlang.c (init_os): Ensure sections mentioned in load_base
516 2002-12-05 Alan Modra <amodra@bigpond.net.au>
518 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
519 load_base for orphans that follow a section with load_base set.
521 2002-12-01 H.J. Lu <hjl@gnu.org>
523 * ld.texinfo: Remove the extra `;' in sample version script.
525 2002-11-30 Alan Modra <amodra@bigpond.net.au>
527 * configure.host: Correct dynamic-linker for powerpc64 hosts.
529 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
530 * Makefile.in: Regenerate.
532 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
533 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
534 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
535 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
536 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
537 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
538 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
539 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
540 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
541 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
542 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
543 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
544 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
546 2002-11-27 David O'Brien <obrien@FreeBSD.org>
548 * configure.host: Fix generic FreeBSD configuration entry.
550 2002-11-27 H.J. Lu <hjl@gnu.org>
552 * ld.texinfo: Add the missing `;' to sample version scripts.
554 2002-11-20 Alan Modra <amodra@bigpond.net.au>
556 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
558 2002-11-14 Egor Duda <deo@logos-m.ru>
560 * ldmain.c (main): Make runtime relocs disabled by default. Remove
561 assignment which has no effect.
562 * pe-dll.h (pe_create_import_fixup): Change prototype.
563 * pe-dll.c (make_runtime_pseudo_reloc): New function.
564 (pe_create_runtime_relocator_reference): Ditto.
565 (pe_create_import_fixup): Handle relocations with non-zero addends.
566 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
567 --disable-runtime-pseudo-reloc.
568 (make_import_fixup): Handle relocations with non-zero addends. Create
569 an external reference to _pei386_runtime_relocator symbol if at least
570 one pseudo reloc was created.
571 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
572 --disable-runtime-pseudo-reloc options.
574 2002-11-12 Earl Chew <earl_chew@agilent.com>
576 * ldlang.c (lang_add_section): Discard debugging sections that have
577 been marked SEC_EXCLUDE.
579 2002-11-12 Nick Clifton <nickc@redhat.com>
581 * configure.in (ALL_LINGUAS): Add da.
582 * configure: Regenerate.
583 * po/da.po: New Danish translation.
585 2002-11-12 Alan Modra <amodra@bigpond.net.au>
587 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
588 (LDEMUL_BEFORE_ALLOCATION): Define.
589 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
591 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
593 2002-11-11 Christopher Faylor <cgf@redhat.com>
595 * configure.tgt (LIB_PATH): Default to searching w32api directory under
598 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
600 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
601 of restricted auto-export libs.
603 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
605 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
606 creative library naming instances like, e.g., libstdc++-2.a.
608 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
610 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
611 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
613 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
615 * deffilep.y (def_lex): Handle '@' as first character of an ID.
616 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
617 (make_one): Don't prefix decorated fastcall symbols with '_'.
618 (pe_process_import_defs): Likewise.
619 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
620 symbols to cdecl names or vise-versa.
622 2002-10-13 Eric Kohl <ekohl@rz-online.de>
624 * pe-dll.c (process_def_file): Handle fastcall symbols when
625 generating undecorated aliases. Don't prefix decorated fastcall
627 (fill_exported_offsets): Don't prefix decorated fastcall symbols
630 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
632 * emultempl/aix.em: Use include <> for generated headers.
633 * emultempl/beos.em: Likewise.
634 * emultempl/elf32.em: Likewise.
635 * emultempl/pe.em: Likewise.
636 * ldctor.c: Likewise.
638 * ldfile.c: Likewise.
639 * ldlang.c: Likewise.
642 * ldmain.c: Likewise.
643 * ldmisc.c: Likewise.
644 * ldwrite.c: Likewise.
645 * lexsup.c: Likewise.
647 * pe-dll.c: Likewise.
649 2002-10-23 Jakub Jelinek <jakub@redhat.com>
651 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
652 sections into .rel{,a}.dyn.
654 2002-10-23 Nick Clifton <nickc@redhat.com>
656 * lexsup.c (OPTION_NO_OMAGIC): Define.
657 (ld_options): Add "no-omagic" option.
658 (parse_args): Parse --no-omagic.
659 * ld.texinfo: Document --no-omagic.
660 * NEWS: Mention new option.
662 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
664 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
665 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
667 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
669 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
670 emulation name. Set LIB_PATH only for native tools, and
671 search the ABI-specific versions of NATIVE_LIB_DIRS before the
672 .../lib variants, not instead of them. Mostly copied from...
673 * emulparams/elf32ppc.sh: ... here. Fixed typo.
674 * emulparams/elf64bmip-defs.sh: Backed out.
675 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
676 * emulparams/elf64btsmip.sh: Likewise.
677 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
678 TEXT_DYNAMIC): Removed.
680 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
682 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
683 (GENERATE_SHLIB_SCRIPT): Set to yes.
684 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
685 * emulparams/elf32bmipn32.sh: here.
686 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
687 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
688 * emulparams/elf64bmip-defs.sh: New file. Extend
689 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
690 * emulparams/elf64bmip.sh: Bring in definitions from
692 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
694 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
695 * emulparams/elf64btsmip.sh: Bring in definitions from
697 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
698 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
700 2002-10-16 Jakub Jelinek <jakub@redhat.com>
702 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
703 (s390-*-linux*): Add elf64_s390 emulation if want64.
704 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
705 genscript.sh changes.
706 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
707 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
709 2002-10-15 Alan Modra <amodra@bigpond.net.au>
711 * ldlang.c (load_symbols): Revert last change.
713 2002-10-14 Alan Modra <amodra@bigpond.net.au>
715 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
717 (lang_reasonable_defaults): Don't compare against false.
718 (size_input_section): Likewise.
719 (lang_size_sections_1): Likewise.
720 (lang_do_assignments): Likewise.
721 (lang_add_output): Likewise.
723 * Makefile.am: Run "make dep-am".
724 * Makefile.in: Regenerate.
725 * ldver.c: #include "bfdver.h".
727 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
729 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
731 * scripttempl/elfm68hc12.sc: Likewise.
733 2002-10-11 Alan Modra <amodra@bigpond.net.au>
735 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
737 * ldgram.y (memory_spec): Provide empty action.
738 (section <NAME>): Likewise.
740 2002-10-10 Jakub Jelinek <jakub@redhat.com>
742 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
743 they have OUTPUT_FORMAT not matching actual output format.
744 * ldlang.c (lang_get_output_target): New function.
745 (open_output): Use it.
746 * ldlang.h (lang_get_output_target): New prototype.
748 2002-10-10 Alan Modra <amodra@bigpond.net.au>
750 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
751 when orphan is .rel, .rela when orphan is .rela.
752 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
753 first. Remove outsecname var.
755 2002-10-09 Richard Shann <richard.shann@superh.com>
756 Stephen Clarke <stephen.clarke@superh.com>
758 * Makefile.am: Add eshelf32_linux.o and
759 eshlelf32_linux.o, new emulations for sh64 Linux.
760 * Makefile.in: Regenerate.
761 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
762 * emulparams/shelf32_linux.sh: New file.
763 * emulparams/shlelf32_linux.sh: New file.
765 2002-10-08 H.J. Lu <hjl@gnu.org>
767 * ldlang.c (lang_file_exist): Removed.
768 (new_afile): Revert the last change.
769 * ldlang.h (lang_file_exist): Removed.
770 * lexsup.c (parse_args): Revert the last change.
772 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
774 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
776 (make_one): Create _nm_<symbol> for data only.
778 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
780 * ldlang.c (lang_file_exist): New function.
781 (new_afile): Abort if the filename to be added matches the linker
783 * ldlang.h: Add prototype for lang_file_exist.
784 * lexsup.c (parse_args): Abort if the output filename matches
785 one of the input filenames.
787 2002-10-02 Alan Modra <amodra@bigpond.net.au>
789 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
791 2002-09-30 Alan Modra <amodra@bigpond.net.au>
793 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
794 * scripttempl/elfm68hc11.sc: Likewise.
795 * scripttempl/elfm68hc12.sc: Likewise.
797 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
798 reloc sections just before .rel.plt/.rela.plt.
799 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
800 Only put loadable reloc sections in hold_rel.
802 2002-09-29 H.J. Lu <hjl@gnu.org>
804 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
806 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
808 From "Anita Kulkarni" <AnitaK@kpit.com>
809 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
812 2002-09-25 Alan Modra <amodra@bigpond.net.au>
814 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
816 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
817 SEGMENT_SIZE alignment.
818 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
819 (SEGMENT_SIZE): Define.
821 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
822 (fold_binary): Correct abs - non-abs case.
823 (fold_trinary): New. Split out from exp_fold_tree.
825 2002-09-24 Alan Modra <amodra@bigpond.net.au>
827 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
828 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
829 for start of .data, instead align up to 256M boundary.
830 * scripttempl/aix.sc: Likewise.
832 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
834 * scripttempl/i386go32.sc: Handle bss unique sections.
836 2002-09-21 Alan Modra <amodra@bigpond.net.au>
838 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
840 2002-09-17 Stan Cox <scox@redhat.com>
842 * emulparams/elf32bmipn32-defs.sh: New file.
843 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
844 * emulparams/elf32btsmipn32.sh: Likewise.
845 * emulparams/elf64bmip.sh: Likewise.
846 * emulparams/elf64btsmip.sh: Likewise.
848 2002-09-16 Bruno Haible <bruno@clisp.org>
850 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
852 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
855 2002-09-11 Nick Clifton <nickc@redhat.com>
857 * NEWS: New TI port supports both C4x and C3x series of DSPs.
859 * po/tr.po: Updated Turkish translation.
861 2002-09-06 Jeffrey A Law (law@redhat.com)
863 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
865 2002-09-02 Nick Clifton <nickc@redhat.com>
867 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
869 * emulparams/v850.sh (TEMPLATE_NAME): Define.
871 2002-08-30 Nick Clifton <nickc@redhat.com>
873 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
874 used. Change INSN to start at 0x01000000 and extend for
875 256K (ignoring holes). Start the STACK on a word aligned
877 (.rodata): Start it at the READONLY_START_ADDR.
879 2002-08-30 Alan Modra <amodra@bigpond.net.au>
881 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
883 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
885 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
886 added makefile targets for this file.
887 * Makefile.in: Regenerate.
888 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
889 * NEWS: Mention new port.
891 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
893 * emulparams/tic3xcoff.sh: New file.
894 * emulparams/tic4xcoff.sh: New file.
895 * scripttempl/tic3xcoff.sc: New file.
896 * scripttempl/tic4xcoff.sc: New file.
898 2002-08-28 Alan Modra <amodra@bigpond.net.au>
900 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
901 strtoul and strtoull with bfd_scan_vma.
902 (gld${EMULATION_NAME}_read_file): Likewise.
904 2002-08-28 Alan Modra <amodra@bigpond.net.au>
906 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
908 2002-08-27 Egor Duda <deo@logos-m.ru>
910 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
911 Add symbols for application to access them.
913 2002-08-27 Nick Clifton <nickc@redhat.com>
915 * emultempl/armelf.em: Revert this patch, it is not needed.
917 2002-08-22 Adam Nemet <anemet@lnxw.com>
919 2002-08-20 Dan Kegel <dank@kegel.com>
921 * configure.in: added --with-lib-path argument to ld's configure
923 * ld/NEWS: Document new switch.
924 * ld/README: Mention new switch.
925 * configure: Regenerate.
926 * Makefile.in: Regenerate.
929 2001-04-25 Christopher Faylor <cgf@cygnus.com>
931 * Makefile.in (LIB_PATH): Make configurable.
932 (GENSCRIPTS): Set LIB_PATH in environment.
933 * configure.in: Substitute LIB_PATH.
935 2002-08-22 Adam Nemet <anemet@lnxw.com>
937 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
938 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
939 depending on the type of the function.
940 (arm_elf_convert_thumb_symbol_to_address): New function.
942 2002-08-22 Graeme Peterson <gp@qnx.com>
944 * Makefile.am: Add esh{l}elf_nto.o files.
945 * Makefile.in: Regenerate.
946 * configure.tgt: Add support for sh-**-nto* targets.
947 * emulparams/shelf_nto.sh: New file.
948 * emulparams/shlelf_nto.sh: New file.
950 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
952 * ldlang.c (offsetof): Define if not defined.
954 2002-08-14 H.J. Lu <hjl@gnu.org>
956 * configure.tgt: Always enable 64bit emulations for 32bit
959 2002-08-13 Alan Modra <amodra@bigpond.net.au>
961 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
962 (MAXPAGESIZE): Set to 1.
964 * ld.h (ALIGN_N): Delete.
965 * ldexp.h (align_n): Declare.
966 * ldexp.c (align_n): New function.
967 (fold_binary): Use align_n instead of ALIGN_N.
968 (exp_fold_tree): Likewise.
969 * ldlang.c (lang_size_sections_1): Likewise.
970 (lang_one_common): Likewise.
971 * ld.texinfo (ALIGN): Remove power of 2 restriction.
973 2002-07-31 Graeme Peterson <gp@qnx.com>
975 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
976 * Makefile.am: Add eelf32{l}ppcnto.o files.
977 * Makefile.in: Regenerate.
978 * emulparams/elf32lppcnto.sh: New file.
979 * emulparams/elf32ppcnto.sh: New file.
981 2002-08-07 H.J. Lu <hjl@gnu.org>
983 * ld.texinfo: Document --no-undefined-version.
985 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
986 `script.' fields to 0.
988 * ldmain.c (main): Initialize the allow_undefined_version to
991 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
992 (ld_options): Add --no-undefined-version.
993 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
995 2002-08-07 Nick Clifton <nickc@redhat.com>
997 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
998 an interworking bfd if there are input bfds. (107501)
1000 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1002 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1005 2002-08-01 Nick Clifton <nickc@redhat.com>
1007 * emulparams/armelf.sh: Revert previous delta.
1008 * scripttempl/elf.sc: Revert previous delta.
1010 2002-07-31 H.J. Lu <hjl@gnu.org>
1012 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1013 --enable-64-bit-bfd.
1015 2002-07-31 H.J. Lu <hjl@gnu.org>
1017 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1018 64bit BFD is selected.
1020 2002-07-31 H.J. Lu <hjl@gnu.org>
1022 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1023 if 64bit BFD is selected.
1025 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1027 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1028 link_info.common_skip_ar_aymbols.
1029 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1031 * ldmain.c (main): Initialize new field
1032 link_info.common_skip_ar_aymbols.
1034 2002-07-31 Adam Nemet <anemet@lnxw.com>
1036 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1038 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1041 2002-07-31 Nick Clifton <nickc@redhat.com>
1043 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1044 of the PDP-11 and 2.11BSD a.out support.
1046 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1048 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1049 for n32 ABI support.
1050 * Makefile.in: Regenerate.
1051 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1052 n32 ABI emulations for these 64 bit targets.
1053 * emulparams/elf32bmipn32.sh: Expand comment.
1054 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1056 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1058 2002-07-30 Graeme Peterson <gp@qnx.com>
1060 * configure.tgt: Add support for arm-*-nto target.
1061 * Makefile.am: Add earmnto.o file.
1062 * Makefile.in: Regenerate.
1063 * NEWS: Mention port of ARM support to QNX.
1064 * emulparams/armnto.sh: New file.
1066 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1068 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1069 for relocatable link.
1070 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1073 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1075 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1078 2002-07-25 Nick Clifton <nickc@redhat.com>
1080 * po/sv.po: Updated Swedish translation.
1081 * po/es.po: Updated Spanish translation.
1082 * po/fr.po: Updated French translation.
1084 2002-07-24 Nick Clifton <nickc@redhat.com>
1086 * po/sv.po: Updated Swedish translation.
1087 * po/es.po: Updated Spanish translation.
1089 2002-07-23 Nick Clifton <nickc@redhat.com>
1091 * po/fr.po: Updated French translation.
1093 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1095 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1096 bomb on /DISCARD/ input section.
1097 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1098 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1100 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1102 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1105 2002-07-16 Denis Chertykov <denisc@overta.ru>
1106 Nick Clifton <nickc@redhat.com>
1107 Frank Ch. Eigler <fche@redhat.com>
1108 John Healy <jhealy@redhat.com>
1110 * configure.tgt: Add support for ip2k-elf.
1111 * Makefile.am: Add support for ip2k-elf.
1112 * Makefile.in: Regenerate.
1113 * emulparams/elf32ip2k.sh: New file.
1114 * scripttempl/ip2k.sc: New file
1115 * NEWS: Mention support for new port.
1117 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1119 * NEWS: Add 'Changes in 2.13'.
1121 2002-07-14 H.J. Lu <hjl@gnu.org>
1123 * ld.texinfo: Document a .symver takes precedence over a
1126 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1128 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1129 (COMMONPAGESIZE): Define.
1131 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1133 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1135 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1137 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1138 powerpc-*-openbsd* and sparc64-*-openbsd*.
1139 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1140 * Makefile.in: Regenerate.
1141 * emulparams/hppaobsd.sh: New file.
1143 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1145 * ldlang.c (print_wild_statement): Fix output formatting.
1147 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1149 * ldlang.c: (strip_excluded_output_sections): New function.
1150 (lang_process): Call it.
1151 (lang_size_sections_1): Revert 2002-06-10 change.
1153 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1155 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1157 * Makefile.in: Regenerate.
1159 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1161 * ldfile.c (ldfile_try_open_bfd): Formatting.
1163 * ldmisc.c (demangle): Move so that it doesn't intrude between
1164 vfinfo comment and body. Add comment.
1166 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1168 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1170 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1172 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1173 * ldlang.c (entry_sym): Likewise.
1174 (ldlang_undef_chain_list_type): Likewise.
1175 (lang_finish): Adjust references to entry_symbol.
1176 (lang_add_entry): Likewise.
1177 (lang_gc_sections): Use link_info.gc_sym_list.
1178 (lang_process): Set link_info.gc_sym_list.
1179 * ldlex.l: Include bfdlink.h.
1180 * ldmain.c (main): Init link_info.gc_sym_list.
1181 * emultempl/aix.em: Adjust references to entry_symbol.
1182 * emultempl/armcoff.em: Likewise.
1183 * emultempl/armelf.em: Likewise.
1184 * emultempl/pe.em: Likewise.
1185 * emultempl/ppc64elf.em (ppc_after_open): New function.
1186 (LDEMUL_AFTER_OPEN): Define.
1187 * emulparams/elf64ppc.sh: KEEP .opd sections.
1189 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1191 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1192 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1193 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1194 (EEPROM_START_ADDR): Define.
1195 (EEPROM_MEMORY): Define.
1196 * emulparams/m68hc12elf.sh: Likewise.
1197 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1198 section to put soft registers in .page0.
1199 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1201 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1203 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1204 section. Add ${RELOCATING-0}.
1206 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1208 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1209 (OTHER_SECTIONS): Define.
1210 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1211 (OTHER_SECTIONS): Undef.
1213 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1215 * ldmisc.c (demangle): Restore dots stripped from sym name.
1217 2002-06-25 H.J. Lu <hjl@gnu.org>
1219 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1220 * Makefile.in: Regenerated.
1222 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1224 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1225 the size of attached object files, to allow make the object files
1226 available via FTP or HTTP and to mention that the mail will be
1227 sent to a mailing list.
1229 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1231 * ld/configure.host (romp): Drop support.
1233 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1235 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1236 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1238 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1240 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1241 format specifier used to print BFD name.
1243 2002-06-18 Dave Brolley <brolley@redhat.com>
1245 From Catherine Moore, Michael Meissner, Jim Blandy:
1246 * emulparams/elf32frv.sh: New file.
1247 * configure.tgt: Support frv-*-*.
1248 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1249 (eelf32frv.c): New target.
1251 2002-06-17 Tom Rix <trix@redhat.com>
1253 * emultempl/elf32.em: gld*_get_script: Check for
1254 GENERATE_COMBRELOC_SCRIPT.
1255 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1256 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1258 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1260 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1262 2002-06-12 H.J. Lu <hjl@gnu.org>
1264 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1265 false if xvec doesn't match.
1267 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1269 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1271 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1273 * ldexp.c: Replace CONST with const.
1274 * ldfile.c: Likewise.
1275 * ldfile.h: Likewise.
1276 * ldlex.l: Likewise.
1278 * pe-dll.h: Likewise.
1280 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1282 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1284 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1286 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1287 to -1 == implicit enable.
1288 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1289 initialize link_info.pei386_auto_import to -1 == implicit
1291 (gld_${EMULATION_NAME}_parse_args): When processing
1292 --enable-auto-import and --disable-auto-import options, use
1293 '1' and '0' instead of 'true' and 'false'.
1294 (pe_find_data_imports): Only issue message about auto-import
1295 when the feature is implicitly enabled. Downgrade message to
1296 informational instead of warning.
1298 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1300 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1302 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1304 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1305 HOSTING_CRT0 and HOSTING_LIBS.
1307 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1309 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1311 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1313 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1314 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1316 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1318 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1319 SEC_EXCLUDE sections when doing a relocatable link.
1321 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1323 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1324 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1325 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1326 (eshlelf64_nbsd.c): New rules.
1327 * Makefile.in: Regenerate.
1328 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1329 (sh64-*-netbsd*): New targets.
1330 * emulparams/shelf32_nbsd.sh: New file.
1331 * emulparams/shelf64_nbsd.sh: New file.
1332 * emulparams/shlelf32_nbsd.sh: New file.
1333 * emulparams/shlelf64_nbsd.sh: New file.
1335 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1337 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1339 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1341 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1342 C++ constructors/destructors, loosely based on the m68hc11 port.
1344 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1346 * Makefile.in: Regenerate.
1347 * aclocal.m4: Regenerate.
1348 * config.in: Regenerate.
1349 * configure: Regenerate.
1351 2002-05-31 Graeme Peterson <gp@qnx.com>
1353 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1354 (ei386nto.c): Add rule.
1355 * Makefile.in: Regenerate.
1356 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1357 * emulparams/i386nto.sh: New file.
1359 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1361 * NEWS: Add entry for VAX ELF support.
1363 2002-05-29 Matt Thomas <matt@3am-software.com>
1364 Jason Thorpe <thorpej@wasabisystems.com>
1366 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1368 (evaxnbsd.c): New rules.
1369 * Makefile.in: Regenerate.
1370 * configure.tgt (vax-*-netbsdelf*)
1372 (vax-*-netbsd*): New targets.
1373 * emulparams/elf32vax.sh: New file.
1374 * emulparams/vaxnbsd.sh: New file.
1376 2002-05-29 Adam Nemet <anemet@lnxw.com>
1378 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1379 bfd_for_interwork, instead add glue sections to each input bfd.
1380 (bfd_for_interwork): New global.
1381 (arm_elf_set_bfd_for_interworking): New function.
1382 (arm_elf_before_allocation): Use it.
1384 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1386 * Makefile.am: Add DLX make target.
1387 * configure.tgt: Add DLX configuration.
1388 * Makefile.in: Regenerate.
1389 * emulparams/elf32_dlx.sh: New file
1390 * scripttempl/dlx.sc: New file
1392 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1394 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1395 * Makefile.in: Regenerate.
1396 * emulparams/elf_chaos.sh: Use elf_chaos script.
1397 * scripttempl/elf_chaos.sc: New file.
1399 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1401 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1402 addresses and regions from here...
1403 (lang_get_regions): ...to this new function.
1404 (lang_leave_output_section_statement): Use lang_get_regions.
1405 (lang_leave_overlay): Likewise.
1406 * mri.c (mri_draw_tree): Pass null as last argument to
1407 lang_leave_output_section_statement.
1408 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1409 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1410 * emultempl/pe.em (gld*_place_orphan): Likewise.
1412 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1414 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1416 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1418 * ldemul.c: Fix formatting.
1419 * ldfile.c: Likewise.
1420 * pe-dll.c: Likewise.
1421 * pe-dll.h: Likewise.
1423 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1425 * ldlang.c (lang_process): Formatting, grammar.
1427 * ldlex.l: Use #include "" instead of <> for local header files.
1429 2002-05-24 TAMURA Kent <kent@netbsd.org>
1431 * configure.tgt: Add a target for i386-netbsdpe.
1433 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1435 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1436 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1437 output section if necessary. Handle .tbss.
1438 (lang_size_sections): Clear _raw_size for .tbss section
1439 (it allocates space in PT_TLS segment only).
1440 * ldwrite.c (build_link_order): Build link order for .tbss too.
1442 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1444 * configure.in: Correct spelling of AC_PREREQ.
1446 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1448 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1450 (autofilter_objlist): Add crtbegin.o, crtend.o.
1452 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1454 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1455 (longopts): Add new option --exclude-libs.
1456 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1457 (gld_${EMULATION_NAME}_parse_args): Use it.
1458 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1459 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1460 from whole archives.
1461 (pe_dll_add_excludes): Set excludes->type.
1462 (auto_export): Add new variable libname and set to archive basename if
1463 abfd. Use it when filtering default and user-specified libarary
1464 excludes. Let string "ALL" mean all libs when filtering user-specified
1466 * ld.texinfo: Document --exclude-libs.
1468 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1470 * ldemul.c (ldemul_new_vers_pattern): New function.
1471 * ldemul.h (ldemul_new_vers_pattern): Declare.
1472 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1473 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1474 * emultempl/ppc64elf.em (dotsyms): New static var.
1475 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1476 (LDEMUL_NEW_VERS_PATTERN): Define.
1477 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1478 (PARSE_AND_LIST_LONGOPTS): Likewise.
1479 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1480 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1482 * emultempl/armcoff.em: Likewise.
1483 * emultempl/armelf_oabi.em: Likewise.
1484 * emultempl/beos.em: Likewise.
1485 * emultempl/elf32.em: Likewise.
1486 * emultempl/generic.em: Likewise.
1487 * emultempl/gld960.em: Likewise.
1488 * emultempl/gld960c.em: Likewise.
1489 * emultempl/linux.em: Likewise.
1490 * emultempl/lnk960.em: Likewise.
1491 * emultempl/m68kcoff.em: Likewise.
1492 * emultempl/mipsecoff.em: Likewise.
1493 * emultempl/pe.em: Likewise.
1494 * emultempl/sunos.em: Likewise.
1495 * emultempl/ticoff.em: Likewise.
1496 * emultempl/vanilla.em: Likewise.
1498 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1500 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1501 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1502 (LIB_SEARCH_DIRS): No need to use "tr".
1503 (COMPILE_IN): Only set for native targets.
1504 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1505 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1506 * configure.tgt (powerpc*): Set tdir_*.
1507 (powerpcle*): Correct targ_extra_emuls.
1508 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1509 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1511 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1513 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1514 calling lang_add_entry.
1516 2002-05-21 H.J. Lu (hjl@gnu.org)
1518 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1520 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1522 * ld.texinfo: Updated for --allow-multiple-definition and
1525 * ldmain.c (main): Initialize the allow_multiple_definition
1528 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1529 (ld_options): Add --allow-multiple-definition.
1530 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1532 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1534 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1535 (earmelfb_nbsd.c): New rule.
1536 * Makefile.in: Regenerate.
1537 * configure.tgt (armeb-*-netbsdelf*): New target.
1538 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1539 (arm-*-netbsd*): Likewise.
1540 * emulparams/armelfb_nbsd.sh: New file.
1542 2002-05-18 Tom Rix <trix@redhat.com>
1544 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1547 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1549 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1550 * Makefile.in: Regenerate.
1551 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1553 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1555 * emulparams/avr1.sh: New file.
1556 * emulparams/avr2.sh: New file.
1557 * emulparams/avr3.sh: New file.
1558 * emulparams/avr4.sh: New file.
1559 * emulparams/avr5.sh: New file.
1560 * scripttempl/avr.sc: New file.
1562 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1564 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1565 (lang_place_orphans): Abort if just_syms_flag.
1567 2002-05-10 Tom Rix <trix@redhat.com>
1569 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1570 architecture and machine information in the output bfd.
1571 (gld*_before_parse): Remove old arch and machine code.
1572 (choose_target): Rename to gld*_choose_target.
1573 (rtld): Change type to int.
1574 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1575 objects in XCOFF archives.
1576 * ldfile.h: Update copyright date.
1578 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1580 * ldmain.c (main): Enable -z combreloc by default.
1582 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1584 * Makefile.am: Honour DESTDIR.
1585 * Makefile.in: Regenerate.
1587 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1589 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1590 (lang_enter_overlay): Remove the last two parameters.
1591 (lang_leave_overlay): Take them here instead.
1592 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1593 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1594 than lang_enter_overlay.
1595 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1596 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1597 (lang_size_sections_1): Evaluate it.
1598 (lang_leave_output_section_statement): Rework LMA lookup.
1599 (overlay_lma, overlay_nocrossrefs): Remove.
1600 (lang_enter_overlay): Remove LMA and crossref arguments.
1601 (lang_enter_overlay_section): Don't set the LMA here.
1602 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1603 assignment to the last section's update_dot_tree. Unconditionally
1604 use the load and run-time regions specified in the OVERLAY statement.
1605 Likewise the first section's LMA. Only set the other sections' LMAs
1606 when no load region is given.
1608 2002-05-06 Nick Clifton <nickc@redhat.com>
1610 * po/sv.po: New translation.
1612 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1614 * emultempl/hppaelf.em (build_section_lists): New function.
1615 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1616 and build_section_lists.
1618 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1620 * ld.h: Fix formatting.
1621 * ldexp.c: Likewise.
1622 * ldfile.c: Likewise.
1623 * ldlang.c: Likewise.
1624 * ldmain.c: Likewise.
1625 * lexsup.c: Likewise.
1626 * pe-dll.c: Likewise.
1628 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1630 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1631 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1632 (build_section_lists): Do output_section tests here.
1634 2002-04-30 Tom Rix <trix@redhat.com>
1636 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1638 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1640 Long branch stubs, multiple stub sections.
1641 * emultempl/ppc64elf.em: Include ldctor.h.
1642 (stub_file): New var.
1643 (group_size): New var.
1644 (ppc_create_output_section_statements): New function.
1645 (struct hook_stub_info): New.
1646 (hook_in_stub): New function.
1647 (ppc_add_stub_section): New function.
1648 (ppc_layout_sections_again): New function.
1649 (build_section_lists): New function.
1650 (gld${EMULATION_NAME}_finish): Rewrite.
1651 (real_func): New var.
1652 (ppc_for_each_input_file_wrapper): New function.
1653 (ppc_lang_for_each_input_file): New function.
1654 (lang_for_each_input_file): Define.
1655 (PARSE_AND_LIST_PROLOGUE): Define.
1656 (PARSE_AND_LIST_LONGOPTS): Define.
1657 (PARSE_AND_LIST_OPTIONS): Define.
1658 (PARSE_AND_LIST_ARGS_CASES): Define.
1659 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1661 2002-04-30 Tom Rix <trix@redhat.com>
1663 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1664 -blibpath, -bnolibpath support.
1666 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1668 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1669 (eelf32ppcwindiss.c): New target.
1670 * Makefile.in: Regenerated.
1671 * configure.tgt: Add support for powerpc-*-windiss.
1672 * emulparams/elf32ppcwindiss.sh: New file.
1674 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1676 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1677 * ldexp.c (exp_print_token): Add "infix_p" argument.
1678 (exp_print_tree): Update accordingly.
1680 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1682 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1683 * Makefile.in: Regenerate.
1684 * mpw-elfmips.c: Delete.
1685 * mpw-eppcmac.c: Delete.
1686 * mpw-esh.c: Delete.
1687 * mpw-idtmips.c: Delete.
1689 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1691 * emulparams/shelf32.sh (MACHINE): Now sh5.
1693 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1695 * ldgram.y: Fix syntax warning.
1697 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1699 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1700 to prevent "-n" from being taken as an abbreviation for
1701 "--no-pipeline-knowledge".
1703 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1705 * ldlang.c (lang_size_sections_1): Don't complain about
1706 SEC_NEVER_LOAD sections having no memory region specified.
1708 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1710 2002-04-07 matthew green <mrg@redhat.com>
1712 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1714 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1716 * dep-in.sed: Cope with absolute paths.
1717 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1719 * Makefile.in: Regenerate.
1721 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1723 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1725 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1727 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1728 is smaller than maximum, round dot up to common page boundary.
1730 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1732 * configure.host: Set up for generic hosts first, then tweak as
1733 necessary in more specific targets.
1734 (HOSTING_LIBS): Include libgcc_eh.a if found.
1736 2002-03-23 Andreas Jaeger <aj@suse.de>
1738 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1740 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1742 * Makefile.am: Run "make dep-am".
1743 * Makefile.in: Regenerate.
1745 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1747 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1749 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1751 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1752 add the symbol to the linker hash table immediately.
1753 (lang_place_undefineds): Split symbol creation out..
1754 (insert_undefined): ..to here.
1756 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1758 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1759 the contents of the buffer returned from basename function will are
1760 getting overwritten while still being used.
1762 2002-03-18 Jan Hubicka <jh@suse.cz>
1763 Andreas Jaeger <aj@suse.de>
1764 Andreas Schwab <schwab@suse.de>
1766 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1767 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1768 set libraries to default to lib64 paths.
1770 2002-03-18 Tom Rix <trix@redhat.com>
1772 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1773 * configure.tgt : Same.
1774 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1775 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1776 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1777 emulation parameters for better -b32, -b64 support.
1778 * emulparms/aixrs6.sh : Same.
1779 * emulparms/ppcmacos.sh : Same.
1780 * emultempl/aix.em (choose_target) : Use new emulation parameters
1781 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1782 * Makefile.in : Regenerate.
1784 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1786 * po/fr.po: Updated version.
1788 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1790 * ldmain.c (main): Move .text readonly flag fudges from here..
1791 * ldlang.c (lang_process): ..to here.
1793 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1795 * ldlang.c (lang_check): Remove the word size check added in last
1796 change. Treat emitrelocations case as for relocatable links.
1798 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1800 * po/fr.po: Updated version.
1802 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1804 * ldlang.c (lang_check): Do relocatable link checks first, so that
1805 warn_mismatch can't override. Check compatible and word size too.
1807 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1809 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1811 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1813 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1816 2002-03-04 H.J. Lu <hjl@gnu.org>
1818 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1819 .fini_array in the data segment.
1821 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1823 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1825 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1827 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1828 .init_array, and .fini_array.
1830 2002-02-20 Andreas Schwab <schwab@suse.de>
1832 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1833 .IA64_unwind* in a relocatable link.
1835 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1837 * NEWS: Mark 2.12 branch.
1839 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1841 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1842 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1844 2002-02-18 Tom Rix <trix@redhat.com>
1846 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1847 (gld*_before_allocation): Same.
1848 (gld*_create_output_section_statements): Generate
1849 __rtinit if run time linking. Add librtl.a to the link.
1850 (gld*_read_file): Clean.
1852 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1854 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1856 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1858 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1859 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1860 and eelf64alpha_fbsd.
1861 * Makefile.in: Regenerate.
1862 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1863 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1864 use a FreeBSD-specific emulation rather than the psABI one.
1865 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1866 for all FreeBSD ELF systems.
1867 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1869 * emulparams/elf32ppc_fbsd.sh: Likewise.
1870 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1871 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1872 * emulparams/elf64alpha_fbsd.sh: Likewise.
1873 * emulparams/elf_i386_fbsd.sh: Likewise.
1874 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1876 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1878 * po/tr.po: Updated version.
1880 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1882 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1885 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1887 * emultempl/mmo.em (mmo_after_open): Don't call
1888 _bfd_mmix_check_all_relocs when producing ELF output.
1890 2002-02-15 Richard Henderson <rth@redhat.com>
1892 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1893 definition. Emit a unop+nop pair.
1895 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1897 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1898 for presence of .MMIX.reg_contents.linker_allocated before early
1901 * NEWS: Mention support for MMIX.
1903 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1905 Support arbitrary length fill patterns.
1906 * ld.texinfo (Output Section Fill): Describe fill expressions.
1907 (FILL): Refer to the above.
1908 * ldexp.h (etree_value_type): Add "str" field.
1909 (union etree_union): Add "str" to "value" struct.
1910 (exp_bigintop): Declare.
1911 (exp_get_fill): Declare.
1912 * ldexp.c: Include "safe-ctype.h".
1913 (exp_intop): Set value.str to NULL.
1914 (exp_bigintop): New function.
1915 (new_rel): Pass in "str", and set new.str from it.
1916 (new_rel_from_section): Set new.str to NULL.
1917 (fold_name): Adjust calls to new_rel.
1918 (exp_fold_tree): Likewise.
1919 (exp_get_fill): New function.
1920 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1921 (INT): Returns a "bigint". Adjust all code handling INTs.
1922 (fill_opt): Returns a "fill".
1923 (fill_exp): Split out of fill_opt, use for FILL.
1924 * ldlang.h (struct _fill_type): New.
1925 (fill_type): Move typedef to ldexp.h.
1926 (lang_output_section_statement_type): "fill" is now a pointer.
1927 (lang_fill_statement_type): Likewise.
1928 (lang_padding_statement_type): Likewise.
1929 (lang_add_fill): Now takes a "fill_type *" param.
1930 (lang_leave_output_section_statement): Likewise.
1931 (lang_do_assignments): Likewise.
1932 (lang_size_sections): Likewise.
1933 (lang_leave_overlay_section): Likewise.
1934 (lang_leave_overlay): Likewise.
1935 * ldlang.c: Include ldgram.h after ldexp.h.
1936 (lang_output_section_statement_lookup): Adjust for fill_type change.
1937 (print_fill_statement): Likewise.
1938 (print_padding_statement): Likewise.
1939 (insert_pad): Now takes a "fill_type *" arg.
1940 (size_input_section): Likewise.
1941 (lang_size_sections_1): Likewise.
1942 (lang_size_sections): Likewise.
1943 (lang_do_assignments): Likewise.
1944 (lang_add_fill): Likewise.
1945 (lang_leave_output_section_statement): Likewise.
1946 (lang_leave_overlay_section): Likewise.
1947 (lang_leave_overlay): Likewise.
1948 Adjust all callers of the above function.
1949 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1950 starting with "0X" as well as "0x". Return bigint.str for hex
1951 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1952 Always use base 16 for numbers starting with "$".
1953 * ldmain.c: Include ldgram.h after ldexp.h.
1954 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1955 of bfd_fill_link_order.
1956 * pe-dll.c: Adjust lang_do_assignments calls.
1957 * emultempl/elf32.em: Likewise.
1958 * emultempl/hppaelf.em: Likewise.
1959 * emultempl/ppc64elf.em: Likewise.
1960 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1961 lang_add_assignment call.
1962 * emultempl/pe.em: Likewise.
1964 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1966 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1967 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1968 the pattern in question is not a regexp.
1969 * ldlang.c: Likewise.
1970 * ldlang.h: Likewise.
1971 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1973 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1975 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1976 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1977 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1978 * ldexp.c (exp_data_seg): New variable.
1979 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1980 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1981 (exp_fold_tree): Handle DATA_SEGMENT_END.
1982 Pass allocation_done when recursing instead of hardcoding
1983 lang_allocating_phase_enum.
1984 * ldexp.h (exp_data_seg): New.
1985 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1986 (lang_size_sections): New.
1987 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1988 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1989 if COMMONPAGESIZE is defined.
1990 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1991 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1992 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1993 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1994 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1997 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1999 * Makefile.in: Regenerate.
2001 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2003 * lexsup.c: Remove strtoul declaration.
2005 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2007 * ldmain.c: Add prototype for main ().
2008 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2009 * emultempl/lnk960.em (lnk960_choose_target): Function should
2012 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2014 * ldlang.c (entry_section): New initialised variable.
2015 (lang_finish): Use it.
2016 * ldlang.h (entry_section): Declare.
2017 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2018 entry_section to ".opd".
2020 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2022 * ld.texinfo (Options): Add back in -nostdlib documentation,
2023 which had been inadvertently removed.
2025 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2027 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2028 register section vma to a sane value after emitting error. Make
2029 fatal conditions cause program exit when emitting message.
2031 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2033 * configure.tgt: Add or32-*-rtems target.
2035 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2037 Contribute sh64-elf.
2038 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2039 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2040 in OTHER_RELOCATABLE_SECTIONS.
2041 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2042 * emulparams/shelf32.sh (STACK_ADDR): Define.
2043 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2044 (OTHER_SECTIONS): this. Removed stack settings.
2045 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2046 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2047 2001-03-12 DJ Delorie <dj@redhat.com>
2048 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2049 relaxing if any shmedia or mixed sections are found.
2050 2001-03-07 DJ Delorie <dj@redhat.com>
2051 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2052 einfo. Gracefully decline to output to non-elf formats.
2053 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2054 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2055 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2056 * emulparams/shelf32.sh: Ditto.
2057 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2058 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2060 2001-01-10 Ben Elliston <bje@redhat.com>
2061 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2062 non-portable shell constructs. From Hans-Peter Nilsson.
2063 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2064 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2065 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2066 dependencies to the shell script include chain.
2067 * Makefile.in: Regenerate.
2068 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2069 * emultempl/sh64elf.em: Update and tweak comments.
2070 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2071 make a .cranges section SEC_IN_MEMORY.
2072 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2073 * emultempl/sh64elf.em
2074 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2075 .cranges section found to be necessary; continue and set stored
2076 section contents flags for sections with non-mixed contents.
2077 Use a struct sh64_section_data container and sh64_elf_section_data
2078 to store contents-type flags.
2079 Remove unused update of "isec".
2080 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2081 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2082 access contents-type flags. Assert that the associated container
2083 is initialized. Use that container, not elf_gp_size, to hold size
2084 of linker-generated cranges contents.
2085 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2086 * emultempl/sh64elf.em
2087 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2088 there's already a .cranges section. When section flag difference
2089 is found, don't NULL-check cranges a second time. Tweak comments.
2090 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2091 merging, not max size, as size of ld-generated .cranges contents.
2092 Don't set ELF section flags in output section. When checking for
2093 needed .cranges descriptors, don't use a variable; compare
2094 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2096 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2097 * emultempl/sh64elf.em: New file.
2098 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2099 * Makefile.in: Regenerate.
2100 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2101 (OTHER_RELOCATING_SECTIONS): Ditto.
2102 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2103 * emulparams/shlelf32.sh: Stub out all settings except
2104 OUTPUT_FORMAT. Source shelf32.sh.
2105 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2106 OTHER_RELOCATING_SECTIONS.
2107 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2108 * emulparams/shlelf64.sh: Stub out all settings except
2109 OUTPUT_FORMAT. Source shelf64.sh.
2110 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2111 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2113 (DATA_START_SYMBOLS): Define, provide ___data.
2114 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2115 for consecutive .data section.
2116 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2117 section after .data section.
2118 * emulparams/shlelf64.sh: Ditto.
2119 * emulparams/shelf32.sh: Ditto.
2120 (ALIGNMENT): Define to 8.
2121 * emulparams/shelf32.sh: Ditto.
2122 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2123 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2124 built-in linker scripts.
2125 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2126 * emulparams/shlelf64.sh: New.
2127 * emulparams/shelf64.sh: New.
2128 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2130 * Makefile.am: Add support for shlelf64 and shelf64.
2131 * Makefile.in: Regenerate.
2132 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2133 * configure.tgt (sh64-*-elf*): Add shelf as default.
2134 Add shlelf to targ_extra_emuls.
2135 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2136 * emulparams/shelf32.sh: New file.
2137 * emulparams/shlelf32.sh: New file.
2138 * Makefile.am: Add support for shlelf32 and shelf32.
2139 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2140 * Makefile.in: Regenerate.
2142 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2144 * ldlang.c (lang_reset_memory_regions): Rename from
2145 reset_memory_regions. Change all callers. Make public.
2146 * ldlang.h (lang_reset_memory_regions): Prototype.
2147 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2148 lang_reset_memory_regions before lang_size_sections.
2149 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2150 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2152 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2154 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2155 arithmetic when checking for too many global registers.
2157 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2159 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2160 (ehppanbsd.c): New rule.
2161 * Makefile.in: Regenerate.
2162 * configure.tgt (hppa*-*-netbsd*): New target.
2163 * emulparams/hppalinux.sh: Add comment to check other files
2164 that source this file it is modified, and list which
2166 * emulparams/hppanbsd.sh: New file.
2168 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2170 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2173 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2175 Support on-demand global register allocation from
2176 R_MMIX_BASE_PLUS_OFFSET relocs.
2177 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2178 mmix_set_reg_section_vma. Call
2179 _bfd_mmix_finalize_linker_allocated_gregs.
2180 (mmix_before_allocation): New function.
2181 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2182 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2183 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2184 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2185 before .MMIX.reg_contents.
2186 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2187 (mmo_after_open): New function.
2188 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2189 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2190 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2192 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2194 * emulparams/or32.sh: New file.
2195 * emulparams/or32elf.sh: New file.
2196 * scripttempl/or32.sc: New file.
2197 * configure.tgt : Add support for or32.
2198 * configure: Regenerate
2199 * Makefile.am: Add support for or32.
2200 * Makefile.in: Regenerate.
2201 * NEWS: Mention support for or32.
2202 * po/ld.pot: Regenerate.
2204 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2205 Mitch Lichtenberg <mpl@broadcom.com>
2207 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2208 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2209 reloc creation (ld --embedded-relocs).
2211 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2213 * configure: Regenerated.
2215 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2217 * Makefile.am (install): Depend on install-info.
2218 * Makefile.in: Regenerate.
2220 2002-01-26 Christian Rose <menthos@menthos.com>
2222 * ldmain.c (main): Use full sentences to ease translation.
2224 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2226 * po/fr.po: Updated version.
2228 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2230 * po/es.po: Updated version.
2232 2002-01-25 Andreas Jaeger <aj@suse.de>
2234 * ldlex.l (yy_input): Correct error check.
2236 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2238 * ldmisc.c (demangle): Put back dots when string not demangled.
2240 2002-01-22 Richard Henderson <rth@redhat.com>
2242 * emulparams/elf64alpha.sh (NOP): Use unop.
2244 2002-01-21 Andreas Jaeger <aj@suse.de>
2246 * ldlex.l: Use fread instead of read.
2248 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2250 * configure.tgt (ia64-*-netbsd*): New target.
2252 2002-01-21 H.J. Lu <hjl@gnu.org>
2254 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2256 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2258 2002-01-18 Andreas Jaeger <aj@suse.de>
2260 * ldver.c (ldversion): Update year.
2262 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2264 * po/ld.pot: Regenerate.
2266 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2268 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2269 * Makefile.in: Regenerate.
2270 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2271 * emultempl/ppc64elf.em: New file.
2273 2002-01-15 DJ Delorie <dj@redhat.com>
2275 * scripttempl/pe.sc: Add support for constructor priorities.
2277 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2279 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2280 * emulparams/avr23xx.sh: Likewise.
2281 * emulparams/avr4433.sh: Likewise.
2282 * emulparams/avr44x4.sh: Likewise.
2283 * emulparams/avr85xx.sh: Likewise.
2284 * emulparams/avrmega103.sh: Likewise.
2285 * emulparams/avrmega161.sh: Likewise.
2286 * emulparams/avrmega603.sh: Likewise.
2287 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2289 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2291 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2292 archive is excluded.
2294 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2296 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2297 (eshelf_nbsd.c): New rule.
2298 (eshlelf_nbsd.c): New rule.
2299 * Makefile.in: Regenerate.
2300 * configure.tgt (sh*le-*-netbsdelf*): New target.
2301 (sh*-*-netbsdelf*): New target.
2302 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2303 * ld/emulparams/shelf_nbsd.sh: New emulation.
2304 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2306 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2308 * po/es.po: New file: Spanish translation.
2309 * configure.in (ALL_LINGUAS): Add es.
2310 * configure: Regenerate.
2312 2002-01-06 John Marshall <jmarshall@acm.org>
2314 * ld.texinfo: Note that --emit-relocs is currently only
2315 implemented for ELF.
2317 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2319 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2320 of bfd_section_list_remove and bfd_section_list_insert macros.
2321 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2322 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2324 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2326 * configure.tgt (x86_64-*-netbsd*): New target.
2328 2001-12-21 Tom Rix <trix@redhat.com>
2330 (gld*_create_output_section_statements): New function.
2331 For -binitfini support.
2332 * emultempl/aix.em (gld*_before_parse): Fix comment.
2333 * emultempl/aix.em (gld*_parse_args): Fix comment.
2335 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2337 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2339 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2341 * configure.tgt (arm-*-netbsdelf*): Add target.
2342 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2343 * emulparams/armelf_nbsd.sh: Added.
2344 * Makefile.am: Add rules for earmelf_nbsd.
2345 * Makefile.in: Regenerate.
2347 2001-12-19 Andreas Jaeger <aj@suse.de>,
2348 Susanne Oberhauser <froh@suse.de>
2350 * configure.host: Add rules for x86_64-*linux-gnu. Change
2351 s390x-linux entry to use gcc to report configuration, replace gcc
2352 with $CC in s390-linux
2354 2001-12-19 Andreas Jaeger <aj@suse.de>
2356 * ld.texinfo (VERSION): Fix markup.
2358 2001-12-18 matthew green <mrg@eterna.com.au>
2360 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2361 (m68kelfnbsd.c): New rule.
2362 * Makefile.in: Regenerate.
2363 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2364 (m68*-*-netbsd*4k*): .. this.
2365 (m68*-*-netbsdelf*): New target.
2366 (m68*-*-netbsd*): Also include ELF support.
2367 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2368 * emulparams/m68kelfnbsd.sh: New emulation.
2370 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2372 * ldgram.y (vers_node): Support anonymous version tags.
2373 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2374 tag is not defined together with non-anonymous versions.
2375 * ld.texinfo: Document it.
2377 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2379 * po/tr.po: New file: Turkish translation.
2380 * configure.in (ALL_LINGUAS): Add tr.
2381 * configure: Regenerate.
2383 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2385 * Makefile.am: Add rules for eelf64alpha_nbsd.
2386 * Makefile.in: Regenerate.
2387 * configure.tgt (alpha*-*-netbsd*): Set
2388 targ_emul to elf64alpha_nbsd.
2389 * emulparams/elf64alpha_nbsd.sh: Added.
2391 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2393 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2394 section_tail when fiddling with section list.
2395 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2396 broken into separate strings to make translation easier.
2397 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2398 fiddling with section list.
2399 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2401 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2403 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2405 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2407 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2409 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2411 * emultempl/elf32.em (finish): Supply output_bfd
2412 to bfd_elf*_discard_info.
2413 (OPTION_EH_FRAME_HDR): Define.
2414 (longopts): Add --eh-frame-hdr.
2415 (parse_args): Handle it.
2416 (list_options): Add --eh-frame-hdr to help.
2417 * emultempl/hppaelf.em (finish): Supply output_bfd
2418 to bfd_elf*_discard_info.
2419 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2421 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2423 * lexsup.c (parse_args): Don't pass shortopts to second call to
2424 getopt functions. Restore optind rather than decrementing before
2425 second call. Remove errind as it now duplicates last_optind.
2427 2001-12-11 Christopher Faylor <cgf@redhat.com>
2429 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2431 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2432 Richard Henderson <rth@redhat.com>
2434 * Makefile.am: Add support for xstormy16.
2435 * configure.tgt: Add support for xstormy16.
2436 * Makefile.in: Regenerate.
2437 * emulparams/elf32xstormy16.sh: New file.
2438 * scripttempl/xstormy16.sc: New file.
2440 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2442 * Makefile.in (LIB_PATH): Make configurable.
2443 (GENSCRIPTS): Set LIB_PATH in environment.
2444 * configure.in: Substitute LIB_PATH.
2445 * configure: Regenerate.
2446 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2447 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2449 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2451 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2452 describing the -N option so that it is easier to translate into
2455 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2457 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2458 statements describing a single option with a single, newline
2459 escaped fprintf. This allows better translation into other
2462 * ldmain.c (add_archive_element): Combine multiple strings
2463 into a single string to permit better translation into other
2466 2001-12-05 Tom Rix <trix@redhat.com>
2468 * Makefile.am: Remove eaixppc64.
2469 * Makefile.in: Regenerate.
2471 2001-12-04 Tom Rix <trix@redhat.com>
2473 * emultempl/aix.em (choose_target): Change default target to
2474 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2476 (gld*_read_file): Fix typo.
2477 (change_symbol_mode): Add prototype.
2480 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2481 * emulparams/aixrs6.sh : Same.
2482 * emulparams/ppcmacos.sh : Same.
2483 * emulparams/aixppc64.sh : Delete file.
2484 * emultempl/aix.em : Formatting changes.
2486 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2488 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2489 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2491 (OTHER_END_SYMBOLS): Fix formatting.
2492 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2493 (OTHER_END_SYMBOLS): Fix formatting.
2495 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2497 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2499 2001-12-02 Tom Rix <trix@redhat.com>
2501 * configure.tgt : Remove eaixppc64 emulations.
2502 * Makefile.in : Remove eaixppc64.c
2503 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2504 (ldemul_default_target): Same.
2505 * emultempl/gld960.em (gld960_choose_target): Same.
2506 * emultempl/gld960c.em (gld960_choose_target): Same.
2507 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2508 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2509 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2510 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2511 * emultempl/aix.em (choose_target): New function. Handle emulation of
2514 2001-11-27 H.J. Lu <hjl@gnu.org>
2516 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2517 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2518 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2519 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2520 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2521 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2522 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2523 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2525 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2528 (REL_SDATA): Likewise.
2529 (REL_SBSS): Likewise.
2530 (REL_SDATA2): Likewise.
2531 (REL_SBSS2): Likewise.
2532 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2535 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2537 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2539 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2541 2001-11-22 H.J. Lu <hjl@gnu.org>
2543 * Makefile.in: Regenerated with automake based on automake
2544 1.4-8 in RedHat 7.1.
2546 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2548 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2549 (config.status): Delete rule.
2550 Add extra dependencies to cover sourced emulparams files.
2551 * Makefile.in: Regenerate.
2553 * scripttempl/elf.sc: Order <section>, <section>.* and
2554 corresponding linkonce sections as seen in input files.
2555 Formatting fixes. Zero vma of all sections if not relocating.
2556 (STACK): Define and insert if STACK_ADDR defined.
2557 (OTHER_RELOCATING_SECTIONS): Delete.
2558 (OTHER_END_SYMBOLS): Define.
2559 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2560 (OTHER_READWRITE_SECTIONS): Likewise.
2561 (OTHER_GOT_SECTIONS): Likewise.
2562 (OTHER_SDATA_SECTIONS): Likewise.
2563 (OTHER_BSS_SECTIONS): Likewise.
2564 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2565 (OTHER_READWRITE_SECTIONS): Likewise.
2566 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2567 (OTHER_READWRITE_SECTIONS): Likewise
2569 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2570 (STACK_ADDR): Define.
2571 * emulparams/armelf_oabi.sh: As for armelf.sh.
2572 * emulparams/elf32mcore.sh: As for armelf.sh.
2573 * emulparams/h8300elf.sh: As for armelf.sh.
2574 * emulparams/mn10200.sh: As for armelf.sh.
2575 * emulparams/shelf.sh: As for armelf.sh.
2577 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2578 (OTHER_END_SYMBOLS): Define.
2579 * emulparams/m32relf.sh: As for elf32fr30.sh.
2580 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2581 * emulparams/h8300self.sh: As for elf32fr30.sh.
2583 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2584 defines with RELOCATING test.
2585 (OTHER_SDATA_SECTIONS): Likewise.
2586 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2587 (OTHER_END_SYMBOLS): ..this.
2588 * emulparams/crislinux.sh: As for criself.sh.
2590 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2592 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2593 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2594 normal and linkonce sections as seen in input files.
2595 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2596 (TEXT_DYNAMIC): Likewise.
2597 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2598 (OTHER_SDATA_SECTIONS): Likewise.
2599 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2600 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2601 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2602 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2603 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2604 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2605 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2606 sections as seen in input files.
2607 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2608 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2610 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2611 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2612 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2613 (OTHER_SECTIONS): Instead, use this..
2614 (OTHER_END_SYMBOLS): ..and this.
2616 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2617 * emulparams/elf32bsmip.sh: Likewise.
2618 * emulparams/elf32btsmip.sh: Likewise.
2619 * emulparams/elf32ebmip.sh: Likewise.
2620 * emulparams/elf32lmip.sh: Likewise.
2621 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2622 * emulparams/elf32lsmip.sh: Likewise.
2623 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2624 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2625 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2626 * emulparams/elf64btsmip.sh: Likewise.
2627 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2628 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2629 * emulparams/elf32ppclinux.sh: Likewise.
2630 * emulparams/elf32ppcsim.sh: Likewise.
2631 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2632 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2633 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2634 * emulparams/h8300self.sh: Likewise.
2635 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2636 * emulparams/sh.sh: Comment.
2637 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2638 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2639 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2641 2001-11-21 David Heine <dlheine@tensilica.com>
2642 Alan Modra <amodra@bigpond.net.au>
2644 * ldlang.c (map_input_to_output_sections): Replace "break"
2645 accidentally removed with 2001-08-03 change.
2646 (lang_gc_sections_1): Likewise.
2648 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2650 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2652 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2654 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2655 of false when calling lang_size_sections.
2656 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2658 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2660 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2661 function when LDEMUL_FINISH isn't set to the same name. Don't
2662 call ${LDEMUL_FINISH}.
2663 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2664 * emultempl/armelf.em (arm_elf_finish): Call
2665 gld${EMULATION_NAME}_finish.
2666 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2667 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2668 hppaelf_layout_sections_again if necessary.
2669 (need_laying_out): New var.
2670 (hppaelf_layaout_sections_again): Rename to
2671 hppaelf_layout_sections_again. Clear need_laying_out.
2672 (PARSE_AND_LIST_OPTIONS): Format text.
2674 2001-11-14 H.J. Lu <hjl@gnu.org>
2676 * emultempl/armelf.em (arm_elf_finish): Renamed from
2677 gld${EMULATION_NAME}_finish.
2678 (LDEMUL_FINISH): Set to arm_elf_finish.
2680 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2682 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2683 (struct ld_emulation_xfer_struct): Use it.
2685 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2687 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2688 additional symbols referenced by newer crt0.o files from HP.
2690 2001-11-12 Anthony Green <green@redhat.com>
2692 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2694 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2696 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2697 * Makefile.in: Regenerate.
2699 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2701 * ld.texinfo: Use @command for commands, @option for options.
2702 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2704 * Makefile.in: Rebuild.
2706 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2708 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2709 Add support for targets.
2711 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2713 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2714 * configure: Regernate.
2715 * po/fr.po: New file.
2716 * po/sv.po: New file.
2718 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2720 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2721 as little endian default and to support big endian.
2723 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2725 * ld.texinfo (Options): Document new option, -nostdlib.
2726 * lexsup.c (OPTION_NOSTDLIB): New definition.
2727 (ld_options): Add entry for "nostdlib".
2728 (parse_args): Handle OPTIONS_NOSTDLIB.
2729 * ldfile.c (ldfile_add_library_path): Don't add directories
2730 to the search path if they weren't specified on the command line
2731 and -nostdlib was specified.
2732 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2734 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2736 * lexsup.c (parse_args): Prevent infinite parsing loop when
2737 "-rpath.a" is specified on the command line.
2738 Replace calls to fprintf with calls to einfo.
2740 2001-10-31 John Marshall <jmarshall@acm.org>
2742 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2743 appear only once across all the linker scripts involved in a link
2744 invocation no longer applies. Make the documentation reflect
2747 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2749 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2751 (sh-*-linux*): Added targ_extra_libpath.
2753 2001-10-31 David Heine <dlheine@tensilica.com>
2755 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2756 for padding statements.
2758 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2760 * configure.tgt (mmix-*-*): New target.
2761 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2762 Add dependencies to match.
2763 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2764 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2765 scripttempl/mmo.sc: New files.
2766 * gen-doc.texi: @set MMIX.
2767 * ld.texinfo: Ditto.
2768 [MMIX] Add MMIX node.
2769 * Makefile.in: Regenerate.
2771 2001-10-29 Kazu Hirata <kazu@hxi.com>
2773 * ldlang.c: Fix a comment typo.
2775 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2777 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2778 entries, and match *-*-linux*.
2780 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2782 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2783 with ldlex_script, ldlex_popstate.
2784 (ifile_p1): Likewise.
2785 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2787 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2788 to 1. Don't BEGIN(SCRIPT).
2789 (lex_redirect): Similarly.
2790 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2792 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2794 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2795 __EH_FRAME_END__ and accept eh frames into data section.
2796 Add ctor and dtor sections.
2798 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2800 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2801 (auto-export): Fix indentation.
2803 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2805 * pe-dll.c (autofilter_objectlist): Add startup objects
2807 (auto-export): Constify char * p.
2808 Extract file basename and use strcmp rather than ststr
2811 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2813 * ldmain.c (get_emulation): Improve comment about the handling
2816 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2818 * po/POTFILES.in: Regenerate.
2820 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2822 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2823 -z nocopyreloc and -z nocombreloc usage strings.
2825 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2827 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2830 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2832 * scripttempl/armaout.sc: Place .bss section after end of aligned
2833 data section to match behaviour of aout code in constructrion of
2836 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2838 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2839 startup files for mingw32 dlls to list.
2841 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2843 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2845 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2847 * configure.tgt (targ): Add arm9e-*-elf.
2849 2001-10-05 H.J. Lu <hjl@gnu.org>
2851 * genscripts.sh: Fix a typo in the last change.
2853 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2855 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2856 -z nocombreloc in usage.
2858 2001-10-03 Jim Blandy <jimb@redhat.com>
2860 * genscripts.sh: Include a comment at the top of each generated
2861 script, explaining its purpose.
2863 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2865 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2866 * NEWS: Mention -z nocopyreloc.
2867 * ld.texinfo (Options): Describe nocopyreloc.
2869 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2871 * configure: Regenerate.
2873 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2875 * ldver.h (ld_program_version): Remove declaration.
2876 * lexsup.c (parse_args): Move printing of copyright message..
2877 * ldver.c (ldversion): .. to here.
2878 Use BFD_VERSION_STRING in place of BFD_VERSION.
2879 (ld_program_version): Remove.
2880 * Makefile.am (Makefile): Depend on bfd/configure.in.
2882 * Makefile.in: Regenerate.
2884 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2886 * Makefile.am: Update dependencies with "make dep-am".
2887 * Makefile.in: Regenerate.
2889 2001-09-29 John Reiser <jreiser@BitWagon.com>
2891 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2892 * lexsup.c: Add --no-define-common commandline option.
2893 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2894 * ldlex.l: Likewise.
2895 * ld.h: Add command_line.inhibit_common_definition.
2896 * ldmain.c (main): Initialize.
2897 * ld.texinfo: Document.
2899 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2901 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2903 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2905 * ldmisc.c (USE_STDARG): Remove.
2906 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2911 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2912 declarations. Update copyright.
2914 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2916 * pe-dll.c: Remove obsoleted declaration of
2917 pe_get_data_import_dll_name.
2918 (pe_create_import_fixup): Fix thinko.
2920 * ld.texinfo(enable-auto-import): Clarify the explanation.
2922 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2924 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2925 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2926 DLL_SUPPORT controlled code.
2928 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2930 * emultempl/pe.em(pe_data_import_dll): Make static.
2931 (pe_get_data_import_dll_name): New accessor function.
2932 * pe-dll.c(pe_create_import_fixup): call
2933 pe_get_data_import_dll_name() from pe.em, instead of
2934 directly accessing pe_data_import_dll variable from pe.em.
2936 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2938 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2939 (def_file_add_directive): Use ISSPACE instead of isspace.
2940 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2941 isdigit/isxdigit/isalpha/isalnum.
2942 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2943 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2944 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2945 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2947 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2948 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2950 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2951 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2952 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2953 (ctor_prio): Use ISDIGIT instead of isdigit.
2954 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2955 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2956 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2958 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2959 (stricpy): Use TOLOWER instead of isupper/tolower.
2960 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2961 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2962 (lex_warn_invalid): Use ISPRINT instead of isprint.
2963 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2964 (main): For gettext, also set the LC_CTYPE locate facet.
2965 (add_keepsyms_file): Use ISSPACE instead of isspace.
2966 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2967 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2968 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2969 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2970 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2971 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2972 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2973 (quoteput): Use ISSPACE instead of isspace.
2974 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2977 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2979 * deffilep.y (def_stash_module): Constify "name" param.
2981 * pe-dll.c: Replace CONST with const throughout.
2982 (quick_symbol): Constify "n1", "n2", "n3" params.
2983 (make_singleton_name_thunk): Constify "import" param. Make
2984 "buffer_len" a size_t.
2985 (make_import_fixup_entry): Constify "name", "fixup_name",
2986 "dll_symname" params.
2987 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2988 (pe_get32): Likewise.
2989 (pe_implied_import_dll): Likewise.
2991 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2992 (sort_by_section_name): Likewise.
2994 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2995 (make_import_fixup): Cast printf arg, rel->address to long rather
2997 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2999 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3001 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3002 defines BufferSize. Increase buffer size by one.
3004 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3006 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3008 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3010 * configure.tgt: Add arm-openbsd target.
3012 2001-09-12 H.J. Lu <hjl@gnu.org>
3014 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3016 (ALL_64_EMULATIONS): Here.
3017 * Makefile.in: Regenerated.
3019 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3021 * emultempl/pe.em(make_import_fixup): change signature to
3022 take asection as well as arelec; we need this for proper
3023 error reporting. Only call pe_create_import_fixup() if
3024 there is no attempt to add a constant addend to the reloc;
3025 otherwise, report error condition.
3026 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3027 since final argument is a pointer to make_import_fixup().
3028 Change call to cb() to match make_import_fixup() signature.
3029 (make_import_fixup_mark): make buffer_len unsigned.
3030 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3032 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3034 * ld.texinfo: add verbose documentation for auto-import
3035 direct-addressing workaround, to compliment the terse
3038 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3040 * scripttempl/v850.sc: Add gcc_except_table sections.
3042 2001-09-11 Jeffrey A Law (law@cygnus.com)
3044 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3045 * emulparams/h8300self.sh: Similarly.
3047 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3049 * ld.texinfo (Options, --stack): Correct default value for stack
3052 2001-09-05 Tom Rix <trix@redhat.com>
3054 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3056 2001-09-03 Andreas Jaeger <aj@suse.de>
3058 * emultempl/beos.em: Declare prototypes for comparions functions,
3061 2001-09-02 Andreas Jaeger <aj@suse.de>
3063 * emultempl/aix.em: Add missing prototype.
3064 * emultempl/lnk960.em: Likewise.
3065 * emultempl/vanilla.em: Likewise.
3066 * emultempl/armcoff.em: Likewise.
3067 * emultempl/armelf_oabi.em: Likewise.
3068 * emultempl/beos.em: Likewise.
3069 * emultempl/gld960c.em: Likewise.
3070 * emultempl/gld960.em: Likewise.
3072 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3073 for prototype declaration.
3075 2001-08-31 Eric Christopher <echristo@redhat.com>
3076 Jason Eckhardt <jle@redhat.com>
3078 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3080 2001-08-31 Andreas Jaeger <aj@suse.de>
3082 * emultempl/pe.em: Add missing prototypes.
3083 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3084 pe_find_data_imports.
3085 (pr_sym): Add unused attribute.
3087 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3089 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3090 default from coff to elf.
3092 2001-08-29 Jeff Law <law@redhat.com>
3094 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3096 * emulparams/h8300self.sh: Similarly.
3098 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3100 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3102 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3103 * configure.tgt (h8300-*-elf*): New case.
3104 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3105 * emulparams/h8300self.sh: New file.
3106 * Makefile.in: Regenerated.
3108 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3110 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3113 2001-08-27 Linus Nordberg <linus@swox.com>
3114 Alan Modra <amodra@bigpond.net.au>
3116 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3117 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3119 * Makefile.in: Regenerate.
3120 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3121 entries to correct alphabetical position.
3122 * emulparams/elf64ppc.sh: New.
3123 * emulparams/elf64lppc.sh: New.
3125 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3127 * ldmain.c (main): Declare BSIZE as static.
3129 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3131 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3132 into .rel.dyn resp. .rela.dyn if combreloc.
3133 (get_script): If .x linker script is equal to .xn, only put it
3134 once into the binary.
3135 Add .xc and .xsc scripts.
3136 (parse_args): Handle -z combreloc and -z nocombreloc.
3137 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3138 For .xc and .xsc scripts put all .rel* or .rela* input sections
3139 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3140 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3142 Strip trailing whitespace from script.
3143 Generate .xc and .xsc scripts if requested.
3144 * ldmain.c (main): Initialize link_info.combreloc and
3145 link_info.spare_dynamic_tags.
3146 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3147 (ld_options): Add --spare-dynamic-tags option.
3148 (parse_args): Likewise.
3149 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3150 * ldint.texinfo: Document .xc and .xsc linker scripts.
3151 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3153 2001-08-22 H.J. Lu <hjl@gnu.org>
3155 * emulparams/elf32fr30.sh: Add a newline.
3157 2001-08-21 Andreas Jaeger <aj@suse.de>
3159 * deffilep.y: Add missing prototypes.
3160 * pe-dll.c: Likewise.
3162 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3164 * ldlang.c (insert_pad): Fix typos in last patch.
3166 * ldlang.c: When traversing lang_statement_union_type lists,
3167 consistently use "header.next" rather than "next".
3168 * mpw-eppcmac.c: Likewise.
3169 * emultempl/beos.em: Likewise.
3170 * emultempl/hppaelf.em: Likewise.
3171 * emultempl/pe.em: Likewise.
3172 * ldlang.h (union lang_statement_union): Remove "next" field.
3174 * ldlang.c (insert_pad): Use offsetof macro.
3175 (lang_size_sections): Always neuter padding statements.
3176 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3178 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3179 passed to lang_size_sections.
3180 (pe_exe_fill_sections): Likewise.
3181 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3182 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3184 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3186 * emultempl/aix.em: Formatting fixes.
3188 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3190 * ldlang.c (insert_pad): Make use of an existing pad statement if
3191 available. Move code calculating alignment, adjusting section
3192 alignment power, and adjusting dot to ..
3193 (size_input_section): .. here. Remove unused relax param.
3194 (lang_size_sections): Change boolean `relax' param to boolean *.
3195 Adjust call to size_input_section. Make use of insert_pad to
3196 place pad after the assignment statement. If relaxing, zap
3198 (reset_memory_regions): Reset output_bfd section sizes too.
3199 (relax_again): Move to..
3200 (lang_process): ..here. Adjust call to lang_size_sections, and
3201 remove duplicated code.
3202 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3204 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3206 * ld.texinfo: Document that fill values now use the four least
3208 * emulparams/elf32fr30.sh (NOP): Update.
3209 * emulparams/elf32mcore.sh: Likewise.
3210 * emulparams/elf64_s390.sh: Likewise.
3211 * emulparams/elf_i386.sh: Likewise.
3212 * emulparams/elf_i386_be.sh: Likewise.
3213 * emulparams/elf_i386_chaos.sh: Likewise.
3214 * emulparams/elf_i386_ldso.sh: Likewise.
3215 * emulparams/elf_s390.sh: Likewise.
3216 * emulparams/elf_x86_64.sh: Likewise.
3217 * emulparams/i386moss.sh: Likewise.
3218 * emulparams/i386nw.sh: Likewise.
3219 * emulparams/m68kelf.sh: Likewise.
3220 * scripttempl/elf.sc: Update NOP comment.
3221 * scripttempl/elfi370.sc: Likewise.
3222 * scripttempl/elfm68hc11.sc: Likewise.
3223 * scripttempl/elfm68hc12.sc: Likewise.
3224 * scripttempl/nw.sc: Likewise.
3226 2001-08-15 Tom Rix <trix@redhat.com>
3228 * ldgram.y (saved_script_handle): Initialize to NULL.
3229 * ldmain.c (main): Change check on saved_script_handle.
3231 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3233 * emultempl/elf32.em: Formatting fixes.
3234 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3235 looking at sec->owner.
3236 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3237 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3238 unused code, and reorganize orphan section placement code.
3240 * ldlang.c (wild_doit): Rename to lang_add_section.
3241 * ldlang.h: Here too.
3242 * mpw-elfmips.c: And here.
3243 * emultempl/beos.em: And here.
3244 * emultempl/elf32.em: And here.
3245 * emultempl/hppaelf.em: And here.
3246 * emultempl/pe.em: And here.
3248 2001-08-13 Richard Henderson <rth@redhat.com>
3250 * emultempl/needrelax.em: New file.
3251 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3252 * Makefile.am (eelf64_ia64.c): Depend on it.
3253 * Makefile.in: Rebuild.
3255 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3257 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3258 output_section is set non-NULL.
3260 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3261 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3262 needlessly create an output_section_statement. Treat a correctly
3263 named output_section_statement with NULL bfd_section as compatible.
3265 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3267 * emultempl/generic.em: Support EXTRA_EM_FILE.
3268 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3269 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3270 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3271 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3272 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3273 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3274 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3275 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3276 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3277 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3279 2001-08-12 Richard Henderson <rth@redhat.com>
3281 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3282 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3283 scripttempl/v850.sc: Keep .jcr data.
3285 2001-08-12 H.J. Lu <hjl@gnu.org>
3286 Andrew Haley <aph@cambridge.redhat.com>
3287 Nick Clifton <nickc@redhat.com>
3289 * ldgram.y (had_script): Change name to saved_script_handle.
3290 Change type to file handle.
3291 * ld.h (had_script): Rename and retype.
3292 * ldfile.c (ldfile_open_command_file): Save the file handle
3293 used in saved_script_handle.
3294 * lexsup.c (parse_args): Do not allow -c option to alter
3295 saved_script_handle.
3296 * ldmain.c (main): Print out the linker script used if
3297 --verbose is given. Check saved_script_handle to obtain the
3298 external linker script used, or if NULL, dump the builtin
3300 * ld.texinfo: Document that --verbose now dumps the linker
3301 script used, regardless of whether it was an internal or an
3304 2001-08-10 Andreas Jaeger <aj@suse.de>
3306 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3308 * configure: Regenerate.
3310 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3312 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3314 * scripttempl/elf.sc: Move non-text .dynamic section before
3315 .plt/.got/.sdata* group.
3316 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3317 (OTHER_SDATA_SECTIONS): Add.
3318 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3320 * emulparams/crislinux.sh: Likewise.
3321 * emulparams/elf32b4300.sh: Likewise.
3322 * emulparams/elf32bmip.sh: Likewise.
3323 * emulparams/elf32bmipn32.sh: Likewise.
3324 * emulparams/elf32bsmip.sh: Likewise.
3325 * emulparams/elf32btsmip.sh: Likewise.
3326 * emulparams/elf32ebmip.sh: Likewise.
3327 * emulparams/elf32elmip.sh: Likewise.
3328 * emulparams/elf32l4300.sh: Likewise.
3329 * emulparams/elf32lmip.sh: Likewise.
3330 * emulparams/elf32lsmip.sh: Likewise.
3331 * emulparams/elf32ltsmip.sh: Likewise.
3332 * emulparams/elf64bmip.sh: Likewise.
3333 * emulparams/elf64btsmip.sh: Likewise.
3334 * emulparams/elf64ltsmip.sh: Likewise.
3336 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3338 * genscripts.sh: Source the emulparams script before each output
3339 script is generated so that variables like `RELOCATING' may affect
3340 variables defined in the emulparams script.
3342 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3344 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3347 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3348 ie. iterate over wild_statement.section_list.
3349 (gld${EMULATION_NAME}_place_orphan): Likewise.
3351 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3353 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3354 .fini[0-4] sections used by _exit
3355 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3356 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3357 * scripttempl/elfm68hc11.sc: Likewise.
3359 2001-08-03 H.J. Lu <hjl@gnu.org>
3361 * emultempl/beos.em (init): Add the missing initialization.
3363 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3365 * ld.texinfo (Input Section Basics): Clarify ordering of output
3367 * ldlang.c (callback_t): Add wildcard_list param.
3368 (walk_wild_section): Remove "section" param. Rewrite for
3369 lang_wild_statement_type change. Remove unique_section_p test.
3370 (walk_wild_file): Remove "section" param.
3371 (walk_wild): Remove "section" and "file" params.
3372 (lang_gc_wild): Likewise.
3373 (wild): Likewise. Modify for lang_wild_statement_type change.
3374 (wild_sort): Likewise. Add "sec" param.
3375 (gc_section_callback): Likewise.
3376 (output_section_callback): Likewise. Do unique_section_p test.
3377 (map_input_to_output_sections): Modify call to wild.
3378 (lang_gc_sections_1): Likewise.
3379 (print_wild_statement): Modify for lang_wild_statement_type
3381 (lang_add_wild): Replace filename, filenames_sorted param with
3382 filespec. Replace section_name, sections_sorted,
3383 exclude_filename_list with section_list.
3384 * ldlang.h (lang_add_wild): Here too.
3385 (lang_wild_statement_type): Replace section_name, sections_sorted,
3386 and exclude_filename_list with section_list.
3387 * ldgram.y (current_file): Delete.
3388 (%union): Add wildcard_list.
3389 (file_NAME_list): Set type to wildcard_list. Build a linked list
3390 rather than calling lang_add_wild for each entry.
3391 (input_section_spec_no_keep): Call lang_add_wild here instead.
3392 * ld.h (struct wildcard_list): Declare.
3393 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3395 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3397 * ldmain.c (main): initialize link_info.pei386_auto_import
3398 * pe-dll.c: new tables for auto-export filtering
3399 (auto_export): change API, pass abfd for contextual filtering.
3400 Loop thru tables of excluded symbols instead of comparing
3403 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3405 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3406 static variable current_sec (static struct sec *). Add
3407 forward declaration for add_bfd_to_link.
3408 (process_def_file): Don't export undefined symbols. Do not
3409 export symbols starting with "_imp__". Call auto_export()
3411 (pe_walk_relocs_of_symbol): New function.
3412 (generate_reloc): add optional extra debugging
3413 (pe_dll_generate_def_file): eliminate extraneous initial blank
3415 (make_one): enlarge symtab to make room for __nm__ symbols
3416 (DATA auto-import support).
3417 (make_singleton_name_thunk): New function.
3418 (make_import_fixup_mark): New function.
3419 (make_import_fixup_entry): New function.
3420 (pe_create_import_fixup): New function.
3421 (add_bfd_to_link): Specify that 'name' argument is a CONST
3423 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3424 declare new functions pe_walk_relocs_of_symbol and
3425 pe_create_import_fixup.
3426 * emultempl/pe.em: add new options --enable-auto-import,
3427 --disable-auto-import, and --enable-extra-pe-debug.
3428 (make_import_fixup): New function.
3429 (pe_find_data_imports): New function.
3430 (pr_sym): New function.
3431 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3432 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3435 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3437 * ld.texinfo: add additional documentation for
3438 --export-all-symbols. Document --out-implib,
3439 --enable-auto-image-base, --disable-auto-image-base,
3440 --dll-search-prefix, --enable-auto-import, and
3441 --disable-auto-import.
3442 * ldint.texinfo: Add detailed documentation on auto-import
3445 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3447 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3450 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3452 * Makefile.am: Update dependencies with "make dep-am".
3453 * Makefile.in: Regenerate
3455 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3457 * ldcref.c (check_section_sym_xref): New function.
3458 (check_nocrossrefs): Call it.
3459 (check_nocrossref): Interate over h->refs here instead of..
3460 (check_refs): ..here. Pass in the symbol name, section, and bfd
3461 rather than hash_entry pointers.
3462 (struct check_refs_info): Keep symbol name rather than hash entry.
3464 (check_reloc_refs): Tweak for above changes in check_refs_info.
3465 Only report references to section syms when symname is NULL to
3466 prevent duplicate messages for the same reloc.
3468 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3470 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3471 available. Do not print NULL trees.
3472 (exp_print_token): Print unknown tokens with values > 126 as
3473 decimal values not ASCII characters.
3475 * ldlang.c (lang_leave_overlay): If a region is specified assign
3476 it to all sections inside the overlay unless they have been
3477 assigned to the own, non-default, memory region.
3479 * README: Add header for consistency with other README files.
3481 2001-07-14 H.J. Lu <hjl@gnu.org>
3483 * emultempl/elf32.em (output_prev_sec_find): Never return
3484 bfd_abs_section_ptr, bfd_com_section_ptr nor
3485 bfd_und_section_ptr.
3487 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3489 * Makefile.am (em32relf.c): Change dependency from generic.em to
3491 * Makefile.in: Regenerate.
3493 2001-07-14 matthew green <mrg@eterna.com.au>
3495 * configure.tgt (i386-*-netbsdelf*): New target.
3496 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3498 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3500 * emultempl/elf32.em (output_prev_sec_find): New.
3501 (place_orphan): Use it.
3503 2001-07-11 H.J. Lu <hjl@gnu.org>
3505 * ldmain.c (main): Fix typos in the last change.
3507 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3509 * ldmain.c (main): Disallow -F and -f without -shared.
3511 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3513 * emultempl/pe.em (after_open): Check for the output_bfd not
3514 having any coff_data structure allocated to it.
3516 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3518 * emultempl/elf32.em: Do not assuming that contents of the buffer
3519 returned from basename function will remain unchanged accross other
3522 2001-07-03 H.J. Lu <hjl@gnu.org>
3524 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3525 2001-07-03. It creates dynamic entries even for static binaries.
3527 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3529 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3530 (DYNAMIC): Use it to reserve few dynamic entries for
3533 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3535 * emulparams/hppa64linux.sh: New file.
3536 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3537 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3538 (ehppa64linux.c): Add rule to make it.
3540 * Makefile.in: Regenerate.
3542 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3544 * ld.texinfo (Options, -r): Mention restrictions when using
3545 different object formats.
3547 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3549 * ldlang.c (lang_check): Emit fatal error if relocatable link
3550 between different object flavours with relocations in input.
3552 2001-06-19 H.J. Lu <hjl@gnu.org>
3554 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3555 (--version-script): Mention the language support.
3557 2001-06-19 H.J. Lu <hjl@gnu.org>
3559 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3561 2001-06-18 H.J. Lu <hjl@gnu.org>
3563 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3564 (diststuff): Add $(MANS).
3565 * Makefile.in: Regenerated.
3569 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3571 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3572 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3573 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3574 * ld.h (args_type): Remove member export_dynamic. All users
3575 changed to use struct bfd_link_info member.
3577 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3578 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3579 * Makefile.in: Regenerate.
3581 2001-06-18 H.J. Lu <hjl@gnu.org>
3583 * ldlang.c (init_os): Add the newline to the einfo call.
3584 (lang_check): Likewise.
3585 (lang_do_version_exports_section): Likewise.
3587 2001-06-15 H.J. Lu <hjl@gnu.org>
3589 * lexsup.c (parse_args); Save optind to report unrecognized
3592 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3594 * ldlang.c (lang_check): Emit fatal error if relocatable link
3595 between different object flavours.
3597 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3598 Set new link_info member export_dynamic.
3599 * ldmain.c (main): Initialize new link_info member export_dynamic.
3601 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3603 * ldlang.c (walk_wild): Only call walk_wild_file if
3604 lookup_name returns something.
3605 (lookup_name): If load_symbols fails, return NULL.
3606 (load_symbols): Change to a boolean function.
3607 (open_input_bfds): If load_symbols fails then do not make the
3610 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3612 * ldlang.c (record_bfd_errors): Remove.
3614 * emultempl/aix.em: Fix copyright dates.
3616 2001-06-07 Andreas Jaeger <aj@suse.de>
3618 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3619 (TEXT_START_ADDR): Likewise.
3621 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3623 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3625 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3627 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3629 2001-05-31 H.J. Lu <hjl@gnu.org>
3631 * ldlang.c (open_input_bfds): Don't change the bfd error
3632 handler whilst loading symbols.
3634 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3636 * configure.tgt: Remove i370-mvs architecture, it is not currently
3639 2001-05-25 H.J. Lu <hjl@gnu.org>
3641 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3642 like emulparams/aixppc.sh.
3644 2001-05-25 H.J. Lu <hjl@gnu.org>
3646 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3647 setting of output_filename after bfd_scan_arch.
3648 * emultempl/pe.em: Likewise.
3650 2001-05-25 H.J. Lu <hjl@gnu.org>
3652 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3653 like emulparams/aixppc.sh.
3655 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3656 instead of ${srcdir}/emultempl/stringify.sed.
3658 2001-05-25 Timothy Wall <twall@oculustech.com>
3660 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3663 2001-05-25 Alan Modra <amodra@one.net.au>
3665 * configure.host: Replace linuxoldld with linux*oldld.
3666 * configure.tgt: Likewise.
3668 2001-05-24 H.J. Lu <hjl@gnu.org>
3670 * emultempl/stringify.sed: Removed again.
3672 2001-05-24 H.J. Lu <hjl@gnu.org>
3674 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3675 (gld${EMULATION_NAME}_before_parse): Initialize
3676 ldfile_output_architecture, ldfile_output_machine and
3677 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3678 * emultempl/beos.em: Likewise.
3679 * emultempl/elf32.em: Likewise.
3680 * emultempl/linux.em: Likewise.
3681 * emultempl/mipsecoff.em: Likewise.
3682 * emultempl/pe.em: Likewise.
3683 * emultempl/sunos.em: Likewise.
3685 2001-05-24 Tom Rix <trix@redhat.com>
3687 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3688 udate import file format.
3689 (change_symbol_mode) New, same
3690 (is_syscall) New, same
3691 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3692 * emulparams/aixppc64.sh : same
3693 * emulparams/aixrs6.sh : same
3694 * emulparams/ppcmacos.sh : same
3695 * emultempl/aix.em : use strtoull to parse options
3696 * Makefile.am : add eaixppc64 emulation for xcoff64
3697 * Makefile.in : same
3698 * configure.tgt : same
3700 * scripttempl/aix.sc : default text section offset to 0x10000000
3701 default data section offset to 0x20000000
3702 add .sv3264 and .sv64 pseudo sections
3703 loader and debug sections use the currect section offset.
3705 * emultempl/aix.em : Add xcoff64 support
3706 Add -binitfini support
3707 (gld${EMULATION_NAME}_before_parse) -binitfini
3708 (gld${EMULATION_NAME}_parse_args) same
3709 (gld${EMULATION_NAME}_before_allocation) format change for special
3712 * emulparams/aixppc64.sh : New file for xcoff64 support
3714 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3716 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3717 variable to avoid non-portable shell construct.
3719 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3721 * ldmain.c (get_emulation): Add -mips5 command line argument.
3723 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3725 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3726 (ELF_INTERPRETER_NAME): Define it.
3727 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3729 * configure.tgt (targ_emul, targ_extra_emuls)
3730 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3731 as primary, elf_i386 as extra.
3732 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3733 (eelf_i386_ldso.c): New rule.
3734 * Makefile.in: Rebuilt.
3736 2001-05-22 Nick Clifton <nickc@redhat.com>
3738 * lexsup.c (ld_options): Allow -I to be an alias for
3739 --dynamic-linker. This is for Solaris compatability.
3740 * ld.texinfo: Document that -I can be used.
3743 2001-05-16 Alan Modra <amodra@one.net.au>
3745 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3746 whether an input section is the first one assigned to an output
3748 Assorted formatting fixes.
3750 2001-05-14 DJ Delorie <dj@delorie.com>
3752 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3753 * Makefile.in: Ditto.
3755 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3757 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3758 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3760 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3762 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3764 * ldlang.c (lang_process): Call bfd_merge_sections.
3766 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3768 * ldgram.y: Fix typo.
3770 2001-05-03 H.J. Lu <hjl@gnu.org>
3772 * emultempl/elf32.em: Include "libiberty.h".
3773 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3774 basename of the bfd filename.
3775 (gld${EMULATION_NAME}_stat_needed): Likewise.
3776 (gld${EMULATION_NAME}_try_needed): Likewise.
3777 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3779 2001-05-02 H.J. Lu <hjl@gnu.org>
3781 * emultempl/pe.em: Include <ctype.h>.
3783 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3785 * emulparams/elf32openrisc.sh: New file.
3787 * Makefile.am: Add OpenRISC target.
3788 * Makefile.in: Regenerated.
3790 * configure.tgt: Add openrisc-*-* mapping.
3792 2001-05-02 Nick Clifton <nickc@redhat.com>
3794 * emultempl/aix.em: Replace buystring with xstrdup.
3795 * emultempl/beos.em: Replace buystring with xstrdup.
3797 2001-05-02 H.J. Lu <hjl@gnu.org>
3799 * ldfile.c: Include "libiberty.h".
3800 * ldlex.l: Likewise.
3802 * ldmisc.c (buystring): Removed.
3803 * ldmisc.h: Likewise.
3805 * ldfile.c: Replace buystring with xstrdup.
3806 * ldlang.c: Likewise.
3807 * ldlex.l: Likewise.
3808 * ldmain.c: Likewise.
3809 * ldmisc.c: Likewise.
3810 * lexsup.c: Likewise.
3811 * mpw-eppcmac.c: Likewise.
3813 2001-04-30 Andreas Jaeger <aj@suse.de>
3815 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3817 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3819 * ldlang.c (load_symbols): Give emulation a chance
3820 to process unrecognized file before fatal error is
3821 reported, not after.
3823 2001-04-27 Sean McNeil <sean@mcneil.com>
3825 * configure.tgt: Add arm-vxworks target.
3826 * scripttempl/armcoff.sc: Support .text or .data as a section name
3830 2001-04-13 J.T. Conklin <jtc@redback.com>
3832 * ld.texinfo: Document --fatal-warnings.
3835 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3836 warnings have been turned into errors.
3837 * lexsup.c (OPTION_WARN_FATAL): Define.
3838 (ld_options): Entry for --fatal-warnings.
3839 (parse_args): Handle OPTION_WARN_FATAL.
3840 * ld.h (ld_config_type): Add fatal_warnings field.
3842 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3844 * ldmain.c (main): Default to discard_sec_merge.
3845 * lexsup.c (OPTION_DISCARD_NONE): Define.
3846 (ld_options): Add --discard-none.
3847 (parse_args): Handle OPTION_DISCARD_NONE.
3848 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3849 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3850 all its input sections match.
3852 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3854 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3855 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3856 (eelf32ltsmip.c): New target.
3857 (eelf64btsmip.c): Likewise.
3858 (eelf64ltsmip.c): Likewise.
3859 * Makefile.in: Regenerated.
3861 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3863 (mips*-*-linux-gnu*): Likewise.
3865 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3867 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3869 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3872 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3874 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3875 correct value of __Stext here.
3876 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3879 * emulparams/crislinux.sh: Remove FIXME.
3881 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3883 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3884 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3886 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3888 * configure.tgt (cris-*-*): Change default emulation to criself.
3889 (cris-*-*aout*): New rule.
3891 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3893 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3894 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3896 2001-03-26 Andreas Jaeger <aj@suse.de>
3898 * ld.texinfo (Overview): Fix syntax in texi code.
3900 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3902 * ld.texinfo: Put @c man indications to generate the ld man page.
3903 When generating man, define all the variables. Define SEEALSO
3904 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3905 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3906 (ld.1): Generate from ld.texinfo.
3907 * Makefile.in: Regenerate.
3909 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3911 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3912 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3914 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3916 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3917 is an absolute path look only for this file and not along the path.
3919 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3921 * emultempl/elf32.em (OPTION_GROUP): New macro.
3922 Add new option Bgroup to longopts.
3923 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3924 (gld*_list_options): Add -Bgroup and -z defs.
3925 * ld.1: Document -Bgroup and -z defs.
3926 * ld.texinfo: Likewise.
3928 2001-03-07 Michael Meissner <meissner@redhat.com>
3930 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3931 with sections created by -fdata-sections.
3932 (.dynbss,.bss): Ditto.
3934 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3936 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3937 after_allocation_default, not gld..._before_allocation.
3939 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3941 * configure.in (BFD_VERSION): New.
3942 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3943 * configure: Regenerate.
3944 * Makefile.am: Run "make dep-am"
3945 * Makefile.in: Regenerate.
3947 2001-02-26 Timothy Wall <twall@cygnus.com>
3949 * emulparams/elf64_aix.sh: Add additional read-only sections;
3950 uncomment lines which are now required.
3952 2001-02-26 H.J. Lu <hjl@gnu.org>
3954 * ldlang.c (open_input_bfds): Set the bfd error handler so
3955 that problems can be caught whilst loading symbols.
3956 (record_bfd_errors): New function: Report BFD errors and mark
3957 the executable output as being invalid.
3959 2001-02-22 Timothy Wall <twall@cygnus.com>
3961 * configure.host: Add configuration for ia64-*-aix*.
3962 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3963 Add dependencies for eelf64_aix.c.
3964 * Makefile.in: Regenerate.
3965 * configure.tgt: Add ia64-*-aix* mapping.
3966 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3968 2001-02-20 H.J. Lu <hjl@gnu.org>
3970 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3971 false if we found the file.
3973 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3975 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3976 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3978 2001-02-18 lars brinkhoff <lars@nocrew.org>
3980 * Makefile.am: Add PDP-11 target.
3981 * configure.tgt: Likewise.
3982 * emulparams/pdp11.sh: New file.
3984 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3986 * configure.host: Add a generic FreeBSD configuration entry such that
3987 all [modern] FreeBSD systems on all platforms will look the same.
3989 2001-02-14 H.J. Lu <hjl@gnu.org>
3991 * configure.tgt: Remove mention of earmelf_linux26.
3993 2001-02-13 Richard Henderson <rth@redhat.com>
3995 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3997 2001-02-13 H.J. Lu <hjl@gnu.org>
3999 * ldexp.h (node_type): Add etree_provided.
4000 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4001 type to etree_provided if defined by PROVIDE. Allow updating
4003 (exp_print_tree): Handle etree_provided.
4004 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4007 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4009 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4010 .IA_64.unwind.* pattern to unwind table section and
4011 .IA_64.unwind_info* pattern to unwind info section.
4013 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4015 * Makefile.am: Add linux target for S/390.
4016 * Makefile.in: Likewise.
4017 * configure.host: Likewise.
4018 * configure.tgt: Likewise.
4019 * emulparams/elf64_s390.sh: New file.
4020 * emulparams/elf_s390.sh: New file.
4022 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4024 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4026 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4028 2001-02-06 Philip Blundell <philb@gnu.org>
4030 * Makefile.am: Remove mention of earmelf_linux26.
4031 * Makefile.in: Regenerate.
4033 2001-02-04 Philip Blundell <philb@gnu.org>
4035 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4036 * emulparams/armelf_linux26.sh: Delete.
4037 * configure.tgt: Remove mention of armelf_linux26 emulation.
4039 2001-02-01 Nick Clifton <nickc@redhat.com>
4041 * ld.1: Replace occurances of -oformat with --oformat.
4043 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4045 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4046 load_base is specified.
4048 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4050 * emultempl/elf32.em: Correct spelling in comments and listed
4053 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4055 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4056 default for the first section of a group of overlay sections.
4058 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4060 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4061 * Makefile.in: Regenerate.
4062 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4063 Check for null tool_dir.
4065 2001-01-16 Jim Wilson <wilson@redhat.com>
4067 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4068 and IA_64.unwind.info.
4070 2001-01-16 H.J. Lu <hjl@gnu.org>
4072 * ldlang.c (lang_check): Merge the private data only if the
4073 input file has contents.
4075 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4077 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4079 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4080 enabling search for libmilli. On a relocatable link, make .text
4082 (LDEMUL_AFTER_PARSE): Define.
4083 (hppaelf_finish): Correct spelling of relocatable in comments.
4085 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4086 rummage through the script for sections on the unique list.
4087 Correct length of strncmp for ".note".
4088 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4090 * ldlang.c (unique_section_list): New var.
4091 (unique_section_p): New function.
4092 (walk_wild_section): Don't match sections on unique_section_list.
4093 (lang_add_unique): New function.
4094 Correct spelling of relocatable in comments.
4096 * ldlang.h (struct unique_sections): Declare.
4097 (unique_section_list): Declare.
4098 (unique_section_p): Declare.
4099 (lang_add_unique): Declare.
4101 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4102 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4104 * ld.texinfo (--unique): Update.
4106 2001-01-13 Nick Clifton <nickc@redhat.com>
4108 * lexsup.c (parse_args): Remove spurious white space.
4110 2001-01-12 Nick Clifton <nickc@redhat.com>
4112 * lexsup.c (parse_args): Update copyright date.
4114 2001-01-12 Philip Blundell <pb@futuretv.com>
4116 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4118 2001-01-10 Kazu Hirata <kazu@hxi.com>
4120 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4121 * scripttempl/h8300h.sc: Fix formatting.
4122 * scripttempl/h8300s.sc: Likewise.
4123 * scripttempl/h8500.sc: Likewise.
4124 * scripttempl/h8500b.sc: Likewise.
4125 * scripttempl/h8500c.sc: Likewise.
4126 * scripttempl/h8500m.sc: Likewise.
4127 * scripttempl/h8500s.sc: Likewise.
4129 2000-01-07 David O'Brien <obrien@BSDi.com>
4131 * emultempl/elf32.em: Only perform Linux ld hints processing when
4134 2001-01-07 Philip Blundell <philb@gnu.org>
4136 * ld.texinfo (Bug Reporting): Update email address for reports.
4138 2000-12-31 Nick Clifton <nickc@redhat.com>
4140 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4141 options by checking for a return value of '?' not -1.
4143 2000-12-28 Nick Clifton <nickc@redhat.com>
4145 * lexsup.c (struct ld_option): Add new enum value:
4147 (ld_options[]): Change -omagic, -output and -oformat options
4148 to be EXACTLY_TWO_DASHES.
4149 (OUTPUT_COUNT): Use ARRAY_SIZE.
4150 (parse_args): Change parameter 'argc' to unsigned.
4151 Place EXACTLY_TWO_DASHES options into new really_longopts
4153 If getopt_long_only fails, try calling getopt_long using the
4154 really_longopts array.
4155 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4158 * ldlex.h: Fix prototype of parse_args.
4160 * ld.texinfo: Document that long options starting with 'o'
4161 must be preceeded by two dashes. Change example of a single
4162 dashed long option from -oformat to -trace-symbol.
4164 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4166 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4167 (longopts[]): New --no-default-excludes option.
4168 (gld_${EMULATION_NAME}_list_options): Document.
4169 (gld_${EMULATION_NAME}_parse_args): Handle.
4171 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4173 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4174 whitespace, it breaks the K&R C preprocessor.
4176 2000-12-11 DJ Delorie <dj@redhat.com>
4178 * ld.texinfo: Add notes about --whole-archive and gcc.
4180 2000-11-18 Fred Fish <fnf@be.com>
4182 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4183 (ld_options): Entry for --allow-shlib-undefined.
4184 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4185 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4187 * ld.texinfo: Document new command line switch.
4189 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4191 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4192 .fixup is actually read/write.
4193 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4194 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4195 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4197 2000-12-11 Jan Hubicka <jh@suse.cz>
4199 * NEWS: Add note about x86_64 architecture.
4201 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4203 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4204 Set DWARF2 sections to a VMA of zero.
4206 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4208 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4210 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4211 (sparc*-*-rtems*): Switched from a.out to ELF.
4213 2000-11-30 Jan Hubicka <jh@suse.cz>
4215 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4216 (eelf_x86_64.c): New.
4217 * Makefile.in: Regenerate.
4218 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4219 * emulparams/elf_x86_64.sh: New.
4221 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4223 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4224 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4226 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4227 merging non-a.out sections into CONSTRUCTING.
4229 2000-11-28 Nick Clifton <nickc@redhat.com>
4231 * ld.1 (COPYING): Mention that the GNU Free Documentation
4232 License is present in the sources, but not the output, and
4233 also available from the GNU website.
4234 (GNU Free Documentation License): Comment out this section.
4236 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4238 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4241 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4243 * ld.1: Remove old date so it does not give the impression the manpage
4246 2000-11-24 Nick Clifton <nickc@redhat.com>
4248 * configure.tgt (xscale-coff): Add target.
4249 (xscale-elf): Add target.
4251 2000-11-24 Fred Fish <fnf@be.com>
4253 * ldmain.c (main): Remove redundant init of config.make_executable
4256 2000-11-15 Richard Henderson <rth@redhat.com>
4258 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4260 2000-11-14 Kazu Hirata <kazu@hxi.com>
4262 * scripttempl/h8300.sc: Fix formatting.
4263 * scripttempl/h8300h.sc: Likewise.
4264 * scripttempl/h8300s.sc: Likewise.
4266 2000-11-14 Denis Chertykov <denisc@overta.ru>
4268 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4270 2000-11-09 Philip Blundell <pb@futuretv.com>
4272 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4273 around orphan sections whose names can be represented in C.
4275 2000-11-07 Jim Wilson <wilson@redhat.com>
4277 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4278 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4280 2000-11-06 Nick Clifton <nickc@redhat.com>
4282 * ld.texinfo: Add GNU Free Documentation License.
4283 * ldint.texinfo: Add GNU Free Documentation License.
4284 * ld.1: Add GNU Free Documentation License.
4286 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4288 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4289 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4291 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4292 Move 2000-11-02 Makefile.in changes to this file.
4293 * Makefile.in: Regenerate.
4295 2000-11-03 Nick Clifton <nickc@redhat.com>
4297 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4298 constructors and destructors.
4299 * scripttempl/h8300h.sc: Ditto.
4300 * scripttempl/h8300s.sc: Ditto.
4301 * scripttempl/h8500.sc: Ditto.
4302 * scripttempl/h8500b.sc: Ditto.
4303 * scripttempl/h8500c.sc: Ditto.
4304 * scripttempl/h8500m.sc: Ditto.
4305 * scripttempl/h8500s.sc: Ditto.
4306 * scripttempl/v850.sc: Ditto.
4307 * scripttempl/w65.sc: Ditto.
4308 * scripttempl/z8000.sc: Ditto.
4310 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4312 * Makefile.in (e_i386_chaos.c): New rule.
4313 (ALL_EMULATIONS): Added e_i386_chaos.o.
4314 * emulparams/elf_i386_chaos.sh: New file.
4315 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4317 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4319 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4320 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4321 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4322 library path suffix.
4323 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4325 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4327 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4328 for consecutive sections.
4330 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4332 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4334 * ld.texinfo: Added notes about this new option.
4336 2000-10-16 Nick Clifton <nickc@redhat.com>
4338 * emultempl/pe.em (_after_open): Add tests of return values from
4339 bfd functions. Emit appropriate error messages if necessary.
4341 2000-10-13 Nick Clifton <nickc@redhat.com>
4343 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4344 local variables - they are not used, but leave in the call to
4345 bfd_canonicalize_symtab.
4346 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4347 pe_dll_search_prefix.
4349 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4351 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4352 (longopts): New --dll-search-prefix option.
4353 (gld_${EMULATION_NAME}_list_options): Document.
4354 (gld_${EMULATION_NAME}_parse_args): Handle.
4355 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4356 dynamically, search for a dll named '<prefix><basename>.dll'
4357 in preference to 'lib<basename>.dll' if --dll-search-prefix
4360 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4362 * ldlang.c (section_already_linked): Set kept_section instead of
4365 2000-10-10 Kazu Hirata <kazu@hxi.com>
4367 * deffile.h: Fix formatting.
4368 * lexsup.c: Likewise.
4371 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4373 * pe-dll.c (make_one): Do not generate code thunk for DATA
4375 (process_def_file): deduce DATA flag for auto-export sumbols.
4377 2000-10-09 Kazu Hirata <kazu@hxi.com>
4379 * ld.h: Fix formatting.
4380 * ldcref.c: Likewise.
4381 * ldctor.h: Likewise.
4382 * ldemul.c: Likewise.
4383 * ldemul.h: Likewise.
4384 * ldexp.c: Likewise.
4385 * ldexp.h: Likewise.
4386 * ldfile.c: Likewise.
4387 * ldfile.h: Likewise.
4388 * ldlang.c: Likewise.
4389 * ldlang.h: Likewise.
4390 * ldmain.c: Likewise.
4391 * pe-dll.c: Likewise.
4393 * pe-dll.c: Revert some formatting fixes.
4395 2000-10-08 Kazu Hirata <kazu@hxi.com>
4397 * pe-dll.c: Fix formatting.
4399 2000-10-05 Kazu Hirata <kazu@hxi.com>
4401 * ldlang.c: Fix formatting.
4403 2000-10-03 DJ Delorie <dj@redhat.com>
4405 * pe-dll.c (fill_edata): initialize entire block
4406 (make_one): fill in correct section.
4408 2000-10-03 Kazu Hirata <kazu@hxi.com>
4410 * ldexp.c: Fix formatting.
4412 2000-10-02 DJ Delorie <dj@redhat.com>
4414 * emultempl/pe.em (gld_*_after_open): detect case where there two
4415 import libraries for same dll; rename one to ensure proper link
4418 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4420 (generate_edata): fix typo
4422 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4424 * scripttempl/crisaout.sc (ENTRY): Now __start.
4425 (.text): Add default setting for __start.
4426 Remove CONSTRUCTORS handling.
4427 (/DISCARD/): Add .gnu.warning.*.
4428 * emulparams/crislinux.sh (ENTRY): Now __start.
4429 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4430 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4431 (ENTRY): Now __start.
4432 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4433 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4435 2000-09-29 Kazu Hirata <kazu@hxi.com>
4437 * deffile.h: Fix formatting.
4439 * ldcref.c: Likewise.
4440 * ldctor.c: Likewise.
4441 * ldctor.h: Likewise.
4442 * ldemul.c: Likewise.
4443 * ldemul.h: Likewise.
4444 * ldexp.c: Likewise.
4445 * ldexp.h: Likewise.
4446 * ldfile.c: Likewise.
4447 * ldfile.h: Likewise.
4448 * ldlang.c: Likewise.
4449 * ldlang.h: Likewise.
4450 * lexsup.c: Likewise.
4452 * pe-dll.c: Likewise.
4454 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4456 * pe-dll.c (process_def_file): Uninitialized data wasn't
4457 exported with --export-all-symbols switch.
4459 2000-09-28 DJ Delorie <dj@redhat.com>
4461 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4462 noname work properly.
4464 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4466 * ld.texinfo (HPPA ELF32): New section.
4468 * emultempl/hppaelf.em (group_size): New.
4469 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4470 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4471 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4472 options to prevent abbreviations matching.
4473 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4474 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4476 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4478 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4479 on the m68*-*-elf target. Make it support COFF input objects.
4481 2000-09-21 Kazu Hirata <kazu@hxi.com>
4483 * ldmain.c: Fix formatting.
4484 * ldmisc.c: Likewise.
4485 * ldver.c: Likewise.
4486 * ldwrite.c: Likewise.
4488 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4490 * ldwrite.c (clone_section): Silence gcc warnings.
4492 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4494 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4495 out of memory failure.
4497 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4498 (clone_section): Handle out of memory failures. Rename var to
4499 avoid c++ reserved word.
4501 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4503 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4504 stub_name param to stub_sec_name.
4505 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4507 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4509 * emultempl/m68kelf.em: New file.
4510 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4511 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4512 * Makefile.in: Regenerate.
4514 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4516 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4519 2000-09-13 Nick Clifton <nickc@redhat.com>
4521 * ldmain.c (multiple_definition): Disable relaxation if
4522 multiple symbol definitions are encountered - otherwise the
4523 linker could abort with an assertion failure.
4525 2000-09-10 Nick Clifton <nickc@redhat.com>
4527 * mri.c: Fix formatting.
4529 2000-09-07 H.J. Lu <hjl@gnu.org>
4531 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4532 * configure: Rebuild.
4534 2000-09-07 H.J. Lu <hjl@gnu.org>
4536 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4537 * Makefile.in: Rebuild.
4539 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4541 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4542 broken list handling. Create __start_SECNAME and __stop_SECNAME
4543 when no place-holder. Add some comments. Test both SEC_CODE and
4544 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4545 Handle case where no output section statement created.
4547 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4549 * configure.tgt (sh-*-linux*): Added.
4550 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4551 * Makefile.in: Rebuilt.
4552 * emulparams/shelf_linux.sh: New file.
4553 * emulparams/shlelf_linux.sh: New file.
4555 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4557 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4558 try shuffling sections when the orphan happens to be the place
4559 holder. Keep count of unique section names generated so we speed
4560 the search for a new name.
4562 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4564 * configure: Rebuilt with new libtool.m4.
4566 2000-09-05 Nick Clifton <nickc@redhat.com>
4568 * Makefile.in: Regenerate.
4569 * aclocal.m4: Regenerate.
4570 * configure: Regenerate.
4571 * config.in: Regenerate.
4572 * po/ld.pot: Regenerate.
4574 * ldint.texinfo: Remove CVS revision marker - it foils local
4577 * emultempl/ticoff.em: Remove extraneous comma.
4579 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4581 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4582 to stub section flags.
4583 (hppa_for_each_input_file_wrapper): New.
4584 (hppa_lang_for_each_input_file): New.
4585 (lang_for_each_input_file): Define to call above.
4586 (multi_subspace): New.
4587 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4588 (PARSE_AND_LIST_PROLOGUE): Define.
4589 (PARSE_AND_LIST_LONGOPTS): Define.
4590 (PARSE_AND_LIST_OPTIONS): Define.
4591 (PARSE_AND_LIST_ARGS_CASES): Define.
4592 (hppaelf_finish): Call elf32_hppa_set_gp.
4593 (hppaelf_set_output_arch): Remove.
4594 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4596 * emulparams/hppalinux.sh (ELFSIZE): Define.
4598 (OTHER_READONLY_SECTIONS): Define.
4600 (GENERATE_SHLIB_SCRIPT): Define.
4602 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4603 to const throughout. Change `void *' to `PTR' throughout.
4604 (lang_memory_default): Function is local to file, add `static'.
4606 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4607 (ehppalinux.c): Likewise.
4608 (earmelf.c): Likewise.
4609 (earmelf_linux.c): Likewise.
4610 (earmelf_linux26.c): Likewise.
4611 * Makefile.in: Regenerate.
4613 * ld.h (ld_config_type): Add unique_orphan_sections.
4614 * lexsup.c (OPTION_UNIQUE): Define.
4615 (ld_options): Add "--unique".
4616 (parse_args): Handle it.
4617 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4618 search for an existing output section if unique_orphan_sections is
4619 set. Make use of bfd_get_unique_section_name rather than
4620 duplicating code here.
4621 * ld.texinfo: Describe --unique.
4623 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4624 optional arg to split-by-file.
4625 (parse_args): Handle them.
4626 * ld.texinfo: Update description of these options.
4627 * ldwrite.c (clone_section): Pass in the section name. Replace
4628 local code with bfd_get_unique_section_name.
4629 (split_sections): Tidy code and comments. Use a list traversal
4630 more appropriate to the list construction. Handle cooked section
4631 sizes. Split when split_by_reloc reached rather than exceeded.
4632 Track section size and split when split_by_file reached. Fix
4633 link_order_tail (even though it's not used).
4634 (ldwrite): Modify condition for calling split_sections to suit
4635 changed split_by_reloc and split_by_file.
4636 * ldmain.c (main): Init config.split_by_reloc and
4637 config.split_by_file to -1.
4638 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4639 Change split_by_file to bfd_size_type.
4641 2000-09-02 Nick Clifton <nickc@redhat.com>
4643 * configure.in: Increase version number to 2.10.91.
4644 * NEWS: Mention new ability to support removal of duplicate DWARF2
4646 * configure: Regenerate.
4647 * aclocal.m4: Regenerate.
4648 * config.in: Regenerate.
4650 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4652 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4654 * scripttempl/elf32avr.sc: Ditto.
4655 * scripttempl/elfd10v.sc: Ditto.
4656 * scripttempl/elfd30v.sc: Ditto.
4657 * scripttempl/elfi370.sc: Ditto.
4658 * scripttempl/elfm68hc11.sc: Ditto.
4659 * scripttempl/elfm68hc12.sc: Ditto.
4660 * scripttempl/elfi386beos.sc: Ditto.
4661 * scripttempl/v850.sc: Ditto.
4663 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4665 * acinclude.m4: Include libtool and gettext macros from the
4667 * aclocal.m4, configure: Rebuilt.
4669 2000-08-25 Nick Clifton <nickc@redhat.com>
4671 * ldlang.c (open_output): When choosing the target for a
4672 particular endianness, do nothing if the target is not
4675 2000-08-25 H.J. Lu <hjl@gnu.org>
4677 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4678 check -rpath nor LD_RUN_PATH for cross link.
4679 * ld.texinfo: Document the change.
4681 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4683 * NEWS: Mention support for CRIS.
4685 2000-08-23 H.J. Lu <hjl@gnu.org>
4687 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4688 the current runpath list from bfd_elf_get_runpath_list ()
4691 2000-08-22 H.J. Lu <hjl@gnu.org>
4693 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4694 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4695 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4696 trace_file_tries is non-zero.
4697 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4698 if trace_file_tries is non-zero.
4700 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4703 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4705 * NEWS: Mention i860 support.
4707 2000-08-14 Andreas Schwab <schwab@suse.de>
4709 * scripttempl/elf.sc: Fix last change to use correct comment
4712 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4714 * scripttempl/elf.sc: Add a comment giving the correspondence
4715 between sections, per-datum sections, and linkonce sections. Make
4716 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4719 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4721 * emulparams/elf32_i860.sh: New file.
4722 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4723 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4724 (eelf32_i860.c): New rule.
4725 * Makefile.in: Regenerate.
4727 2000-08-10 Nick Clifton <nickc@cygnus.com>
4729 * emulparams/mipspe.sh (ENTRY): Add definition.
4731 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4733 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4736 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4738 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4739 the final size of .bss section.
4740 * scripttempl/elfm68hc12.sc: Likewise.
4742 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4744 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4745 gld${EMULATION_NAME}_parse_args for consistency. Combine
4746 lastoptind and prevoptind vars, and keep track of last optind.
4747 (gld_${EMULATION_NAME}_list_options): Rename to
4748 gld${EMULATION_NAME}_list_options.
4750 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4752 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4753 (i586-sco-sysv5uw7.1.0).
4755 2000-07-27 H.J. Lu <hjl@gnu.org>
4757 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4758 (PARSE_AND_LIST_PROLOGUE): New.
4759 (PARSE_AND_LIST_LONGOPTS): Likewise.
4760 (PARSE_AND_LIST_OPTIONS): Likewise.
4761 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4762 (PARSE_AND_LIST_EPILOGUE): Likewise.
4764 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4766 * emultempl/armelf.em: Elide functions common to elf32.em,
4767 ie. most of the file.
4768 (arm_elf_after_open): New. Do arm specific things then call
4769 gld${EMULATION_NAME}_after_open.
4770 (arm_elf_before_allocation): New. Call
4771 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4772 (PARSE_AND_LIST_PROLOGUE): Define.
4773 (PARSE_AND_LIST_SHORTOPTS): Define.
4774 (PARSE_AND_LIST_LONGOPTS): Define.
4775 (PARSE_AND_LIST_OPTIONS): Define.
4776 (PARSE_AND_LIST_ARGS_CASES): Define.
4777 (LDEMUL_AFTER_OPEN): Define.
4778 (LDEMUL_BEFORE_ALLOCATION): Define.
4779 (LDEMUL_BEFORE_PARSE): Define.
4780 (LDEMUL_FINISH): Define.
4782 * emultempl/hppaelf.em: Similarly zap most of this file.
4783 (hppaelf_add_stub_section): Prototype.
4784 (hppaelf_layaout_sections_again): Prototype.
4785 (hook_in_stub): Prototype.
4786 (LDEMUL_SET_OUTPUT_ARCH): Define.
4787 (LDEMUL_FINISH): Define.
4788 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4790 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4791 (EXTRA_EM_FILE): New.
4792 * emulparams/armelf_linux.sh: Likewise.
4793 * emulparams/armelf_linux26.sh: Likewise.
4794 * emulparams/hppalinux.sh: Likewise.
4795 * emulparams/hppaelf.sh: Likewise.
4798 * emultempl/elf32.em: Fix formatting.
4799 (EXTRA_EM_FILE): Source it.
4800 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4801 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4802 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4803 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4804 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4805 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4806 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4807 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4808 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4809 allow functions in this file to be overridden.
4810 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4812 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4814 * emultempl/elf32.em: Reorganize file.
4816 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4818 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4819 specific option to fit 64-bit executable in the lower
4820 31-bit address range. This is done by changing start
4821 address of .interp (the very first section of executable)
4822 and then setting EF_ALPHA_32BIT elf header flag.
4824 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4826 * emultempl/m68kcoff.em: New file.
4827 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4828 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4830 * Makefile.in: Regenerate.
4832 2000-07-20 H.J. Lu <hjl@gnu.org>
4834 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4835 and "disable-new-dtags" to stop getopt from treating -d/-e as
4836 abbreviations for these options.
4838 2000-07-20 H.J. Lu <hjl@gnu.org>
4840 * ld.texinfo: Add documentation for --disable-new-dtags and
4843 * ldmain.c (main): Initialize link_info.new_dtags to false.
4845 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4846 --disable-new-dtags and --enable-new-dtags.
4847 (gld_${EMULATION_NAME}_list_options): Likewise.
4849 2000-07-05 Kenneth Block <krblock@computer.org>
4851 * lexsup.c: Add optional style to demangle switch
4852 * ld.texinfo: Document optional style to demangle switch.
4854 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4856 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4858 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4859 Regenerate dependencies.
4860 * Makefile.in: Rebuild.
4861 * configure.tgt (cris-*-*): New target.
4862 * emulparams/crisaout.sh, emulparams/criself.sh,
4863 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4864 * po/POTFILES.in, po/ld.pot: Regenerate.
4866 2000-07-20 H.J. Lu <hjl@gnu.org>
4868 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4869 Print out ignored -z options.
4871 2000-07-19 H.J. Lu <hjl@gnu.org>
4873 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4874 (PARSE_AND_LIST_PROLOGUE): New.
4875 (PARSE_AND_LIST_LONGOPTS): Likewise.
4876 (PARSE_AND_LIST_OPTIONS): Likewise.
4877 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4879 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4881 * lexsup.c (ld_options): Comment out 'z'.
4882 (parse_args): Likewise.
4884 * emultempl/elf32.em: Include "elf/common.h".
4885 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4887 (gld_${EMULATION_NAME}_list_options): Likewise.
4889 * ld.texinfo: Add documentation for the recognized -z options.
4891 2000-07-19 H.J. Lu <hjl@gnu.org>
4893 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4894 bfd_elf_set_dt_needed_soname ().
4896 2000-07-18 DJ Delorie <dj@cygnus.com>
4898 * pe-dll.c (pe_dll_id_target): check object target name also
4900 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4902 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4903 ${INIT_END} if relocating.
4904 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4906 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4908 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4909 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4910 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4911 errors introduced by the old dynamic lib search order.
4913 2000-07-17 DJ Delorie <dj@cygnus.com>
4915 * pe-dll.c (process_def_file): auto-export data items also
4916 (pe_process_import_defs): also see if _imp_ form needed
4918 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4920 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4921 for dll import libraries
4923 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4925 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4926 gcc 2.95.2 and later.
4928 2000-07-11 Kazu Hirata <kazu@hxi.com>
4930 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4933 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4935 * ldemul.h (struct lang_input_statement_struct): Remove forward
4937 (struct search_dirs): Likewise.
4938 * ldfile.h (struct lang_input_statement_struct): Likewise.
4939 Protect file from multiple inclusion.
4940 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4941 declaration from macro to file scope.
4943 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4944 * ldgram.y: Likewise here.
4945 * ldlang.c: And here.
4946 * ldmain.c: And here.
4947 * mpw-elfmips.c: And here.
4948 * mpw-eppcmac.c: And here.
4949 * emultempl/aix.em: And here.
4950 * emultempl/armcoff.em: And here.
4951 * emultempl/armelf.em: And here.
4952 * emultempl/armelf_oabi.em: And here.
4953 * emultempl/beos.em: And here.
4954 * emultempl/elf32.em: And here.
4955 * emultempl/hppaelf.em: And here.
4956 * emultempl/linux.em: And here.
4957 * emultempl/lnk960.em: And here.
4958 * emultempl/pe.em: And here.
4959 * emultempl/sunos.em: And here.
4960 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4961 * mpw-idtmips.c: Ditto.
4962 * emultempl/generic.em: Ditto.
4963 * emultempl/gld960.em: Ditto.
4964 * emultempl/gld960c.em: Ditto.
4965 * emultempl/mipsecoff.em: Ditto.
4966 * emultempl/ticoff.em: Ditto.
4967 * emultempl/vanilla.em: Ditto.
4969 * pe-dll.c: Include ldfile.h
4970 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4972 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4973 arguments to bfd_elf32_size_dynamic_sections call.
4974 (gldelf32ebmip_place_orphan): Add missing arguments to
4975 lang_leave_output_section_statement call.
4977 2000-07-10 H.J. Lu <hjl@gnu.org>
4979 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4981 (strhash): Likewise.
4982 (compute_dll_image_base): Likewise.
4983 (pe_undef_found_sym): Likewise.
4984 (pe_undef_cdecl_match): Likewise.
4985 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4986 argument "arch" with ATTRIBUTE_UNUSED.
4988 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4990 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4992 From Ryan Bradetich <rbradetich@uswest.net>
4993 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4995 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4997 Changes to create multiple linker stubs, positioned immediately
4998 before the section where they are required.
4999 * emultempl/hppaelf.em: Include elf32-hppa.h.
5000 (stub_sec, file_chain): Delete.
5001 (hppaelf_create_output_section_statements): Don't make a stub
5003 (hook_stub_info): New struct.
5004 (hook_in_stub): New function.
5005 (hppaelf_add_stub_section): New function.
5006 (hppaelf_finish): Do nothing for relocateable links. Modify the
5007 call to elf32_hppa_size_stubs. Move code for updating section
5009 (hppaelf_layaout_sections_again): ..to here, a new function.
5011 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5012 broken list handling. Pass in a pointer to the list.
5013 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5015 (hppaelf_before_parse): Prototype.
5016 (hppaelf_set_output_arch): Prototype.
5017 (hppaelf_create_output_section_statements): Prototype.
5018 (hppaelf_delete_padding_statements): Prototype.
5019 (hppaelf_finish): Prototype.
5022 * emultempl/hppaelf.em: Include ctype.h.
5023 (struct orphan_save): New.
5024 (gld${EMULATION_NAME}_place_orphan): New.
5025 (output_rel_find): New.
5026 (hppaelf_get_script): Update from elf32.em.
5027 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5028 Change emulation_name field to "${EMULATION_NAME}". Add
5029 gld${EMULATION_NAME}_place_orphan.
5031 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5032 ehppalinux.o, sort it. Regenerate dependencies.
5033 (ehppalinux.c): Depend on hppaelf.em
5034 * Makefile.in: Regenerate.
5036 * configure.tgt: targ_emul=hppalinux for hppa*linux
5038 * emulparams/hppalinux.sh: New.
5039 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5041 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5043 * lexsup.c (parse_args): Copy section name.
5045 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5047 * emultempl/pe.em: institute the following search order for
5048 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5049 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5050 static lib (libfoo.a) if none of the above are found.
5052 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5054 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5055 (longopts): New --{enable,disable}-auto-image-base options.
5056 (gld_${EMULATION_NAME}_list_options): Document.
5057 (gld_${EMULATION_NAME}_parse): Handle.
5058 (strhash): New static function.
5059 (compute_dll_image_base): New static function.
5060 (gld_${EMULATION_NAME}_set_symbols): Use.
5062 2000-07-05 DJ Delorie <dj@redhat.com>
5066 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5068 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5069 * emulparams/elf32btsmip.sh: New file.
5070 * Makefile.am: Add traditional mips target.
5071 * Makefile.in: Rebuild.
5073 2000-07-01 H.J. Lu <hjl@gnu.org>
5075 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5076 automake to use YLWRAP.
5077 * Makefile.in: Rebuild.
5079 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5081 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5082 (CLEANFILES): Add DEPA.
5083 * Makefile.in: Regenerate.
5085 2000-06-30 Timothy Wall <twall@ppc>
5087 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5088 the page in the upper octet of the address.
5090 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5092 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5094 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5096 * NEWS: arm-elf does --gc-sections too.
5098 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5100 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5102 * Makefile.in: Regenerate.
5104 2000-06-21 H.J. Lu <hjl@gnu.org>
5106 * Makefile.am: Rebuild dependency.
5107 * Makefile.in: Rebuild.
5109 2000-06-20 H.J. Lu <hjl@gnu.org>
5111 * Makefile.am: Rebuild dependency.
5112 * Makefile.in: Rebuild.
5114 2000-06-20 Timothy Wall <twall@cygnus.com>
5116 * scripttempl/tic54xcoff.sc: New.
5117 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5118 * gen-doc.texi: Add flag for TI COFF.
5119 * ld.texinfo: Add documentation for TI COFF handling switches.
5120 * emultempl/ticoff.em: New. TI COFF handling.
5121 * configure.tgt: Add tic54x target.
5122 * Makefile.am: Add tic54x target.
5123 * Makefile.in: Ditto.
5125 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5127 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5128 checking for backslashes.
5130 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5132 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5134 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5136 * NEWS: Update list of targets supporting --gc-sections.
5138 * scripttempl/elf.sc: KEEP .eh_frame contents.
5139 * scripttempl/elfd30v.sc: Same here.
5141 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5143 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5145 * Makefile.in: Rebuild.
5146 * configure.tgt: Recognize m68hc12 and m68hc11.
5147 * scripttempl/elfm68hc12.sc: New file.
5148 * emulparams/m68hc12elfb: New emulation.
5149 * emulparams/m68hc12elf: New emulation.
5150 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5151 (includes a memory.x script to define the ROM and RAM banks).
5152 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5153 New configuration files for support of Motorola 68hc11
5155 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5157 * ldmain.c (main): Only change SEC_READONLY for final link.
5159 2000-06-13 H.J. Lu <hjl@gnu.org>
5161 * configure: Regenerate.
5163 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5165 * configure.in (VERSION): Update to show this is the CVS mainline.
5167 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5169 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5170 input objects to be ECOFF.
5171 (check_sections): einfo takes %B, not %P, to print a BFD name.
5173 2000-06-05 Michael Matz <matz@ifh.de>
5175 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5178 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5180 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5182 * emulparams/avr1200.sh (STACK): Define as 0.
5183 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5184 * emulparams/avr4433.sh (STACK): Likewise.
5185 * emulparams/avr44x4.sh (STACK): Likewise.
5186 * emulparams/avr85xx.sh (STACK): Likewise.
5187 * emulparams/avrmega103.sh (STACK): Likewise.
5188 * emulparams/avrmega161.sh (STACK): Likewise.
5189 * emulparams/avrmega603.sh (STACK): Likewise.
5190 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5191 (__stack): Define from ${STACK} for main().
5193 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5195 * Makefile.am: Update dependencies with "make dep-am"
5196 * Makefile.in: Regenerate.
5198 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5200 * ldmain.c: Include filenames.h.
5201 (set_scripts_dir): Support backslashes in program name.
5203 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5205 * ldmain.c (main): When deciding if ".text" section should be
5206 read-only, don't forget to reset SEC_READONLY because it
5207 could be already set.
5209 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5211 * ld.1: Add documentation for new command line option:
5212 --section-start <sectionname>=<sectionorg>
5213 This is a generic version of -Ttext etc. which accepts
5214 any section name as a parameter instead of just text/data/
5216 * ld.texinfo: More docs.
5218 * lexsup.c: (parse_args): Recognize new command line option.
5219 (ld_options): Add new option.
5221 2000-05-18 H.J. Lu <hjl@gnu.org>
5223 * lexsup.c (parse_args): `i' == `r', not `q'.
5225 2000-05-18 Jeffrey A Law (law@cygnus.com)
5227 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5229 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5230 Rick Gorton <gorton@scrugs.lkg.dec.com>
5232 Add support for '-q' == '--emit-relocs' switch.
5233 * ldmain.c (main): Default to false.
5234 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5235 * NEWS: Describe the emitrelocations switch.
5236 * ld.texinfo: Describe the emitrelocations switch.
5238 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5240 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5241 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5242 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5245 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5247 * lexsup.c (parse_args): Update the year in the copyright notice.
5249 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5251 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5252 Replace defines with those from intl/libgettext.h to quieten gcc
5255 2000-05-10 H.J. Lu <hjl@gnu.org>
5257 * ldlang.c (open_input_bfds): Don't load the same file within
5258 a group again if the whole archive has been loaded already.
5260 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5262 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5263 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5266 2000-05-01 Jim Wilson <wilson@cygnus.com>
5268 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5270 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5271 host "ia64-*-linux-gnu*".
5273 2000-04-29 Andreas Jaeger <aj@suse.de>
5275 * ld.h: Correctly check GCC version.
5277 2000-04-25 Jeffrey A Law (law@cygnus.com)
5279 * Makefile.am: Add PA64 support. Add missing dependencies for
5281 * Makefile.in: Rebuilt.
5282 * configure.tgt: Add PA64 support (currently disabled).
5284 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5286 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5287 (output_rel_find): New function.
5288 (hold_section, hold_use): Delete.
5289 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5290 hold_interp): Make local to place_orphan.
5291 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5292 rather than place_section to find possible previous use of orphan.
5293 Similarly find the place-holder output sections. Use returned
5294 value from lang_enter_output_section_statement rather than calling
5295 lang_output_section_statement_lookup.
5296 * emultempl/armelf.em: Same here.
5297 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5299 * ldlang.c (lang_enter_output_section_statement): Return output
5301 * ldlang.h (lang_enter_output_section_statement): Change
5304 * ldlang.h (lang_output_section_statement): Export it.
5305 * ldlang.c (lang_output_section_statement): Ditto.
5307 2000-04-24 Nick Clifton <nickc@cygnus.com>
5309 * ld.texinfo (Output Section Data): Add note that section data
5310 commands cannot appear outside of section directives.
5312 2000-04-2 Matthew Green <mrg@cygnus.com>
5314 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5316 2000-04-21 Richard Henderson <rth@cygnus.com>
5317 David Mosberger <davidm@hpl.hp.com>
5319 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5320 (eelf64_ia64.c): New rule.
5321 * Makefile.in: Rebuild.
5322 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5323 * emulparams/elf64_ia64.sh: New file.
5325 2000-04-21 Richard Henderson <rth@cygnus.com>
5327 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5329 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5331 * dep-in.sed: Match space at start of file name, not at end.
5333 2000-04-18 H.J. Lu <hjl@gnu.org>
5335 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5336 lang_leave_output_section_statement () after calling
5337 lang_enter_output_section_statement ().
5338 * emultempl/armelf.em: Likewise.
5340 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5342 * emultempl/elf32.em (struct orphan_save): Add section field.
5343 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5344 better order, and place first orphan section as we did before the
5345 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5346 Don't call make_bfd_section here, let wild_doit do the job for us.
5347 Don't build a statement list when we'll only throw it away.
5348 * emultempl/armelf.em: Ditto.
5349 * emultempl/pe.em: Similarly.
5351 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5353 * scripttempl/elfppc.sc: Remove.
5354 * emulparams/elf32ppc.sh: Use elf.sc.
5355 * emulparams/elf32lppc.sh: Use elf.sc.
5356 * emulparams/elf32ppclinux.sh: Use elf.sc.
5357 * emulparams/elf32ppcsim.sh: New file.
5358 * emulparams/elf32lppcsim.sh: New file.
5359 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5360 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5361 * Makefile.in: Regenerate.
5362 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5364 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5366 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5367 ~SEC_ALLOC sections too. Init start address of debug sections.
5368 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5369 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5370 Also set all relocateable section start addresses.
5372 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5374 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5375 Add new BSS_PLT variable for when .plt need not be contained in
5376 the file. Move _etext so that it is also after .fini, and provide
5377 both etext and _etext with a leading underscore. Mark the start
5380 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5382 * emultempl/elf32.em (struct orphan_save): New.
5383 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5384 hold_interp): Make them struct orphan_save.
5385 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5386 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5387 the end of the relevant section list. Also add associated section
5388 statements to the end of any previous orphan statements.
5389 * emultempl/armelf.em: Similarly.
5390 * emultempl/pe.em: Similarly.
5392 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5394 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5396 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5398 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5399 --enable-build-warnings option.
5400 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5401 * Makefile.in, configure: Re-generate.
5403 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5405 * po/ld.pot: Regenerate.
5407 * lexsup.c (help): Restore translated part of bug string.
5409 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5410 (DEP): Quote when passing vars to sub-make. Add warning message
5412 (DEP1): Rewrite for "gcc -MM".
5413 (CLEANFILES): Add DEP2.
5414 Update dependencies.
5415 * Makefile.in: Regenerate.
5417 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5419 * ld.h: #include "bin-bugs.h"
5420 * lexsup.c (help): Use REPORT_BUGS_TO.
5422 2000-03-27 Denis Chertykov <denisc@overta.ru>
5424 * configure.tgt (avr-*-*): New target support.
5425 * Makefile.am: Likewise.
5426 * scripttempl/elf32avr.sc: New script file.
5427 * emulparams/avr1200.sh: New file.
5428 * emulparams/avr23xx.sh: New file.
5429 * emulparams/avr4433.sh New file.
5430 * emulparams/avr44x4.sh New file.
5431 * emulparams/avr85xx.sh New file.
5432 * emulparams/avrmega103.sh New file.
5433 * emulparams/avrmega161.sh New file.
5434 * emulparams/avrmega603.sh New file.
5435 * Makefile.in: Regenerate.
5437 2000-03-09 Andreas Jaeger <aj@suse.de>
5439 * Makefile.am (check-DEJAGNU): Also unset LANG.
5440 * Makefile.in: Rebuild.
5442 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5444 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5447 2000-03-02 H.J. Lu <hjl@gnu.org>
5449 * emulparams/elf32mcore.sh: Include "getopt.h".
5451 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5453 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5455 2000-03-01 H.J. Lu <hjl@gnu.org>
5457 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5458 * emulparams/shpe.sh: Likewise.
5460 2000-03-01 Nick Clifton <nickc@cygnus.com>
5462 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5463 to unused parameters.
5465 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5466 functions only used by DLL code.
5467 (_place_orphan): Initialise 'dollar'.
5469 2000-03-01 H.J. Lu <hjl@gnu.org>
5471 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5472 indicate if the undefined symbol is a fatal error or not.
5473 Don't delete the output file if "fatal" is false.
5475 2000-02-29 H.J. Lu <hjl@gnu.org>
5477 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5478 Set LC_COLLATE and LC_ALL to null and export them. It is for
5479 sort which expects the C locale.
5480 Add $(LIBS) to all $(HOSTING_LIBS).
5481 * Makefile.in: Rebuild.
5483 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5485 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5486 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5487 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5488 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5489 find_potential_libraries.
5491 2000-02-28 Jim Blandy <jimb@redhat.com>
5493 * ldgram.y (exclude_name_list): Don't require a comma to separate
5494 list entries; the lexer considers commas to be valid part of a
5495 filename, so in something like `foo, bar' the comma is considered
5496 part of the first filename, `foo,'.
5497 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5499 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5501 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5502 host "i[3456]86-*-freebsdelf*".
5504 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5506 * scripttempl/i386go32.sc: Move misplaced semicolons.
5508 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5510 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5511 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5512 (eelf64hppa.c, ehppaelf.c): Remove targets.
5513 * Makefile.in: Rebuild.
5515 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5517 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5518 GNU/Linux/sparc, but keep the default as 32.
5520 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5521 it default if sparcv9 or sparc64.
5523 2000-02-24 Nick Clifton <nickc@cygnus.com>
5525 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5526 * Makefile.in: Regenerate.
5527 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5529 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5530 find_potential_libraries.
5531 * ldemul.c (ldemul_find_potential_libraries): New function.
5533 * ldfile.c (ldfile_open_file_search): Allow function to be
5535 (ldfile_open_file): Call ldemul_find_potential_libraries.
5536 * ldfile.h: Add prototype for ldfile_open_file_search.
5538 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5540 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5541 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5543 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5544 (gld_X_find_potential_libraries): New function. Search for
5545 libraries called "*.lib".
5547 * scripttempl/pe.sc: Add .pdata section.
5549 2000-02-23 Richard Henderson <rth@cygnus.com>
5551 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5552 Add and use memory regions.
5554 2000-02-23 Linas Vepstas (linas@linas.org)
5556 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5558 * Makefile.am: Add support for Linux/IBM 370.
5559 * configure.tgt: Likewise.
5561 * Makefile.in: Regenerate.
5563 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5565 * ldlang.c (print_input_section, print_data_statement,
5566 print_reloc_statement, print_padding_statement, insert_pad,
5567 size_input_section, lang_check_section_addresses,
5568 lang_size_sections, lang_do_assignments, lang_set_startof,
5569 lang_one_common): Change `opb' to unsigned.
5570 (lang_do_assignments): Also change `size' to unsigned.
5572 2000-02-16 Richard Henderson <rth@cygnus.com>
5574 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5576 2000-02-16 Timothy Wall <twall@cygnus.com>
5578 * mri.c (mri_draw_tree): Add default LMA region argument to call
5579 to lang_leave_output_section_statement.
5580 * ldlang.h: Update prototypes with LMA region arguments.
5581 * ldlang.c (lang_size_sections): Encapsulate region bounds
5582 checking in os_check_region call.
5583 (os_check_region): New function.
5584 (lang_output_section_statement_lookup): Initialize lma_region.
5585 (lang_leave_output_section_statement): Add LMA region argument.
5586 (lang_leave_overlay): Ditto.
5587 * ldgram.y: Handle LMA region syntax.
5588 * ld.texinfo (Output Section Description): Describe LMA region usage.
5589 * emultempl/armelf.em (gld$place_orphan): Add default value for
5590 lma region in call to lang_leave_output_section_statement.
5591 * emultempl/elf32.em (gld$place_orphan): Add default value for
5592 lma region in call to lang_leave_output_section_statement.
5593 * emultempl/pe.em (gld$place_orphan): Add default value for
5594 lma region in call to lang_leave_output_section_statement.
5597 2000-02-04 Timothy Wall <twall@redhat.com>
5599 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5600 octets when calculating section end addresses.
5602 2000-02-04 Timothy Wall <twall@redhat.com>
5604 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5606 2000-02-03 Timothy Wall <twall@redhat.com>
5608 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5610 * ldlang.c (print_input_section, print_data_statement,
5611 print_reloc_statement, print_padding_statement): Print target
5612 address values and section sizes as bytes, not octets.
5613 (insert_pad) Calculate padding size in octets, and adjust "dot"
5615 (size_input_section) Always adjust "dot" by bytes, not octets.
5616 (lang_check_section_addresses, lang_do_assignments) Adjust
5617 "dot" by bytes, not octets. Use the larger of the directive size
5618 or octets_per_byte for the number of octets actually allocated in
5620 (lang_set_startof) Make sure STARTOF returns a target address.
5621 (lang_one_common) Record size changes in octets.
5622 (lang_abs_symbol_at_end_of) Section end symbol's value is
5623 recorded in target bytes.
5624 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5625 to be clear about behavior when an octet is smaller than one byte.
5627 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5629 * ldcref.c (output_cref): Don't pass message strings to printf
5633 * ldmisc.c (vfinfo): Same here.
5636 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5638 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5639 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5640 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5641 Add missing NULL initialisers, and comments.
5643 2000-01-21 Nick Clifton <nickc@cygnus.com>
5645 * ldlang.c (lang_size_sections): Fix typo in comment.
5647 2000-01-18 H.J. Lu <hjl@gnu.org>
5649 * ldlang.c (lang_size_sections): Also update the current
5650 address of a region if the SEC_NEVER_LOAD bit is not set.
5652 2000-01-10 Philip Blundell <pb@futuretv.com>
5654 * configure.tgt (arm*-*-conix*): New target.
5656 2000-01-07 Nick Clifton <nickc@cygnus.com>
5658 * ld.texinfo (Options): Remind users to preceed linker command
5659 line switches with -Wl, (or whatever is appropriate) if it is
5660 being invoked by a comnpiler driver program.
5661 Fix description of the behaviour of the -n command line switch.
5663 2000-01-05 Catherine Moore <clm@cygnus.com>
5665 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5667 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5668 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5669 (exclude_name_list): New.
5670 ldlang.c (walk_wild_section): Support list of excluded files.
5671 (print_wild_statement): Likewise.
5672 (lang_add_wild): Likewise.
5673 * ldlang.h (lang_wild_statement_type): Likewise.
5674 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5676 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5678 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5679 (process_def_file): Use.
5680 (pe_dll_compat_implib): New variable.
5683 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5684 pe_dll_compat_implib.
5686 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5687 compat-implib options.
5688 (gld_${EMULATION_NAME}_list_options): List new options.
5689 (gld_${EMULATION_NAME}_parse_args): Handle.
5691 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5694 * deffilep.y (opt_name): Allow "." in name.
5696 For older changes see ChangeLog-9899
5702 version-control: never