1 2003-03-03 Alan Modra <amodra@bigpond.net.au>
3 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
4 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
5 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
6 PARSE_AND_LIST_EPILOGUE): Don't define.
7 * emultempl/alphaelf.em: New file.
9 2003-03-01 Alan Modra <amodra@bigpond.net.au>
11 * ldemul.c: Include getopt.h.
12 * emultempl/elf32.em: Include getopt.h earlier.
13 * emultempl/ticoff.em: Likewise.
15 2003-02-28 Alan Modra <amodra@bigpond.net.au>
17 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
18 support when scripts read from files.
20 2003-02-28 Alan Modra <amodra@bigpond.net.au>
22 * ldemul.c (ldemul_parse_args): Return FALSE by default.
23 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
26 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
27 (ldemul_parse_args): Return bfd_boolean. Formatting.
28 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
29 (ldemul_parse_args): Adjust.
30 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
31 Return bfd_boolean from parse_args.
32 * lexsup.c (parse_args): Malloc shortopts, longopts and
33 really_longopts. Call ldemul_add_options and ldemul_handle_option.
34 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
35 gld${EMULATION_NAME}_parse_args.
36 (gld${EMULATION_NAME}_handle_option): Likewise.
37 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
38 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
39 * emultempl/beos.em: Likewise.
40 * emultempl/pe.em: Likewise.
41 * emultempl/ticoff.em: Likewise.
42 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
43 (gld${EMULATION_NAME}_add_sysroot): Prototype.
44 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
46 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
47 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
48 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
49 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
51 * emultempl/generic.em: Likewise.
52 * emultempl/gld960.em: Likewise.
53 * emultempl/gld960c.em: Likewise.
54 * emultempl/linux.em: Likewise.
55 * emultempl/lnk960.em: Likewise.
56 * emultempl/m68kcoff.em: Likewise.
57 * emultempl/mipsecoff.em: Likewise.
58 * emultempl/sunos.em: Likewise.
59 * emultempl/vanilla.em: Likewise.
60 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
62 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
64 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
65 memory allocation error.
67 * Makefile.am (ldmain.o): Define TOOLBINDIR.
68 * Makefile.in: Rebuilt.
69 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
71 2003-02-21 Bob Wilson <bob.wilson@acm.org>
73 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
74 call os_region_check when it is set.
75 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
77 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
78 only for the last call, not on every relaxation iteration.
79 * ldlang.h (lang_size_sections): Update prototype.
80 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
81 to lang_size_sections.
82 (pe_exe_fill_sections): Likewise.
83 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
84 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
85 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
86 (ppc_layout_sections_again): Likewise.
88 2003-02-21 Bob Wilson <bob.wilson@acm.org>
90 * gen-doc.texi: Set ARM and HPPA variables.
91 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
92 title capitalization more consistent. Add missing menu entries for
93 machine-specific sections and conditionalize them consistently.
94 Conditionalize text that is irrelevant when SingleFormat is set.
95 Add @group divisions to improve page breaks in long examples.
96 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
97 is correct. Remove "FIXME" comment about not using
98 @raisesections/@lowersections. Use @raisesections/@lowersections
99 consistently for machine-specific sections. Change to be more polite
100 about poor bug reports. Replace FDL appendix with include of fdl.texi.
101 Move WIN32 node to match its order in the menus.
102 * fdl.texi: New file.
104 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
106 * configure.in (TARGET_SYSTEM_ROOT): Set default to
107 ${exec_prefix}/${target_alias}/sys-root. Match explicit
108 '${exec_prefix}' (in addition to the expansion thereof) as
110 * configure: Rebuilt.
112 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
114 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
116 2003-02-20 Harri Porten <porten@kde.org>
118 * ldgram.y (vers_defns): Allow optional trailing semicolon in
121 2003-02-18 Alan Modra <amodra@bigpond.net.au>
123 * emultempl/ppc32elf.em: New file.
124 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
125 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
126 (eelf32lppcnto.c): Likewise.
127 (eelf32lppcsim.c): Likewise.
128 (eelf32ppcnto.c): Likewise.
129 (eelf32ppc.c): Likewise.
130 (eelf32ppc_fbsd.c): Likewise.
131 (eelf32ppcsim.c): Likewise.
132 (eelf32ppclinux.c): Likewise.
133 * Makefile.in: Regenerate.
135 2003-02-18 Alan Modra <amodra@bigpond.net.au>
137 * ld.texinfo: Remove spaces between @samp and opening brace.
139 2003-02-18 Alan Modra <amodra@bigpond.net.au>
141 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
143 (ppc_before_allocation): Don't do optimizations if wrong hash table.
144 (gld${EMULATION_NAME}_finish): Ditto.
146 2003-02-17 Nick Clifton <nickc@redhat.com>
148 * ldmain.c (main) Default allow_shlib_undefined to true.
149 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
150 (parse_args): Parse the new switch.
151 * ld.texinfo: Document new switch and default behaviour of
152 allowing undefined symbols in shared libraries.
154 2003-02-11 Dmitry Diky <diwil@mail.ru>
156 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
157 * scripttempl/elf32msp430_3.sc: Likewise.
159 2003-02-11 Uwe Stieber <uwe@wwws.de>
161 * configure.tgt: Add support for kaOS as cross build target
164 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
166 * hppaelf.em (group_size): Change default back to 1.
168 2003-02-09 Alan Modra <amodra@bigpond.net.au>
170 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
172 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
174 * hppaelf.em (group_size): Change default to -1.
176 2003-02-07 Nick Clifton <nickc@redhat.com>
178 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
180 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
181 no-pipeline-knowledge. This will prevent the getopt package from
182 thinking that there are any shorter abbreviations for
183 --no-pipeline-knowledge.
185 2003-02-07 Jakub Jelinek <jakub@redhat.com>
187 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
188 which already have it. Avoid duplicates.
190 2003-02-06 Jakub Jelinek <jakub@redhat.com>
192 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
193 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
194 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
196 2003-02-05 Alan Modra <amodra@bigpond.net.au>
198 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
199 call ppc64_elf_tls_optimize.
201 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
203 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
204 outside of GNU/Linux conditional.
206 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
208 * deffilep.y (def_get_module): New function: locate an already
210 * deffile.h (def_get_module): New prototype.
211 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
212 a dll multiple times.
214 2003-01-23 Alan Modra <amodra@bigpond.net.au>
216 * emultempl/sh64elf.em: Include elf32-sh64.h.
217 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
218 sh64_elf_section_data.
219 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
221 2003-01-23 Wu Yongwei <adah@netstd.com>
223 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
224 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
225 cross-80th-column-margin "an" to the next line.
227 2003-01-21 Nick Clifton <nickc@redhat.com>
229 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
230 * emulparams/tic3xcoff_onchip.sh: ...this.
231 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
232 * Makefile.in: Regenerate.
234 2003-01-21 Fabio Alemagna <falemagn@aros.org>
236 * configure.tgt: Handle i[3456]86-*-aros*
238 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
240 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
241 * Makefile.in: Regenerate
242 * configure.tgt: Added extra target emulations
243 * emulparams/tic3xcoff.sh: Remove old settings
244 * emulparams/tic4xcoff.sh: Ditto
245 * emulparams/tic3xcoff-onchip.sh: Added new
246 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
247 * scripttempl/tic3xcoff.sc: Remove
249 2003-01-17 Andreas Jaeger <aj@suse.de>
251 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
254 2003-01-16 Alan Modra <amodra@bigpond.net.au>
256 * Makefile.in: Regenerate.
258 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
260 * ld/ld.texinfo (node WIN32): Some clarifications
261 and formatting fixups.
263 2003-01-09 Chris Demetriou <cgd@broadcom.com>
265 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
266 order, and handle (ignore) -mips32r2.
268 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
270 * ldmain.c (main): Make sure ld_sysroot is initialized.
272 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
274 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
276 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
277 (GENSCRIPTS): Add @use_sysroot@.
278 * Makefile.in: Regenerated.
279 * configure.host: Move setting of NATIVE_LIB_DIRS to...
280 * configure.tgt: ... here. Use ${target} instead of ${host}
282 * configure.in: Add --with-sysroot.
283 * configure: Regenerated.
284 * genscripts.sh: Accept use_sysroot option. Set new variables
285 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
286 $use_sysroot. Don't search $tool_lib if $use_sysroot.
287 * ldfile.c (ldfile_add_library_path): Handle leading '='.
288 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
289 (ld_sysroot): New variable.
290 (main): Initialize ld_sysroot.
291 * ldmain.h (ld_sysroot): New extern.
292 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
293 searching $EMULATION_LIBPATH.
294 (gld${EMULATION_NAME}_add_sysroot): New function.
295 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
296 (gld${EMULATION_NAME}_after_open): Likewise. Only search
297 environment variables if $NATIVE.
298 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
299 * NEWS: Mention --with-sysroot.
301 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
302 instead of setting LIB_PATH.
303 * emulparams/elf32ppc.sh: Likewise.
304 * emulparams/elf64_s390.sh: Likewise.
305 * emulparams/elf64_sparc.sh: Likewise.
306 * emulparams/elf64ppc.sh: Likewise.
307 * emulparams/elf_x86_64.sh: Likewise.
309 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
310 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
312 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
314 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
316 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
318 * Makefile.am (ldmain.o): Pass BINDIR.
319 * Makefile.in: Regenerated.
320 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
323 2003-01-02 Ben Elliston <bje@redhat.com>
325 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
326 (eelf32iq2000.c): New target.
327 * Makefile.in: Regenerate.
328 * configure.tgt: Handle iq2000-*-elf.
329 * emulparams/elf32iq10.sh: New file.
330 * emulparams/elf32iq2000.sh: New file.
331 * scripttempl/iq2000.sc: New file.
333 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
335 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
336 and _pei386_runtime_relocator to the exclude list.
338 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
340 * ldfile.c: Fix comment typos.
341 * ldlang.c: Likewise.
343 * pe-dll.c: Likewise.
345 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
347 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
348 * Makefile.am (ld.1): Depend on configdoc.texi
350 * Makefile.in: Regenerated.
352 2002-12-24 Dmitry Diky <diwil@mail.ru>
354 * Makefile.am: Add msp430 target.
355 * configure.tgt: Likewise.
356 * Makefile.in: Regenerate.
357 * emulparams/msp430x???.sh: New files. Linker script parameters
358 for various msp430 configurations.
359 * gen-doc.texi: Enable msp430 documenation.
360 * ld.texinfo: Document msp430 sections.
361 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
362 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
364 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
365 Charles Wilson <cwilson@ece.gatech.edu>
367 * ld/config.in (HAVE_REALPATH): New entry.
368 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
370 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
372 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
375 2002-12-23 Alan Modra <amodra@bigpond.net.au>
377 * ldmain.c (main): Init "strip_discarded".
378 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
379 (OPTION_NO_STRIP_DISCARDED): Define.
380 (ld_options): Add "strip-discarded" and "no-strip-discarded".
381 (parse_args): Handle them.
383 2002-12-23 Nick Clifton <nickc@redhat.com>
385 * ld.h (struct args_type): Add new field
386 'accept_unknown_input_architecture'.
387 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
389 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
390 bfd_arch_get_compatible.
391 * ldfile.c (ldfile_try_open_bfd): Likewise.
392 * lexsup.c (ld_options): Add new command line switch
393 --accept-unknown-input-architecture and its inverse.
394 (parse_args): Handle --accept-unknown-input-architecture.
395 * ld.texinfo: Document new linker option.
396 * NEWS: Mention new linker option.
398 2002-12-20 Alan Modra <amodra@bigpond.net.au>
400 * ldmain.c (main): Re-order link_info initialization. Init all
403 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
405 * ld.texinfo: Clarify and extend the documentation
406 in the Machine Dependent, WIN32 section.
408 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
410 * ld.texinfo: Add win32 machine depending section.
411 * gen-doc.texi: Enable win32 machine depending section.
413 * configure.host: Add win32 library search path.
415 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
417 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
418 import when auto-import is disabled.
420 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
422 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
423 account for trailing '\0'.
425 2002-12-17 Nick Clifton <nickc@redhat.com>
427 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
428 so that it is not confused with -c.
430 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
431 Charles Wilson <cwilson@ece.gatech.edu>
433 * configure.in: Add check for realpath function.
434 * configure: Regenerate.
435 * config.in: Regenerate.
436 * aclocal.m4: Regenerate.
437 * deffile.h: Add .data field to def_file_import
439 * pe-dll.c (pe_proces_import_defs): Use .data field of
440 def_file_import structure to initialize flag_data field of
441 def_file_export structure.
442 (pe_implied_import_dll): New variables exp_funcbase and
443 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
444 not filename (which may be a symlink). Scan the sections and
445 initialize [data|bss]_[start|end]. When scanning the export
446 table, skip _nm_ symbols, and mark any symbols whose rva indicates
447 that it is in the .bss or .data sections as data.
448 * sysdep.h: Include limits.h and sys/param.h, and define
449 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
450 exists, NULL otherwise.
451 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
452 pe_process_import_defs before pe_find_data_imports, so that
453 auto-import will check the virtual implib as well as "real"
455 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
456 symlinks to their target; check that the target's extension is
457 .dll before calling pe_implied_import_dll(), not the filename
458 itself (which may be a symlink).
460 2002-12-10 Alan Modra <amodra@bigpond.net.au>
462 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
463 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
466 2002-12-08 Alan Modra <amodra@bigpond.net.au>
468 * ldlang.h: Formatting.
470 2002-12-07 Alan Modra <amodra@bigpond.net.au>
472 * ldlang.c (init_os): Ensure sections mentioned in load_base
475 2002-12-05 Alan Modra <amodra@bigpond.net.au>
477 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
478 load_base for orphans that follow a section with load_base set.
480 2002-12-01 H.J. Lu <hjl@gnu.org>
482 * ld.texinfo: Remove the extra `;' in sample version script.
484 2002-11-30 Alan Modra <amodra@bigpond.net.au>
486 * configure.host: Correct dynamic-linker for powerpc64 hosts.
488 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
489 * Makefile.in: Regenerate.
491 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
492 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
493 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
494 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
495 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
496 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
497 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
498 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
499 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
500 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
501 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
502 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
503 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
505 2002-11-27 David O'Brien <obrien@FreeBSD.org>
507 * configure.host: Fix generic FreeBSD configuration entry.
509 2002-11-27 H.J. Lu <hjl@gnu.org>
511 * ld.texinfo: Add the missing `;' to sample version scripts.
513 2002-11-20 Alan Modra <amodra@bigpond.net.au>
515 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
517 2002-11-14 Egor Duda <deo@logos-m.ru>
519 * ldmain.c (main): Make runtime relocs disabled by default. Remove
520 assignment which has no effect.
521 * pe-dll.h (pe_create_import_fixup): Change prototype.
522 * pe-dll.c (make_runtime_pseudo_reloc): New function.
523 (pe_create_runtime_relocator_reference): Ditto.
524 (pe_create_import_fixup): Handle relocations with non-zero addends.
525 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
526 --disable-runtime-pseudo-reloc.
527 (make_import_fixup): Handle relocations with non-zero addends. Create
528 an external reference to _pei386_runtime_relocator symbol if at least
529 one pseudo reloc was created.
530 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
531 --disable-runtime-pseudo-reloc options.
533 2002-11-12 Earl Chew <earl_chew@agilent.com>
535 * ldlang.c (lang_add_section): Discard debugging sections that have
536 been marked SEC_EXCLUDE.
538 2002-11-12 Nick Clifton <nickc@redhat.com>
540 * configure.in (ALL_LINGUAS): Add da.
541 * configure: Regenerate.
542 * po/da.po: New Danish translation.
544 2002-11-12 Alan Modra <amodra@bigpond.net.au>
546 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
547 (LDEMUL_BEFORE_ALLOCATION): Define.
548 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
550 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
552 2002-11-11 Christopher Faylor <cgf@redhat.com>
554 * configure.tgt (LIB_PATH): Default to searching w32api directory under
557 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
559 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
560 of restricted auto-export libs.
562 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
564 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
565 creative library naming instances like, e.g., libstdc++-2.a.
567 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
569 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
570 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
572 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
574 * deffilep.y (def_lex): Handle '@' as first character of an ID.
575 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
576 (make_one): Don't prefix decorated fastcall symbols with '_'.
577 (pe_process_import_defs): Likewise.
578 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
579 symbols to cdecl names or vise-versa.
581 2002-10-13 Eric Kohl <ekohl@rz-online.de>
583 * pe-dll.c (process_def_file): Handle fastcall symbols when
584 generating undecorated aliases. Don't prefix decorated fastcall
586 (fill_exported_offsets): Don't prefix decorated fastcall symbols
589 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
591 * emultempl/aix.em: Use include <> for generated headers.
592 * emultempl/beos.em: Likewise.
593 * emultempl/elf32.em: Likewise.
594 * emultempl/pe.em: Likewise.
595 * ldctor.c: Likewise.
597 * ldfile.c: Likewise.
598 * ldlang.c: Likewise.
601 * ldmain.c: Likewise.
602 * ldmisc.c: Likewise.
603 * ldwrite.c: Likewise.
604 * lexsup.c: Likewise.
606 * pe-dll.c: Likewise.
608 2002-10-23 Jakub Jelinek <jakub@redhat.com>
610 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
611 sections into .rel{,a}.dyn.
613 2002-10-23 Nick Clifton <nickc@redhat.com>
615 * lexsup.c (OPTION_NO_OMAGIC): Define.
616 (ld_options): Add "no-omagic" option.
617 (parse_args): Parse --no-omagic.
618 * ld.texinfo: Document --no-omagic.
619 * NEWS: Mention new option.
621 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
623 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
624 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
626 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
628 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
629 emulation name. Set LIB_PATH only for native tools, and
630 search the ABI-specific versions of NATIVE_LIB_DIRS before the
631 .../lib variants, not instead of them. Mostly copied from...
632 * emulparams/elf32ppc.sh: ... here. Fixed typo.
633 * emulparams/elf64bmip-defs.sh: Backed out.
634 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
635 * emulparams/elf64btsmip.sh: Likewise.
636 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
637 TEXT_DYNAMIC): Removed.
639 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
641 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
642 (GENERATE_SHLIB_SCRIPT): Set to yes.
643 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
644 * emulparams/elf32bmipn32.sh: here.
645 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
646 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
647 * emulparams/elf64bmip-defs.sh: New file. Extend
648 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
649 * emulparams/elf64bmip.sh: Bring in definitions from
651 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
653 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
654 * emulparams/elf64btsmip.sh: Bring in definitions from
656 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
657 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
659 2002-10-16 Jakub Jelinek <jakub@redhat.com>
661 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
662 (s390-*-linux*): Add elf64_s390 emulation if want64.
663 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
664 genscript.sh changes.
665 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
666 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
668 2002-10-15 Alan Modra <amodra@bigpond.net.au>
670 * ldlang.c (load_symbols): Revert last change.
672 2002-10-14 Alan Modra <amodra@bigpond.net.au>
674 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
676 (lang_reasonable_defaults): Don't compare against false.
677 (size_input_section): Likewise.
678 (lang_size_sections_1): Likewise.
679 (lang_do_assignments): Likewise.
680 (lang_add_output): Likewise.
682 * Makefile.am: Run "make dep-am".
683 * Makefile.in: Regenerate.
684 * ldver.c: #include "bfdver.h".
686 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
688 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
690 * scripttempl/elfm68hc12.sc: Likewise.
692 2002-10-11 Alan Modra <amodra@bigpond.net.au>
694 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
696 * ldgram.y (memory_spec): Provide empty action.
697 (section <NAME>): Likewise.
699 2002-10-10 Jakub Jelinek <jakub@redhat.com>
701 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
702 they have OUTPUT_FORMAT not matching actual output format.
703 * ldlang.c (lang_get_output_target): New function.
704 (open_output): Use it.
705 * ldlang.h (lang_get_output_target): New prototype.
707 2002-10-10 Alan Modra <amodra@bigpond.net.au>
709 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
710 when orphan is .rel, .rela when orphan is .rela.
711 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
712 first. Remove outsecname var.
714 2002-10-09 Richard Shann <richard.shann@superh.com>
715 Stephen Clarke <stephen.clarke@superh.com>
717 * Makefile.am: Add eshelf32_linux.o and
718 eshlelf32_linux.o, new emulations for sh64 Linux.
719 * Makefile.in: Regenerate.
720 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
721 * emulparams/shelf32_linux.sh: New file.
722 * emulparams/shlelf32_linux.sh: New file.
724 2002-10-08 H.J. Lu <hjl@gnu.org>
726 * ldlang.c (lang_file_exist): Removed.
727 (new_afile): Revert the last change.
728 * ldlang.h (lang_file_exist): Removed.
729 * lexsup.c (parse_args): Revert the last change.
731 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
733 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
735 (make_one): Create _nm_<symbol> for data only.
737 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
739 * ldlang.c (lang_file_exist): New function.
740 (new_afile): Abort if the filename to be added matches the linker
742 * ldlang.h: Add prototype for lang_file_exist.
743 * lexsup.c (parse_args): Abort if the output filename matches
744 one of the input filenames.
746 2002-10-02 Alan Modra <amodra@bigpond.net.au>
748 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
750 2002-09-30 Alan Modra <amodra@bigpond.net.au>
752 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
753 * scripttempl/elfm68hc11.sc: Likewise.
754 * scripttempl/elfm68hc12.sc: Likewise.
756 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
757 reloc sections just before .rel.plt/.rela.plt.
758 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
759 Only put loadable reloc sections in hold_rel.
761 2002-09-29 H.J. Lu <hjl@gnu.org>
763 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
765 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
767 From "Anita Kulkarni" <AnitaK@kpit.com>
768 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
771 2002-09-25 Alan Modra <amodra@bigpond.net.au>
773 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
775 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
776 SEGMENT_SIZE alignment.
777 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
778 (SEGMENT_SIZE): Define.
780 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
781 (fold_binary): Correct abs - non-abs case.
782 (fold_trinary): New. Split out from exp_fold_tree.
784 2002-09-24 Alan Modra <amodra@bigpond.net.au>
786 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
787 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
788 for start of .data, instead align up to 256M boundary.
789 * scripttempl/aix.sc: Likewise.
791 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
793 * scripttempl/i386go32.sc: Handle bss unique sections.
795 2002-09-21 Alan Modra <amodra@bigpond.net.au>
797 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
799 2002-09-17 Stan Cox <scox@redhat.com>
801 * emulparams/elf32bmipn32-defs.sh: New file.
802 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
803 * emulparams/elf32btsmipn32.sh: Likewise.
804 * emulparams/elf64bmip.sh: Likewise.
805 * emulparams/elf64btsmip.sh: Likewise.
807 2002-09-16 Bruno Haible <bruno@clisp.org>
809 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
811 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
814 2002-09-11 Nick Clifton <nickc@redhat.com>
816 * NEWS: New TI port supports both C4x and C3x series of DSPs.
818 * po/tr.po: Updated Turkish translation.
820 2002-09-06 Jeffrey A Law (law@redhat.com)
822 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
824 2002-09-02 Nick Clifton <nickc@redhat.com>
826 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
828 * emulparams/v850.sh (TEMPLATE_NAME): Define.
830 2002-08-30 Nick Clifton <nickc@redhat.com>
832 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
833 used. Change INSN to start at 0x01000000 and extend for
834 256K (ignoring holes). Start the STACK on a word aligned
836 (.rodata): Start it at the READONLY_START_ADDR.
838 2002-08-30 Alan Modra <amodra@bigpond.net.au>
840 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
842 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
844 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
845 added makefile targets for this file.
846 * Makefile.in: Regenerate.
847 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
848 * NEWS: Mention new port.
850 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
852 * emulparams/tic3xcoff.sh: New file.
853 * emulparams/tic4xcoff.sh: New file.
854 * scripttempl/tic3xcoff.sc: New file.
855 * scripttempl/tic4xcoff.sc: New file.
857 2002-08-28 Alan Modra <amodra@bigpond.net.au>
859 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
860 strtoul and strtoull with bfd_scan_vma.
861 (gld${EMULATION_NAME}_read_file): Likewise.
863 2002-08-28 Alan Modra <amodra@bigpond.net.au>
865 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
867 2002-08-27 Egor Duda <deo@logos-m.ru>
869 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
870 Add symbols for application to access them.
872 2002-08-27 Nick Clifton <nickc@redhat.com>
874 * emultempl/armelf.em: Revert this patch, it is not needed.
876 2002-08-22 Adam Nemet <anemet@lnxw.com>
878 2002-08-20 Dan Kegel <dank@kegel.com>
880 * configure.in: added --with-lib-path argument to ld's configure
882 * ld/NEWS: Document new switch.
883 * ld/README: Mention new switch.
884 * configure: Regenerate.
885 * Makefile.in: Regenerate.
888 2001-04-25 Christopher Faylor <cgf@cygnus.com>
890 * Makefile.in (LIB_PATH): Make configurable.
891 (GENSCRIPTS): Set LIB_PATH in environment.
892 * configure.in: Substitute LIB_PATH.
894 2002-08-22 Adam Nemet <anemet@lnxw.com>
896 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
897 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
898 depending on the type of the function.
899 (arm_elf_convert_thumb_symbol_to_address): New function.
901 2002-08-22 Graeme Peterson <gp@qnx.com>
903 * Makefile.am: Add esh{l}elf_nto.o files.
904 * Makefile.in: Regenerate.
905 * configure.tgt: Add support for sh-**-nto* targets.
906 * emulparams/shelf_nto.sh: New file.
907 * emulparams/shlelf_nto.sh: New file.
909 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
911 * ldlang.c (offsetof): Define if not defined.
913 2002-08-14 H.J. Lu <hjl@gnu.org>
915 * configure.tgt: Always enable 64bit emulations for 32bit
918 2002-08-13 Alan Modra <amodra@bigpond.net.au>
920 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
921 (MAXPAGESIZE): Set to 1.
923 * ld.h (ALIGN_N): Delete.
924 * ldexp.h (align_n): Declare.
925 * ldexp.c (align_n): New function.
926 (fold_binary): Use align_n instead of ALIGN_N.
927 (exp_fold_tree): Likewise.
928 * ldlang.c (lang_size_sections_1): Likewise.
929 (lang_one_common): Likewise.
930 * ld.texinfo (ALIGN): Remove power of 2 restriction.
932 2002-07-31 Graeme Peterson <gp@qnx.com>
934 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
935 * Makefile.am: Add eelf32{l}ppcnto.o files.
936 * Makefile.in: Regenerate.
937 * emulparams/elf32lppcnto.sh: New file.
938 * emulparams/elf32ppcnto.sh: New file.
940 2002-08-07 H.J. Lu <hjl@gnu.org>
942 * ld.texinfo: Document --no-undefined-version.
944 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
945 `script.' fields to 0.
947 * ldmain.c (main): Initialize the allow_undefined_version to
950 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
951 (ld_options): Add --no-undefined-version.
952 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
954 2002-08-07 Nick Clifton <nickc@redhat.com>
956 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
957 an interworking bfd if there are input bfds. (107501)
959 2002-08-06 Alan Modra <amodra@bigpond.net.au>
961 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
964 2002-08-01 Nick Clifton <nickc@redhat.com>
966 * emulparams/armelf.sh: Revert previous delta.
967 * scripttempl/elf.sc: Revert previous delta.
969 2002-07-31 H.J. Lu <hjl@gnu.org>
971 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
974 2002-07-31 H.J. Lu <hjl@gnu.org>
976 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
977 64bit BFD is selected.
979 2002-07-31 H.J. Lu <hjl@gnu.org>
981 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
982 if 64bit BFD is selected.
984 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
986 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
987 link_info.common_skip_ar_aymbols.
988 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
990 * ldmain.c (main): Initialize new field
991 link_info.common_skip_ar_aymbols.
993 2002-07-31 Adam Nemet <anemet@lnxw.com>
995 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
997 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1000 2002-07-31 Nick Clifton <nickc@redhat.com>
1002 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1003 of the PDP-11 and 2.11BSD a.out support.
1005 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1007 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1008 for n32 ABI support.
1009 * Makefile.in: Regenerate.
1010 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1011 n32 ABI emulations for these 64 bit targets.
1012 * emulparams/elf32bmipn32.sh: Expand comment.
1013 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1015 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1017 2002-07-30 Graeme Peterson <gp@qnx.com>
1019 * configure.tgt: Add support for arm-*-nto target.
1020 * Makefile.am: Add earmnto.o file.
1021 * Makefile.in: Regenerate.
1022 * NEWS: Mention port of ARM support to QNX.
1023 * emulparams/armnto.sh: New file.
1025 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1027 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1028 for relocatable link.
1029 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1032 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1034 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1037 2002-07-25 Nick Clifton <nickc@redhat.com>
1039 * po/sv.po: Updated Swedish translation.
1040 * po/es.po: Updated Spanish translation.
1041 * po/fr.po: Updated French translation.
1043 2002-07-24 Nick Clifton <nickc@redhat.com>
1045 * po/sv.po: Updated Swedish translation.
1046 * po/es.po: Updated Spanish translation.
1048 2002-07-23 Nick Clifton <nickc@redhat.com>
1050 * po/fr.po: Updated French translation.
1052 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1054 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1055 bomb on /DISCARD/ input section.
1056 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1057 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1059 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1061 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1064 2002-07-16 Denis Chertykov <denisc@overta.ru>
1065 Nick Clifton <nickc@redhat.com>
1066 Frank Ch. Eigler <fche@redhat.com>
1067 John Healy <jhealy@redhat.com>
1069 * configure.tgt: Add support for ip2k-elf.
1070 * Makefile.am: Add support for ip2k-elf.
1071 * Makefile.in: Regenerate.
1072 * emulparams/elf32ip2k.sh: New file.
1073 * scripttempl/ip2k.sc: New file
1074 * NEWS: Mention support for new port.
1076 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1078 * NEWS: Add 'Changes in 2.13'.
1080 2002-07-14 H.J. Lu <hjl@gnu.org>
1082 * ld.texinfo: Document a .symver takes precedence over a
1085 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1087 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1088 (COMMONPAGESIZE): Define.
1090 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1092 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1094 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1096 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1097 powerpc-*-openbsd* and sparc64-*-openbsd*.
1098 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1099 * Makefile.in: Regenerate.
1100 * emulparams/hppaobsd.sh: New file.
1102 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1104 * ldlang.c (print_wild_statement): Fix output formatting.
1106 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1108 * ldlang.c: (strip_excluded_output_sections): New function.
1109 (lang_process): Call it.
1110 (lang_size_sections_1): Revert 2002-06-10 change.
1112 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1114 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1116 * Makefile.in: Regenerate.
1118 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1120 * ldfile.c (ldfile_try_open_bfd): Formatting.
1122 * ldmisc.c (demangle): Move so that it doesn't intrude between
1123 vfinfo comment and body. Add comment.
1125 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1127 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1129 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1131 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1132 * ldlang.c (entry_sym): Likewise.
1133 (ldlang_undef_chain_list_type): Likewise.
1134 (lang_finish): Adjust references to entry_symbol.
1135 (lang_add_entry): Likewise.
1136 (lang_gc_sections): Use link_info.gc_sym_list.
1137 (lang_process): Set link_info.gc_sym_list.
1138 * ldlex.l: Include bfdlink.h.
1139 * ldmain.c (main): Init link_info.gc_sym_list.
1140 * emultempl/aix.em: Adjust references to entry_symbol.
1141 * emultempl/armcoff.em: Likewise.
1142 * emultempl/armelf.em: Likewise.
1143 * emultempl/pe.em: Likewise.
1144 * emultempl/ppc64elf.em (ppc_after_open): New function.
1145 (LDEMUL_AFTER_OPEN): Define.
1146 * emulparams/elf64ppc.sh: KEEP .opd sections.
1148 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1150 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1151 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1152 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1153 (EEPROM_START_ADDR): Define.
1154 (EEPROM_MEMORY): Define.
1155 * emulparams/m68hc12elf.sh: Likewise.
1156 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1157 section to put soft registers in .page0.
1158 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1160 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1162 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1163 section. Add ${RELOCATING-0}.
1165 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1167 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1168 (OTHER_SECTIONS): Define.
1169 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1170 (OTHER_SECTIONS): Undef.
1172 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1174 * ldmisc.c (demangle): Restore dots stripped from sym name.
1176 2002-06-25 H.J. Lu <hjl@gnu.org>
1178 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1179 * Makefile.in: Regenerated.
1181 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1183 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1184 the size of attached object files, to allow make the object files
1185 available via FTP or HTTP and to mention that the mail will be
1186 sent to a mailing list.
1188 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1190 * ld/configure.host (romp): Drop support.
1192 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1194 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1195 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1197 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1199 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1200 format specifier used to print BFD name.
1202 2002-06-18 Dave Brolley <brolley@redhat.com>
1204 From Catherine Moore, Michael Meissner, Jim Blandy:
1205 * emulparams/elf32frv.sh: New file.
1206 * configure.tgt: Support frv-*-*.
1207 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1208 (eelf32frv.c): New target.
1210 2002-06-17 Tom Rix <trix@redhat.com>
1212 * emultempl/elf32.em: gld*_get_script: Check for
1213 GENERATE_COMBRELOC_SCRIPT.
1214 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1215 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1217 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1219 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1221 2002-06-12 H.J. Lu <hjl@gnu.org>
1223 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1224 false if xvec doesn't match.
1226 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1228 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1230 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1232 * ldexp.c: Replace CONST with const.
1233 * ldfile.c: Likewise.
1234 * ldfile.h: Likewise.
1235 * ldlex.l: Likewise.
1237 * pe-dll.h: Likewise.
1239 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1241 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1243 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1245 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1246 to -1 == implicit enable.
1247 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1248 initialize link_info.pei386_auto_import to -1 == implicit
1250 (gld_${EMULATION_NAME}_parse_args): When processing
1251 --enable-auto-import and --disable-auto-import options, use
1252 '1' and '0' instead of 'true' and 'false'.
1253 (pe_find_data_imports): Only issue message about auto-import
1254 when the feature is implicitly enabled. Downgrade message to
1255 informational instead of warning.
1257 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1259 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1261 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1263 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1264 HOSTING_CRT0 and HOSTING_LIBS.
1266 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1268 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1270 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1272 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1273 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1275 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1277 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1278 SEC_EXCLUDE sections when doing a relocatable link.
1280 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1282 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1283 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1284 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1285 (eshlelf64_nbsd.c): New rules.
1286 * Makefile.in: Regenerate.
1287 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1288 (sh64-*-netbsd*): New targets.
1289 * emulparams/shelf32_nbsd.sh: New file.
1290 * emulparams/shelf64_nbsd.sh: New file.
1291 * emulparams/shlelf32_nbsd.sh: New file.
1292 * emulparams/shlelf64_nbsd.sh: New file.
1294 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1296 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1298 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1300 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1301 C++ constructors/destructors, loosely based on the m68hc11 port.
1303 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1305 * Makefile.in: Regenerate.
1306 * aclocal.m4: Regenerate.
1307 * config.in: Regenerate.
1308 * configure: Regenerate.
1310 2002-05-31 Graeme Peterson <gp@qnx.com>
1312 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1313 (ei386nto.c): Add rule.
1314 * Makefile.in: Regenerate.
1315 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1316 * emulparams/i386nto.sh: New file.
1318 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1320 * NEWS: Add entry for VAX ELF support.
1322 2002-05-29 Matt Thomas <matt@3am-software.com>
1323 Jason Thorpe <thorpej@wasabisystems.com>
1325 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1327 (evaxnbsd.c): New rules.
1328 * Makefile.in: Regenerate.
1329 * configure.tgt (vax-*-netbsdelf*)
1331 (vax-*-netbsd*): New targets.
1332 * emulparams/elf32vax.sh: New file.
1333 * emulparams/vaxnbsd.sh: New file.
1335 2002-05-29 Adam Nemet <anemet@lnxw.com>
1337 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1338 bfd_for_interwork, instead add glue sections to each input bfd.
1339 (bfd_for_interwork): New global.
1340 (arm_elf_set_bfd_for_interworking): New function.
1341 (arm_elf_before_allocation): Use it.
1343 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1345 * Makefile.am: Add DLX make target.
1346 * configure.tgt: Add DLX configuration.
1347 * Makefile.in: Regenerate.
1348 * emulparams/elf32_dlx.sh: New file
1349 * scripttempl/dlx.sc: New file
1351 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1353 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1354 * Makefile.in: Regenerate.
1355 * emulparams/elf_chaos.sh: Use elf_chaos script.
1356 * scripttempl/elf_chaos.sc: New file.
1358 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1360 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1361 addresses and regions from here...
1362 (lang_get_regions): ...to this new function.
1363 (lang_leave_output_section_statement): Use lang_get_regions.
1364 (lang_leave_overlay): Likewise.
1365 * mri.c (mri_draw_tree): Pass null as last argument to
1366 lang_leave_output_section_statement.
1367 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1368 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1369 * emultempl/pe.em (gld*_place_orphan): Likewise.
1371 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1373 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1375 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1377 * ldemul.c: Fix formatting.
1378 * ldfile.c: Likewise.
1379 * pe-dll.c: Likewise.
1380 * pe-dll.h: Likewise.
1382 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1384 * ldlang.c (lang_process): Formatting, grammar.
1386 * ldlex.l: Use #include "" instead of <> for local header files.
1388 2002-05-24 TAMURA Kent <kent@netbsd.org>
1390 * configure.tgt: Add a target for i386-netbsdpe.
1392 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1394 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1395 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1396 output section if necessary. Handle .tbss.
1397 (lang_size_sections): Clear _raw_size for .tbss section
1398 (it allocates space in PT_TLS segment only).
1399 * ldwrite.c (build_link_order): Build link order for .tbss too.
1401 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1403 * configure.in: Correct spelling of AC_PREREQ.
1405 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1407 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1409 (autofilter_objlist): Add crtbegin.o, crtend.o.
1411 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1413 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1414 (longopts): Add new option --exclude-libs.
1415 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1416 (gld_${EMULATION_NAME}_parse_args): Use it.
1417 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1418 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1419 from whole archives.
1420 (pe_dll_add_excludes): Set excludes->type.
1421 (auto_export): Add new variable libname and set to archive basename if
1422 abfd. Use it when filtering default and user-specified libarary
1423 excludes. Let string "ALL" mean all libs when filtering user-specified
1425 * ld.texinfo: Document --exclude-libs.
1427 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1429 * ldemul.c (ldemul_new_vers_pattern): New function.
1430 * ldemul.h (ldemul_new_vers_pattern): Declare.
1431 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1432 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1433 * emultempl/ppc64elf.em (dotsyms): New static var.
1434 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1435 (LDEMUL_NEW_VERS_PATTERN): Define.
1436 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1437 (PARSE_AND_LIST_LONGOPTS): Likewise.
1438 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1439 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1441 * emultempl/armcoff.em: Likewise.
1442 * emultempl/armelf_oabi.em: Likewise.
1443 * emultempl/beos.em: Likewise.
1444 * emultempl/elf32.em: Likewise.
1445 * emultempl/generic.em: Likewise.
1446 * emultempl/gld960.em: Likewise.
1447 * emultempl/gld960c.em: Likewise.
1448 * emultempl/linux.em: Likewise.
1449 * emultempl/lnk960.em: Likewise.
1450 * emultempl/m68kcoff.em: Likewise.
1451 * emultempl/mipsecoff.em: Likewise.
1452 * emultempl/pe.em: Likewise.
1453 * emultempl/sunos.em: Likewise.
1454 * emultempl/ticoff.em: Likewise.
1455 * emultempl/vanilla.em: Likewise.
1457 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1459 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1460 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1461 (LIB_SEARCH_DIRS): No need to use "tr".
1462 (COMPILE_IN): Only set for native targets.
1463 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1464 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1465 * configure.tgt (powerpc*): Set tdir_*.
1466 (powerpcle*): Correct targ_extra_emuls.
1467 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1468 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1470 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1472 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1473 calling lang_add_entry.
1475 2002-05-21 H.J. Lu (hjl@gnu.org)
1477 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1479 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1481 * ld.texinfo: Updated for --allow-multiple-definition and
1484 * ldmain.c (main): Initialize the allow_multiple_definition
1487 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1488 (ld_options): Add --allow-multiple-definition.
1489 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1491 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1493 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1494 (earmelfb_nbsd.c): New rule.
1495 * Makefile.in: Regenerate.
1496 * configure.tgt (armeb-*-netbsdelf*): New target.
1497 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1498 (arm-*-netbsd*): Likewise.
1499 * emulparams/armelfb_nbsd.sh: New file.
1501 2002-05-18 Tom Rix <trix@redhat.com>
1503 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1506 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1508 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1509 * Makefile.in: Regenerate.
1510 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1512 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1514 * emulparams/avr1.sh: New file.
1515 * emulparams/avr2.sh: New file.
1516 * emulparams/avr3.sh: New file.
1517 * emulparams/avr4.sh: New file.
1518 * emulparams/avr5.sh: New file.
1519 * scripttempl/avr.sc: New file.
1521 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1523 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1524 (lang_place_orphans): Abort if just_syms_flag.
1526 2002-05-10 Tom Rix <trix@redhat.com>
1528 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1529 architecture and machine information in the output bfd.
1530 (gld*_before_parse): Remove old arch and machine code.
1531 (choose_target): Rename to gld*_choose_target.
1532 (rtld): Change type to int.
1533 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1534 objects in XCOFF archives.
1535 * ldfile.h: Update copyright date.
1537 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1539 * ldmain.c (main): Enable -z combreloc by default.
1541 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1543 * Makefile.am: Honour DESTDIR.
1544 * Makefile.in: Regenerate.
1546 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1548 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1549 (lang_enter_overlay): Remove the last two parameters.
1550 (lang_leave_overlay): Take them here instead.
1551 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1552 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1553 than lang_enter_overlay.
1554 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1555 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1556 (lang_size_sections_1): Evaluate it.
1557 (lang_leave_output_section_statement): Rework LMA lookup.
1558 (overlay_lma, overlay_nocrossrefs): Remove.
1559 (lang_enter_overlay): Remove LMA and crossref arguments.
1560 (lang_enter_overlay_section): Don't set the LMA here.
1561 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1562 assignment to the last section's update_dot_tree. Unconditionally
1563 use the load and run-time regions specified in the OVERLAY statement.
1564 Likewise the first section's LMA. Only set the other sections' LMAs
1565 when no load region is given.
1567 2002-05-06 Nick Clifton <nickc@redhat.com>
1569 * po/sv.po: New translation.
1571 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1573 * emultempl/hppaelf.em (build_section_lists): New function.
1574 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1575 and build_section_lists.
1577 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1579 * ld.h: Fix formatting.
1580 * ldexp.c: Likewise.
1581 * ldfile.c: Likewise.
1582 * ldlang.c: Likewise.
1583 * ldmain.c: Likewise.
1584 * lexsup.c: Likewise.
1585 * pe-dll.c: Likewise.
1587 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1589 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1590 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1591 (build_section_lists): Do output_section tests here.
1593 2002-04-30 Tom Rix <trix@redhat.com>
1595 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1597 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1599 Long branch stubs, multiple stub sections.
1600 * emultempl/ppc64elf.em: Include ldctor.h.
1601 (stub_file): New var.
1602 (group_size): New var.
1603 (ppc_create_output_section_statements): New function.
1604 (struct hook_stub_info): New.
1605 (hook_in_stub): New function.
1606 (ppc_add_stub_section): New function.
1607 (ppc_layout_sections_again): New function.
1608 (build_section_lists): New function.
1609 (gld${EMULATION_NAME}_finish): Rewrite.
1610 (real_func): New var.
1611 (ppc_for_each_input_file_wrapper): New function.
1612 (ppc_lang_for_each_input_file): New function.
1613 (lang_for_each_input_file): Define.
1614 (PARSE_AND_LIST_PROLOGUE): Define.
1615 (PARSE_AND_LIST_LONGOPTS): Define.
1616 (PARSE_AND_LIST_OPTIONS): Define.
1617 (PARSE_AND_LIST_ARGS_CASES): Define.
1618 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1620 2002-04-30 Tom Rix <trix@redhat.com>
1622 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1623 -blibpath, -bnolibpath support.
1625 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1627 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1628 (eelf32ppcwindiss.c): New target.
1629 * Makefile.in: Regenerated.
1630 * configure.tgt: Add support for powerpc-*-windiss.
1631 * emulparams/elf32ppcwindiss.sh: New file.
1633 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1635 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1636 * ldexp.c (exp_print_token): Add "infix_p" argument.
1637 (exp_print_tree): Update accordingly.
1639 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1641 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1642 * Makefile.in: Regenerate.
1643 * mpw-elfmips.c: Delete.
1644 * mpw-eppcmac.c: Delete.
1645 * mpw-esh.c: Delete.
1646 * mpw-idtmips.c: Delete.
1648 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1650 * emulparams/shelf32.sh (MACHINE): Now sh5.
1652 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1654 * ldgram.y: Fix syntax warning.
1656 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1658 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1659 to prevent "-n" from being taken as an abbreviation for
1660 "--no-pipeline-knowledge".
1662 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1664 * ldlang.c (lang_size_sections_1): Don't complain about
1665 SEC_NEVER_LOAD sections having no memory region specified.
1667 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1669 2002-04-07 matthew green <mrg@redhat.com>
1671 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1673 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1675 * dep-in.sed: Cope with absolute paths.
1676 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1678 * Makefile.in: Regenerate.
1680 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1682 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1684 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1686 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1687 is smaller than maximum, round dot up to common page boundary.
1689 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1691 * configure.host: Set up for generic hosts first, then tweak as
1692 necessary in more specific targets.
1693 (HOSTING_LIBS): Include libgcc_eh.a if found.
1695 2002-03-23 Andreas Jaeger <aj@suse.de>
1697 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1699 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1701 * Makefile.am: Run "make dep-am".
1702 * Makefile.in: Regenerate.
1704 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1706 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1708 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1710 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1711 add the symbol to the linker hash table immediately.
1712 (lang_place_undefineds): Split symbol creation out..
1713 (insert_undefined): ..to here.
1715 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1717 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1718 the contents of the buffer returned from basename function will are
1719 getting overwritten while still being used.
1721 2002-03-18 Jan Hubicka <jh@suse.cz>
1722 Andreas Jaeger <aj@suse.de>
1723 Andreas Schwab <schwab@suse.de>
1725 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1726 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1727 set libraries to default to lib64 paths.
1729 2002-03-18 Tom Rix <trix@redhat.com>
1731 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1732 * configure.tgt : Same.
1733 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1734 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1735 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1736 emulation parameters for better -b32, -b64 support.
1737 * emulparms/aixrs6.sh : Same.
1738 * emulparms/ppcmacos.sh : Same.
1739 * emultempl/aix.em (choose_target) : Use new emulation parameters
1740 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1741 * Makefile.in : Regenerate.
1743 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1745 * po/fr.po: Updated version.
1747 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1749 * ldmain.c (main): Move .text readonly flag fudges from here..
1750 * ldlang.c (lang_process): ..to here.
1752 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1754 * ldlang.c (lang_check): Remove the word size check added in last
1755 change. Treat emitrelocations case as for relocatable links.
1757 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1759 * po/fr.po: Updated version.
1761 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1763 * ldlang.c (lang_check): Do relocatable link checks first, so that
1764 warn_mismatch can't override. Check compatible and word size too.
1766 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1768 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1770 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1772 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1775 2002-03-04 H.J. Lu <hjl@gnu.org>
1777 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1778 .fini_array in the data segment.
1780 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1782 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1784 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1786 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1787 .init_array, and .fini_array.
1789 2002-02-20 Andreas Schwab <schwab@suse.de>
1791 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1792 .IA64_unwind* in a relocatable link.
1794 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1796 * NEWS: Mark 2.12 branch.
1798 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1800 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1801 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1803 2002-02-18 Tom Rix <trix@redhat.com>
1805 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1806 (gld*_before_allocation): Same.
1807 (gld*_create_output_section_statements): Generate
1808 __rtinit if run time linking. Add librtl.a to the link.
1809 (gld*_read_file): Clean.
1811 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1813 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1815 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1817 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1818 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1819 and eelf64alpha_fbsd.
1820 * Makefile.in: Regenerate.
1821 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1822 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1823 use a FreeBSD-specific emulation rather than the psABI one.
1824 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1825 for all FreeBSD ELF systems.
1826 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1828 * emulparams/elf32ppc_fbsd.sh: Likewise.
1829 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1830 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1831 * emulparams/elf64alpha_fbsd.sh: Likewise.
1832 * emulparams/elf_i386_fbsd.sh: Likewise.
1833 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1835 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1837 * po/tr.po: Updated version.
1839 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1841 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1844 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1846 * emultempl/mmo.em (mmo_after_open): Don't call
1847 _bfd_mmix_check_all_relocs when producing ELF output.
1849 2002-02-15 Richard Henderson <rth@redhat.com>
1851 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1852 definition. Emit a unop+nop pair.
1854 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1856 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1857 for presence of .MMIX.reg_contents.linker_allocated before early
1860 * NEWS: Mention support for MMIX.
1862 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1864 Support arbitrary length fill patterns.
1865 * ld.texinfo (Output Section Fill): Describe fill expressions.
1866 (FILL): Refer to the above.
1867 * ldexp.h (etree_value_type): Add "str" field.
1868 (union etree_union): Add "str" to "value" struct.
1869 (exp_bigintop): Declare.
1870 (exp_get_fill): Declare.
1871 * ldexp.c: Include "safe-ctype.h".
1872 (exp_intop): Set value.str to NULL.
1873 (exp_bigintop): New function.
1874 (new_rel): Pass in "str", and set new.str from it.
1875 (new_rel_from_section): Set new.str to NULL.
1876 (fold_name): Adjust calls to new_rel.
1877 (exp_fold_tree): Likewise.
1878 (exp_get_fill): New function.
1879 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1880 (INT): Returns a "bigint". Adjust all code handling INTs.
1881 (fill_opt): Returns a "fill".
1882 (fill_exp): Split out of fill_opt, use for FILL.
1883 * ldlang.h (struct _fill_type): New.
1884 (fill_type): Move typedef to ldexp.h.
1885 (lang_output_section_statement_type): "fill" is now a pointer.
1886 (lang_fill_statement_type): Likewise.
1887 (lang_padding_statement_type): Likewise.
1888 (lang_add_fill): Now takes a "fill_type *" param.
1889 (lang_leave_output_section_statement): Likewise.
1890 (lang_do_assignments): Likewise.
1891 (lang_size_sections): Likewise.
1892 (lang_leave_overlay_section): Likewise.
1893 (lang_leave_overlay): Likewise.
1894 * ldlang.c: Include ldgram.h after ldexp.h.
1895 (lang_output_section_statement_lookup): Adjust for fill_type change.
1896 (print_fill_statement): Likewise.
1897 (print_padding_statement): Likewise.
1898 (insert_pad): Now takes a "fill_type *" arg.
1899 (size_input_section): Likewise.
1900 (lang_size_sections_1): Likewise.
1901 (lang_size_sections): Likewise.
1902 (lang_do_assignments): Likewise.
1903 (lang_add_fill): Likewise.
1904 (lang_leave_output_section_statement): Likewise.
1905 (lang_leave_overlay_section): Likewise.
1906 (lang_leave_overlay): Likewise.
1907 Adjust all callers of the above function.
1908 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1909 starting with "0X" as well as "0x". Return bigint.str for hex
1910 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1911 Always use base 16 for numbers starting with "$".
1912 * ldmain.c: Include ldgram.h after ldexp.h.
1913 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1914 of bfd_fill_link_order.
1915 * pe-dll.c: Adjust lang_do_assignments calls.
1916 * emultempl/elf32.em: Likewise.
1917 * emultempl/hppaelf.em: Likewise.
1918 * emultempl/ppc64elf.em: Likewise.
1919 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1920 lang_add_assignment call.
1921 * emultempl/pe.em: Likewise.
1923 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1925 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1926 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1927 the pattern in question is not a regexp.
1928 * ldlang.c: Likewise.
1929 * ldlang.h: Likewise.
1930 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1932 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1934 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1935 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1936 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1937 * ldexp.c (exp_data_seg): New variable.
1938 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1939 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1940 (exp_fold_tree): Handle DATA_SEGMENT_END.
1941 Pass allocation_done when recursing instead of hardcoding
1942 lang_allocating_phase_enum.
1943 * ldexp.h (exp_data_seg): New.
1944 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1945 (lang_size_sections): New.
1946 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1947 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1948 if COMMONPAGESIZE is defined.
1949 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1950 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1951 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1952 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1953 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1956 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1958 * Makefile.in: Regenerate.
1960 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1962 * lexsup.c: Remove strtoul declaration.
1964 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1966 * ldmain.c: Add prototype for main ().
1967 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1968 * emultempl/lnk960.em (lnk960_choose_target): Function should
1971 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1973 * ldlang.c (entry_section): New initialised variable.
1974 (lang_finish): Use it.
1975 * ldlang.h (entry_section): Declare.
1976 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1977 entry_section to ".opd".
1979 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1981 * ld.texinfo (Options): Add back in -nostdlib documentation,
1982 which had been inadvertently removed.
1984 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1986 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1987 register section vma to a sane value after emitting error. Make
1988 fatal conditions cause program exit when emitting message.
1990 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1992 * configure.tgt: Add or32-*-rtems target.
1994 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1996 Contribute sh64-elf.
1997 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1998 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1999 in OTHER_RELOCATABLE_SECTIONS.
2000 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2001 * emulparams/shelf32.sh (STACK_ADDR): Define.
2002 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2003 (OTHER_SECTIONS): this. Removed stack settings.
2004 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2005 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2006 2001-03-12 DJ Delorie <dj@redhat.com>
2007 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2008 relaxing if any shmedia or mixed sections are found.
2009 2001-03-07 DJ Delorie <dj@redhat.com>
2010 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2011 einfo. Gracefully decline to output to non-elf formats.
2012 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2013 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2014 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2015 * emulparams/shelf32.sh: Ditto.
2016 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2017 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2019 2001-01-10 Ben Elliston <bje@redhat.com>
2020 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2021 non-portable shell constructs. From Hans-Peter Nilsson.
2022 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2023 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2024 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2025 dependencies to the shell script include chain.
2026 * Makefile.in: Regenerate.
2027 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2028 * emultempl/sh64elf.em: Update and tweak comments.
2029 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2030 make a .cranges section SEC_IN_MEMORY.
2031 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2032 * emultempl/sh64elf.em
2033 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2034 .cranges section found to be necessary; continue and set stored
2035 section contents flags for sections with non-mixed contents.
2036 Use a struct sh64_section_data container and sh64_elf_section_data
2037 to store contents-type flags.
2038 Remove unused update of "isec".
2039 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2040 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2041 access contents-type flags. Assert that the associated container
2042 is initialized. Use that container, not elf_gp_size, to hold size
2043 of linker-generated cranges contents.
2044 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2045 * emultempl/sh64elf.em
2046 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2047 there's already a .cranges section. When section flag difference
2048 is found, don't NULL-check cranges a second time. Tweak comments.
2049 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2050 merging, not max size, as size of ld-generated .cranges contents.
2051 Don't set ELF section flags in output section. When checking for
2052 needed .cranges descriptors, don't use a variable; compare
2053 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2055 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2056 * emultempl/sh64elf.em: New file.
2057 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2058 * Makefile.in: Regenerate.
2059 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2060 (OTHER_RELOCATING_SECTIONS): Ditto.
2061 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2062 * emulparams/shlelf32.sh: Stub out all settings except
2063 OUTPUT_FORMAT. Source shelf32.sh.
2064 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2065 OTHER_RELOCATING_SECTIONS.
2066 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2067 * emulparams/shlelf64.sh: Stub out all settings except
2068 OUTPUT_FORMAT. Source shelf64.sh.
2069 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2070 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2072 (DATA_START_SYMBOLS): Define, provide ___data.
2073 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2074 for consecutive .data section.
2075 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2076 section after .data section.
2077 * emulparams/shlelf64.sh: Ditto.
2078 * emulparams/shelf32.sh: Ditto.
2079 (ALIGNMENT): Define to 8.
2080 * emulparams/shelf32.sh: Ditto.
2081 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2082 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2083 built-in linker scripts.
2084 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2085 * emulparams/shlelf64.sh: New.
2086 * emulparams/shelf64.sh: New.
2087 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2089 * Makefile.am: Add support for shlelf64 and shelf64.
2090 * Makefile.in: Regenerate.
2091 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2092 * configure.tgt (sh64-*-elf*): Add shelf as default.
2093 Add shlelf to targ_extra_emuls.
2094 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2095 * emulparams/shelf32.sh: New file.
2096 * emulparams/shlelf32.sh: New file.
2097 * Makefile.am: Add support for shlelf32 and shelf32.
2098 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2099 * Makefile.in: Regenerate.
2101 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2103 * ldlang.c (lang_reset_memory_regions): Rename from
2104 reset_memory_regions. Change all callers. Make public.
2105 * ldlang.h (lang_reset_memory_regions): Prototype.
2106 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2107 lang_reset_memory_regions before lang_size_sections.
2108 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2109 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2111 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2113 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2114 arithmetic when checking for too many global registers.
2116 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2118 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2119 (ehppanbsd.c): New rule.
2120 * Makefile.in: Regenerate.
2121 * configure.tgt (hppa*-*-netbsd*): New target.
2122 * emulparams/hppalinux.sh: Add comment to check other files
2123 that source this file it is modified, and list which
2125 * emulparams/hppanbsd.sh: New file.
2127 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2129 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2132 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2134 Support on-demand global register allocation from
2135 R_MMIX_BASE_PLUS_OFFSET relocs.
2136 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2137 mmix_set_reg_section_vma. Call
2138 _bfd_mmix_finalize_linker_allocated_gregs.
2139 (mmix_before_allocation): New function.
2140 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2141 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2142 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2143 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2144 before .MMIX.reg_contents.
2145 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2146 (mmo_after_open): New function.
2147 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2148 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2149 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2151 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2153 * emulparams/or32.sh: New file.
2154 * emulparams/or32elf.sh: New file.
2155 * scripttempl/or32.sc: New file.
2156 * configure.tgt : Add support for or32.
2157 * configure: Regenerate
2158 * Makefile.am: Add support for or32.
2159 * Makefile.in: Regenerate.
2160 * NEWS: Mention support for or32.
2161 * po/ld.pot: Regenerate.
2163 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2164 Mitch Lichtenberg <mpl@broadcom.com>
2166 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2167 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2168 reloc creation (ld --embedded-relocs).
2170 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2172 * configure: Regenerated.
2174 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2176 * Makefile.am (install): Depend on install-info.
2177 * Makefile.in: Regenerate.
2179 2002-01-26 Christian Rose <menthos@menthos.com>
2181 * ldmain.c (main): Use full sentences to ease translation.
2183 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2185 * po/fr.po: Updated version.
2187 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2189 * po/es.po: Updated version.
2191 2002-01-25 Andreas Jaeger <aj@suse.de>
2193 * ldlex.l (yy_input): Correct error check.
2195 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2197 * ldmisc.c (demangle): Put back dots when string not demangled.
2199 2002-01-22 Richard Henderson <rth@redhat.com>
2201 * emulparams/elf64alpha.sh (NOP): Use unop.
2203 2002-01-21 Andreas Jaeger <aj@suse.de>
2205 * ldlex.l: Use fread instead of read.
2207 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2209 * configure.tgt (ia64-*-netbsd*): New target.
2211 2002-01-21 H.J. Lu <hjl@gnu.org>
2213 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2215 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2217 2002-01-18 Andreas Jaeger <aj@suse.de>
2219 * ldver.c (ldversion): Update year.
2221 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2223 * po/ld.pot: Regenerate.
2225 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2227 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2228 * Makefile.in: Regenerate.
2229 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2230 * emultempl/ppc64elf.em: New file.
2232 2002-01-15 DJ Delorie <dj@redhat.com>
2234 * scripttempl/pe.sc: Add support for constructor priorities.
2236 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2238 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2239 * emulparams/avr23xx.sh: Likewise.
2240 * emulparams/avr4433.sh: Likewise.
2241 * emulparams/avr44x4.sh: Likewise.
2242 * emulparams/avr85xx.sh: Likewise.
2243 * emulparams/avrmega103.sh: Likewise.
2244 * emulparams/avrmega161.sh: Likewise.
2245 * emulparams/avrmega603.sh: Likewise.
2246 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2248 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2250 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2251 archive is excluded.
2253 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2255 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2256 (eshelf_nbsd.c): New rule.
2257 (eshlelf_nbsd.c): New rule.
2258 * Makefile.in: Regenerate.
2259 * configure.tgt (sh*le-*-netbsdelf*): New target.
2260 (sh*-*-netbsdelf*): New target.
2261 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2262 * ld/emulparams/shelf_nbsd.sh: New emulation.
2263 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2265 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2267 * po/es.po: New file: Spanish translation.
2268 * configure.in (ALL_LINGUAS): Add es.
2269 * configure: Regenerate.
2271 2002-01-06 John Marshall <jmarshall@acm.org>
2273 * ld.texinfo: Note that --emit-relocs is currently only
2274 implemented for ELF.
2276 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2278 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2279 of bfd_section_list_remove and bfd_section_list_insert macros.
2280 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2281 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2283 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2285 * configure.tgt (x86_64-*-netbsd*): New target.
2287 2001-12-21 Tom Rix <trix@redhat.com>
2289 (gld*_create_output_section_statements): New function.
2290 For -binitfini support.
2291 * emultempl/aix.em (gld*_before_parse): Fix comment.
2292 * emultempl/aix.em (gld*_parse_args): Fix comment.
2294 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2296 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2298 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2300 * configure.tgt (arm-*-netbsdelf*): Add target.
2301 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2302 * emulparams/armelf_nbsd.sh: Added.
2303 * Makefile.am: Add rules for earmelf_nbsd.
2304 * Makefile.in: Regenerate.
2306 2001-12-19 Andreas Jaeger <aj@suse.de>,
2307 Susanne Oberhauser <froh@suse.de>
2309 * configure.host: Add rules for x86_64-*linux-gnu. Change
2310 s390x-linux entry to use gcc to report configuration, replace gcc
2311 with $CC in s390-linux
2313 2001-12-19 Andreas Jaeger <aj@suse.de>
2315 * ld.texinfo (VERSION): Fix markup.
2317 2001-12-18 matthew green <mrg@eterna.com.au>
2319 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2320 (m68kelfnbsd.c): New rule.
2321 * Makefile.in: Regenerate.
2322 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2323 (m68*-*-netbsd*4k*): .. this.
2324 (m68*-*-netbsdelf*): New target.
2325 (m68*-*-netbsd*): Also include ELF support.
2326 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2327 * emulparams/m68kelfnbsd.sh: New emulation.
2329 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2331 * ldgram.y (vers_node): Support anonymous version tags.
2332 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2333 tag is not defined together with non-anonymous versions.
2334 * ld.texinfo: Document it.
2336 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2338 * po/tr.po: New file: Turkish translation.
2339 * configure.in (ALL_LINGUAS): Add tr.
2340 * configure: Regenerate.
2342 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2344 * Makefile.am: Add rules for eelf64alpha_nbsd.
2345 * Makefile.in: Regenerate.
2346 * configure.tgt (alpha*-*-netbsd*): Set
2347 targ_emul to elf64alpha_nbsd.
2348 * emulparams/elf64alpha_nbsd.sh: Added.
2350 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2352 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2353 section_tail when fiddling with section list.
2354 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2355 broken into separate strings to make translation easier.
2356 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2357 fiddling with section list.
2358 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2360 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2362 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2364 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2366 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2368 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2370 * emultempl/elf32.em (finish): Supply output_bfd
2371 to bfd_elf*_discard_info.
2372 (OPTION_EH_FRAME_HDR): Define.
2373 (longopts): Add --eh-frame-hdr.
2374 (parse_args): Handle it.
2375 (list_options): Add --eh-frame-hdr to help.
2376 * emultempl/hppaelf.em (finish): Supply output_bfd
2377 to bfd_elf*_discard_info.
2378 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2380 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2382 * lexsup.c (parse_args): Don't pass shortopts to second call to
2383 getopt functions. Restore optind rather than decrementing before
2384 second call. Remove errind as it now duplicates last_optind.
2386 2001-12-11 Christopher Faylor <cgf@redhat.com>
2388 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2390 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2391 Richard Henderson <rth@redhat.com>
2393 * Makefile.am: Add support for xstormy16.
2394 * configure.tgt: Add support for xstormy16.
2395 * Makefile.in: Regenerate.
2396 * emulparams/elf32xstormy16.sh: New file.
2397 * scripttempl/xstormy16.sc: New file.
2399 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2401 * Makefile.in (LIB_PATH): Make configurable.
2402 (GENSCRIPTS): Set LIB_PATH in environment.
2403 * configure.in: Substitute LIB_PATH.
2404 * configure: Regenerate.
2405 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2406 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2408 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2410 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2411 describing the -N option so that it is easier to translate into
2414 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2416 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2417 statements describing a single option with a single, newline
2418 escaped fprintf. This allows better translation into other
2421 * ldmain.c (add_archive_element): Combine multiple strings
2422 into a single string to permit better translation into other
2425 2001-12-05 Tom Rix <trix@redhat.com>
2427 * Makefile.am: Remove eaixppc64.
2428 * Makefile.in: Regenerate.
2430 2001-12-04 Tom Rix <trix@redhat.com>
2432 * emultempl/aix.em (choose_target): Change default target to
2433 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2435 (gld*_read_file): Fix typo.
2436 (change_symbol_mode): Add prototype.
2439 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2440 * emulparams/aixrs6.sh : Same.
2441 * emulparams/ppcmacos.sh : Same.
2442 * emulparams/aixppc64.sh : Delete file.
2443 * emultempl/aix.em : Formatting changes.
2445 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2447 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2448 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2450 (OTHER_END_SYMBOLS): Fix formatting.
2451 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2452 (OTHER_END_SYMBOLS): Fix formatting.
2454 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2456 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2458 2001-12-02 Tom Rix <trix@redhat.com>
2460 * configure.tgt : Remove eaixppc64 emulations.
2461 * Makefile.in : Remove eaixppc64.c
2462 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2463 (ldemul_default_target): Same.
2464 * emultempl/gld960.em (gld960_choose_target): Same.
2465 * emultempl/gld960c.em (gld960_choose_target): Same.
2466 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2467 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2468 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2469 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2470 * emultempl/aix.em (choose_target): New function. Handle emulation of
2473 2001-11-27 H.J. Lu <hjl@gnu.org>
2475 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2476 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2477 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2478 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2479 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2480 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2481 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2482 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2484 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2487 (REL_SDATA): Likewise.
2488 (REL_SBSS): Likewise.
2489 (REL_SDATA2): Likewise.
2490 (REL_SBSS2): Likewise.
2491 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2494 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2496 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2498 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2500 2001-11-22 H.J. Lu <hjl@gnu.org>
2502 * Makefile.in: Regenerated with automake based on automake
2503 1.4-8 in RedHat 7.1.
2505 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2507 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2508 (config.status): Delete rule.
2509 Add extra dependencies to cover sourced emulparams files.
2510 * Makefile.in: Regenerate.
2512 * scripttempl/elf.sc: Order <section>, <section>.* and
2513 corresponding linkonce sections as seen in input files.
2514 Formatting fixes. Zero vma of all sections if not relocating.
2515 (STACK): Define and insert if STACK_ADDR defined.
2516 (OTHER_RELOCATING_SECTIONS): Delete.
2517 (OTHER_END_SYMBOLS): Define.
2518 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2519 (OTHER_READWRITE_SECTIONS): Likewise.
2520 (OTHER_GOT_SECTIONS): Likewise.
2521 (OTHER_SDATA_SECTIONS): Likewise.
2522 (OTHER_BSS_SECTIONS): Likewise.
2523 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2524 (OTHER_READWRITE_SECTIONS): Likewise.
2525 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2526 (OTHER_READWRITE_SECTIONS): Likewise
2528 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2529 (STACK_ADDR): Define.
2530 * emulparams/armelf_oabi.sh: As for armelf.sh.
2531 * emulparams/elf32mcore.sh: As for armelf.sh.
2532 * emulparams/h8300elf.sh: As for armelf.sh.
2533 * emulparams/mn10200.sh: As for armelf.sh.
2534 * emulparams/shelf.sh: As for armelf.sh.
2536 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2537 (OTHER_END_SYMBOLS): Define.
2538 * emulparams/m32relf.sh: As for elf32fr30.sh.
2539 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2540 * emulparams/h8300self.sh: As for elf32fr30.sh.
2542 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2543 defines with RELOCATING test.
2544 (OTHER_SDATA_SECTIONS): Likewise.
2545 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2546 (OTHER_END_SYMBOLS): ..this.
2547 * emulparams/crislinux.sh: As for criself.sh.
2549 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2551 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2552 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2553 normal and linkonce sections as seen in input files.
2554 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2555 (TEXT_DYNAMIC): Likewise.
2556 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2557 (OTHER_SDATA_SECTIONS): Likewise.
2558 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2559 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2560 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2561 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2562 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2563 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2564 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2565 sections as seen in input files.
2566 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2567 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2569 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2570 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2571 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2572 (OTHER_SECTIONS): Instead, use this..
2573 (OTHER_END_SYMBOLS): ..and this.
2575 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2576 * emulparams/elf32bsmip.sh: Likewise.
2577 * emulparams/elf32btsmip.sh: Likewise.
2578 * emulparams/elf32ebmip.sh: Likewise.
2579 * emulparams/elf32lmip.sh: Likewise.
2580 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2581 * emulparams/elf32lsmip.sh: Likewise.
2582 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2583 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2584 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2585 * emulparams/elf64btsmip.sh: Likewise.
2586 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2587 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2588 * emulparams/elf32ppclinux.sh: Likewise.
2589 * emulparams/elf32ppcsim.sh: Likewise.
2590 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2591 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2592 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2593 * emulparams/h8300self.sh: Likewise.
2594 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2595 * emulparams/sh.sh: Comment.
2596 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2597 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2598 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2600 2001-11-21 David Heine <dlheine@tensilica.com>
2601 Alan Modra <amodra@bigpond.net.au>
2603 * ldlang.c (map_input_to_output_sections): Replace "break"
2604 accidentally removed with 2001-08-03 change.
2605 (lang_gc_sections_1): Likewise.
2607 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2609 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2611 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2613 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2614 of false when calling lang_size_sections.
2615 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2617 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2619 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2620 function when LDEMUL_FINISH isn't set to the same name. Don't
2621 call ${LDEMUL_FINISH}.
2622 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2623 * emultempl/armelf.em (arm_elf_finish): Call
2624 gld${EMULATION_NAME}_finish.
2625 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2626 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2627 hppaelf_layout_sections_again if necessary.
2628 (need_laying_out): New var.
2629 (hppaelf_layaout_sections_again): Rename to
2630 hppaelf_layout_sections_again. Clear need_laying_out.
2631 (PARSE_AND_LIST_OPTIONS): Format text.
2633 2001-11-14 H.J. Lu <hjl@gnu.org>
2635 * emultempl/armelf.em (arm_elf_finish): Renamed from
2636 gld${EMULATION_NAME}_finish.
2637 (LDEMUL_FINISH): Set to arm_elf_finish.
2639 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2641 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2642 (struct ld_emulation_xfer_struct): Use it.
2644 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2646 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2647 additional symbols referenced by newer crt0.o files from HP.
2649 2001-11-12 Anthony Green <green@redhat.com>
2651 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2653 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2655 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2656 * Makefile.in: Regenerate.
2658 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2660 * ld.texinfo: Use @command for commands, @option for options.
2661 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2663 * Makefile.in: Rebuild.
2665 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2667 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2668 Add support for targets.
2670 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2672 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2673 * configure: Regernate.
2674 * po/fr.po: New file.
2675 * po/sv.po: New file.
2677 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2679 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2680 as little endian default and to support big endian.
2682 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2684 * ld.texinfo (Options): Document new option, -nostdlib.
2685 * lexsup.c (OPTION_NOSTDLIB): New definition.
2686 (ld_options): Add entry for "nostdlib".
2687 (parse_args): Handle OPTIONS_NOSTDLIB.
2688 * ldfile.c (ldfile_add_library_path): Don't add directories
2689 to the search path if they weren't specified on the command line
2690 and -nostdlib was specified.
2691 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2693 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2695 * lexsup.c (parse_args): Prevent infinite parsing loop when
2696 "-rpath.a" is specified on the command line.
2697 Replace calls to fprintf with calls to einfo.
2699 2001-10-31 John Marshall <jmarshall@acm.org>
2701 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2702 appear only once across all the linker scripts involved in a link
2703 invocation no longer applies. Make the documentation reflect
2706 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2708 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2710 (sh-*-linux*): Added targ_extra_libpath.
2712 2001-10-31 David Heine <dlheine@tensilica.com>
2714 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2715 for padding statements.
2717 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2719 * configure.tgt (mmix-*-*): New target.
2720 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2721 Add dependencies to match.
2722 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2723 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2724 scripttempl/mmo.sc: New files.
2725 * gen-doc.texi: @set MMIX.
2726 * ld.texinfo: Ditto.
2727 [MMIX] Add MMIX node.
2728 * Makefile.in: Regenerate.
2730 2001-10-29 Kazu Hirata <kazu@hxi.com>
2732 * ldlang.c: Fix a comment typo.
2734 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2736 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2737 entries, and match *-*-linux*.
2739 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2741 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2742 with ldlex_script, ldlex_popstate.
2743 (ifile_p1): Likewise.
2744 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2746 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2747 to 1. Don't BEGIN(SCRIPT).
2748 (lex_redirect): Similarly.
2749 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2751 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2753 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2754 __EH_FRAME_END__ and accept eh frames into data section.
2755 Add ctor and dtor sections.
2757 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2759 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2760 (auto-export): Fix indentation.
2762 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2764 * pe-dll.c (autofilter_objectlist): Add startup objects
2766 (auto-export): Constify char * p.
2767 Extract file basename and use strcmp rather than ststr
2770 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2772 * ldmain.c (get_emulation): Improve comment about the handling
2775 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2777 * po/POTFILES.in: Regenerate.
2779 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2781 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2782 -z nocopyreloc and -z nocombreloc usage strings.
2784 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2786 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2789 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2791 * scripttempl/armaout.sc: Place .bss section after end of aligned
2792 data section to match behaviour of aout code in constructrion of
2795 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2797 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2798 startup files for mingw32 dlls to list.
2800 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2802 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2804 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2806 * configure.tgt (targ): Add arm9e-*-elf.
2808 2001-10-05 H.J. Lu <hjl@gnu.org>
2810 * genscripts.sh: Fix a typo in the last change.
2812 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2814 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2815 -z nocombreloc in usage.
2817 2001-10-03 Jim Blandy <jimb@redhat.com>
2819 * genscripts.sh: Include a comment at the top of each generated
2820 script, explaining its purpose.
2822 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2824 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2825 * NEWS: Mention -z nocopyreloc.
2826 * ld.texinfo (Options): Describe nocopyreloc.
2828 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2830 * configure: Regenerate.
2832 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2834 * ldver.h (ld_program_version): Remove declaration.
2835 * lexsup.c (parse_args): Move printing of copyright message..
2836 * ldver.c (ldversion): .. to here.
2837 Use BFD_VERSION_STRING in place of BFD_VERSION.
2838 (ld_program_version): Remove.
2839 * Makefile.am (Makefile): Depend on bfd/configure.in.
2841 * Makefile.in: Regenerate.
2843 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2845 * Makefile.am: Update dependencies with "make dep-am".
2846 * Makefile.in: Regenerate.
2848 2001-09-29 John Reiser <jreiser@BitWagon.com>
2850 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2851 * lexsup.c: Add --no-define-common commandline option.
2852 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2853 * ldlex.l: Likewise.
2854 * ld.h: Add command_line.inhibit_common_definition.
2855 * ldmain.c (main): Initialize.
2856 * ld.texinfo: Document.
2858 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2860 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2862 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2864 * ldmisc.c (USE_STDARG): Remove.
2865 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2870 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2871 declarations. Update copyright.
2873 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2875 * pe-dll.c: Remove obsoleted declaration of
2876 pe_get_data_import_dll_name.
2877 (pe_create_import_fixup): Fix thinko.
2879 * ld.texinfo(enable-auto-import): Clarify the explanation.
2881 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2883 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2884 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2885 DLL_SUPPORT controlled code.
2887 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2889 * emultempl/pe.em(pe_data_import_dll): Make static.
2890 (pe_get_data_import_dll_name): New accessor function.
2891 * pe-dll.c(pe_create_import_fixup): call
2892 pe_get_data_import_dll_name() from pe.em, instead of
2893 directly accessing pe_data_import_dll variable from pe.em.
2895 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2897 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2898 (def_file_add_directive): Use ISSPACE instead of isspace.
2899 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2900 isdigit/isxdigit/isalpha/isalnum.
2901 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2902 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2903 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2904 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2906 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2907 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2909 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2910 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2911 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2912 (ctor_prio): Use ISDIGIT instead of isdigit.
2913 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2914 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2915 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2917 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2918 (stricpy): Use TOLOWER instead of isupper/tolower.
2919 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2920 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2921 (lex_warn_invalid): Use ISPRINT instead of isprint.
2922 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2923 (main): For gettext, also set the LC_CTYPE locate facet.
2924 (add_keepsyms_file): Use ISSPACE instead of isspace.
2925 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2926 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2927 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2928 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2929 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2930 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2931 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2932 (quoteput): Use ISSPACE instead of isspace.
2933 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2936 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2938 * deffilep.y (def_stash_module): Constify "name" param.
2940 * pe-dll.c: Replace CONST with const throughout.
2941 (quick_symbol): Constify "n1", "n2", "n3" params.
2942 (make_singleton_name_thunk): Constify "import" param. Make
2943 "buffer_len" a size_t.
2944 (make_import_fixup_entry): Constify "name", "fixup_name",
2945 "dll_symname" params.
2946 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2947 (pe_get32): Likewise.
2948 (pe_implied_import_dll): Likewise.
2950 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2951 (sort_by_section_name): Likewise.
2953 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2954 (make_import_fixup): Cast printf arg, rel->address to long rather
2956 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2958 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2960 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2961 defines BufferSize. Increase buffer size by one.
2963 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2965 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2967 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2969 * configure.tgt: Add arm-openbsd target.
2971 2001-09-12 H.J. Lu <hjl@gnu.org>
2973 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2975 (ALL_64_EMULATIONS): Here.
2976 * Makefile.in: Regenerated.
2978 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2980 * emultempl/pe.em(make_import_fixup): change signature to
2981 take asection as well as arelec; we need this for proper
2982 error reporting. Only call pe_create_import_fixup() if
2983 there is no attempt to add a constant addend to the reloc;
2984 otherwise, report error condition.
2985 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2986 since final argument is a pointer to make_import_fixup().
2987 Change call to cb() to match make_import_fixup() signature.
2988 (make_import_fixup_mark): make buffer_len unsigned.
2989 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2991 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2993 * ld.texinfo: add verbose documentation for auto-import
2994 direct-addressing workaround, to compliment the terse
2997 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2999 * scripttempl/v850.sc: Add gcc_except_table sections.
3001 2001-09-11 Jeffrey A Law (law@cygnus.com)
3003 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3004 * emulparams/h8300self.sh: Similarly.
3006 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3008 * ld.texinfo (Options, --stack): Correct default value for stack
3011 2001-09-05 Tom Rix <trix@redhat.com>
3013 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3015 2001-09-03 Andreas Jaeger <aj@suse.de>
3017 * emultempl/beos.em: Declare prototypes for comparions functions,
3020 2001-09-02 Andreas Jaeger <aj@suse.de>
3022 * emultempl/aix.em: Add missing prototype.
3023 * emultempl/lnk960.em: Likewise.
3024 * emultempl/vanilla.em: Likewise.
3025 * emultempl/armcoff.em: Likewise.
3026 * emultempl/armelf_oabi.em: Likewise.
3027 * emultempl/beos.em: Likewise.
3028 * emultempl/gld960c.em: Likewise.
3029 * emultempl/gld960.em: Likewise.
3031 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3032 for prototype declaration.
3034 2001-08-31 Eric Christopher <echristo@redhat.com>
3035 Jason Eckhardt <jle@redhat.com>
3037 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3039 2001-08-31 Andreas Jaeger <aj@suse.de>
3041 * emultempl/pe.em: Add missing prototypes.
3042 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3043 pe_find_data_imports.
3044 (pr_sym): Add unused attribute.
3046 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3048 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3049 default from coff to elf.
3051 2001-08-29 Jeff Law <law@redhat.com>
3053 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3055 * emulparams/h8300self.sh: Similarly.
3057 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3059 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3061 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3062 * configure.tgt (h8300-*-elf*): New case.
3063 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3064 * emulparams/h8300self.sh: New file.
3065 * Makefile.in: Regenerated.
3067 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3069 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3072 2001-08-27 Linus Nordberg <linus@swox.com>
3073 Alan Modra <amodra@bigpond.net.au>
3075 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3076 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3078 * Makefile.in: Regenerate.
3079 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3080 entries to correct alphabetical position.
3081 * emulparams/elf64ppc.sh: New.
3082 * emulparams/elf64lppc.sh: New.
3084 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3086 * ldmain.c (main): Declare BSIZE as static.
3088 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3090 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3091 into .rel.dyn resp. .rela.dyn if combreloc.
3092 (get_script): If .x linker script is equal to .xn, only put it
3093 once into the binary.
3094 Add .xc and .xsc scripts.
3095 (parse_args): Handle -z combreloc and -z nocombreloc.
3096 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3097 For .xc and .xsc scripts put all .rel* or .rela* input sections
3098 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3099 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3101 Strip trailing whitespace from script.
3102 Generate .xc and .xsc scripts if requested.
3103 * ldmain.c (main): Initialize link_info.combreloc and
3104 link_info.spare_dynamic_tags.
3105 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3106 (ld_options): Add --spare-dynamic-tags option.
3107 (parse_args): Likewise.
3108 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3109 * ldint.texinfo: Document .xc and .xsc linker scripts.
3110 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3112 2001-08-22 H.J. Lu <hjl@gnu.org>
3114 * emulparams/elf32fr30.sh: Add a newline.
3116 2001-08-21 Andreas Jaeger <aj@suse.de>
3118 * deffilep.y: Add missing prototypes.
3119 * pe-dll.c: Likewise.
3121 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3123 * ldlang.c (insert_pad): Fix typos in last patch.
3125 * ldlang.c: When traversing lang_statement_union_type lists,
3126 consistently use "header.next" rather than "next".
3127 * mpw-eppcmac.c: Likewise.
3128 * emultempl/beos.em: Likewise.
3129 * emultempl/hppaelf.em: Likewise.
3130 * emultempl/pe.em: Likewise.
3131 * ldlang.h (union lang_statement_union): Remove "next" field.
3133 * ldlang.c (insert_pad): Use offsetof macro.
3134 (lang_size_sections): Always neuter padding statements.
3135 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3137 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3138 passed to lang_size_sections.
3139 (pe_exe_fill_sections): Likewise.
3140 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3141 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3143 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3145 * emultempl/aix.em: Formatting fixes.
3147 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3149 * ldlang.c (insert_pad): Make use of an existing pad statement if
3150 available. Move code calculating alignment, adjusting section
3151 alignment power, and adjusting dot to ..
3152 (size_input_section): .. here. Remove unused relax param.
3153 (lang_size_sections): Change boolean `relax' param to boolean *.
3154 Adjust call to size_input_section. Make use of insert_pad to
3155 place pad after the assignment statement. If relaxing, zap
3157 (reset_memory_regions): Reset output_bfd section sizes too.
3158 (relax_again): Move to..
3159 (lang_process): ..here. Adjust call to lang_size_sections, and
3160 remove duplicated code.
3161 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3163 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3165 * ld.texinfo: Document that fill values now use the four least
3167 * emulparams/elf32fr30.sh (NOP): Update.
3168 * emulparams/elf32mcore.sh: Likewise.
3169 * emulparams/elf64_s390.sh: Likewise.
3170 * emulparams/elf_i386.sh: Likewise.
3171 * emulparams/elf_i386_be.sh: Likewise.
3172 * emulparams/elf_i386_chaos.sh: Likewise.
3173 * emulparams/elf_i386_ldso.sh: Likewise.
3174 * emulparams/elf_s390.sh: Likewise.
3175 * emulparams/elf_x86_64.sh: Likewise.
3176 * emulparams/i386moss.sh: Likewise.
3177 * emulparams/i386nw.sh: Likewise.
3178 * emulparams/m68kelf.sh: Likewise.
3179 * scripttempl/elf.sc: Update NOP comment.
3180 * scripttempl/elfi370.sc: Likewise.
3181 * scripttempl/elfm68hc11.sc: Likewise.
3182 * scripttempl/elfm68hc12.sc: Likewise.
3183 * scripttempl/nw.sc: Likewise.
3185 2001-08-15 Tom Rix <trix@redhat.com>
3187 * ldgram.y (saved_script_handle): Initialize to NULL.
3188 * ldmain.c (main): Change check on saved_script_handle.
3190 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3192 * emultempl/elf32.em: Formatting fixes.
3193 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3194 looking at sec->owner.
3195 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3196 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3197 unused code, and reorganize orphan section placement code.
3199 * ldlang.c (wild_doit): Rename to lang_add_section.
3200 * ldlang.h: Here too.
3201 * mpw-elfmips.c: And here.
3202 * emultempl/beos.em: And here.
3203 * emultempl/elf32.em: And here.
3204 * emultempl/hppaelf.em: And here.
3205 * emultempl/pe.em: And here.
3207 2001-08-13 Richard Henderson <rth@redhat.com>
3209 * emultempl/needrelax.em: New file.
3210 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3211 * Makefile.am (eelf64_ia64.c): Depend on it.
3212 * Makefile.in: Rebuild.
3214 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3216 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3217 output_section is set non-NULL.
3219 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3220 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3221 needlessly create an output_section_statement. Treat a correctly
3222 named output_section_statement with NULL bfd_section as compatible.
3224 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3226 * emultempl/generic.em: Support EXTRA_EM_FILE.
3227 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3228 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3229 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3230 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3231 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3232 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3233 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3234 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3235 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3236 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3238 2001-08-12 Richard Henderson <rth@redhat.com>
3240 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3241 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3242 scripttempl/v850.sc: Keep .jcr data.
3244 2001-08-12 H.J. Lu <hjl@gnu.org>
3245 Andrew Haley <aph@cambridge.redhat.com>
3246 Nick Clifton <nickc@redhat.com>
3248 * ldgram.y (had_script): Change name to saved_script_handle.
3249 Change type to file handle.
3250 * ld.h (had_script): Rename and retype.
3251 * ldfile.c (ldfile_open_command_file): Save the file handle
3252 used in saved_script_handle.
3253 * lexsup.c (parse_args): Do not allow -c option to alter
3254 saved_script_handle.
3255 * ldmain.c (main): Print out the linker script used if
3256 --verbose is given. Check saved_script_handle to obtain the
3257 external linker script used, or if NULL, dump the builtin
3259 * ld.texinfo: Document that --verbose now dumps the linker
3260 script used, regardless of whether it was an internal or an
3263 2001-08-10 Andreas Jaeger <aj@suse.de>
3265 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3267 * configure: Regenerate.
3269 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3271 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3273 * scripttempl/elf.sc: Move non-text .dynamic section before
3274 .plt/.got/.sdata* group.
3275 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3276 (OTHER_SDATA_SECTIONS): Add.
3277 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3279 * emulparams/crislinux.sh: Likewise.
3280 * emulparams/elf32b4300.sh: Likewise.
3281 * emulparams/elf32bmip.sh: Likewise.
3282 * emulparams/elf32bmipn32.sh: Likewise.
3283 * emulparams/elf32bsmip.sh: Likewise.
3284 * emulparams/elf32btsmip.sh: Likewise.
3285 * emulparams/elf32ebmip.sh: Likewise.
3286 * emulparams/elf32elmip.sh: Likewise.
3287 * emulparams/elf32l4300.sh: Likewise.
3288 * emulparams/elf32lmip.sh: Likewise.
3289 * emulparams/elf32lsmip.sh: Likewise.
3290 * emulparams/elf32ltsmip.sh: Likewise.
3291 * emulparams/elf64bmip.sh: Likewise.
3292 * emulparams/elf64btsmip.sh: Likewise.
3293 * emulparams/elf64ltsmip.sh: Likewise.
3295 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3297 * genscripts.sh: Source the emulparams script before each output
3298 script is generated so that variables like `RELOCATING' may affect
3299 variables defined in the emulparams script.
3301 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3303 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3306 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3307 ie. iterate over wild_statement.section_list.
3308 (gld${EMULATION_NAME}_place_orphan): Likewise.
3310 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3312 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3313 .fini[0-4] sections used by _exit
3314 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3315 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3316 * scripttempl/elfm68hc11.sc: Likewise.
3318 2001-08-03 H.J. Lu <hjl@gnu.org>
3320 * emultempl/beos.em (init): Add the missing initialization.
3322 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3324 * ld.texinfo (Input Section Basics): Clarify ordering of output
3326 * ldlang.c (callback_t): Add wildcard_list param.
3327 (walk_wild_section): Remove "section" param. Rewrite for
3328 lang_wild_statement_type change. Remove unique_section_p test.
3329 (walk_wild_file): Remove "section" param.
3330 (walk_wild): Remove "section" and "file" params.
3331 (lang_gc_wild): Likewise.
3332 (wild): Likewise. Modify for lang_wild_statement_type change.
3333 (wild_sort): Likewise. Add "sec" param.
3334 (gc_section_callback): Likewise.
3335 (output_section_callback): Likewise. Do unique_section_p test.
3336 (map_input_to_output_sections): Modify call to wild.
3337 (lang_gc_sections_1): Likewise.
3338 (print_wild_statement): Modify for lang_wild_statement_type
3340 (lang_add_wild): Replace filename, filenames_sorted param with
3341 filespec. Replace section_name, sections_sorted,
3342 exclude_filename_list with section_list.
3343 * ldlang.h (lang_add_wild): Here too.
3344 (lang_wild_statement_type): Replace section_name, sections_sorted,
3345 and exclude_filename_list with section_list.
3346 * ldgram.y (current_file): Delete.
3347 (%union): Add wildcard_list.
3348 (file_NAME_list): Set type to wildcard_list. Build a linked list
3349 rather than calling lang_add_wild for each entry.
3350 (input_section_spec_no_keep): Call lang_add_wild here instead.
3351 * ld.h (struct wildcard_list): Declare.
3352 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3354 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3356 * ldmain.c (main): initialize link_info.pei386_auto_import
3357 * pe-dll.c: new tables for auto-export filtering
3358 (auto_export): change API, pass abfd for contextual filtering.
3359 Loop thru tables of excluded symbols instead of comparing
3362 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3364 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3365 static variable current_sec (static struct sec *). Add
3366 forward declaration for add_bfd_to_link.
3367 (process_def_file): Don't export undefined symbols. Do not
3368 export symbols starting with "_imp__". Call auto_export()
3370 (pe_walk_relocs_of_symbol): New function.
3371 (generate_reloc): add optional extra debugging
3372 (pe_dll_generate_def_file): eliminate extraneous initial blank
3374 (make_one): enlarge symtab to make room for __nm__ symbols
3375 (DATA auto-import support).
3376 (make_singleton_name_thunk): New function.
3377 (make_import_fixup_mark): New function.
3378 (make_import_fixup_entry): New function.
3379 (pe_create_import_fixup): New function.
3380 (add_bfd_to_link): Specify that 'name' argument is a CONST
3382 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3383 declare new functions pe_walk_relocs_of_symbol and
3384 pe_create_import_fixup.
3385 * emultempl/pe.em: add new options --enable-auto-import,
3386 --disable-auto-import, and --enable-extra-pe-debug.
3387 (make_import_fixup): New function.
3388 (pe_find_data_imports): New function.
3389 (pr_sym): New function.
3390 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3391 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3394 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3396 * ld.texinfo: add additional documentation for
3397 --export-all-symbols. Document --out-implib,
3398 --enable-auto-image-base, --disable-auto-image-base,
3399 --dll-search-prefix, --enable-auto-import, and
3400 --disable-auto-import.
3401 * ldint.texinfo: Add detailed documentation on auto-import
3404 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3406 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3409 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3411 * Makefile.am: Update dependencies with "make dep-am".
3412 * Makefile.in: Regenerate
3414 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3416 * ldcref.c (check_section_sym_xref): New function.
3417 (check_nocrossrefs): Call it.
3418 (check_nocrossref): Interate over h->refs here instead of..
3419 (check_refs): ..here. Pass in the symbol name, section, and bfd
3420 rather than hash_entry pointers.
3421 (struct check_refs_info): Keep symbol name rather than hash entry.
3423 (check_reloc_refs): Tweak for above changes in check_refs_info.
3424 Only report references to section syms when symname is NULL to
3425 prevent duplicate messages for the same reloc.
3427 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3429 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3430 available. Do not print NULL trees.
3431 (exp_print_token): Print unknown tokens with values > 126 as
3432 decimal values not ASCII characters.
3434 * ldlang.c (lang_leave_overlay): If a region is specified assign
3435 it to all sections inside the overlay unless they have been
3436 assigned to the own, non-default, memory region.
3438 * README: Add header for consistency with other README files.
3440 2001-07-14 H.J. Lu <hjl@gnu.org>
3442 * emultempl/elf32.em (output_prev_sec_find): Never return
3443 bfd_abs_section_ptr, bfd_com_section_ptr nor
3444 bfd_und_section_ptr.
3446 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3448 * Makefile.am (em32relf.c): Change dependency from generic.em to
3450 * Makefile.in: Regenerate.
3452 2001-07-14 matthew green <mrg@eterna.com.au>
3454 * configure.tgt (i386-*-netbsdelf*): New target.
3455 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3457 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3459 * emultempl/elf32.em (output_prev_sec_find): New.
3460 (place_orphan): Use it.
3462 2001-07-11 H.J. Lu <hjl@gnu.org>
3464 * ldmain.c (main): Fix typos in the last change.
3466 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3468 * ldmain.c (main): Disallow -F and -f without -shared.
3470 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3472 * emultempl/pe.em (after_open): Check for the output_bfd not
3473 having any coff_data structure allocated to it.
3475 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3477 * emultempl/elf32.em: Do not assuming that contents of the buffer
3478 returned from basename function will remain unchanged accross other
3481 2001-07-03 H.J. Lu <hjl@gnu.org>
3483 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3484 2001-07-03. It creates dynamic entries even for static binaries.
3486 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3488 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3489 (DYNAMIC): Use it to reserve few dynamic entries for
3492 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3494 * emulparams/hppa64linux.sh: New file.
3495 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3496 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3497 (ehppa64linux.c): Add rule to make it.
3499 * Makefile.in: Regenerate.
3501 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3503 * ld.texinfo (Options, -r): Mention restrictions when using
3504 different object formats.
3506 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3508 * ldlang.c (lang_check): Emit fatal error if relocatable link
3509 between different object flavours with relocations in input.
3511 2001-06-19 H.J. Lu <hjl@gnu.org>
3513 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3514 (--version-script): Mention the language support.
3516 2001-06-19 H.J. Lu <hjl@gnu.org>
3518 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3520 2001-06-18 H.J. Lu <hjl@gnu.org>
3522 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3523 (diststuff): Add $(MANS).
3524 * Makefile.in: Regenerated.
3528 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3530 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3531 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3532 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3533 * ld.h (args_type): Remove member export_dynamic. All users
3534 changed to use struct bfd_link_info member.
3536 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3537 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3538 * Makefile.in: Regenerate.
3540 2001-06-18 H.J. Lu <hjl@gnu.org>
3542 * ldlang.c (init_os): Add the newline to the einfo call.
3543 (lang_check): Likewise.
3544 (lang_do_version_exports_section): Likewise.
3546 2001-06-15 H.J. Lu <hjl@gnu.org>
3548 * lexsup.c (parse_args); Save optind to report unrecognized
3551 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3553 * ldlang.c (lang_check): Emit fatal error if relocatable link
3554 between different object flavours.
3556 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3557 Set new link_info member export_dynamic.
3558 * ldmain.c (main): Initialize new link_info member export_dynamic.
3560 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3562 * ldlang.c (walk_wild): Only call walk_wild_file if
3563 lookup_name returns something.
3564 (lookup_name): If load_symbols fails, return NULL.
3565 (load_symbols): Change to a boolean function.
3566 (open_input_bfds): If load_symbols fails then do not make the
3569 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3571 * ldlang.c (record_bfd_errors): Remove.
3573 * emultempl/aix.em: Fix copyright dates.
3575 2001-06-07 Andreas Jaeger <aj@suse.de>
3577 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3578 (TEXT_START_ADDR): Likewise.
3580 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3582 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3584 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3586 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3588 2001-05-31 H.J. Lu <hjl@gnu.org>
3590 * ldlang.c (open_input_bfds): Don't change the bfd error
3591 handler whilst loading symbols.
3593 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3595 * configure.tgt: Remove i370-mvs architecture, it is not currently
3598 2001-05-25 H.J. Lu <hjl@gnu.org>
3600 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3601 like emulparams/aixppc.sh.
3603 2001-05-25 H.J. Lu <hjl@gnu.org>
3605 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3606 setting of output_filename after bfd_scan_arch.
3607 * emultempl/pe.em: Likewise.
3609 2001-05-25 H.J. Lu <hjl@gnu.org>
3611 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3612 like emulparams/aixppc.sh.
3614 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3615 instead of ${srcdir}/emultempl/stringify.sed.
3617 2001-05-25 Timothy Wall <twall@oculustech.com>
3619 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3622 2001-05-25 Alan Modra <amodra@one.net.au>
3624 * configure.host: Replace linuxoldld with linux*oldld.
3625 * configure.tgt: Likewise.
3627 2001-05-24 H.J. Lu <hjl@gnu.org>
3629 * emultempl/stringify.sed: Removed again.
3631 2001-05-24 H.J. Lu <hjl@gnu.org>
3633 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3634 (gld${EMULATION_NAME}_before_parse): Initialize
3635 ldfile_output_architecture, ldfile_output_machine and
3636 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3637 * emultempl/beos.em: Likewise.
3638 * emultempl/elf32.em: Likewise.
3639 * emultempl/linux.em: Likewise.
3640 * emultempl/mipsecoff.em: Likewise.
3641 * emultempl/pe.em: Likewise.
3642 * emultempl/sunos.em: Likewise.
3644 2001-05-24 Tom Rix <trix@redhat.com>
3646 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3647 udate import file format.
3648 (change_symbol_mode) New, same
3649 (is_syscall) New, same
3650 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3651 * emulparams/aixppc64.sh : same
3652 * emulparams/aixrs6.sh : same
3653 * emulparams/ppcmacos.sh : same
3654 * emultempl/aix.em : use strtoull to parse options
3655 * Makefile.am : add eaixppc64 emulation for xcoff64
3656 * Makefile.in : same
3657 * configure.tgt : same
3659 * scripttempl/aix.sc : default text section offset to 0x10000000
3660 default data section offset to 0x20000000
3661 add .sv3264 and .sv64 pseudo sections
3662 loader and debug sections use the currect section offset.
3664 * emultempl/aix.em : Add xcoff64 support
3665 Add -binitfini support
3666 (gld${EMULATION_NAME}_before_parse) -binitfini
3667 (gld${EMULATION_NAME}_parse_args) same
3668 (gld${EMULATION_NAME}_before_allocation) format change for special
3671 * emulparams/aixppc64.sh : New file for xcoff64 support
3673 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3675 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3676 variable to avoid non-portable shell construct.
3678 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3680 * ldmain.c (get_emulation): Add -mips5 command line argument.
3682 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3684 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3685 (ELF_INTERPRETER_NAME): Define it.
3686 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3688 * configure.tgt (targ_emul, targ_extra_emuls)
3689 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3690 as primary, elf_i386 as extra.
3691 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3692 (eelf_i386_ldso.c): New rule.
3693 * Makefile.in: Rebuilt.
3695 2001-05-22 Nick Clifton <nickc@redhat.com>
3697 * lexsup.c (ld_options): Allow -I to be an alias for
3698 --dynamic-linker. This is for Solaris compatability.
3699 * ld.texinfo: Document that -I can be used.
3702 2001-05-16 Alan Modra <amodra@one.net.au>
3704 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3705 whether an input section is the first one assigned to an output
3707 Assorted formatting fixes.
3709 2001-05-14 DJ Delorie <dj@delorie.com>
3711 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3712 * Makefile.in: Ditto.
3714 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3716 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3717 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3719 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3721 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3723 * ldlang.c (lang_process): Call bfd_merge_sections.
3725 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3727 * ldgram.y: Fix typo.
3729 2001-05-03 H.J. Lu <hjl@gnu.org>
3731 * emultempl/elf32.em: Include "libiberty.h".
3732 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3733 basename of the bfd filename.
3734 (gld${EMULATION_NAME}_stat_needed): Likewise.
3735 (gld${EMULATION_NAME}_try_needed): Likewise.
3736 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3738 2001-05-02 H.J. Lu <hjl@gnu.org>
3740 * emultempl/pe.em: Include <ctype.h>.
3742 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3744 * emulparams/elf32openrisc.sh: New file.
3746 * Makefile.am: Add OpenRISC target.
3747 * Makefile.in: Regenerated.
3749 * configure.tgt: Add openrisc-*-* mapping.
3751 2001-05-02 Nick Clifton <nickc@redhat.com>
3753 * emultempl/aix.em: Replace buystring with xstrdup.
3754 * emultempl/beos.em: Replace buystring with xstrdup.
3756 2001-05-02 H.J. Lu <hjl@gnu.org>
3758 * ldfile.c: Include "libiberty.h".
3759 * ldlex.l: Likewise.
3761 * ldmisc.c (buystring): Removed.
3762 * ldmisc.h: Likewise.
3764 * ldfile.c: Replace buystring with xstrdup.
3765 * ldlang.c: Likewise.
3766 * ldlex.l: Likewise.
3767 * ldmain.c: Likewise.
3768 * ldmisc.c: Likewise.
3769 * lexsup.c: Likewise.
3770 * mpw-eppcmac.c: Likewise.
3772 2001-04-30 Andreas Jaeger <aj@suse.de>
3774 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3776 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3778 * ldlang.c (load_symbols): Give emulation a chance
3779 to process unrecognized file before fatal error is
3780 reported, not after.
3782 2001-04-27 Sean McNeil <sean@mcneil.com>
3784 * configure.tgt: Add arm-vxworks target.
3785 * scripttempl/armcoff.sc: Support .text or .data as a section name
3789 2001-04-13 J.T. Conklin <jtc@redback.com>
3791 * ld.texinfo: Document --fatal-warnings.
3794 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3795 warnings have been turned into errors.
3796 * lexsup.c (OPTION_WARN_FATAL): Define.
3797 (ld_options): Entry for --fatal-warnings.
3798 (parse_args): Handle OPTION_WARN_FATAL.
3799 * ld.h (ld_config_type): Add fatal_warnings field.
3801 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3803 * ldmain.c (main): Default to discard_sec_merge.
3804 * lexsup.c (OPTION_DISCARD_NONE): Define.
3805 (ld_options): Add --discard-none.
3806 (parse_args): Handle OPTION_DISCARD_NONE.
3807 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3808 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3809 all its input sections match.
3811 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3813 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3814 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3815 (eelf32ltsmip.c): New target.
3816 (eelf64btsmip.c): Likewise.
3817 (eelf64ltsmip.c): Likewise.
3818 * Makefile.in: Regenerated.
3820 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3822 (mips*-*-linux-gnu*): Likewise.
3824 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3826 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3828 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3831 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3833 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3834 correct value of __Stext here.
3835 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3838 * emulparams/crislinux.sh: Remove FIXME.
3840 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3842 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3843 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3845 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3847 * configure.tgt (cris-*-*): Change default emulation to criself.
3848 (cris-*-*aout*): New rule.
3850 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3852 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3853 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3855 2001-03-26 Andreas Jaeger <aj@suse.de>
3857 * ld.texinfo (Overview): Fix syntax in texi code.
3859 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3861 * ld.texinfo: Put @c man indications to generate the ld man page.
3862 When generating man, define all the variables. Define SEEALSO
3863 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3864 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3865 (ld.1): Generate from ld.texinfo.
3866 * Makefile.in: Regenerate.
3868 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3870 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3871 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3873 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3875 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3876 is an absolute path look only for this file and not along the path.
3878 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3880 * emultempl/elf32.em (OPTION_GROUP): New macro.
3881 Add new option Bgroup to longopts.
3882 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3883 (gld*_list_options): Add -Bgroup and -z defs.
3884 * ld.1: Document -Bgroup and -z defs.
3885 * ld.texinfo: Likewise.
3887 2001-03-07 Michael Meissner <meissner@redhat.com>
3889 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3890 with sections created by -fdata-sections.
3891 (.dynbss,.bss): Ditto.
3893 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3895 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3896 after_allocation_default, not gld..._before_allocation.
3898 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3900 * configure.in (BFD_VERSION): New.
3901 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3902 * configure: Regenerate.
3903 * Makefile.am: Run "make dep-am"
3904 * Makefile.in: Regenerate.
3906 2001-02-26 Timothy Wall <twall@cygnus.com>
3908 * emulparams/elf64_aix.sh: Add additional read-only sections;
3909 uncomment lines which are now required.
3911 2001-02-26 H.J. Lu <hjl@gnu.org>
3913 * ldlang.c (open_input_bfds): Set the bfd error handler so
3914 that problems can be caught whilst loading symbols.
3915 (record_bfd_errors): New function: Report BFD errors and mark
3916 the executable output as being invalid.
3918 2001-02-22 Timothy Wall <twall@cygnus.com>
3920 * configure.host: Add configuration for ia64-*-aix*.
3921 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3922 Add dependencies for eelf64_aix.c.
3923 * Makefile.in: Regenerate.
3924 * configure.tgt: Add ia64-*-aix* mapping.
3925 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3927 2001-02-20 H.J. Lu <hjl@gnu.org>
3929 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3930 false if we found the file.
3932 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3934 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3935 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3937 2001-02-18 lars brinkhoff <lars@nocrew.org>
3939 * Makefile.am: Add PDP-11 target.
3940 * configure.tgt: Likewise.
3941 * emulparams/pdp11.sh: New file.
3943 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3945 * configure.host: Add a generic FreeBSD configuration entry such that
3946 all [modern] FreeBSD systems on all platforms will look the same.
3948 2001-02-14 H.J. Lu <hjl@gnu.org>
3950 * configure.tgt: Remove mention of earmelf_linux26.
3952 2001-02-13 Richard Henderson <rth@redhat.com>
3954 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3956 2001-02-13 H.J. Lu <hjl@gnu.org>
3958 * ldexp.h (node_type): Add etree_provided.
3959 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3960 type to etree_provided if defined by PROVIDE. Allow updating
3962 (exp_print_tree): Handle etree_provided.
3963 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3966 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3968 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3969 .IA_64.unwind.* pattern to unwind table section and
3970 .IA_64.unwind_info* pattern to unwind info section.
3972 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3974 * Makefile.am: Add linux target for S/390.
3975 * Makefile.in: Likewise.
3976 * configure.host: Likewise.
3977 * configure.tgt: Likewise.
3978 * emulparams/elf64_s390.sh: New file.
3979 * emulparams/elf_s390.sh: New file.
3981 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3983 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3985 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3987 2001-02-06 Philip Blundell <philb@gnu.org>
3989 * Makefile.am: Remove mention of earmelf_linux26.
3990 * Makefile.in: Regenerate.
3992 2001-02-04 Philip Blundell <philb@gnu.org>
3994 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3995 * emulparams/armelf_linux26.sh: Delete.
3996 * configure.tgt: Remove mention of armelf_linux26 emulation.
3998 2001-02-01 Nick Clifton <nickc@redhat.com>
4000 * ld.1: Replace occurances of -oformat with --oformat.
4002 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4004 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4005 load_base is specified.
4007 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4009 * emultempl/elf32.em: Correct spelling in comments and listed
4012 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4014 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4015 default for the first section of a group of overlay sections.
4017 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4019 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4020 * Makefile.in: Regenerate.
4021 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4022 Check for null tool_dir.
4024 2001-01-16 Jim Wilson <wilson@redhat.com>
4026 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4027 and IA_64.unwind.info.
4029 2001-01-16 H.J. Lu <hjl@gnu.org>
4031 * ldlang.c (lang_check): Merge the private data only if the
4032 input file has contents.
4034 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4036 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4038 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4039 enabling search for libmilli. On a relocatable link, make .text
4041 (LDEMUL_AFTER_PARSE): Define.
4042 (hppaelf_finish): Correct spelling of relocatable in comments.
4044 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4045 rummage through the script for sections on the unique list.
4046 Correct length of strncmp for ".note".
4047 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4049 * ldlang.c (unique_section_list): New var.
4050 (unique_section_p): New function.
4051 (walk_wild_section): Don't match sections on unique_section_list.
4052 (lang_add_unique): New function.
4053 Correct spelling of relocatable in comments.
4055 * ldlang.h (struct unique_sections): Declare.
4056 (unique_section_list): Declare.
4057 (unique_section_p): Declare.
4058 (lang_add_unique): Declare.
4060 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4061 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4063 * ld.texinfo (--unique): Update.
4065 2001-01-13 Nick Clifton <nickc@redhat.com>
4067 * lexsup.c (parse_args): Remove spurious white space.
4069 2001-01-12 Nick Clifton <nickc@redhat.com>
4071 * lexsup.c (parse_args): Update copyright date.
4073 2001-01-12 Philip Blundell <pb@futuretv.com>
4075 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4077 2001-01-10 Kazu Hirata <kazu@hxi.com>
4079 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4080 * scripttempl/h8300h.sc: Fix formatting.
4081 * scripttempl/h8300s.sc: Likewise.
4082 * scripttempl/h8500.sc: Likewise.
4083 * scripttempl/h8500b.sc: Likewise.
4084 * scripttempl/h8500c.sc: Likewise.
4085 * scripttempl/h8500m.sc: Likewise.
4086 * scripttempl/h8500s.sc: Likewise.
4088 2000-01-07 David O'Brien <obrien@BSDi.com>
4090 * emultempl/elf32.em: Only perform Linux ld hints processing when
4093 2001-01-07 Philip Blundell <philb@gnu.org>
4095 * ld.texinfo (Bug Reporting): Update email address for reports.
4097 2000-12-31 Nick Clifton <nickc@redhat.com>
4099 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4100 options by checking for a return value of '?' not -1.
4102 2000-12-28 Nick Clifton <nickc@redhat.com>
4104 * lexsup.c (struct ld_option): Add new enum value:
4106 (ld_options[]): Change -omagic, -output and -oformat options
4107 to be EXACTLY_TWO_DASHES.
4108 (OUTPUT_COUNT): Use ARRAY_SIZE.
4109 (parse_args): Change parameter 'argc' to unsigned.
4110 Place EXACTLY_TWO_DASHES options into new really_longopts
4112 If getopt_long_only fails, try calling getopt_long using the
4113 really_longopts array.
4114 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4117 * ldlex.h: Fix prototype of parse_args.
4119 * ld.texinfo: Document that long options starting with 'o'
4120 must be preceeded by two dashes. Change example of a single
4121 dashed long option from -oformat to -trace-symbol.
4123 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4125 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4126 (longopts[]): New --no-default-excludes option.
4127 (gld_${EMULATION_NAME}_list_options): Document.
4128 (gld_${EMULATION_NAME}_parse_args): Handle.
4130 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4132 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4133 whitespace, it breaks the K&R C preprocessor.
4135 2000-12-11 DJ Delorie <dj@redhat.com>
4137 * ld.texinfo: Add notes about --whole-archive and gcc.
4139 2000-11-18 Fred Fish <fnf@be.com>
4141 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4142 (ld_options): Entry for --allow-shlib-undefined.
4143 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4144 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4146 * ld.texinfo: Document new command line switch.
4148 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4150 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4151 .fixup is actually read/write.
4152 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4153 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4154 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4156 2000-12-11 Jan Hubicka <jh@suse.cz>
4158 * NEWS: Add note about x86_64 architecture.
4160 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4162 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4163 Set DWARF2 sections to a VMA of zero.
4165 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4167 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4169 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4170 (sparc*-*-rtems*): Switched from a.out to ELF.
4172 2000-11-30 Jan Hubicka <jh@suse.cz>
4174 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4175 (eelf_x86_64.c): New.
4176 * Makefile.in: Regenerate.
4177 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4178 * emulparams/elf_x86_64.sh: New.
4180 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4182 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4183 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4185 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4186 merging non-a.out sections into CONSTRUCTING.
4188 2000-11-28 Nick Clifton <nickc@redhat.com>
4190 * ld.1 (COPYING): Mention that the GNU Free Documentation
4191 License is present in the sources, but not the output, and
4192 also available from the GNU website.
4193 (GNU Free Documentation License): Comment out this section.
4195 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4197 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4200 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4202 * ld.1: Remove old date so it does not give the impression the manpage
4205 2000-11-24 Nick Clifton <nickc@redhat.com>
4207 * configure.tgt (xscale-coff): Add target.
4208 (xscale-elf): Add target.
4210 2000-11-24 Fred Fish <fnf@be.com>
4212 * ldmain.c (main): Remove redundant init of config.make_executable
4215 2000-11-15 Richard Henderson <rth@redhat.com>
4217 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4219 2000-11-14 Kazu Hirata <kazu@hxi.com>
4221 * scripttempl/h8300.sc: Fix formatting.
4222 * scripttempl/h8300h.sc: Likewise.
4223 * scripttempl/h8300s.sc: Likewise.
4225 2000-11-14 Denis Chertykov <denisc@overta.ru>
4227 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4229 2000-11-09 Philip Blundell <pb@futuretv.com>
4231 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4232 around orphan sections whose names can be represented in C.
4234 2000-11-07 Jim Wilson <wilson@redhat.com>
4236 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4237 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4239 2000-11-06 Nick Clifton <nickc@redhat.com>
4241 * ld.texinfo: Add GNU Free Documentation License.
4242 * ldint.texinfo: Add GNU Free Documentation License.
4243 * ld.1: Add GNU Free Documentation License.
4245 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4247 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4248 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4250 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4251 Move 2000-11-02 Makefile.in changes to this file.
4252 * Makefile.in: Regenerate.
4254 2000-11-03 Nick Clifton <nickc@redhat.com>
4256 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4257 constructors and destructors.
4258 * scripttempl/h8300h.sc: Ditto.
4259 * scripttempl/h8300s.sc: Ditto.
4260 * scripttempl/h8500.sc: Ditto.
4261 * scripttempl/h8500b.sc: Ditto.
4262 * scripttempl/h8500c.sc: Ditto.
4263 * scripttempl/h8500m.sc: Ditto.
4264 * scripttempl/h8500s.sc: Ditto.
4265 * scripttempl/v850.sc: Ditto.
4266 * scripttempl/w65.sc: Ditto.
4267 * scripttempl/z8000.sc: Ditto.
4269 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4271 * Makefile.in (e_i386_chaos.c): New rule.
4272 (ALL_EMULATIONS): Added e_i386_chaos.o.
4273 * emulparams/elf_i386_chaos.sh: New file.
4274 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4276 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4278 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4279 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4280 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4281 library path suffix.
4282 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4284 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4286 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4287 for consecutive sections.
4289 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4291 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4293 * ld.texinfo: Added notes about this new option.
4295 2000-10-16 Nick Clifton <nickc@redhat.com>
4297 * emultempl/pe.em (_after_open): Add tests of return values from
4298 bfd functions. Emit appropriate error messages if necessary.
4300 2000-10-13 Nick Clifton <nickc@redhat.com>
4302 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4303 local variables - they are not used, but leave in the call to
4304 bfd_canonicalize_symtab.
4305 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4306 pe_dll_search_prefix.
4308 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4310 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4311 (longopts): New --dll-search-prefix option.
4312 (gld_${EMULATION_NAME}_list_options): Document.
4313 (gld_${EMULATION_NAME}_parse_args): Handle.
4314 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4315 dynamically, search for a dll named '<prefix><basename>.dll'
4316 in preference to 'lib<basename>.dll' if --dll-search-prefix
4319 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4321 * ldlang.c (section_already_linked): Set kept_section instead of
4324 2000-10-10 Kazu Hirata <kazu@hxi.com>
4326 * deffile.h: Fix formatting.
4327 * lexsup.c: Likewise.
4330 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4332 * pe-dll.c (make_one): Do not generate code thunk for DATA
4334 (process_def_file): deduce DATA flag for auto-export sumbols.
4336 2000-10-09 Kazu Hirata <kazu@hxi.com>
4338 * ld.h: Fix formatting.
4339 * ldcref.c: Likewise.
4340 * ldctor.h: Likewise.
4341 * ldemul.c: Likewise.
4342 * ldemul.h: Likewise.
4343 * ldexp.c: Likewise.
4344 * ldexp.h: Likewise.
4345 * ldfile.c: Likewise.
4346 * ldfile.h: Likewise.
4347 * ldlang.c: Likewise.
4348 * ldlang.h: Likewise.
4349 * ldmain.c: Likewise.
4350 * pe-dll.c: Likewise.
4352 * pe-dll.c: Revert some formatting fixes.
4354 2000-10-08 Kazu Hirata <kazu@hxi.com>
4356 * pe-dll.c: Fix formatting.
4358 2000-10-05 Kazu Hirata <kazu@hxi.com>
4360 * ldlang.c: Fix formatting.
4362 2000-10-03 DJ Delorie <dj@redhat.com>
4364 * pe-dll.c (fill_edata): initialize entire block
4365 (make_one): fill in correct section.
4367 2000-10-03 Kazu Hirata <kazu@hxi.com>
4369 * ldexp.c: Fix formatting.
4371 2000-10-02 DJ Delorie <dj@redhat.com>
4373 * emultempl/pe.em (gld_*_after_open): detect case where there two
4374 import libraries for same dll; rename one to ensure proper link
4377 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4379 (generate_edata): fix typo
4381 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4383 * scripttempl/crisaout.sc (ENTRY): Now __start.
4384 (.text): Add default setting for __start.
4385 Remove CONSTRUCTORS handling.
4386 (/DISCARD/): Add .gnu.warning.*.
4387 * emulparams/crislinux.sh (ENTRY): Now __start.
4388 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4389 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4390 (ENTRY): Now __start.
4391 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4392 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4394 2000-09-29 Kazu Hirata <kazu@hxi.com>
4396 * deffile.h: Fix formatting.
4398 * ldcref.c: Likewise.
4399 * ldctor.c: Likewise.
4400 * ldctor.h: Likewise.
4401 * ldemul.c: Likewise.
4402 * ldemul.h: Likewise.
4403 * ldexp.c: Likewise.
4404 * ldexp.h: Likewise.
4405 * ldfile.c: Likewise.
4406 * ldfile.h: Likewise.
4407 * ldlang.c: Likewise.
4408 * ldlang.h: Likewise.
4409 * lexsup.c: Likewise.
4411 * pe-dll.c: Likewise.
4413 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4415 * pe-dll.c (process_def_file): Uninitialized data wasn't
4416 exported with --export-all-symbols switch.
4418 2000-09-28 DJ Delorie <dj@redhat.com>
4420 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4421 noname work properly.
4423 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4425 * ld.texinfo (HPPA ELF32): New section.
4427 * emultempl/hppaelf.em (group_size): New.
4428 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4429 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4430 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4431 options to prevent abbreviations matching.
4432 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4433 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4435 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4437 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4438 on the m68*-*-elf target. Make it support COFF input objects.
4440 2000-09-21 Kazu Hirata <kazu@hxi.com>
4442 * ldmain.c: Fix formatting.
4443 * ldmisc.c: Likewise.
4444 * ldver.c: Likewise.
4445 * ldwrite.c: Likewise.
4447 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4449 * ldwrite.c (clone_section): Silence gcc warnings.
4451 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4453 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4454 out of memory failure.
4456 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4457 (clone_section): Handle out of memory failures. Rename var to
4458 avoid c++ reserved word.
4460 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4462 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4463 stub_name param to stub_sec_name.
4464 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4466 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4468 * emultempl/m68kelf.em: New file.
4469 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4470 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4471 * Makefile.in: Regenerate.
4473 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4475 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4478 2000-09-13 Nick Clifton <nickc@redhat.com>
4480 * ldmain.c (multiple_definition): Disable relaxation if
4481 multiple symbol definitions are encountered - otherwise the
4482 linker could abort with an assertion failure.
4484 2000-09-10 Nick Clifton <nickc@redhat.com>
4486 * mri.c: Fix formatting.
4488 2000-09-07 H.J. Lu <hjl@gnu.org>
4490 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4491 * configure: Rebuild.
4493 2000-09-07 H.J. Lu <hjl@gnu.org>
4495 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4496 * Makefile.in: Rebuild.
4498 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4500 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4501 broken list handling. Create __start_SECNAME and __stop_SECNAME
4502 when no place-holder. Add some comments. Test both SEC_CODE and
4503 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4504 Handle case where no output section statement created.
4506 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4508 * configure.tgt (sh-*-linux*): Added.
4509 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4510 * Makefile.in: Rebuilt.
4511 * emulparams/shelf_linux.sh: New file.
4512 * emulparams/shlelf_linux.sh: New file.
4514 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4516 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4517 try shuffling sections when the orphan happens to be the place
4518 holder. Keep count of unique section names generated so we speed
4519 the search for a new name.
4521 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4523 * configure: Rebuilt with new libtool.m4.
4525 2000-09-05 Nick Clifton <nickc@redhat.com>
4527 * Makefile.in: Regenerate.
4528 * aclocal.m4: Regenerate.
4529 * configure: Regenerate.
4530 * config.in: Regenerate.
4531 * po/ld.pot: Regenerate.
4533 * ldint.texinfo: Remove CVS revision marker - it foils local
4536 * emultempl/ticoff.em: Remove extraneous comma.
4538 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4540 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4541 to stub section flags.
4542 (hppa_for_each_input_file_wrapper): New.
4543 (hppa_lang_for_each_input_file): New.
4544 (lang_for_each_input_file): Define to call above.
4545 (multi_subspace): New.
4546 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4547 (PARSE_AND_LIST_PROLOGUE): Define.
4548 (PARSE_AND_LIST_LONGOPTS): Define.
4549 (PARSE_AND_LIST_OPTIONS): Define.
4550 (PARSE_AND_LIST_ARGS_CASES): Define.
4551 (hppaelf_finish): Call elf32_hppa_set_gp.
4552 (hppaelf_set_output_arch): Remove.
4553 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4555 * emulparams/hppalinux.sh (ELFSIZE): Define.
4557 (OTHER_READONLY_SECTIONS): Define.
4559 (GENERATE_SHLIB_SCRIPT): Define.
4561 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4562 to const throughout. Change `void *' to `PTR' throughout.
4563 (lang_memory_default): Function is local to file, add `static'.
4565 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4566 (ehppalinux.c): Likewise.
4567 (earmelf.c): Likewise.
4568 (earmelf_linux.c): Likewise.
4569 (earmelf_linux26.c): Likewise.
4570 * Makefile.in: Regenerate.
4572 * ld.h (ld_config_type): Add unique_orphan_sections.
4573 * lexsup.c (OPTION_UNIQUE): Define.
4574 (ld_options): Add "--unique".
4575 (parse_args): Handle it.
4576 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4577 search for an existing output section if unique_orphan_sections is
4578 set. Make use of bfd_get_unique_section_name rather than
4579 duplicating code here.
4580 * ld.texinfo: Describe --unique.
4582 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4583 optional arg to split-by-file.
4584 (parse_args): Handle them.
4585 * ld.texinfo: Update description of these options.
4586 * ldwrite.c (clone_section): Pass in the section name. Replace
4587 local code with bfd_get_unique_section_name.
4588 (split_sections): Tidy code and comments. Use a list traversal
4589 more appropriate to the list construction. Handle cooked section
4590 sizes. Split when split_by_reloc reached rather than exceeded.
4591 Track section size and split when split_by_file reached. Fix
4592 link_order_tail (even though it's not used).
4593 (ldwrite): Modify condition for calling split_sections to suit
4594 changed split_by_reloc and split_by_file.
4595 * ldmain.c (main): Init config.split_by_reloc and
4596 config.split_by_file to -1.
4597 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4598 Change split_by_file to bfd_size_type.
4600 2000-09-02 Nick Clifton <nickc@redhat.com>
4602 * configure.in: Increase version number to 2.10.91.
4603 * NEWS: Mention new ability to support removal of duplicate DWARF2
4605 * configure: Regenerate.
4606 * aclocal.m4: Regenerate.
4607 * config.in: Regenerate.
4609 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4611 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4613 * scripttempl/elf32avr.sc: Ditto.
4614 * scripttempl/elfd10v.sc: Ditto.
4615 * scripttempl/elfd30v.sc: Ditto.
4616 * scripttempl/elfi370.sc: Ditto.
4617 * scripttempl/elfm68hc11.sc: Ditto.
4618 * scripttempl/elfm68hc12.sc: Ditto.
4619 * scripttempl/elfi386beos.sc: Ditto.
4620 * scripttempl/v850.sc: Ditto.
4622 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4624 * acinclude.m4: Include libtool and gettext macros from the
4626 * aclocal.m4, configure: Rebuilt.
4628 2000-08-25 Nick Clifton <nickc@redhat.com>
4630 * ldlang.c (open_output): When choosing the target for a
4631 particular endianness, do nothing if the target is not
4634 2000-08-25 H.J. Lu <hjl@gnu.org>
4636 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4637 check -rpath nor LD_RUN_PATH for cross link.
4638 * ld.texinfo: Document the change.
4640 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4642 * NEWS: Mention support for CRIS.
4644 2000-08-23 H.J. Lu <hjl@gnu.org>
4646 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4647 the current runpath list from bfd_elf_get_runpath_list ()
4650 2000-08-22 H.J. Lu <hjl@gnu.org>
4652 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4653 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4654 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4655 trace_file_tries is non-zero.
4656 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4657 if trace_file_tries is non-zero.
4659 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4662 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4664 * NEWS: Mention i860 support.
4666 2000-08-14 Andreas Schwab <schwab@suse.de>
4668 * scripttempl/elf.sc: Fix last change to use correct comment
4671 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4673 * scripttempl/elf.sc: Add a comment giving the correspondence
4674 between sections, per-datum sections, and linkonce sections. Make
4675 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4678 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4680 * emulparams/elf32_i860.sh: New file.
4681 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4682 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4683 (eelf32_i860.c): New rule.
4684 * Makefile.in: Regenerate.
4686 2000-08-10 Nick Clifton <nickc@cygnus.com>
4688 * emulparams/mipspe.sh (ENTRY): Add definition.
4690 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4692 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4695 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4697 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4698 the final size of .bss section.
4699 * scripttempl/elfm68hc12.sc: Likewise.
4701 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4703 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4704 gld${EMULATION_NAME}_parse_args for consistency. Combine
4705 lastoptind and prevoptind vars, and keep track of last optind.
4706 (gld_${EMULATION_NAME}_list_options): Rename to
4707 gld${EMULATION_NAME}_list_options.
4709 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4711 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4712 (i586-sco-sysv5uw7.1.0).
4714 2000-07-27 H.J. Lu <hjl@gnu.org>
4716 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4717 (PARSE_AND_LIST_PROLOGUE): New.
4718 (PARSE_AND_LIST_LONGOPTS): Likewise.
4719 (PARSE_AND_LIST_OPTIONS): Likewise.
4720 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4721 (PARSE_AND_LIST_EPILOGUE): Likewise.
4723 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4725 * emultempl/armelf.em: Elide functions common to elf32.em,
4726 ie. most of the file.
4727 (arm_elf_after_open): New. Do arm specific things then call
4728 gld${EMULATION_NAME}_after_open.
4729 (arm_elf_before_allocation): New. Call
4730 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4731 (PARSE_AND_LIST_PROLOGUE): Define.
4732 (PARSE_AND_LIST_SHORTOPTS): Define.
4733 (PARSE_AND_LIST_LONGOPTS): Define.
4734 (PARSE_AND_LIST_OPTIONS): Define.
4735 (PARSE_AND_LIST_ARGS_CASES): Define.
4736 (LDEMUL_AFTER_OPEN): Define.
4737 (LDEMUL_BEFORE_ALLOCATION): Define.
4738 (LDEMUL_BEFORE_PARSE): Define.
4739 (LDEMUL_FINISH): Define.
4741 * emultempl/hppaelf.em: Similarly zap most of this file.
4742 (hppaelf_add_stub_section): Prototype.
4743 (hppaelf_layaout_sections_again): Prototype.
4744 (hook_in_stub): Prototype.
4745 (LDEMUL_SET_OUTPUT_ARCH): Define.
4746 (LDEMUL_FINISH): Define.
4747 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4749 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4750 (EXTRA_EM_FILE): New.
4751 * emulparams/armelf_linux.sh: Likewise.
4752 * emulparams/armelf_linux26.sh: Likewise.
4753 * emulparams/hppalinux.sh: Likewise.
4754 * emulparams/hppaelf.sh: Likewise.
4757 * emultempl/elf32.em: Fix formatting.
4758 (EXTRA_EM_FILE): Source it.
4759 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4760 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4761 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4762 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4763 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4764 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4765 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4766 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4767 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4768 allow functions in this file to be overridden.
4769 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4771 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4773 * emultempl/elf32.em: Reorganize file.
4775 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4777 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4778 specific option to fit 64-bit executable in the lower
4779 31-bit address range. This is done by changing start
4780 address of .interp (the very first section of executable)
4781 and then setting EF_ALPHA_32BIT elf header flag.
4783 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4785 * emultempl/m68kcoff.em: New file.
4786 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4787 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4789 * Makefile.in: Regenerate.
4791 2000-07-20 H.J. Lu <hjl@gnu.org>
4793 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4794 and "disable-new-dtags" to stop getopt from treating -d/-e as
4795 abbreviations for these options.
4797 2000-07-20 H.J. Lu <hjl@gnu.org>
4799 * ld.texinfo: Add documentation for --disable-new-dtags and
4802 * ldmain.c (main): Initialize link_info.new_dtags to false.
4804 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4805 --disable-new-dtags and --enable-new-dtags.
4806 (gld_${EMULATION_NAME}_list_options): Likewise.
4808 2000-07-05 Kenneth Block <krblock@computer.org>
4810 * lexsup.c: Add optional style to demangle switch
4811 * ld.texinfo: Document optional style to demangle switch.
4813 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4815 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4817 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4818 Regenerate dependencies.
4819 * Makefile.in: Rebuild.
4820 * configure.tgt (cris-*-*): New target.
4821 * emulparams/crisaout.sh, emulparams/criself.sh,
4822 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4823 * po/POTFILES.in, po/ld.pot: Regenerate.
4825 2000-07-20 H.J. Lu <hjl@gnu.org>
4827 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4828 Print out ignored -z options.
4830 2000-07-19 H.J. Lu <hjl@gnu.org>
4832 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4833 (PARSE_AND_LIST_PROLOGUE): New.
4834 (PARSE_AND_LIST_LONGOPTS): Likewise.
4835 (PARSE_AND_LIST_OPTIONS): Likewise.
4836 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4838 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4840 * lexsup.c (ld_options): Comment out 'z'.
4841 (parse_args): Likewise.
4843 * emultempl/elf32.em: Include "elf/common.h".
4844 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4846 (gld_${EMULATION_NAME}_list_options): Likewise.
4848 * ld.texinfo: Add documentation for the recognized -z options.
4850 2000-07-19 H.J. Lu <hjl@gnu.org>
4852 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4853 bfd_elf_set_dt_needed_soname ().
4855 2000-07-18 DJ Delorie <dj@cygnus.com>
4857 * pe-dll.c (pe_dll_id_target): check object target name also
4859 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4861 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4862 ${INIT_END} if relocating.
4863 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4865 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4867 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4868 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4869 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4870 errors introduced by the old dynamic lib search order.
4872 2000-07-17 DJ Delorie <dj@cygnus.com>
4874 * pe-dll.c (process_def_file): auto-export data items also
4875 (pe_process_import_defs): also see if _imp_ form needed
4877 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4879 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4880 for dll import libraries
4882 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4884 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4885 gcc 2.95.2 and later.
4887 2000-07-11 Kazu Hirata <kazu@hxi.com>
4889 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4892 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4894 * ldemul.h (struct lang_input_statement_struct): Remove forward
4896 (struct search_dirs): Likewise.
4897 * ldfile.h (struct lang_input_statement_struct): Likewise.
4898 Protect file from multiple inclusion.
4899 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4900 declaration from macro to file scope.
4902 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4903 * ldgram.y: Likewise here.
4904 * ldlang.c: And here.
4905 * ldmain.c: And here.
4906 * mpw-elfmips.c: And here.
4907 * mpw-eppcmac.c: And here.
4908 * emultempl/aix.em: And here.
4909 * emultempl/armcoff.em: And here.
4910 * emultempl/armelf.em: And here.
4911 * emultempl/armelf_oabi.em: And here.
4912 * emultempl/beos.em: And here.
4913 * emultempl/elf32.em: And here.
4914 * emultempl/hppaelf.em: And here.
4915 * emultempl/linux.em: And here.
4916 * emultempl/lnk960.em: And here.
4917 * emultempl/pe.em: And here.
4918 * emultempl/sunos.em: And here.
4919 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4920 * mpw-idtmips.c: Ditto.
4921 * emultempl/generic.em: Ditto.
4922 * emultempl/gld960.em: Ditto.
4923 * emultempl/gld960c.em: Ditto.
4924 * emultempl/mipsecoff.em: Ditto.
4925 * emultempl/ticoff.em: Ditto.
4926 * emultempl/vanilla.em: Ditto.
4928 * pe-dll.c: Include ldfile.h
4929 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4931 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4932 arguments to bfd_elf32_size_dynamic_sections call.
4933 (gldelf32ebmip_place_orphan): Add missing arguments to
4934 lang_leave_output_section_statement call.
4936 2000-07-10 H.J. Lu <hjl@gnu.org>
4938 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4940 (strhash): Likewise.
4941 (compute_dll_image_base): Likewise.
4942 (pe_undef_found_sym): Likewise.
4943 (pe_undef_cdecl_match): Likewise.
4944 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4945 argument "arch" with ATTRIBUTE_UNUSED.
4947 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4949 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4951 From Ryan Bradetich <rbradetich@uswest.net>
4952 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4954 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4956 Changes to create multiple linker stubs, positioned immediately
4957 before the section where they are required.
4958 * emultempl/hppaelf.em: Include elf32-hppa.h.
4959 (stub_sec, file_chain): Delete.
4960 (hppaelf_create_output_section_statements): Don't make a stub
4962 (hook_stub_info): New struct.
4963 (hook_in_stub): New function.
4964 (hppaelf_add_stub_section): New function.
4965 (hppaelf_finish): Do nothing for relocateable links. Modify the
4966 call to elf32_hppa_size_stubs. Move code for updating section
4968 (hppaelf_layaout_sections_again): ..to here, a new function.
4970 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4971 broken list handling. Pass in a pointer to the list.
4972 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4974 (hppaelf_before_parse): Prototype.
4975 (hppaelf_set_output_arch): Prototype.
4976 (hppaelf_create_output_section_statements): Prototype.
4977 (hppaelf_delete_padding_statements): Prototype.
4978 (hppaelf_finish): Prototype.
4981 * emultempl/hppaelf.em: Include ctype.h.
4982 (struct orphan_save): New.
4983 (gld${EMULATION_NAME}_place_orphan): New.
4984 (output_rel_find): New.
4985 (hppaelf_get_script): Update from elf32.em.
4986 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4987 Change emulation_name field to "${EMULATION_NAME}". Add
4988 gld${EMULATION_NAME}_place_orphan.
4990 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4991 ehppalinux.o, sort it. Regenerate dependencies.
4992 (ehppalinux.c): Depend on hppaelf.em
4993 * Makefile.in: Regenerate.
4995 * configure.tgt: targ_emul=hppalinux for hppa*linux
4997 * emulparams/hppalinux.sh: New.
4998 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5000 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5002 * lexsup.c (parse_args): Copy section name.
5004 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5006 * emultempl/pe.em: institute the following search order for
5007 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5008 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5009 static lib (libfoo.a) if none of the above are found.
5011 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5013 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5014 (longopts): New --{enable,disable}-auto-image-base options.
5015 (gld_${EMULATION_NAME}_list_options): Document.
5016 (gld_${EMULATION_NAME}_parse): Handle.
5017 (strhash): New static function.
5018 (compute_dll_image_base): New static function.
5019 (gld_${EMULATION_NAME}_set_symbols): Use.
5021 2000-07-05 DJ Delorie <dj@redhat.com>
5025 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5027 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5028 * emulparams/elf32btsmip.sh: New file.
5029 * Makefile.am: Add traditional mips target.
5030 * Makefile.in: Rebuild.
5032 2000-07-01 H.J. Lu <hjl@gnu.org>
5034 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5035 automake to use YLWRAP.
5036 * Makefile.in: Rebuild.
5038 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5040 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5041 (CLEANFILES): Add DEPA.
5042 * Makefile.in: Regenerate.
5044 2000-06-30 Timothy Wall <twall@ppc>
5046 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5047 the page in the upper octet of the address.
5049 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5051 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5053 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5055 * NEWS: arm-elf does --gc-sections too.
5057 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5059 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5061 * Makefile.in: Regenerate.
5063 2000-06-21 H.J. Lu <hjl@gnu.org>
5065 * Makefile.am: Rebuild dependency.
5066 * Makefile.in: Rebuild.
5068 2000-06-20 H.J. Lu <hjl@gnu.org>
5070 * Makefile.am: Rebuild dependency.
5071 * Makefile.in: Rebuild.
5073 2000-06-20 Timothy Wall <twall@cygnus.com>
5075 * scripttempl/tic54xcoff.sc: New.
5076 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5077 * gen-doc.texi: Add flag for TI COFF.
5078 * ld.texinfo: Add documentation for TI COFF handling switches.
5079 * emultempl/ticoff.em: New. TI COFF handling.
5080 * configure.tgt: Add tic54x target.
5081 * Makefile.am: Add tic54x target.
5082 * Makefile.in: Ditto.
5084 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5086 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5087 checking for backslashes.
5089 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5091 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5093 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5095 * NEWS: Update list of targets supporting --gc-sections.
5097 * scripttempl/elf.sc: KEEP .eh_frame contents.
5098 * scripttempl/elfd30v.sc: Same here.
5100 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5102 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5104 * Makefile.in: Rebuild.
5105 * configure.tgt: Recognize m68hc12 and m68hc11.
5106 * scripttempl/elfm68hc12.sc: New file.
5107 * emulparams/m68hc12elfb: New emulation.
5108 * emulparams/m68hc12elf: New emulation.
5109 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5110 (includes a memory.x script to define the ROM and RAM banks).
5111 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5112 New configuration files for support of Motorola 68hc11
5114 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5116 * ldmain.c (main): Only change SEC_READONLY for final link.
5118 2000-06-13 H.J. Lu <hjl@gnu.org>
5120 * configure: Regenerate.
5122 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5124 * configure.in (VERSION): Update to show this is the CVS mainline.
5126 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5128 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5129 input objects to be ECOFF.
5130 (check_sections): einfo takes %B, not %P, to print a BFD name.
5132 2000-06-05 Michael Matz <matz@ifh.de>
5134 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5137 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5139 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5141 * emulparams/avr1200.sh (STACK): Define as 0.
5142 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5143 * emulparams/avr4433.sh (STACK): Likewise.
5144 * emulparams/avr44x4.sh (STACK): Likewise.
5145 * emulparams/avr85xx.sh (STACK): Likewise.
5146 * emulparams/avrmega103.sh (STACK): Likewise.
5147 * emulparams/avrmega161.sh (STACK): Likewise.
5148 * emulparams/avrmega603.sh (STACK): Likewise.
5149 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5150 (__stack): Define from ${STACK} for main().
5152 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5154 * Makefile.am: Update dependencies with "make dep-am"
5155 * Makefile.in: Regenerate.
5157 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5159 * ldmain.c: Include filenames.h.
5160 (set_scripts_dir): Support backslashes in program name.
5162 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5164 * ldmain.c (main): When deciding if ".text" section should be
5165 read-only, don't forget to reset SEC_READONLY because it
5166 could be already set.
5168 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5170 * ld.1: Add documentation for new command line option:
5171 --section-start <sectionname>=<sectionorg>
5172 This is a generic version of -Ttext etc. which accepts
5173 any section name as a parameter instead of just text/data/
5175 * ld.texinfo: More docs.
5177 * lexsup.c: (parse_args): Recognize new command line option.
5178 (ld_options): Add new option.
5180 2000-05-18 H.J. Lu <hjl@gnu.org>
5182 * lexsup.c (parse_args): `i' == `r', not `q'.
5184 2000-05-18 Jeffrey A Law (law@cygnus.com)
5186 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5188 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5189 Rick Gorton <gorton@scrugs.lkg.dec.com>
5191 Add support for '-q' == '--emit-relocs' switch.
5192 * ldmain.c (main): Default to false.
5193 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5194 * NEWS: Describe the emitrelocations switch.
5195 * ld.texinfo: Describe the emitrelocations switch.
5197 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5199 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5200 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5201 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5204 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5206 * lexsup.c (parse_args): Update the year in the copyright notice.
5208 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5210 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5211 Replace defines with those from intl/libgettext.h to quieten gcc
5214 2000-05-10 H.J. Lu <hjl@gnu.org>
5216 * ldlang.c (open_input_bfds): Don't load the same file within
5217 a group again if the whole archive has been loaded already.
5219 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5221 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5222 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5225 2000-05-01 Jim Wilson <wilson@cygnus.com>
5227 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5229 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5230 host "ia64-*-linux-gnu*".
5232 2000-04-29 Andreas Jaeger <aj@suse.de>
5234 * ld.h: Correctly check GCC version.
5236 2000-04-25 Jeffrey A Law (law@cygnus.com)
5238 * Makefile.am: Add PA64 support. Add missing dependencies for
5240 * Makefile.in: Rebuilt.
5241 * configure.tgt: Add PA64 support (currently disabled).
5243 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5245 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5246 (output_rel_find): New function.
5247 (hold_section, hold_use): Delete.
5248 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5249 hold_interp): Make local to place_orphan.
5250 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5251 rather than place_section to find possible previous use of orphan.
5252 Similarly find the place-holder output sections. Use returned
5253 value from lang_enter_output_section_statement rather than calling
5254 lang_output_section_statement_lookup.
5255 * emultempl/armelf.em: Same here.
5256 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5258 * ldlang.c (lang_enter_output_section_statement): Return output
5260 * ldlang.h (lang_enter_output_section_statement): Change
5263 * ldlang.h (lang_output_section_statement): Export it.
5264 * ldlang.c (lang_output_section_statement): Ditto.
5266 2000-04-24 Nick Clifton <nickc@cygnus.com>
5268 * ld.texinfo (Output Section Data): Add note that section data
5269 commands cannot appear outside of section directives.
5271 2000-04-2 Matthew Green <mrg@cygnus.com>
5273 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5275 2000-04-21 Richard Henderson <rth@cygnus.com>
5276 David Mosberger <davidm@hpl.hp.com>
5278 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5279 (eelf64_ia64.c): New rule.
5280 * Makefile.in: Rebuild.
5281 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5282 * emulparams/elf64_ia64.sh: New file.
5284 2000-04-21 Richard Henderson <rth@cygnus.com>
5286 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5288 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5290 * dep-in.sed: Match space at start of file name, not at end.
5292 2000-04-18 H.J. Lu <hjl@gnu.org>
5294 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5295 lang_leave_output_section_statement () after calling
5296 lang_enter_output_section_statement ().
5297 * emultempl/armelf.em: Likewise.
5299 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5301 * emultempl/elf32.em (struct orphan_save): Add section field.
5302 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5303 better order, and place first orphan section as we did before the
5304 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5305 Don't call make_bfd_section here, let wild_doit do the job for us.
5306 Don't build a statement list when we'll only throw it away.
5307 * emultempl/armelf.em: Ditto.
5308 * emultempl/pe.em: Similarly.
5310 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5312 * scripttempl/elfppc.sc: Remove.
5313 * emulparams/elf32ppc.sh: Use elf.sc.
5314 * emulparams/elf32lppc.sh: Use elf.sc.
5315 * emulparams/elf32ppclinux.sh: Use elf.sc.
5316 * emulparams/elf32ppcsim.sh: New file.
5317 * emulparams/elf32lppcsim.sh: New file.
5318 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5319 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5320 * Makefile.in: Regenerate.
5321 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5323 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5325 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5326 ~SEC_ALLOC sections too. Init start address of debug sections.
5327 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5328 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5329 Also set all relocateable section start addresses.
5331 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5333 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5334 Add new BSS_PLT variable for when .plt need not be contained in
5335 the file. Move _etext so that it is also after .fini, and provide
5336 both etext and _etext with a leading underscore. Mark the start
5339 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5341 * emultempl/elf32.em (struct orphan_save): New.
5342 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5343 hold_interp): Make them struct orphan_save.
5344 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5345 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5346 the end of the relevant section list. Also add associated section
5347 statements to the end of any previous orphan statements.
5348 * emultempl/armelf.em: Similarly.
5349 * emultempl/pe.em: Similarly.
5351 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5353 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5355 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5357 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5358 --enable-build-warnings option.
5359 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5360 * Makefile.in, configure: Re-generate.
5362 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5364 * po/ld.pot: Regenerate.
5366 * lexsup.c (help): Restore translated part of bug string.
5368 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5369 (DEP): Quote when passing vars to sub-make. Add warning message
5371 (DEP1): Rewrite for "gcc -MM".
5372 (CLEANFILES): Add DEP2.
5373 Update dependencies.
5374 * Makefile.in: Regenerate.
5376 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5378 * ld.h: #include "bin-bugs.h"
5379 * lexsup.c (help): Use REPORT_BUGS_TO.
5381 2000-03-27 Denis Chertykov <denisc@overta.ru>
5383 * configure.tgt (avr-*-*): New target support.
5384 * Makefile.am: Likewise.
5385 * scripttempl/elf32avr.sc: New script file.
5386 * emulparams/avr1200.sh: New file.
5387 * emulparams/avr23xx.sh: New file.
5388 * emulparams/avr4433.sh New file.
5389 * emulparams/avr44x4.sh New file.
5390 * emulparams/avr85xx.sh New file.
5391 * emulparams/avrmega103.sh New file.
5392 * emulparams/avrmega161.sh New file.
5393 * emulparams/avrmega603.sh New file.
5394 * Makefile.in: Regenerate.
5396 2000-03-09 Andreas Jaeger <aj@suse.de>
5398 * Makefile.am (check-DEJAGNU): Also unset LANG.
5399 * Makefile.in: Rebuild.
5401 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5403 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5406 2000-03-02 H.J. Lu <hjl@gnu.org>
5408 * emulparams/elf32mcore.sh: Include "getopt.h".
5410 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5412 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5414 2000-03-01 H.J. Lu <hjl@gnu.org>
5416 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5417 * emulparams/shpe.sh: Likewise.
5419 2000-03-01 Nick Clifton <nickc@cygnus.com>
5421 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5422 to unused parameters.
5424 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5425 functions only used by DLL code.
5426 (_place_orphan): Initialise 'dollar'.
5428 2000-03-01 H.J. Lu <hjl@gnu.org>
5430 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5431 indicate if the undefined symbol is a fatal error or not.
5432 Don't delete the output file if "fatal" is false.
5434 2000-02-29 H.J. Lu <hjl@gnu.org>
5436 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5437 Set LC_COLLATE and LC_ALL to null and export them. It is for
5438 sort which expects the C locale.
5439 Add $(LIBS) to all $(HOSTING_LIBS).
5440 * Makefile.in: Rebuild.
5442 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5444 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5445 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5446 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5447 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5448 find_potential_libraries.
5450 2000-02-28 Jim Blandy <jimb@redhat.com>
5452 * ldgram.y (exclude_name_list): Don't require a comma to separate
5453 list entries; the lexer considers commas to be valid part of a
5454 filename, so in something like `foo, bar' the comma is considered
5455 part of the first filename, `foo,'.
5456 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5458 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5460 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5461 host "i[3456]86-*-freebsdelf*".
5463 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5465 * scripttempl/i386go32.sc: Move misplaced semicolons.
5467 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5469 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5470 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5471 (eelf64hppa.c, ehppaelf.c): Remove targets.
5472 * Makefile.in: Rebuild.
5474 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5476 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5477 GNU/Linux/sparc, but keep the default as 32.
5479 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5480 it default if sparcv9 or sparc64.
5482 2000-02-24 Nick Clifton <nickc@cygnus.com>
5484 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5485 * Makefile.in: Regenerate.
5486 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5488 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5489 find_potential_libraries.
5490 * ldemul.c (ldemul_find_potential_libraries): New function.
5492 * ldfile.c (ldfile_open_file_search): Allow function to be
5494 (ldfile_open_file): Call ldemul_find_potential_libraries.
5495 * ldfile.h: Add prototype for ldfile_open_file_search.
5497 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5499 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5500 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5502 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5503 (gld_X_find_potential_libraries): New function. Search for
5504 libraries called "*.lib".
5506 * scripttempl/pe.sc: Add .pdata section.
5508 2000-02-23 Richard Henderson <rth@cygnus.com>
5510 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5511 Add and use memory regions.
5513 2000-02-23 Linas Vepstas (linas@linas.org)
5515 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5517 * Makefile.am: Add support for Linux/IBM 370.
5518 * configure.tgt: Likewise.
5520 * Makefile.in: Regenerate.
5522 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5524 * ldlang.c (print_input_section, print_data_statement,
5525 print_reloc_statement, print_padding_statement, insert_pad,
5526 size_input_section, lang_check_section_addresses,
5527 lang_size_sections, lang_do_assignments, lang_set_startof,
5528 lang_one_common): Change `opb' to unsigned.
5529 (lang_do_assignments): Also change `size' to unsigned.
5531 2000-02-16 Richard Henderson <rth@cygnus.com>
5533 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5535 2000-02-16 Timothy Wall <twall@cygnus.com>
5537 * mri.c (mri_draw_tree): Add default LMA region argument to call
5538 to lang_leave_output_section_statement.
5539 * ldlang.h: Update prototypes with LMA region arguments.
5540 * ldlang.c (lang_size_sections): Encapsulate region bounds
5541 checking in os_check_region call.
5542 (os_check_region): New function.
5543 (lang_output_section_statement_lookup): Initialize lma_region.
5544 (lang_leave_output_section_statement): Add LMA region argument.
5545 (lang_leave_overlay): Ditto.
5546 * ldgram.y: Handle LMA region syntax.
5547 * ld.texinfo (Output Section Description): Describe LMA region usage.
5548 * emultempl/armelf.em (gld$place_orphan): Add default value for
5549 lma region in call to lang_leave_output_section_statement.
5550 * emultempl/elf32.em (gld$place_orphan): Add default value for
5551 lma region in call to lang_leave_output_section_statement.
5552 * emultempl/pe.em (gld$place_orphan): Add default value for
5553 lma region in call to lang_leave_output_section_statement.
5556 2000-02-04 Timothy Wall <twall@redhat.com>
5558 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5559 octets when calculating section end addresses.
5561 2000-02-04 Timothy Wall <twall@redhat.com>
5563 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5565 2000-02-03 Timothy Wall <twall@redhat.com>
5567 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5569 * ldlang.c (print_input_section, print_data_statement,
5570 print_reloc_statement, print_padding_statement): Print target
5571 address values and section sizes as bytes, not octets.
5572 (insert_pad) Calculate padding size in octets, and adjust "dot"
5574 (size_input_section) Always adjust "dot" by bytes, not octets.
5575 (lang_check_section_addresses, lang_do_assignments) Adjust
5576 "dot" by bytes, not octets. Use the larger of the directive size
5577 or octets_per_byte for the number of octets actually allocated in
5579 (lang_set_startof) Make sure STARTOF returns a target address.
5580 (lang_one_common) Record size changes in octets.
5581 (lang_abs_symbol_at_end_of) Section end symbol's value is
5582 recorded in target bytes.
5583 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5584 to be clear about behavior when an octet is smaller than one byte.
5586 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5588 * ldcref.c (output_cref): Don't pass message strings to printf
5592 * ldmisc.c (vfinfo): Same here.
5595 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5597 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5598 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5599 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5600 Add missing NULL initialisers, and comments.
5602 2000-01-21 Nick Clifton <nickc@cygnus.com>
5604 * ldlang.c (lang_size_sections): Fix typo in comment.
5606 2000-01-18 H.J. Lu <hjl@gnu.org>
5608 * ldlang.c (lang_size_sections): Also update the current
5609 address of a region if the SEC_NEVER_LOAD bit is not set.
5611 2000-01-10 Philip Blundell <pb@futuretv.com>
5613 * configure.tgt (arm*-*-conix*): New target.
5615 2000-01-07 Nick Clifton <nickc@cygnus.com>
5617 * ld.texinfo (Options): Remind users to preceed linker command
5618 line switches with -Wl, (or whatever is appropriate) if it is
5619 being invoked by a comnpiler driver program.
5620 Fix description of the behaviour of the -n command line switch.
5622 2000-01-05 Catherine Moore <clm@cygnus.com>
5624 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5626 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5627 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5628 (exclude_name_list): New.
5629 ldlang.c (walk_wild_section): Support list of excluded files.
5630 (print_wild_statement): Likewise.
5631 (lang_add_wild): Likewise.
5632 * ldlang.h (lang_wild_statement_type): Likewise.
5633 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5635 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5637 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5638 (process_def_file): Use.
5639 (pe_dll_compat_implib): New variable.
5642 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5643 pe_dll_compat_implib.
5645 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5646 compat-implib options.
5647 (gld_${EMULATION_NAME}_list_options): List new options.
5648 (gld_${EMULATION_NAME}_parse_args): Handle.
5650 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5653 * deffilep.y (opt_name): Allow "." in name.
5655 For older changes see ChangeLog-9899
5661 version-control: never