1 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
3 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
5 2003-03-03 Alan Modra <amodra@bigpond.net.au>
7 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
8 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
9 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
10 PARSE_AND_LIST_EPILOGUE): Don't define.
11 * emultempl/alphaelf.em: New file.
13 2003-03-01 Alan Modra <amodra@bigpond.net.au>
15 * ldemul.c: Include getopt.h.
16 * emultempl/elf32.em: Include getopt.h earlier.
17 * emultempl/ticoff.em: Likewise.
19 2003-02-28 Alan Modra <amodra@bigpond.net.au>
21 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
22 support when scripts read from files.
24 2003-02-28 Alan Modra <amodra@bigpond.net.au>
26 * ldemul.c (ldemul_parse_args): Return FALSE by default.
27 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
30 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
31 (ldemul_parse_args): Return bfd_boolean. Formatting.
32 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
33 (ldemul_parse_args): Adjust.
34 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
35 Return bfd_boolean from parse_args.
36 * lexsup.c (parse_args): Malloc shortopts, longopts and
37 really_longopts. Call ldemul_add_options and ldemul_handle_option.
38 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
39 gld${EMULATION_NAME}_parse_args.
40 (gld${EMULATION_NAME}_handle_option): Likewise.
41 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
42 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
43 * emultempl/beos.em: Likewise.
44 * emultempl/pe.em: Likewise.
45 * emultempl/ticoff.em: Likewise.
46 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
47 (gld${EMULATION_NAME}_add_sysroot): Prototype.
48 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
50 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
51 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
52 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
53 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
55 * emultempl/generic.em: Likewise.
56 * emultempl/gld960.em: Likewise.
57 * emultempl/gld960c.em: Likewise.
58 * emultempl/linux.em: Likewise.
59 * emultempl/lnk960.em: Likewise.
60 * emultempl/m68kcoff.em: Likewise.
61 * emultempl/mipsecoff.em: Likewise.
62 * emultempl/sunos.em: Likewise.
63 * emultempl/vanilla.em: Likewise.
64 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
66 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
68 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
69 memory allocation error.
71 * Makefile.am (ldmain.o): Define TOOLBINDIR.
72 * Makefile.in: Rebuilt.
73 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
75 2003-02-21 Bob Wilson <bob.wilson@acm.org>
77 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
78 call os_region_check when it is set.
79 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
81 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
82 only for the last call, not on every relaxation iteration.
83 * ldlang.h (lang_size_sections): Update prototype.
84 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
85 to lang_size_sections.
86 (pe_exe_fill_sections): Likewise.
87 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
88 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
89 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
90 (ppc_layout_sections_again): Likewise.
92 2003-02-21 Bob Wilson <bob.wilson@acm.org>
94 * gen-doc.texi: Set ARM and HPPA variables.
95 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
96 title capitalization more consistent. Add missing menu entries for
97 machine-specific sections and conditionalize them consistently.
98 Conditionalize text that is irrelevant when SingleFormat is set.
99 Add @group divisions to improve page breaks in long examples.
100 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
101 is correct. Remove "FIXME" comment about not using
102 @raisesections/@lowersections. Use @raisesections/@lowersections
103 consistently for machine-specific sections. Change to be more polite
104 about poor bug reports. Replace FDL appendix with include of fdl.texi.
105 Move WIN32 node to match its order in the menus.
106 * fdl.texi: New file.
108 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
110 * configure.in (TARGET_SYSTEM_ROOT): Set default to
111 ${exec_prefix}/${target_alias}/sys-root. Match explicit
112 '${exec_prefix}' (in addition to the expansion thereof) as
114 * configure: Rebuilt.
116 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
118 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
120 2003-02-20 Harri Porten <porten@kde.org>
122 * ldgram.y (vers_defns): Allow optional trailing semicolon in
125 2003-02-18 Alan Modra <amodra@bigpond.net.au>
127 * emultempl/ppc32elf.em: New file.
128 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
129 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
130 (eelf32lppcnto.c): Likewise.
131 (eelf32lppcsim.c): Likewise.
132 (eelf32ppcnto.c): Likewise.
133 (eelf32ppc.c): Likewise.
134 (eelf32ppc_fbsd.c): Likewise.
135 (eelf32ppcsim.c): Likewise.
136 (eelf32ppclinux.c): Likewise.
137 * Makefile.in: Regenerate.
139 2003-02-18 Alan Modra <amodra@bigpond.net.au>
141 * ld.texinfo: Remove spaces between @samp and opening brace.
143 2003-02-18 Alan Modra <amodra@bigpond.net.au>
145 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
147 (ppc_before_allocation): Don't do optimizations if wrong hash table.
148 (gld${EMULATION_NAME}_finish): Ditto.
150 2003-02-17 Nick Clifton <nickc@redhat.com>
152 * ldmain.c (main) Default allow_shlib_undefined to true.
153 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
154 (parse_args): Parse the new switch.
155 * ld.texinfo: Document new switch and default behaviour of
156 allowing undefined symbols in shared libraries.
158 2003-02-11 Dmitry Diky <diwil@mail.ru>
160 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
161 * scripttempl/elf32msp430_3.sc: Likewise.
163 2003-02-11 Uwe Stieber <uwe@wwws.de>
165 * configure.tgt: Add support for kaOS as cross build target
168 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
170 * hppaelf.em (group_size): Change default back to 1.
172 2003-02-09 Alan Modra <amodra@bigpond.net.au>
174 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
176 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
178 * hppaelf.em (group_size): Change default to -1.
180 2003-02-07 Nick Clifton <nickc@redhat.com>
182 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
184 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
185 no-pipeline-knowledge. This will prevent the getopt package from
186 thinking that there are any shorter abbreviations for
187 --no-pipeline-knowledge.
189 2003-02-07 Jakub Jelinek <jakub@redhat.com>
191 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
192 which already have it. Avoid duplicates.
194 2003-02-06 Jakub Jelinek <jakub@redhat.com>
196 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
197 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
198 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
200 2003-02-05 Alan Modra <amodra@bigpond.net.au>
202 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
203 call ppc64_elf_tls_optimize.
205 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
207 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
208 outside of GNU/Linux conditional.
210 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
212 * deffilep.y (def_get_module): New function: locate an already
214 * deffile.h (def_get_module): New prototype.
215 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
216 a dll multiple times.
218 2003-01-23 Alan Modra <amodra@bigpond.net.au>
220 * emultempl/sh64elf.em: Include elf32-sh64.h.
221 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
222 sh64_elf_section_data.
223 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
225 2003-01-23 Wu Yongwei <adah@netstd.com>
227 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
228 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
229 cross-80th-column-margin "an" to the next line.
231 2003-01-21 Nick Clifton <nickc@redhat.com>
233 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
234 * emulparams/tic3xcoff_onchip.sh: ...this.
235 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
236 * Makefile.in: Regenerate.
238 2003-01-21 Fabio Alemagna <falemagn@aros.org>
240 * configure.tgt: Handle i[3456]86-*-aros*
242 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
244 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
245 * Makefile.in: Regenerate
246 * configure.tgt: Added extra target emulations
247 * emulparams/tic3xcoff.sh: Remove old settings
248 * emulparams/tic4xcoff.sh: Ditto
249 * emulparams/tic3xcoff-onchip.sh: Added new
250 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
251 * scripttempl/tic3xcoff.sc: Remove
253 2003-01-17 Andreas Jaeger <aj@suse.de>
255 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
258 2003-01-16 Alan Modra <amodra@bigpond.net.au>
260 * Makefile.in: Regenerate.
262 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
264 * ld/ld.texinfo (node WIN32): Some clarifications
265 and formatting fixups.
267 2003-01-09 Chris Demetriou <cgd@broadcom.com>
269 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
270 order, and handle (ignore) -mips32r2.
272 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
274 * ldmain.c (main): Make sure ld_sysroot is initialized.
276 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
278 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
280 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
281 (GENSCRIPTS): Add @use_sysroot@.
282 * Makefile.in: Regenerated.
283 * configure.host: Move setting of NATIVE_LIB_DIRS to...
284 * configure.tgt: ... here. Use ${target} instead of ${host}
286 * configure.in: Add --with-sysroot.
287 * configure: Regenerated.
288 * genscripts.sh: Accept use_sysroot option. Set new variables
289 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
290 $use_sysroot. Don't search $tool_lib if $use_sysroot.
291 * ldfile.c (ldfile_add_library_path): Handle leading '='.
292 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
293 (ld_sysroot): New variable.
294 (main): Initialize ld_sysroot.
295 * ldmain.h (ld_sysroot): New extern.
296 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
297 searching $EMULATION_LIBPATH.
298 (gld${EMULATION_NAME}_add_sysroot): New function.
299 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
300 (gld${EMULATION_NAME}_after_open): Likewise. Only search
301 environment variables if $NATIVE.
302 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
303 * NEWS: Mention --with-sysroot.
305 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
306 instead of setting LIB_PATH.
307 * emulparams/elf32ppc.sh: Likewise.
308 * emulparams/elf64_s390.sh: Likewise.
309 * emulparams/elf64_sparc.sh: Likewise.
310 * emulparams/elf64ppc.sh: Likewise.
311 * emulparams/elf_x86_64.sh: Likewise.
313 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
314 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
316 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
318 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
320 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
322 * Makefile.am (ldmain.o): Pass BINDIR.
323 * Makefile.in: Regenerated.
324 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
327 2003-01-02 Ben Elliston <bje@redhat.com>
329 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
330 (eelf32iq2000.c): New target.
331 * Makefile.in: Regenerate.
332 * configure.tgt: Handle iq2000-*-elf.
333 * emulparams/elf32iq10.sh: New file.
334 * emulparams/elf32iq2000.sh: New file.
335 * scripttempl/iq2000.sc: New file.
337 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
339 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
340 and _pei386_runtime_relocator to the exclude list.
342 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
344 * ldfile.c: Fix comment typos.
345 * ldlang.c: Likewise.
347 * pe-dll.c: Likewise.
349 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
351 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
352 * Makefile.am (ld.1): Depend on configdoc.texi
354 * Makefile.in: Regenerated.
356 2002-12-24 Dmitry Diky <diwil@mail.ru>
358 * Makefile.am: Add msp430 target.
359 * configure.tgt: Likewise.
360 * Makefile.in: Regenerate.
361 * emulparams/msp430x???.sh: New files. Linker script parameters
362 for various msp430 configurations.
363 * gen-doc.texi: Enable msp430 documenation.
364 * ld.texinfo: Document msp430 sections.
365 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
366 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
368 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
369 Charles Wilson <cwilson@ece.gatech.edu>
371 * ld/config.in (HAVE_REALPATH): New entry.
372 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
374 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
376 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
379 2002-12-23 Alan Modra <amodra@bigpond.net.au>
381 * ldmain.c (main): Init "strip_discarded".
382 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
383 (OPTION_NO_STRIP_DISCARDED): Define.
384 (ld_options): Add "strip-discarded" and "no-strip-discarded".
385 (parse_args): Handle them.
387 2002-12-23 Nick Clifton <nickc@redhat.com>
389 * ld.h (struct args_type): Add new field
390 'accept_unknown_input_architecture'.
391 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
393 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
394 bfd_arch_get_compatible.
395 * ldfile.c (ldfile_try_open_bfd): Likewise.
396 * lexsup.c (ld_options): Add new command line switch
397 --accept-unknown-input-architecture and its inverse.
398 (parse_args): Handle --accept-unknown-input-architecture.
399 * ld.texinfo: Document new linker option.
400 * NEWS: Mention new linker option.
402 2002-12-20 Alan Modra <amodra@bigpond.net.au>
404 * ldmain.c (main): Re-order link_info initialization. Init all
407 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
409 * ld.texinfo: Clarify and extend the documentation
410 in the Machine Dependent, WIN32 section.
412 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
414 * ld.texinfo: Add win32 machine depending section.
415 * gen-doc.texi: Enable win32 machine depending section.
417 * configure.host: Add win32 library search path.
419 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
421 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
422 import when auto-import is disabled.
424 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
426 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
427 account for trailing '\0'.
429 2002-12-17 Nick Clifton <nickc@redhat.com>
431 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
432 so that it is not confused with -c.
434 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
435 Charles Wilson <cwilson@ece.gatech.edu>
437 * configure.in: Add check for realpath function.
438 * configure: Regenerate.
439 * config.in: Regenerate.
440 * aclocal.m4: Regenerate.
441 * deffile.h: Add .data field to def_file_import
443 * pe-dll.c (pe_proces_import_defs): Use .data field of
444 def_file_import structure to initialize flag_data field of
445 def_file_export structure.
446 (pe_implied_import_dll): New variables exp_funcbase and
447 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
448 not filename (which may be a symlink). Scan the sections and
449 initialize [data|bss]_[start|end]. When scanning the export
450 table, skip _nm_ symbols, and mark any symbols whose rva indicates
451 that it is in the .bss or .data sections as data.
452 * sysdep.h: Include limits.h and sys/param.h, and define
453 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
454 exists, NULL otherwise.
455 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
456 pe_process_import_defs before pe_find_data_imports, so that
457 auto-import will check the virtual implib as well as "real"
459 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
460 symlinks to their target; check that the target's extension is
461 .dll before calling pe_implied_import_dll(), not the filename
462 itself (which may be a symlink).
464 2002-12-10 Alan Modra <amodra@bigpond.net.au>
466 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
467 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
470 2002-12-08 Alan Modra <amodra@bigpond.net.au>
472 * ldlang.h: Formatting.
474 2002-12-07 Alan Modra <amodra@bigpond.net.au>
476 * ldlang.c (init_os): Ensure sections mentioned in load_base
479 2002-12-05 Alan Modra <amodra@bigpond.net.au>
481 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
482 load_base for orphans that follow a section with load_base set.
484 2002-12-01 H.J. Lu <hjl@gnu.org>
486 * ld.texinfo: Remove the extra `;' in sample version script.
488 2002-11-30 Alan Modra <amodra@bigpond.net.au>
490 * configure.host: Correct dynamic-linker for powerpc64 hosts.
492 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
493 * Makefile.in: Regenerate.
495 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
496 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
497 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
498 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
499 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
500 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
501 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
502 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
503 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
504 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
505 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
506 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
507 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
509 2002-11-27 David O'Brien <obrien@FreeBSD.org>
511 * configure.host: Fix generic FreeBSD configuration entry.
513 2002-11-27 H.J. Lu <hjl@gnu.org>
515 * ld.texinfo: Add the missing `;' to sample version scripts.
517 2002-11-20 Alan Modra <amodra@bigpond.net.au>
519 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
521 2002-11-14 Egor Duda <deo@logos-m.ru>
523 * ldmain.c (main): Make runtime relocs disabled by default. Remove
524 assignment which has no effect.
525 * pe-dll.h (pe_create_import_fixup): Change prototype.
526 * pe-dll.c (make_runtime_pseudo_reloc): New function.
527 (pe_create_runtime_relocator_reference): Ditto.
528 (pe_create_import_fixup): Handle relocations with non-zero addends.
529 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
530 --disable-runtime-pseudo-reloc.
531 (make_import_fixup): Handle relocations with non-zero addends. Create
532 an external reference to _pei386_runtime_relocator symbol if at least
533 one pseudo reloc was created.
534 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
535 --disable-runtime-pseudo-reloc options.
537 2002-11-12 Earl Chew <earl_chew@agilent.com>
539 * ldlang.c (lang_add_section): Discard debugging sections that have
540 been marked SEC_EXCLUDE.
542 2002-11-12 Nick Clifton <nickc@redhat.com>
544 * configure.in (ALL_LINGUAS): Add da.
545 * configure: Regenerate.
546 * po/da.po: New Danish translation.
548 2002-11-12 Alan Modra <amodra@bigpond.net.au>
550 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
551 (LDEMUL_BEFORE_ALLOCATION): Define.
552 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
554 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
556 2002-11-11 Christopher Faylor <cgf@redhat.com>
558 * configure.tgt (LIB_PATH): Default to searching w32api directory under
561 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
563 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
564 of restricted auto-export libs.
566 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
568 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
569 creative library naming instances like, e.g., libstdc++-2.a.
571 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
573 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
574 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
576 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
578 * deffilep.y (def_lex): Handle '@' as first character of an ID.
579 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
580 (make_one): Don't prefix decorated fastcall symbols with '_'.
581 (pe_process_import_defs): Likewise.
582 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
583 symbols to cdecl names or vise-versa.
585 2002-10-13 Eric Kohl <ekohl@rz-online.de>
587 * pe-dll.c (process_def_file): Handle fastcall symbols when
588 generating undecorated aliases. Don't prefix decorated fastcall
590 (fill_exported_offsets): Don't prefix decorated fastcall symbols
593 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
595 * emultempl/aix.em: Use include <> for generated headers.
596 * emultempl/beos.em: Likewise.
597 * emultempl/elf32.em: Likewise.
598 * emultempl/pe.em: Likewise.
599 * ldctor.c: Likewise.
601 * ldfile.c: Likewise.
602 * ldlang.c: Likewise.
605 * ldmain.c: Likewise.
606 * ldmisc.c: Likewise.
607 * ldwrite.c: Likewise.
608 * lexsup.c: Likewise.
610 * pe-dll.c: Likewise.
612 2002-10-23 Jakub Jelinek <jakub@redhat.com>
614 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
615 sections into .rel{,a}.dyn.
617 2002-10-23 Nick Clifton <nickc@redhat.com>
619 * lexsup.c (OPTION_NO_OMAGIC): Define.
620 (ld_options): Add "no-omagic" option.
621 (parse_args): Parse --no-omagic.
622 * ld.texinfo: Document --no-omagic.
623 * NEWS: Mention new option.
625 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
627 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
628 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
630 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
632 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
633 emulation name. Set LIB_PATH only for native tools, and
634 search the ABI-specific versions of NATIVE_LIB_DIRS before the
635 .../lib variants, not instead of them. Mostly copied from...
636 * emulparams/elf32ppc.sh: ... here. Fixed typo.
637 * emulparams/elf64bmip-defs.sh: Backed out.
638 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
639 * emulparams/elf64btsmip.sh: Likewise.
640 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
641 TEXT_DYNAMIC): Removed.
643 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
645 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
646 (GENERATE_SHLIB_SCRIPT): Set to yes.
647 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
648 * emulparams/elf32bmipn32.sh: here.
649 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
650 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
651 * emulparams/elf64bmip-defs.sh: New file. Extend
652 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
653 * emulparams/elf64bmip.sh: Bring in definitions from
655 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
657 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
658 * emulparams/elf64btsmip.sh: Bring in definitions from
660 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
661 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
663 2002-10-16 Jakub Jelinek <jakub@redhat.com>
665 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
666 (s390-*-linux*): Add elf64_s390 emulation if want64.
667 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
668 genscript.sh changes.
669 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
670 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
672 2002-10-15 Alan Modra <amodra@bigpond.net.au>
674 * ldlang.c (load_symbols): Revert last change.
676 2002-10-14 Alan Modra <amodra@bigpond.net.au>
678 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
680 (lang_reasonable_defaults): Don't compare against false.
681 (size_input_section): Likewise.
682 (lang_size_sections_1): Likewise.
683 (lang_do_assignments): Likewise.
684 (lang_add_output): Likewise.
686 * Makefile.am: Run "make dep-am".
687 * Makefile.in: Regenerate.
688 * ldver.c: #include "bfdver.h".
690 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
692 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
694 * scripttempl/elfm68hc12.sc: Likewise.
696 2002-10-11 Alan Modra <amodra@bigpond.net.au>
698 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
700 * ldgram.y (memory_spec): Provide empty action.
701 (section <NAME>): Likewise.
703 2002-10-10 Jakub Jelinek <jakub@redhat.com>
705 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
706 they have OUTPUT_FORMAT not matching actual output format.
707 * ldlang.c (lang_get_output_target): New function.
708 (open_output): Use it.
709 * ldlang.h (lang_get_output_target): New prototype.
711 2002-10-10 Alan Modra <amodra@bigpond.net.au>
713 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
714 when orphan is .rel, .rela when orphan is .rela.
715 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
716 first. Remove outsecname var.
718 2002-10-09 Richard Shann <richard.shann@superh.com>
719 Stephen Clarke <stephen.clarke@superh.com>
721 * Makefile.am: Add eshelf32_linux.o and
722 eshlelf32_linux.o, new emulations for sh64 Linux.
723 * Makefile.in: Regenerate.
724 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
725 * emulparams/shelf32_linux.sh: New file.
726 * emulparams/shlelf32_linux.sh: New file.
728 2002-10-08 H.J. Lu <hjl@gnu.org>
730 * ldlang.c (lang_file_exist): Removed.
731 (new_afile): Revert the last change.
732 * ldlang.h (lang_file_exist): Removed.
733 * lexsup.c (parse_args): Revert the last change.
735 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
737 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
739 (make_one): Create _nm_<symbol> for data only.
741 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
743 * ldlang.c (lang_file_exist): New function.
744 (new_afile): Abort if the filename to be added matches the linker
746 * ldlang.h: Add prototype for lang_file_exist.
747 * lexsup.c (parse_args): Abort if the output filename matches
748 one of the input filenames.
750 2002-10-02 Alan Modra <amodra@bigpond.net.au>
752 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
754 2002-09-30 Alan Modra <amodra@bigpond.net.au>
756 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
757 * scripttempl/elfm68hc11.sc: Likewise.
758 * scripttempl/elfm68hc12.sc: Likewise.
760 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
761 reloc sections just before .rel.plt/.rela.plt.
762 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
763 Only put loadable reloc sections in hold_rel.
765 2002-09-29 H.J. Lu <hjl@gnu.org>
767 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
769 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
771 From "Anita Kulkarni" <AnitaK@kpit.com>
772 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
775 2002-09-25 Alan Modra <amodra@bigpond.net.au>
777 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
779 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
780 SEGMENT_SIZE alignment.
781 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
782 (SEGMENT_SIZE): Define.
784 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
785 (fold_binary): Correct abs - non-abs case.
786 (fold_trinary): New. Split out from exp_fold_tree.
788 2002-09-24 Alan Modra <amodra@bigpond.net.au>
790 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
791 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
792 for start of .data, instead align up to 256M boundary.
793 * scripttempl/aix.sc: Likewise.
795 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
797 * scripttempl/i386go32.sc: Handle bss unique sections.
799 2002-09-21 Alan Modra <amodra@bigpond.net.au>
801 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
803 2002-09-17 Stan Cox <scox@redhat.com>
805 * emulparams/elf32bmipn32-defs.sh: New file.
806 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
807 * emulparams/elf32btsmipn32.sh: Likewise.
808 * emulparams/elf64bmip.sh: Likewise.
809 * emulparams/elf64btsmip.sh: Likewise.
811 2002-09-16 Bruno Haible <bruno@clisp.org>
813 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
815 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
818 2002-09-11 Nick Clifton <nickc@redhat.com>
820 * NEWS: New TI port supports both C4x and C3x series of DSPs.
822 * po/tr.po: Updated Turkish translation.
824 2002-09-06 Jeffrey A Law (law@redhat.com)
826 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
828 2002-09-02 Nick Clifton <nickc@redhat.com>
830 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
832 * emulparams/v850.sh (TEMPLATE_NAME): Define.
834 2002-08-30 Nick Clifton <nickc@redhat.com>
836 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
837 used. Change INSN to start at 0x01000000 and extend for
838 256K (ignoring holes). Start the STACK on a word aligned
840 (.rodata): Start it at the READONLY_START_ADDR.
842 2002-08-30 Alan Modra <amodra@bigpond.net.au>
844 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
846 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
848 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
849 added makefile targets for this file.
850 * Makefile.in: Regenerate.
851 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
852 * NEWS: Mention new port.
854 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
856 * emulparams/tic3xcoff.sh: New file.
857 * emulparams/tic4xcoff.sh: New file.
858 * scripttempl/tic3xcoff.sc: New file.
859 * scripttempl/tic4xcoff.sc: New file.
861 2002-08-28 Alan Modra <amodra@bigpond.net.au>
863 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
864 strtoul and strtoull with bfd_scan_vma.
865 (gld${EMULATION_NAME}_read_file): Likewise.
867 2002-08-28 Alan Modra <amodra@bigpond.net.au>
869 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
871 2002-08-27 Egor Duda <deo@logos-m.ru>
873 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
874 Add symbols for application to access them.
876 2002-08-27 Nick Clifton <nickc@redhat.com>
878 * emultempl/armelf.em: Revert this patch, it is not needed.
880 2002-08-22 Adam Nemet <anemet@lnxw.com>
882 2002-08-20 Dan Kegel <dank@kegel.com>
884 * configure.in: added --with-lib-path argument to ld's configure
886 * ld/NEWS: Document new switch.
887 * ld/README: Mention new switch.
888 * configure: Regenerate.
889 * Makefile.in: Regenerate.
892 2001-04-25 Christopher Faylor <cgf@cygnus.com>
894 * Makefile.in (LIB_PATH): Make configurable.
895 (GENSCRIPTS): Set LIB_PATH in environment.
896 * configure.in: Substitute LIB_PATH.
898 2002-08-22 Adam Nemet <anemet@lnxw.com>
900 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
901 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
902 depending on the type of the function.
903 (arm_elf_convert_thumb_symbol_to_address): New function.
905 2002-08-22 Graeme Peterson <gp@qnx.com>
907 * Makefile.am: Add esh{l}elf_nto.o files.
908 * Makefile.in: Regenerate.
909 * configure.tgt: Add support for sh-**-nto* targets.
910 * emulparams/shelf_nto.sh: New file.
911 * emulparams/shlelf_nto.sh: New file.
913 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
915 * ldlang.c (offsetof): Define if not defined.
917 2002-08-14 H.J. Lu <hjl@gnu.org>
919 * configure.tgt: Always enable 64bit emulations for 32bit
922 2002-08-13 Alan Modra <amodra@bigpond.net.au>
924 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
925 (MAXPAGESIZE): Set to 1.
927 * ld.h (ALIGN_N): Delete.
928 * ldexp.h (align_n): Declare.
929 * ldexp.c (align_n): New function.
930 (fold_binary): Use align_n instead of ALIGN_N.
931 (exp_fold_tree): Likewise.
932 * ldlang.c (lang_size_sections_1): Likewise.
933 (lang_one_common): Likewise.
934 * ld.texinfo (ALIGN): Remove power of 2 restriction.
936 2002-07-31 Graeme Peterson <gp@qnx.com>
938 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
939 * Makefile.am: Add eelf32{l}ppcnto.o files.
940 * Makefile.in: Regenerate.
941 * emulparams/elf32lppcnto.sh: New file.
942 * emulparams/elf32ppcnto.sh: New file.
944 2002-08-07 H.J. Lu <hjl@gnu.org>
946 * ld.texinfo: Document --no-undefined-version.
948 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
949 `script.' fields to 0.
951 * ldmain.c (main): Initialize the allow_undefined_version to
954 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
955 (ld_options): Add --no-undefined-version.
956 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
958 2002-08-07 Nick Clifton <nickc@redhat.com>
960 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
961 an interworking bfd if there are input bfds. (107501)
963 2002-08-06 Alan Modra <amodra@bigpond.net.au>
965 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
968 2002-08-01 Nick Clifton <nickc@redhat.com>
970 * emulparams/armelf.sh: Revert previous delta.
971 * scripttempl/elf.sc: Revert previous delta.
973 2002-07-31 H.J. Lu <hjl@gnu.org>
975 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
978 2002-07-31 H.J. Lu <hjl@gnu.org>
980 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
981 64bit BFD is selected.
983 2002-07-31 H.J. Lu <hjl@gnu.org>
985 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
986 if 64bit BFD is selected.
988 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
990 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
991 link_info.common_skip_ar_aymbols.
992 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
994 * ldmain.c (main): Initialize new field
995 link_info.common_skip_ar_aymbols.
997 2002-07-31 Adam Nemet <anemet@lnxw.com>
999 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1001 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1004 2002-07-31 Nick Clifton <nickc@redhat.com>
1006 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1007 of the PDP-11 and 2.11BSD a.out support.
1009 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1011 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1012 for n32 ABI support.
1013 * Makefile.in: Regenerate.
1014 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1015 n32 ABI emulations for these 64 bit targets.
1016 * emulparams/elf32bmipn32.sh: Expand comment.
1017 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1019 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1021 2002-07-30 Graeme Peterson <gp@qnx.com>
1023 * configure.tgt: Add support for arm-*-nto target.
1024 * Makefile.am: Add earmnto.o file.
1025 * Makefile.in: Regenerate.
1026 * NEWS: Mention port of ARM support to QNX.
1027 * emulparams/armnto.sh: New file.
1029 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1031 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1032 for relocatable link.
1033 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1036 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1038 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1041 2002-07-25 Nick Clifton <nickc@redhat.com>
1043 * po/sv.po: Updated Swedish translation.
1044 * po/es.po: Updated Spanish translation.
1045 * po/fr.po: Updated French translation.
1047 2002-07-24 Nick Clifton <nickc@redhat.com>
1049 * po/sv.po: Updated Swedish translation.
1050 * po/es.po: Updated Spanish translation.
1052 2002-07-23 Nick Clifton <nickc@redhat.com>
1054 * po/fr.po: Updated French translation.
1056 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1058 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1059 bomb on /DISCARD/ input section.
1060 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1061 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1063 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1065 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1068 2002-07-16 Denis Chertykov <denisc@overta.ru>
1069 Nick Clifton <nickc@redhat.com>
1070 Frank Ch. Eigler <fche@redhat.com>
1071 John Healy <jhealy@redhat.com>
1073 * configure.tgt: Add support for ip2k-elf.
1074 * Makefile.am: Add support for ip2k-elf.
1075 * Makefile.in: Regenerate.
1076 * emulparams/elf32ip2k.sh: New file.
1077 * scripttempl/ip2k.sc: New file
1078 * NEWS: Mention support for new port.
1080 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1082 * NEWS: Add 'Changes in 2.13'.
1084 2002-07-14 H.J. Lu <hjl@gnu.org>
1086 * ld.texinfo: Document a .symver takes precedence over a
1089 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1091 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1092 (COMMONPAGESIZE): Define.
1094 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1096 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1098 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1100 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1101 powerpc-*-openbsd* and sparc64-*-openbsd*.
1102 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1103 * Makefile.in: Regenerate.
1104 * emulparams/hppaobsd.sh: New file.
1106 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1108 * ldlang.c (print_wild_statement): Fix output formatting.
1110 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1112 * ldlang.c: (strip_excluded_output_sections): New function.
1113 (lang_process): Call it.
1114 (lang_size_sections_1): Revert 2002-06-10 change.
1116 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1118 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1120 * Makefile.in: Regenerate.
1122 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1124 * ldfile.c (ldfile_try_open_bfd): Formatting.
1126 * ldmisc.c (demangle): Move so that it doesn't intrude between
1127 vfinfo comment and body. Add comment.
1129 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1131 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1133 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1135 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1136 * ldlang.c (entry_sym): Likewise.
1137 (ldlang_undef_chain_list_type): Likewise.
1138 (lang_finish): Adjust references to entry_symbol.
1139 (lang_add_entry): Likewise.
1140 (lang_gc_sections): Use link_info.gc_sym_list.
1141 (lang_process): Set link_info.gc_sym_list.
1142 * ldlex.l: Include bfdlink.h.
1143 * ldmain.c (main): Init link_info.gc_sym_list.
1144 * emultempl/aix.em: Adjust references to entry_symbol.
1145 * emultempl/armcoff.em: Likewise.
1146 * emultempl/armelf.em: Likewise.
1147 * emultempl/pe.em: Likewise.
1148 * emultempl/ppc64elf.em (ppc_after_open): New function.
1149 (LDEMUL_AFTER_OPEN): Define.
1150 * emulparams/elf64ppc.sh: KEEP .opd sections.
1152 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1154 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1155 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1156 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1157 (EEPROM_START_ADDR): Define.
1158 (EEPROM_MEMORY): Define.
1159 * emulparams/m68hc12elf.sh: Likewise.
1160 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1161 section to put soft registers in .page0.
1162 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1164 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1166 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1167 section. Add ${RELOCATING-0}.
1169 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1171 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1172 (OTHER_SECTIONS): Define.
1173 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1174 (OTHER_SECTIONS): Undef.
1176 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1178 * ldmisc.c (demangle): Restore dots stripped from sym name.
1180 2002-06-25 H.J. Lu <hjl@gnu.org>
1182 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1183 * Makefile.in: Regenerated.
1185 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1187 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1188 the size of attached object files, to allow make the object files
1189 available via FTP or HTTP and to mention that the mail will be
1190 sent to a mailing list.
1192 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1194 * ld/configure.host (romp): Drop support.
1196 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1198 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1199 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1201 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1203 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1204 format specifier used to print BFD name.
1206 2002-06-18 Dave Brolley <brolley@redhat.com>
1208 From Catherine Moore, Michael Meissner, Jim Blandy:
1209 * emulparams/elf32frv.sh: New file.
1210 * configure.tgt: Support frv-*-*.
1211 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1212 (eelf32frv.c): New target.
1214 2002-06-17 Tom Rix <trix@redhat.com>
1216 * emultempl/elf32.em: gld*_get_script: Check for
1217 GENERATE_COMBRELOC_SCRIPT.
1218 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1219 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1221 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1223 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1225 2002-06-12 H.J. Lu <hjl@gnu.org>
1227 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1228 false if xvec doesn't match.
1230 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1232 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1234 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1236 * ldexp.c: Replace CONST with const.
1237 * ldfile.c: Likewise.
1238 * ldfile.h: Likewise.
1239 * ldlex.l: Likewise.
1241 * pe-dll.h: Likewise.
1243 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1245 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1247 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1249 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1250 to -1 == implicit enable.
1251 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1252 initialize link_info.pei386_auto_import to -1 == implicit
1254 (gld_${EMULATION_NAME}_parse_args): When processing
1255 --enable-auto-import and --disable-auto-import options, use
1256 '1' and '0' instead of 'true' and 'false'.
1257 (pe_find_data_imports): Only issue message about auto-import
1258 when the feature is implicitly enabled. Downgrade message to
1259 informational instead of warning.
1261 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1263 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1265 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1267 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1268 HOSTING_CRT0 and HOSTING_LIBS.
1270 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1272 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1274 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1276 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1277 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1279 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1281 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1282 SEC_EXCLUDE sections when doing a relocatable link.
1284 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1286 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1287 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1288 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1289 (eshlelf64_nbsd.c): New rules.
1290 * Makefile.in: Regenerate.
1291 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1292 (sh64-*-netbsd*): New targets.
1293 * emulparams/shelf32_nbsd.sh: New file.
1294 * emulparams/shelf64_nbsd.sh: New file.
1295 * emulparams/shlelf32_nbsd.sh: New file.
1296 * emulparams/shlelf64_nbsd.sh: New file.
1298 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1300 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1302 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1304 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1305 C++ constructors/destructors, loosely based on the m68hc11 port.
1307 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1309 * Makefile.in: Regenerate.
1310 * aclocal.m4: Regenerate.
1311 * config.in: Regenerate.
1312 * configure: Regenerate.
1314 2002-05-31 Graeme Peterson <gp@qnx.com>
1316 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1317 (ei386nto.c): Add rule.
1318 * Makefile.in: Regenerate.
1319 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1320 * emulparams/i386nto.sh: New file.
1322 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1324 * NEWS: Add entry for VAX ELF support.
1326 2002-05-29 Matt Thomas <matt@3am-software.com>
1327 Jason Thorpe <thorpej@wasabisystems.com>
1329 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1331 (evaxnbsd.c): New rules.
1332 * Makefile.in: Regenerate.
1333 * configure.tgt (vax-*-netbsdelf*)
1335 (vax-*-netbsd*): New targets.
1336 * emulparams/elf32vax.sh: New file.
1337 * emulparams/vaxnbsd.sh: New file.
1339 2002-05-29 Adam Nemet <anemet@lnxw.com>
1341 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1342 bfd_for_interwork, instead add glue sections to each input bfd.
1343 (bfd_for_interwork): New global.
1344 (arm_elf_set_bfd_for_interworking): New function.
1345 (arm_elf_before_allocation): Use it.
1347 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1349 * Makefile.am: Add DLX make target.
1350 * configure.tgt: Add DLX configuration.
1351 * Makefile.in: Regenerate.
1352 * emulparams/elf32_dlx.sh: New file
1353 * scripttempl/dlx.sc: New file
1355 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1357 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1358 * Makefile.in: Regenerate.
1359 * emulparams/elf_chaos.sh: Use elf_chaos script.
1360 * scripttempl/elf_chaos.sc: New file.
1362 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1364 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1365 addresses and regions from here...
1366 (lang_get_regions): ...to this new function.
1367 (lang_leave_output_section_statement): Use lang_get_regions.
1368 (lang_leave_overlay): Likewise.
1369 * mri.c (mri_draw_tree): Pass null as last argument to
1370 lang_leave_output_section_statement.
1371 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1372 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1373 * emultempl/pe.em (gld*_place_orphan): Likewise.
1375 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1377 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1379 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1381 * ldemul.c: Fix formatting.
1382 * ldfile.c: Likewise.
1383 * pe-dll.c: Likewise.
1384 * pe-dll.h: Likewise.
1386 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1388 * ldlang.c (lang_process): Formatting, grammar.
1390 * ldlex.l: Use #include "" instead of <> for local header files.
1392 2002-05-24 TAMURA Kent <kent@netbsd.org>
1394 * configure.tgt: Add a target for i386-netbsdpe.
1396 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1398 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1399 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1400 output section if necessary. Handle .tbss.
1401 (lang_size_sections): Clear _raw_size for .tbss section
1402 (it allocates space in PT_TLS segment only).
1403 * ldwrite.c (build_link_order): Build link order for .tbss too.
1405 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1407 * configure.in: Correct spelling of AC_PREREQ.
1409 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1411 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1413 (autofilter_objlist): Add crtbegin.o, crtend.o.
1415 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1417 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1418 (longopts): Add new option --exclude-libs.
1419 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1420 (gld_${EMULATION_NAME}_parse_args): Use it.
1421 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1422 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1423 from whole archives.
1424 (pe_dll_add_excludes): Set excludes->type.
1425 (auto_export): Add new variable libname and set to archive basename if
1426 abfd. Use it when filtering default and user-specified libarary
1427 excludes. Let string "ALL" mean all libs when filtering user-specified
1429 * ld.texinfo: Document --exclude-libs.
1431 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1433 * ldemul.c (ldemul_new_vers_pattern): New function.
1434 * ldemul.h (ldemul_new_vers_pattern): Declare.
1435 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1436 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1437 * emultempl/ppc64elf.em (dotsyms): New static var.
1438 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1439 (LDEMUL_NEW_VERS_PATTERN): Define.
1440 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1441 (PARSE_AND_LIST_LONGOPTS): Likewise.
1442 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1443 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1445 * emultempl/armcoff.em: Likewise.
1446 * emultempl/armelf_oabi.em: Likewise.
1447 * emultempl/beos.em: Likewise.
1448 * emultempl/elf32.em: Likewise.
1449 * emultempl/generic.em: Likewise.
1450 * emultempl/gld960.em: Likewise.
1451 * emultempl/gld960c.em: Likewise.
1452 * emultempl/linux.em: Likewise.
1453 * emultempl/lnk960.em: Likewise.
1454 * emultempl/m68kcoff.em: Likewise.
1455 * emultempl/mipsecoff.em: Likewise.
1456 * emultempl/pe.em: Likewise.
1457 * emultempl/sunos.em: Likewise.
1458 * emultempl/ticoff.em: Likewise.
1459 * emultempl/vanilla.em: Likewise.
1461 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1463 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1464 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1465 (LIB_SEARCH_DIRS): No need to use "tr".
1466 (COMPILE_IN): Only set for native targets.
1467 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1468 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1469 * configure.tgt (powerpc*): Set tdir_*.
1470 (powerpcle*): Correct targ_extra_emuls.
1471 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1472 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1474 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1476 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1477 calling lang_add_entry.
1479 2002-05-21 H.J. Lu (hjl@gnu.org)
1481 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1483 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1485 * ld.texinfo: Updated for --allow-multiple-definition and
1488 * ldmain.c (main): Initialize the allow_multiple_definition
1491 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1492 (ld_options): Add --allow-multiple-definition.
1493 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1495 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1497 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1498 (earmelfb_nbsd.c): New rule.
1499 * Makefile.in: Regenerate.
1500 * configure.tgt (armeb-*-netbsdelf*): New target.
1501 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1502 (arm-*-netbsd*): Likewise.
1503 * emulparams/armelfb_nbsd.sh: New file.
1505 2002-05-18 Tom Rix <trix@redhat.com>
1507 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1510 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1512 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1513 * Makefile.in: Regenerate.
1514 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1516 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1518 * emulparams/avr1.sh: New file.
1519 * emulparams/avr2.sh: New file.
1520 * emulparams/avr3.sh: New file.
1521 * emulparams/avr4.sh: New file.
1522 * emulparams/avr5.sh: New file.
1523 * scripttempl/avr.sc: New file.
1525 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1527 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1528 (lang_place_orphans): Abort if just_syms_flag.
1530 2002-05-10 Tom Rix <trix@redhat.com>
1532 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1533 architecture and machine information in the output bfd.
1534 (gld*_before_parse): Remove old arch and machine code.
1535 (choose_target): Rename to gld*_choose_target.
1536 (rtld): Change type to int.
1537 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1538 objects in XCOFF archives.
1539 * ldfile.h: Update copyright date.
1541 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1543 * ldmain.c (main): Enable -z combreloc by default.
1545 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1547 * Makefile.am: Honour DESTDIR.
1548 * Makefile.in: Regenerate.
1550 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1552 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1553 (lang_enter_overlay): Remove the last two parameters.
1554 (lang_leave_overlay): Take them here instead.
1555 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1556 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1557 than lang_enter_overlay.
1558 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1559 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1560 (lang_size_sections_1): Evaluate it.
1561 (lang_leave_output_section_statement): Rework LMA lookup.
1562 (overlay_lma, overlay_nocrossrefs): Remove.
1563 (lang_enter_overlay): Remove LMA and crossref arguments.
1564 (lang_enter_overlay_section): Don't set the LMA here.
1565 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1566 assignment to the last section's update_dot_tree. Unconditionally
1567 use the load and run-time regions specified in the OVERLAY statement.
1568 Likewise the first section's LMA. Only set the other sections' LMAs
1569 when no load region is given.
1571 2002-05-06 Nick Clifton <nickc@redhat.com>
1573 * po/sv.po: New translation.
1575 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1577 * emultempl/hppaelf.em (build_section_lists): New function.
1578 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1579 and build_section_lists.
1581 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1583 * ld.h: Fix formatting.
1584 * ldexp.c: Likewise.
1585 * ldfile.c: Likewise.
1586 * ldlang.c: Likewise.
1587 * ldmain.c: Likewise.
1588 * lexsup.c: Likewise.
1589 * pe-dll.c: Likewise.
1591 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1593 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1594 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1595 (build_section_lists): Do output_section tests here.
1597 2002-04-30 Tom Rix <trix@redhat.com>
1599 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1601 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1603 Long branch stubs, multiple stub sections.
1604 * emultempl/ppc64elf.em: Include ldctor.h.
1605 (stub_file): New var.
1606 (group_size): New var.
1607 (ppc_create_output_section_statements): New function.
1608 (struct hook_stub_info): New.
1609 (hook_in_stub): New function.
1610 (ppc_add_stub_section): New function.
1611 (ppc_layout_sections_again): New function.
1612 (build_section_lists): New function.
1613 (gld${EMULATION_NAME}_finish): Rewrite.
1614 (real_func): New var.
1615 (ppc_for_each_input_file_wrapper): New function.
1616 (ppc_lang_for_each_input_file): New function.
1617 (lang_for_each_input_file): Define.
1618 (PARSE_AND_LIST_PROLOGUE): Define.
1619 (PARSE_AND_LIST_LONGOPTS): Define.
1620 (PARSE_AND_LIST_OPTIONS): Define.
1621 (PARSE_AND_LIST_ARGS_CASES): Define.
1622 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1624 2002-04-30 Tom Rix <trix@redhat.com>
1626 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1627 -blibpath, -bnolibpath support.
1629 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1631 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1632 (eelf32ppcwindiss.c): New target.
1633 * Makefile.in: Regenerated.
1634 * configure.tgt: Add support for powerpc-*-windiss.
1635 * emulparams/elf32ppcwindiss.sh: New file.
1637 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1639 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1640 * ldexp.c (exp_print_token): Add "infix_p" argument.
1641 (exp_print_tree): Update accordingly.
1643 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1645 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1646 * Makefile.in: Regenerate.
1647 * mpw-elfmips.c: Delete.
1648 * mpw-eppcmac.c: Delete.
1649 * mpw-esh.c: Delete.
1650 * mpw-idtmips.c: Delete.
1652 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1654 * emulparams/shelf32.sh (MACHINE): Now sh5.
1656 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1658 * ldgram.y: Fix syntax warning.
1660 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1662 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1663 to prevent "-n" from being taken as an abbreviation for
1664 "--no-pipeline-knowledge".
1666 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1668 * ldlang.c (lang_size_sections_1): Don't complain about
1669 SEC_NEVER_LOAD sections having no memory region specified.
1671 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1673 2002-04-07 matthew green <mrg@redhat.com>
1675 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1677 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1679 * dep-in.sed: Cope with absolute paths.
1680 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1682 * Makefile.in: Regenerate.
1684 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1686 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1688 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1690 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1691 is smaller than maximum, round dot up to common page boundary.
1693 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1695 * configure.host: Set up for generic hosts first, then tweak as
1696 necessary in more specific targets.
1697 (HOSTING_LIBS): Include libgcc_eh.a if found.
1699 2002-03-23 Andreas Jaeger <aj@suse.de>
1701 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1703 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1705 * Makefile.am: Run "make dep-am".
1706 * Makefile.in: Regenerate.
1708 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1710 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1712 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1714 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1715 add the symbol to the linker hash table immediately.
1716 (lang_place_undefineds): Split symbol creation out..
1717 (insert_undefined): ..to here.
1719 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1721 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1722 the contents of the buffer returned from basename function will are
1723 getting overwritten while still being used.
1725 2002-03-18 Jan Hubicka <jh@suse.cz>
1726 Andreas Jaeger <aj@suse.de>
1727 Andreas Schwab <schwab@suse.de>
1729 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1730 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1731 set libraries to default to lib64 paths.
1733 2002-03-18 Tom Rix <trix@redhat.com>
1735 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1736 * configure.tgt : Same.
1737 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1738 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1739 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1740 emulation parameters for better -b32, -b64 support.
1741 * emulparms/aixrs6.sh : Same.
1742 * emulparms/ppcmacos.sh : Same.
1743 * emultempl/aix.em (choose_target) : Use new emulation parameters
1744 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1745 * Makefile.in : Regenerate.
1747 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1749 * po/fr.po: Updated version.
1751 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1753 * ldmain.c (main): Move .text readonly flag fudges from here..
1754 * ldlang.c (lang_process): ..to here.
1756 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1758 * ldlang.c (lang_check): Remove the word size check added in last
1759 change. Treat emitrelocations case as for relocatable links.
1761 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1763 * po/fr.po: Updated version.
1765 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1767 * ldlang.c (lang_check): Do relocatable link checks first, so that
1768 warn_mismatch can't override. Check compatible and word size too.
1770 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1772 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1774 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1776 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1779 2002-03-04 H.J. Lu <hjl@gnu.org>
1781 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1782 .fini_array in the data segment.
1784 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1786 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1788 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1790 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1791 .init_array, and .fini_array.
1793 2002-02-20 Andreas Schwab <schwab@suse.de>
1795 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1796 .IA64_unwind* in a relocatable link.
1798 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1800 * NEWS: Mark 2.12 branch.
1802 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1804 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1805 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1807 2002-02-18 Tom Rix <trix@redhat.com>
1809 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1810 (gld*_before_allocation): Same.
1811 (gld*_create_output_section_statements): Generate
1812 __rtinit if run time linking. Add librtl.a to the link.
1813 (gld*_read_file): Clean.
1815 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1817 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1819 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1821 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1822 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1823 and eelf64alpha_fbsd.
1824 * Makefile.in: Regenerate.
1825 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1826 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1827 use a FreeBSD-specific emulation rather than the psABI one.
1828 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1829 for all FreeBSD ELF systems.
1830 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1832 * emulparams/elf32ppc_fbsd.sh: Likewise.
1833 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1834 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1835 * emulparams/elf64alpha_fbsd.sh: Likewise.
1836 * emulparams/elf_i386_fbsd.sh: Likewise.
1837 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1839 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1841 * po/tr.po: Updated version.
1843 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1845 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1848 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1850 * emultempl/mmo.em (mmo_after_open): Don't call
1851 _bfd_mmix_check_all_relocs when producing ELF output.
1853 2002-02-15 Richard Henderson <rth@redhat.com>
1855 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1856 definition. Emit a unop+nop pair.
1858 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1860 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1861 for presence of .MMIX.reg_contents.linker_allocated before early
1864 * NEWS: Mention support for MMIX.
1866 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1868 Support arbitrary length fill patterns.
1869 * ld.texinfo (Output Section Fill): Describe fill expressions.
1870 (FILL): Refer to the above.
1871 * ldexp.h (etree_value_type): Add "str" field.
1872 (union etree_union): Add "str" to "value" struct.
1873 (exp_bigintop): Declare.
1874 (exp_get_fill): Declare.
1875 * ldexp.c: Include "safe-ctype.h".
1876 (exp_intop): Set value.str to NULL.
1877 (exp_bigintop): New function.
1878 (new_rel): Pass in "str", and set new.str from it.
1879 (new_rel_from_section): Set new.str to NULL.
1880 (fold_name): Adjust calls to new_rel.
1881 (exp_fold_tree): Likewise.
1882 (exp_get_fill): New function.
1883 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1884 (INT): Returns a "bigint". Adjust all code handling INTs.
1885 (fill_opt): Returns a "fill".
1886 (fill_exp): Split out of fill_opt, use for FILL.
1887 * ldlang.h (struct _fill_type): New.
1888 (fill_type): Move typedef to ldexp.h.
1889 (lang_output_section_statement_type): "fill" is now a pointer.
1890 (lang_fill_statement_type): Likewise.
1891 (lang_padding_statement_type): Likewise.
1892 (lang_add_fill): Now takes a "fill_type *" param.
1893 (lang_leave_output_section_statement): Likewise.
1894 (lang_do_assignments): Likewise.
1895 (lang_size_sections): Likewise.
1896 (lang_leave_overlay_section): Likewise.
1897 (lang_leave_overlay): Likewise.
1898 * ldlang.c: Include ldgram.h after ldexp.h.
1899 (lang_output_section_statement_lookup): Adjust for fill_type change.
1900 (print_fill_statement): Likewise.
1901 (print_padding_statement): Likewise.
1902 (insert_pad): Now takes a "fill_type *" arg.
1903 (size_input_section): Likewise.
1904 (lang_size_sections_1): Likewise.
1905 (lang_size_sections): Likewise.
1906 (lang_do_assignments): Likewise.
1907 (lang_add_fill): Likewise.
1908 (lang_leave_output_section_statement): Likewise.
1909 (lang_leave_overlay_section): Likewise.
1910 (lang_leave_overlay): Likewise.
1911 Adjust all callers of the above function.
1912 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1913 starting with "0X" as well as "0x". Return bigint.str for hex
1914 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1915 Always use base 16 for numbers starting with "$".
1916 * ldmain.c: Include ldgram.h after ldexp.h.
1917 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1918 of bfd_fill_link_order.
1919 * pe-dll.c: Adjust lang_do_assignments calls.
1920 * emultempl/elf32.em: Likewise.
1921 * emultempl/hppaelf.em: Likewise.
1922 * emultempl/ppc64elf.em: Likewise.
1923 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1924 lang_add_assignment call.
1925 * emultempl/pe.em: Likewise.
1927 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1929 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1930 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1931 the pattern in question is not a regexp.
1932 * ldlang.c: Likewise.
1933 * ldlang.h: Likewise.
1934 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1936 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1938 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1939 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1940 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1941 * ldexp.c (exp_data_seg): New variable.
1942 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1943 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1944 (exp_fold_tree): Handle DATA_SEGMENT_END.
1945 Pass allocation_done when recursing instead of hardcoding
1946 lang_allocating_phase_enum.
1947 * ldexp.h (exp_data_seg): New.
1948 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1949 (lang_size_sections): New.
1950 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1951 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1952 if COMMONPAGESIZE is defined.
1953 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1954 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1955 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1956 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1957 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1960 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1962 * Makefile.in: Regenerate.
1964 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1966 * lexsup.c: Remove strtoul declaration.
1968 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1970 * ldmain.c: Add prototype for main ().
1971 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1972 * emultempl/lnk960.em (lnk960_choose_target): Function should
1975 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1977 * ldlang.c (entry_section): New initialised variable.
1978 (lang_finish): Use it.
1979 * ldlang.h (entry_section): Declare.
1980 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1981 entry_section to ".opd".
1983 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1985 * ld.texinfo (Options): Add back in -nostdlib documentation,
1986 which had been inadvertently removed.
1988 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1990 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1991 register section vma to a sane value after emitting error. Make
1992 fatal conditions cause program exit when emitting message.
1994 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1996 * configure.tgt: Add or32-*-rtems target.
1998 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2000 Contribute sh64-elf.
2001 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2002 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2003 in OTHER_RELOCATABLE_SECTIONS.
2004 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2005 * emulparams/shelf32.sh (STACK_ADDR): Define.
2006 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2007 (OTHER_SECTIONS): this. Removed stack settings.
2008 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2009 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2010 2001-03-12 DJ Delorie <dj@redhat.com>
2011 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2012 relaxing if any shmedia or mixed sections are found.
2013 2001-03-07 DJ Delorie <dj@redhat.com>
2014 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2015 einfo. Gracefully decline to output to non-elf formats.
2016 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2017 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2018 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2019 * emulparams/shelf32.sh: Ditto.
2020 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2021 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2023 2001-01-10 Ben Elliston <bje@redhat.com>
2024 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2025 non-portable shell constructs. From Hans-Peter Nilsson.
2026 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2027 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2028 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2029 dependencies to the shell script include chain.
2030 * Makefile.in: Regenerate.
2031 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2032 * emultempl/sh64elf.em: Update and tweak comments.
2033 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2034 make a .cranges section SEC_IN_MEMORY.
2035 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2036 * emultempl/sh64elf.em
2037 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2038 .cranges section found to be necessary; continue and set stored
2039 section contents flags for sections with non-mixed contents.
2040 Use a struct sh64_section_data container and sh64_elf_section_data
2041 to store contents-type flags.
2042 Remove unused update of "isec".
2043 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2044 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2045 access contents-type flags. Assert that the associated container
2046 is initialized. Use that container, not elf_gp_size, to hold size
2047 of linker-generated cranges contents.
2048 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2049 * emultempl/sh64elf.em
2050 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2051 there's already a .cranges section. When section flag difference
2052 is found, don't NULL-check cranges a second time. Tweak comments.
2053 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2054 merging, not max size, as size of ld-generated .cranges contents.
2055 Don't set ELF section flags in output section. When checking for
2056 needed .cranges descriptors, don't use a variable; compare
2057 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2059 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2060 * emultempl/sh64elf.em: New file.
2061 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2062 * Makefile.in: Regenerate.
2063 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2064 (OTHER_RELOCATING_SECTIONS): Ditto.
2065 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2066 * emulparams/shlelf32.sh: Stub out all settings except
2067 OUTPUT_FORMAT. Source shelf32.sh.
2068 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2069 OTHER_RELOCATING_SECTIONS.
2070 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2071 * emulparams/shlelf64.sh: Stub out all settings except
2072 OUTPUT_FORMAT. Source shelf64.sh.
2073 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2074 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2076 (DATA_START_SYMBOLS): Define, provide ___data.
2077 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2078 for consecutive .data section.
2079 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2080 section after .data section.
2081 * emulparams/shlelf64.sh: Ditto.
2082 * emulparams/shelf32.sh: Ditto.
2083 (ALIGNMENT): Define to 8.
2084 * emulparams/shelf32.sh: Ditto.
2085 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2086 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2087 built-in linker scripts.
2088 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2089 * emulparams/shlelf64.sh: New.
2090 * emulparams/shelf64.sh: New.
2091 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2093 * Makefile.am: Add support for shlelf64 and shelf64.
2094 * Makefile.in: Regenerate.
2095 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2096 * configure.tgt (sh64-*-elf*): Add shelf as default.
2097 Add shlelf to targ_extra_emuls.
2098 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2099 * emulparams/shelf32.sh: New file.
2100 * emulparams/shlelf32.sh: New file.
2101 * Makefile.am: Add support for shlelf32 and shelf32.
2102 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2103 * Makefile.in: Regenerate.
2105 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2107 * ldlang.c (lang_reset_memory_regions): Rename from
2108 reset_memory_regions. Change all callers. Make public.
2109 * ldlang.h (lang_reset_memory_regions): Prototype.
2110 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2111 lang_reset_memory_regions before lang_size_sections.
2112 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2113 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2115 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2117 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2118 arithmetic when checking for too many global registers.
2120 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2122 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2123 (ehppanbsd.c): New rule.
2124 * Makefile.in: Regenerate.
2125 * configure.tgt (hppa*-*-netbsd*): New target.
2126 * emulparams/hppalinux.sh: Add comment to check other files
2127 that source this file it is modified, and list which
2129 * emulparams/hppanbsd.sh: New file.
2131 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2133 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2136 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2138 Support on-demand global register allocation from
2139 R_MMIX_BASE_PLUS_OFFSET relocs.
2140 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2141 mmix_set_reg_section_vma. Call
2142 _bfd_mmix_finalize_linker_allocated_gregs.
2143 (mmix_before_allocation): New function.
2144 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2145 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2146 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2147 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2148 before .MMIX.reg_contents.
2149 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2150 (mmo_after_open): New function.
2151 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2152 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2153 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2155 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2157 * emulparams/or32.sh: New file.
2158 * emulparams/or32elf.sh: New file.
2159 * scripttempl/or32.sc: New file.
2160 * configure.tgt : Add support for or32.
2161 * configure: Regenerate
2162 * Makefile.am: Add support for or32.
2163 * Makefile.in: Regenerate.
2164 * NEWS: Mention support for or32.
2165 * po/ld.pot: Regenerate.
2167 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2168 Mitch Lichtenberg <mpl@broadcom.com>
2170 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2171 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2172 reloc creation (ld --embedded-relocs).
2174 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2176 * configure: Regenerated.
2178 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2180 * Makefile.am (install): Depend on install-info.
2181 * Makefile.in: Regenerate.
2183 2002-01-26 Christian Rose <menthos@menthos.com>
2185 * ldmain.c (main): Use full sentences to ease translation.
2187 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2189 * po/fr.po: Updated version.
2191 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2193 * po/es.po: Updated version.
2195 2002-01-25 Andreas Jaeger <aj@suse.de>
2197 * ldlex.l (yy_input): Correct error check.
2199 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2201 * ldmisc.c (demangle): Put back dots when string not demangled.
2203 2002-01-22 Richard Henderson <rth@redhat.com>
2205 * emulparams/elf64alpha.sh (NOP): Use unop.
2207 2002-01-21 Andreas Jaeger <aj@suse.de>
2209 * ldlex.l: Use fread instead of read.
2211 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2213 * configure.tgt (ia64-*-netbsd*): New target.
2215 2002-01-21 H.J. Lu <hjl@gnu.org>
2217 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2219 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2221 2002-01-18 Andreas Jaeger <aj@suse.de>
2223 * ldver.c (ldversion): Update year.
2225 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2227 * po/ld.pot: Regenerate.
2229 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2231 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2232 * Makefile.in: Regenerate.
2233 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2234 * emultempl/ppc64elf.em: New file.
2236 2002-01-15 DJ Delorie <dj@redhat.com>
2238 * scripttempl/pe.sc: Add support for constructor priorities.
2240 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2242 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2243 * emulparams/avr23xx.sh: Likewise.
2244 * emulparams/avr4433.sh: Likewise.
2245 * emulparams/avr44x4.sh: Likewise.
2246 * emulparams/avr85xx.sh: Likewise.
2247 * emulparams/avrmega103.sh: Likewise.
2248 * emulparams/avrmega161.sh: Likewise.
2249 * emulparams/avrmega603.sh: Likewise.
2250 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2252 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2254 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2255 archive is excluded.
2257 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2259 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2260 (eshelf_nbsd.c): New rule.
2261 (eshlelf_nbsd.c): New rule.
2262 * Makefile.in: Regenerate.
2263 * configure.tgt (sh*le-*-netbsdelf*): New target.
2264 (sh*-*-netbsdelf*): New target.
2265 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2266 * ld/emulparams/shelf_nbsd.sh: New emulation.
2267 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2269 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2271 * po/es.po: New file: Spanish translation.
2272 * configure.in (ALL_LINGUAS): Add es.
2273 * configure: Regenerate.
2275 2002-01-06 John Marshall <jmarshall@acm.org>
2277 * ld.texinfo: Note that --emit-relocs is currently only
2278 implemented for ELF.
2280 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2282 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2283 of bfd_section_list_remove and bfd_section_list_insert macros.
2284 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2285 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2287 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2289 * configure.tgt (x86_64-*-netbsd*): New target.
2291 2001-12-21 Tom Rix <trix@redhat.com>
2293 (gld*_create_output_section_statements): New function.
2294 For -binitfini support.
2295 * emultempl/aix.em (gld*_before_parse): Fix comment.
2296 * emultempl/aix.em (gld*_parse_args): Fix comment.
2298 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2300 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2302 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2304 * configure.tgt (arm-*-netbsdelf*): Add target.
2305 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2306 * emulparams/armelf_nbsd.sh: Added.
2307 * Makefile.am: Add rules for earmelf_nbsd.
2308 * Makefile.in: Regenerate.
2310 2001-12-19 Andreas Jaeger <aj@suse.de>,
2311 Susanne Oberhauser <froh@suse.de>
2313 * configure.host: Add rules for x86_64-*linux-gnu. Change
2314 s390x-linux entry to use gcc to report configuration, replace gcc
2315 with $CC in s390-linux
2317 2001-12-19 Andreas Jaeger <aj@suse.de>
2319 * ld.texinfo (VERSION): Fix markup.
2321 2001-12-18 matthew green <mrg@eterna.com.au>
2323 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2324 (m68kelfnbsd.c): New rule.
2325 * Makefile.in: Regenerate.
2326 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2327 (m68*-*-netbsd*4k*): .. this.
2328 (m68*-*-netbsdelf*): New target.
2329 (m68*-*-netbsd*): Also include ELF support.
2330 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2331 * emulparams/m68kelfnbsd.sh: New emulation.
2333 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2335 * ldgram.y (vers_node): Support anonymous version tags.
2336 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2337 tag is not defined together with non-anonymous versions.
2338 * ld.texinfo: Document it.
2340 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2342 * po/tr.po: New file: Turkish translation.
2343 * configure.in (ALL_LINGUAS): Add tr.
2344 * configure: Regenerate.
2346 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2348 * Makefile.am: Add rules for eelf64alpha_nbsd.
2349 * Makefile.in: Regenerate.
2350 * configure.tgt (alpha*-*-netbsd*): Set
2351 targ_emul to elf64alpha_nbsd.
2352 * emulparams/elf64alpha_nbsd.sh: Added.
2354 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2356 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2357 section_tail when fiddling with section list.
2358 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2359 broken into separate strings to make translation easier.
2360 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2361 fiddling with section list.
2362 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2364 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2366 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2368 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2370 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2372 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2374 * emultempl/elf32.em (finish): Supply output_bfd
2375 to bfd_elf*_discard_info.
2376 (OPTION_EH_FRAME_HDR): Define.
2377 (longopts): Add --eh-frame-hdr.
2378 (parse_args): Handle it.
2379 (list_options): Add --eh-frame-hdr to help.
2380 * emultempl/hppaelf.em (finish): Supply output_bfd
2381 to bfd_elf*_discard_info.
2382 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2384 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2386 * lexsup.c (parse_args): Don't pass shortopts to second call to
2387 getopt functions. Restore optind rather than decrementing before
2388 second call. Remove errind as it now duplicates last_optind.
2390 2001-12-11 Christopher Faylor <cgf@redhat.com>
2392 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2394 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2395 Richard Henderson <rth@redhat.com>
2397 * Makefile.am: Add support for xstormy16.
2398 * configure.tgt: Add support for xstormy16.
2399 * Makefile.in: Regenerate.
2400 * emulparams/elf32xstormy16.sh: New file.
2401 * scripttempl/xstormy16.sc: New file.
2403 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2405 * Makefile.in (LIB_PATH): Make configurable.
2406 (GENSCRIPTS): Set LIB_PATH in environment.
2407 * configure.in: Substitute LIB_PATH.
2408 * configure: Regenerate.
2409 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2410 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2412 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2414 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2415 describing the -N option so that it is easier to translate into
2418 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2420 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2421 statements describing a single option with a single, newline
2422 escaped fprintf. This allows better translation into other
2425 * ldmain.c (add_archive_element): Combine multiple strings
2426 into a single string to permit better translation into other
2429 2001-12-05 Tom Rix <trix@redhat.com>
2431 * Makefile.am: Remove eaixppc64.
2432 * Makefile.in: Regenerate.
2434 2001-12-04 Tom Rix <trix@redhat.com>
2436 * emultempl/aix.em (choose_target): Change default target to
2437 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2439 (gld*_read_file): Fix typo.
2440 (change_symbol_mode): Add prototype.
2443 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2444 * emulparams/aixrs6.sh : Same.
2445 * emulparams/ppcmacos.sh : Same.
2446 * emulparams/aixppc64.sh : Delete file.
2447 * emultempl/aix.em : Formatting changes.
2449 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2451 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2452 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2454 (OTHER_END_SYMBOLS): Fix formatting.
2455 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2456 (OTHER_END_SYMBOLS): Fix formatting.
2458 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2460 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2462 2001-12-02 Tom Rix <trix@redhat.com>
2464 * configure.tgt : Remove eaixppc64 emulations.
2465 * Makefile.in : Remove eaixppc64.c
2466 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2467 (ldemul_default_target): Same.
2468 * emultempl/gld960.em (gld960_choose_target): Same.
2469 * emultempl/gld960c.em (gld960_choose_target): Same.
2470 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2471 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2472 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2473 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2474 * emultempl/aix.em (choose_target): New function. Handle emulation of
2477 2001-11-27 H.J. Lu <hjl@gnu.org>
2479 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2480 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2481 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2482 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2483 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2484 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2485 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2486 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2488 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2491 (REL_SDATA): Likewise.
2492 (REL_SBSS): Likewise.
2493 (REL_SDATA2): Likewise.
2494 (REL_SBSS2): Likewise.
2495 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2498 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2500 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2502 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2504 2001-11-22 H.J. Lu <hjl@gnu.org>
2506 * Makefile.in: Regenerated with automake based on automake
2507 1.4-8 in RedHat 7.1.
2509 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2511 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2512 (config.status): Delete rule.
2513 Add extra dependencies to cover sourced emulparams files.
2514 * Makefile.in: Regenerate.
2516 * scripttempl/elf.sc: Order <section>, <section>.* and
2517 corresponding linkonce sections as seen in input files.
2518 Formatting fixes. Zero vma of all sections if not relocating.
2519 (STACK): Define and insert if STACK_ADDR defined.
2520 (OTHER_RELOCATING_SECTIONS): Delete.
2521 (OTHER_END_SYMBOLS): Define.
2522 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2523 (OTHER_READWRITE_SECTIONS): Likewise.
2524 (OTHER_GOT_SECTIONS): Likewise.
2525 (OTHER_SDATA_SECTIONS): Likewise.
2526 (OTHER_BSS_SECTIONS): Likewise.
2527 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2528 (OTHER_READWRITE_SECTIONS): Likewise.
2529 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2530 (OTHER_READWRITE_SECTIONS): Likewise
2532 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2533 (STACK_ADDR): Define.
2534 * emulparams/armelf_oabi.sh: As for armelf.sh.
2535 * emulparams/elf32mcore.sh: As for armelf.sh.
2536 * emulparams/h8300elf.sh: As for armelf.sh.
2537 * emulparams/mn10200.sh: As for armelf.sh.
2538 * emulparams/shelf.sh: As for armelf.sh.
2540 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2541 (OTHER_END_SYMBOLS): Define.
2542 * emulparams/m32relf.sh: As for elf32fr30.sh.
2543 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2544 * emulparams/h8300self.sh: As for elf32fr30.sh.
2546 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2547 defines with RELOCATING test.
2548 (OTHER_SDATA_SECTIONS): Likewise.
2549 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2550 (OTHER_END_SYMBOLS): ..this.
2551 * emulparams/crislinux.sh: As for criself.sh.
2553 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2555 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2556 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2557 normal and linkonce sections as seen in input files.
2558 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2559 (TEXT_DYNAMIC): Likewise.
2560 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2561 (OTHER_SDATA_SECTIONS): Likewise.
2562 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2563 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2564 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2565 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2566 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2567 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2568 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2569 sections as seen in input files.
2570 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2571 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2573 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2574 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2575 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2576 (OTHER_SECTIONS): Instead, use this..
2577 (OTHER_END_SYMBOLS): ..and this.
2579 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2580 * emulparams/elf32bsmip.sh: Likewise.
2581 * emulparams/elf32btsmip.sh: Likewise.
2582 * emulparams/elf32ebmip.sh: Likewise.
2583 * emulparams/elf32lmip.sh: Likewise.
2584 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2585 * emulparams/elf32lsmip.sh: Likewise.
2586 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2587 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2588 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2589 * emulparams/elf64btsmip.sh: Likewise.
2590 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2591 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2592 * emulparams/elf32ppclinux.sh: Likewise.
2593 * emulparams/elf32ppcsim.sh: Likewise.
2594 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2595 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2596 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2597 * emulparams/h8300self.sh: Likewise.
2598 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2599 * emulparams/sh.sh: Comment.
2600 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2601 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2602 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2604 2001-11-21 David Heine <dlheine@tensilica.com>
2605 Alan Modra <amodra@bigpond.net.au>
2607 * ldlang.c (map_input_to_output_sections): Replace "break"
2608 accidentally removed with 2001-08-03 change.
2609 (lang_gc_sections_1): Likewise.
2611 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2613 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2615 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2617 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2618 of false when calling lang_size_sections.
2619 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2621 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2623 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2624 function when LDEMUL_FINISH isn't set to the same name. Don't
2625 call ${LDEMUL_FINISH}.
2626 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2627 * emultempl/armelf.em (arm_elf_finish): Call
2628 gld${EMULATION_NAME}_finish.
2629 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2630 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2631 hppaelf_layout_sections_again if necessary.
2632 (need_laying_out): New var.
2633 (hppaelf_layaout_sections_again): Rename to
2634 hppaelf_layout_sections_again. Clear need_laying_out.
2635 (PARSE_AND_LIST_OPTIONS): Format text.
2637 2001-11-14 H.J. Lu <hjl@gnu.org>
2639 * emultempl/armelf.em (arm_elf_finish): Renamed from
2640 gld${EMULATION_NAME}_finish.
2641 (LDEMUL_FINISH): Set to arm_elf_finish.
2643 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2645 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2646 (struct ld_emulation_xfer_struct): Use it.
2648 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2650 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2651 additional symbols referenced by newer crt0.o files from HP.
2653 2001-11-12 Anthony Green <green@redhat.com>
2655 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2657 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2659 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2660 * Makefile.in: Regenerate.
2662 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2664 * ld.texinfo: Use @command for commands, @option for options.
2665 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2667 * Makefile.in: Rebuild.
2669 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2671 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2672 Add support for targets.
2674 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2676 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2677 * configure: Regernate.
2678 * po/fr.po: New file.
2679 * po/sv.po: New file.
2681 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2683 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2684 as little endian default and to support big endian.
2686 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2688 * ld.texinfo (Options): Document new option, -nostdlib.
2689 * lexsup.c (OPTION_NOSTDLIB): New definition.
2690 (ld_options): Add entry for "nostdlib".
2691 (parse_args): Handle OPTIONS_NOSTDLIB.
2692 * ldfile.c (ldfile_add_library_path): Don't add directories
2693 to the search path if they weren't specified on the command line
2694 and -nostdlib was specified.
2695 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2697 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2699 * lexsup.c (parse_args): Prevent infinite parsing loop when
2700 "-rpath.a" is specified on the command line.
2701 Replace calls to fprintf with calls to einfo.
2703 2001-10-31 John Marshall <jmarshall@acm.org>
2705 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2706 appear only once across all the linker scripts involved in a link
2707 invocation no longer applies. Make the documentation reflect
2710 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2712 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2714 (sh-*-linux*): Added targ_extra_libpath.
2716 2001-10-31 David Heine <dlheine@tensilica.com>
2718 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2719 for padding statements.
2721 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2723 * configure.tgt (mmix-*-*): New target.
2724 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2725 Add dependencies to match.
2726 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2727 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2728 scripttempl/mmo.sc: New files.
2729 * gen-doc.texi: @set MMIX.
2730 * ld.texinfo: Ditto.
2731 [MMIX] Add MMIX node.
2732 * Makefile.in: Regenerate.
2734 2001-10-29 Kazu Hirata <kazu@hxi.com>
2736 * ldlang.c: Fix a comment typo.
2738 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2740 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2741 entries, and match *-*-linux*.
2743 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2745 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2746 with ldlex_script, ldlex_popstate.
2747 (ifile_p1): Likewise.
2748 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2750 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2751 to 1. Don't BEGIN(SCRIPT).
2752 (lex_redirect): Similarly.
2753 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2755 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2757 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2758 __EH_FRAME_END__ and accept eh frames into data section.
2759 Add ctor and dtor sections.
2761 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2763 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2764 (auto-export): Fix indentation.
2766 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2768 * pe-dll.c (autofilter_objectlist): Add startup objects
2770 (auto-export): Constify char * p.
2771 Extract file basename and use strcmp rather than ststr
2774 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2776 * ldmain.c (get_emulation): Improve comment about the handling
2779 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2781 * po/POTFILES.in: Regenerate.
2783 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2785 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2786 -z nocopyreloc and -z nocombreloc usage strings.
2788 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2790 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2793 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2795 * scripttempl/armaout.sc: Place .bss section after end of aligned
2796 data section to match behaviour of aout code in constructrion of
2799 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2801 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2802 startup files for mingw32 dlls to list.
2804 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2806 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2808 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2810 * configure.tgt (targ): Add arm9e-*-elf.
2812 2001-10-05 H.J. Lu <hjl@gnu.org>
2814 * genscripts.sh: Fix a typo in the last change.
2816 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2818 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2819 -z nocombreloc in usage.
2821 2001-10-03 Jim Blandy <jimb@redhat.com>
2823 * genscripts.sh: Include a comment at the top of each generated
2824 script, explaining its purpose.
2826 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2828 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2829 * NEWS: Mention -z nocopyreloc.
2830 * ld.texinfo (Options): Describe nocopyreloc.
2832 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2834 * configure: Regenerate.
2836 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2838 * ldver.h (ld_program_version): Remove declaration.
2839 * lexsup.c (parse_args): Move printing of copyright message..
2840 * ldver.c (ldversion): .. to here.
2841 Use BFD_VERSION_STRING in place of BFD_VERSION.
2842 (ld_program_version): Remove.
2843 * Makefile.am (Makefile): Depend on bfd/configure.in.
2845 * Makefile.in: Regenerate.
2847 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2849 * Makefile.am: Update dependencies with "make dep-am".
2850 * Makefile.in: Regenerate.
2852 2001-09-29 John Reiser <jreiser@BitWagon.com>
2854 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2855 * lexsup.c: Add --no-define-common commandline option.
2856 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2857 * ldlex.l: Likewise.
2858 * ld.h: Add command_line.inhibit_common_definition.
2859 * ldmain.c (main): Initialize.
2860 * ld.texinfo: Document.
2862 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2864 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2866 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2868 * ldmisc.c (USE_STDARG): Remove.
2869 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2874 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2875 declarations. Update copyright.
2877 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2879 * pe-dll.c: Remove obsoleted declaration of
2880 pe_get_data_import_dll_name.
2881 (pe_create_import_fixup): Fix thinko.
2883 * ld.texinfo(enable-auto-import): Clarify the explanation.
2885 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2887 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2888 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2889 DLL_SUPPORT controlled code.
2891 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2893 * emultempl/pe.em(pe_data_import_dll): Make static.
2894 (pe_get_data_import_dll_name): New accessor function.
2895 * pe-dll.c(pe_create_import_fixup): call
2896 pe_get_data_import_dll_name() from pe.em, instead of
2897 directly accessing pe_data_import_dll variable from pe.em.
2899 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2901 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2902 (def_file_add_directive): Use ISSPACE instead of isspace.
2903 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2904 isdigit/isxdigit/isalpha/isalnum.
2905 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2906 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2907 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2908 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2910 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2911 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2913 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2914 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2915 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2916 (ctor_prio): Use ISDIGIT instead of isdigit.
2917 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2918 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2919 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2921 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2922 (stricpy): Use TOLOWER instead of isupper/tolower.
2923 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2924 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2925 (lex_warn_invalid): Use ISPRINT instead of isprint.
2926 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2927 (main): For gettext, also set the LC_CTYPE locate facet.
2928 (add_keepsyms_file): Use ISSPACE instead of isspace.
2929 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2930 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2931 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2932 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2933 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2934 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2935 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2936 (quoteput): Use ISSPACE instead of isspace.
2937 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2940 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2942 * deffilep.y (def_stash_module): Constify "name" param.
2944 * pe-dll.c: Replace CONST with const throughout.
2945 (quick_symbol): Constify "n1", "n2", "n3" params.
2946 (make_singleton_name_thunk): Constify "import" param. Make
2947 "buffer_len" a size_t.
2948 (make_import_fixup_entry): Constify "name", "fixup_name",
2949 "dll_symname" params.
2950 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2951 (pe_get32): Likewise.
2952 (pe_implied_import_dll): Likewise.
2954 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2955 (sort_by_section_name): Likewise.
2957 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2958 (make_import_fixup): Cast printf arg, rel->address to long rather
2960 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2962 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2964 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2965 defines BufferSize. Increase buffer size by one.
2967 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2969 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2971 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2973 * configure.tgt: Add arm-openbsd target.
2975 2001-09-12 H.J. Lu <hjl@gnu.org>
2977 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2979 (ALL_64_EMULATIONS): Here.
2980 * Makefile.in: Regenerated.
2982 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2984 * emultempl/pe.em(make_import_fixup): change signature to
2985 take asection as well as arelec; we need this for proper
2986 error reporting. Only call pe_create_import_fixup() if
2987 there is no attempt to add a constant addend to the reloc;
2988 otherwise, report error condition.
2989 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2990 since final argument is a pointer to make_import_fixup().
2991 Change call to cb() to match make_import_fixup() signature.
2992 (make_import_fixup_mark): make buffer_len unsigned.
2993 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2995 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2997 * ld.texinfo: add verbose documentation for auto-import
2998 direct-addressing workaround, to compliment the terse
3001 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3003 * scripttempl/v850.sc: Add gcc_except_table sections.
3005 2001-09-11 Jeffrey A Law (law@cygnus.com)
3007 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3008 * emulparams/h8300self.sh: Similarly.
3010 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3012 * ld.texinfo (Options, --stack): Correct default value for stack
3015 2001-09-05 Tom Rix <trix@redhat.com>
3017 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3019 2001-09-03 Andreas Jaeger <aj@suse.de>
3021 * emultempl/beos.em: Declare prototypes for comparions functions,
3024 2001-09-02 Andreas Jaeger <aj@suse.de>
3026 * emultempl/aix.em: Add missing prototype.
3027 * emultempl/lnk960.em: Likewise.
3028 * emultempl/vanilla.em: Likewise.
3029 * emultempl/armcoff.em: Likewise.
3030 * emultempl/armelf_oabi.em: Likewise.
3031 * emultempl/beos.em: Likewise.
3032 * emultempl/gld960c.em: Likewise.
3033 * emultempl/gld960.em: Likewise.
3035 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3036 for prototype declaration.
3038 2001-08-31 Eric Christopher <echristo@redhat.com>
3039 Jason Eckhardt <jle@redhat.com>
3041 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3043 2001-08-31 Andreas Jaeger <aj@suse.de>
3045 * emultempl/pe.em: Add missing prototypes.
3046 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3047 pe_find_data_imports.
3048 (pr_sym): Add unused attribute.
3050 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3052 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3053 default from coff to elf.
3055 2001-08-29 Jeff Law <law@redhat.com>
3057 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3059 * emulparams/h8300self.sh: Similarly.
3061 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3063 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3065 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3066 * configure.tgt (h8300-*-elf*): New case.
3067 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3068 * emulparams/h8300self.sh: New file.
3069 * Makefile.in: Regenerated.
3071 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3073 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3076 2001-08-27 Linus Nordberg <linus@swox.com>
3077 Alan Modra <amodra@bigpond.net.au>
3079 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3080 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3082 * Makefile.in: Regenerate.
3083 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3084 entries to correct alphabetical position.
3085 * emulparams/elf64ppc.sh: New.
3086 * emulparams/elf64lppc.sh: New.
3088 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3090 * ldmain.c (main): Declare BSIZE as static.
3092 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3094 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3095 into .rel.dyn resp. .rela.dyn if combreloc.
3096 (get_script): If .x linker script is equal to .xn, only put it
3097 once into the binary.
3098 Add .xc and .xsc scripts.
3099 (parse_args): Handle -z combreloc and -z nocombreloc.
3100 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3101 For .xc and .xsc scripts put all .rel* or .rela* input sections
3102 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3103 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3105 Strip trailing whitespace from script.
3106 Generate .xc and .xsc scripts if requested.
3107 * ldmain.c (main): Initialize link_info.combreloc and
3108 link_info.spare_dynamic_tags.
3109 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3110 (ld_options): Add --spare-dynamic-tags option.
3111 (parse_args): Likewise.
3112 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3113 * ldint.texinfo: Document .xc and .xsc linker scripts.
3114 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3116 2001-08-22 H.J. Lu <hjl@gnu.org>
3118 * emulparams/elf32fr30.sh: Add a newline.
3120 2001-08-21 Andreas Jaeger <aj@suse.de>
3122 * deffilep.y: Add missing prototypes.
3123 * pe-dll.c: Likewise.
3125 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3127 * ldlang.c (insert_pad): Fix typos in last patch.
3129 * ldlang.c: When traversing lang_statement_union_type lists,
3130 consistently use "header.next" rather than "next".
3131 * mpw-eppcmac.c: Likewise.
3132 * emultempl/beos.em: Likewise.
3133 * emultempl/hppaelf.em: Likewise.
3134 * emultempl/pe.em: Likewise.
3135 * ldlang.h (union lang_statement_union): Remove "next" field.
3137 * ldlang.c (insert_pad): Use offsetof macro.
3138 (lang_size_sections): Always neuter padding statements.
3139 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3141 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3142 passed to lang_size_sections.
3143 (pe_exe_fill_sections): Likewise.
3144 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3145 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3147 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3149 * emultempl/aix.em: Formatting fixes.
3151 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3153 * ldlang.c (insert_pad): Make use of an existing pad statement if
3154 available. Move code calculating alignment, adjusting section
3155 alignment power, and adjusting dot to ..
3156 (size_input_section): .. here. Remove unused relax param.
3157 (lang_size_sections): Change boolean `relax' param to boolean *.
3158 Adjust call to size_input_section. Make use of insert_pad to
3159 place pad after the assignment statement. If relaxing, zap
3161 (reset_memory_regions): Reset output_bfd section sizes too.
3162 (relax_again): Move to..
3163 (lang_process): ..here. Adjust call to lang_size_sections, and
3164 remove duplicated code.
3165 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3167 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3169 * ld.texinfo: Document that fill values now use the four least
3171 * emulparams/elf32fr30.sh (NOP): Update.
3172 * emulparams/elf32mcore.sh: Likewise.
3173 * emulparams/elf64_s390.sh: Likewise.
3174 * emulparams/elf_i386.sh: Likewise.
3175 * emulparams/elf_i386_be.sh: Likewise.
3176 * emulparams/elf_i386_chaos.sh: Likewise.
3177 * emulparams/elf_i386_ldso.sh: Likewise.
3178 * emulparams/elf_s390.sh: Likewise.
3179 * emulparams/elf_x86_64.sh: Likewise.
3180 * emulparams/i386moss.sh: Likewise.
3181 * emulparams/i386nw.sh: Likewise.
3182 * emulparams/m68kelf.sh: Likewise.
3183 * scripttempl/elf.sc: Update NOP comment.
3184 * scripttempl/elfi370.sc: Likewise.
3185 * scripttempl/elfm68hc11.sc: Likewise.
3186 * scripttempl/elfm68hc12.sc: Likewise.
3187 * scripttempl/nw.sc: Likewise.
3189 2001-08-15 Tom Rix <trix@redhat.com>
3191 * ldgram.y (saved_script_handle): Initialize to NULL.
3192 * ldmain.c (main): Change check on saved_script_handle.
3194 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3196 * emultempl/elf32.em: Formatting fixes.
3197 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3198 looking at sec->owner.
3199 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3200 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3201 unused code, and reorganize orphan section placement code.
3203 * ldlang.c (wild_doit): Rename to lang_add_section.
3204 * ldlang.h: Here too.
3205 * mpw-elfmips.c: And here.
3206 * emultempl/beos.em: And here.
3207 * emultempl/elf32.em: And here.
3208 * emultempl/hppaelf.em: And here.
3209 * emultempl/pe.em: And here.
3211 2001-08-13 Richard Henderson <rth@redhat.com>
3213 * emultempl/needrelax.em: New file.
3214 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3215 * Makefile.am (eelf64_ia64.c): Depend on it.
3216 * Makefile.in: Rebuild.
3218 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3220 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3221 output_section is set non-NULL.
3223 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3224 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3225 needlessly create an output_section_statement. Treat a correctly
3226 named output_section_statement with NULL bfd_section as compatible.
3228 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3230 * emultempl/generic.em: Support EXTRA_EM_FILE.
3231 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3232 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3233 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3234 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3235 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3236 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3237 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3238 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3239 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3240 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3242 2001-08-12 Richard Henderson <rth@redhat.com>
3244 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3245 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3246 scripttempl/v850.sc: Keep .jcr data.
3248 2001-08-12 H.J. Lu <hjl@gnu.org>
3249 Andrew Haley <aph@cambridge.redhat.com>
3250 Nick Clifton <nickc@redhat.com>
3252 * ldgram.y (had_script): Change name to saved_script_handle.
3253 Change type to file handle.
3254 * ld.h (had_script): Rename and retype.
3255 * ldfile.c (ldfile_open_command_file): Save the file handle
3256 used in saved_script_handle.
3257 * lexsup.c (parse_args): Do not allow -c option to alter
3258 saved_script_handle.
3259 * ldmain.c (main): Print out the linker script used if
3260 --verbose is given. Check saved_script_handle to obtain the
3261 external linker script used, or if NULL, dump the builtin
3263 * ld.texinfo: Document that --verbose now dumps the linker
3264 script used, regardless of whether it was an internal or an
3267 2001-08-10 Andreas Jaeger <aj@suse.de>
3269 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3271 * configure: Regenerate.
3273 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3275 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3277 * scripttempl/elf.sc: Move non-text .dynamic section before
3278 .plt/.got/.sdata* group.
3279 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3280 (OTHER_SDATA_SECTIONS): Add.
3281 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3283 * emulparams/crislinux.sh: Likewise.
3284 * emulparams/elf32b4300.sh: Likewise.
3285 * emulparams/elf32bmip.sh: Likewise.
3286 * emulparams/elf32bmipn32.sh: Likewise.
3287 * emulparams/elf32bsmip.sh: Likewise.
3288 * emulparams/elf32btsmip.sh: Likewise.
3289 * emulparams/elf32ebmip.sh: Likewise.
3290 * emulparams/elf32elmip.sh: Likewise.
3291 * emulparams/elf32l4300.sh: Likewise.
3292 * emulparams/elf32lmip.sh: Likewise.
3293 * emulparams/elf32lsmip.sh: Likewise.
3294 * emulparams/elf32ltsmip.sh: Likewise.
3295 * emulparams/elf64bmip.sh: Likewise.
3296 * emulparams/elf64btsmip.sh: Likewise.
3297 * emulparams/elf64ltsmip.sh: Likewise.
3299 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3301 * genscripts.sh: Source the emulparams script before each output
3302 script is generated so that variables like `RELOCATING' may affect
3303 variables defined in the emulparams script.
3305 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3307 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3310 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3311 ie. iterate over wild_statement.section_list.
3312 (gld${EMULATION_NAME}_place_orphan): Likewise.
3314 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3316 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3317 .fini[0-4] sections used by _exit
3318 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3319 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3320 * scripttempl/elfm68hc11.sc: Likewise.
3322 2001-08-03 H.J. Lu <hjl@gnu.org>
3324 * emultempl/beos.em (init): Add the missing initialization.
3326 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3328 * ld.texinfo (Input Section Basics): Clarify ordering of output
3330 * ldlang.c (callback_t): Add wildcard_list param.
3331 (walk_wild_section): Remove "section" param. Rewrite for
3332 lang_wild_statement_type change. Remove unique_section_p test.
3333 (walk_wild_file): Remove "section" param.
3334 (walk_wild): Remove "section" and "file" params.
3335 (lang_gc_wild): Likewise.
3336 (wild): Likewise. Modify for lang_wild_statement_type change.
3337 (wild_sort): Likewise. Add "sec" param.
3338 (gc_section_callback): Likewise.
3339 (output_section_callback): Likewise. Do unique_section_p test.
3340 (map_input_to_output_sections): Modify call to wild.
3341 (lang_gc_sections_1): Likewise.
3342 (print_wild_statement): Modify for lang_wild_statement_type
3344 (lang_add_wild): Replace filename, filenames_sorted param with
3345 filespec. Replace section_name, sections_sorted,
3346 exclude_filename_list with section_list.
3347 * ldlang.h (lang_add_wild): Here too.
3348 (lang_wild_statement_type): Replace section_name, sections_sorted,
3349 and exclude_filename_list with section_list.
3350 * ldgram.y (current_file): Delete.
3351 (%union): Add wildcard_list.
3352 (file_NAME_list): Set type to wildcard_list. Build a linked list
3353 rather than calling lang_add_wild for each entry.
3354 (input_section_spec_no_keep): Call lang_add_wild here instead.
3355 * ld.h (struct wildcard_list): Declare.
3356 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3358 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3360 * ldmain.c (main): initialize link_info.pei386_auto_import
3361 * pe-dll.c: new tables for auto-export filtering
3362 (auto_export): change API, pass abfd for contextual filtering.
3363 Loop thru tables of excluded symbols instead of comparing
3366 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3368 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3369 static variable current_sec (static struct sec *). Add
3370 forward declaration for add_bfd_to_link.
3371 (process_def_file): Don't export undefined symbols. Do not
3372 export symbols starting with "_imp__". Call auto_export()
3374 (pe_walk_relocs_of_symbol): New function.
3375 (generate_reloc): add optional extra debugging
3376 (pe_dll_generate_def_file): eliminate extraneous initial blank
3378 (make_one): enlarge symtab to make room for __nm__ symbols
3379 (DATA auto-import support).
3380 (make_singleton_name_thunk): New function.
3381 (make_import_fixup_mark): New function.
3382 (make_import_fixup_entry): New function.
3383 (pe_create_import_fixup): New function.
3384 (add_bfd_to_link): Specify that 'name' argument is a CONST
3386 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3387 declare new functions pe_walk_relocs_of_symbol and
3388 pe_create_import_fixup.
3389 * emultempl/pe.em: add new options --enable-auto-import,
3390 --disable-auto-import, and --enable-extra-pe-debug.
3391 (make_import_fixup): New function.
3392 (pe_find_data_imports): New function.
3393 (pr_sym): New function.
3394 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3395 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3398 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3400 * ld.texinfo: add additional documentation for
3401 --export-all-symbols. Document --out-implib,
3402 --enable-auto-image-base, --disable-auto-image-base,
3403 --dll-search-prefix, --enable-auto-import, and
3404 --disable-auto-import.
3405 * ldint.texinfo: Add detailed documentation on auto-import
3408 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3410 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3413 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3415 * Makefile.am: Update dependencies with "make dep-am".
3416 * Makefile.in: Regenerate
3418 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3420 * ldcref.c (check_section_sym_xref): New function.
3421 (check_nocrossrefs): Call it.
3422 (check_nocrossref): Interate over h->refs here instead of..
3423 (check_refs): ..here. Pass in the symbol name, section, and bfd
3424 rather than hash_entry pointers.
3425 (struct check_refs_info): Keep symbol name rather than hash entry.
3427 (check_reloc_refs): Tweak for above changes in check_refs_info.
3428 Only report references to section syms when symname is NULL to
3429 prevent duplicate messages for the same reloc.
3431 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3433 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3434 available. Do not print NULL trees.
3435 (exp_print_token): Print unknown tokens with values > 126 as
3436 decimal values not ASCII characters.
3438 * ldlang.c (lang_leave_overlay): If a region is specified assign
3439 it to all sections inside the overlay unless they have been
3440 assigned to the own, non-default, memory region.
3442 * README: Add header for consistency with other README files.
3444 2001-07-14 H.J. Lu <hjl@gnu.org>
3446 * emultempl/elf32.em (output_prev_sec_find): Never return
3447 bfd_abs_section_ptr, bfd_com_section_ptr nor
3448 bfd_und_section_ptr.
3450 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3452 * Makefile.am (em32relf.c): Change dependency from generic.em to
3454 * Makefile.in: Regenerate.
3456 2001-07-14 matthew green <mrg@eterna.com.au>
3458 * configure.tgt (i386-*-netbsdelf*): New target.
3459 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3461 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3463 * emultempl/elf32.em (output_prev_sec_find): New.
3464 (place_orphan): Use it.
3466 2001-07-11 H.J. Lu <hjl@gnu.org>
3468 * ldmain.c (main): Fix typos in the last change.
3470 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3472 * ldmain.c (main): Disallow -F and -f without -shared.
3474 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3476 * emultempl/pe.em (after_open): Check for the output_bfd not
3477 having any coff_data structure allocated to it.
3479 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3481 * emultempl/elf32.em: Do not assuming that contents of the buffer
3482 returned from basename function will remain unchanged accross other
3485 2001-07-03 H.J. Lu <hjl@gnu.org>
3487 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3488 2001-07-03. It creates dynamic entries even for static binaries.
3490 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3492 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3493 (DYNAMIC): Use it to reserve few dynamic entries for
3496 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3498 * emulparams/hppa64linux.sh: New file.
3499 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3500 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3501 (ehppa64linux.c): Add rule to make it.
3503 * Makefile.in: Regenerate.
3505 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3507 * ld.texinfo (Options, -r): Mention restrictions when using
3508 different object formats.
3510 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3512 * ldlang.c (lang_check): Emit fatal error if relocatable link
3513 between different object flavours with relocations in input.
3515 2001-06-19 H.J. Lu <hjl@gnu.org>
3517 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3518 (--version-script): Mention the language support.
3520 2001-06-19 H.J. Lu <hjl@gnu.org>
3522 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3524 2001-06-18 H.J. Lu <hjl@gnu.org>
3526 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3527 (diststuff): Add $(MANS).
3528 * Makefile.in: Regenerated.
3532 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3534 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3535 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3536 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3537 * ld.h (args_type): Remove member export_dynamic. All users
3538 changed to use struct bfd_link_info member.
3540 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3541 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3542 * Makefile.in: Regenerate.
3544 2001-06-18 H.J. Lu <hjl@gnu.org>
3546 * ldlang.c (init_os): Add the newline to the einfo call.
3547 (lang_check): Likewise.
3548 (lang_do_version_exports_section): Likewise.
3550 2001-06-15 H.J. Lu <hjl@gnu.org>
3552 * lexsup.c (parse_args); Save optind to report unrecognized
3555 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3557 * ldlang.c (lang_check): Emit fatal error if relocatable link
3558 between different object flavours.
3560 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3561 Set new link_info member export_dynamic.
3562 * ldmain.c (main): Initialize new link_info member export_dynamic.
3564 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3566 * ldlang.c (walk_wild): Only call walk_wild_file if
3567 lookup_name returns something.
3568 (lookup_name): If load_symbols fails, return NULL.
3569 (load_symbols): Change to a boolean function.
3570 (open_input_bfds): If load_symbols fails then do not make the
3573 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3575 * ldlang.c (record_bfd_errors): Remove.
3577 * emultempl/aix.em: Fix copyright dates.
3579 2001-06-07 Andreas Jaeger <aj@suse.de>
3581 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3582 (TEXT_START_ADDR): Likewise.
3584 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3586 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3588 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3590 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3592 2001-05-31 H.J. Lu <hjl@gnu.org>
3594 * ldlang.c (open_input_bfds): Don't change the bfd error
3595 handler whilst loading symbols.
3597 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3599 * configure.tgt: Remove i370-mvs architecture, it is not currently
3602 2001-05-25 H.J. Lu <hjl@gnu.org>
3604 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3605 like emulparams/aixppc.sh.
3607 2001-05-25 H.J. Lu <hjl@gnu.org>
3609 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3610 setting of output_filename after bfd_scan_arch.
3611 * emultempl/pe.em: Likewise.
3613 2001-05-25 H.J. Lu <hjl@gnu.org>
3615 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3616 like emulparams/aixppc.sh.
3618 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3619 instead of ${srcdir}/emultempl/stringify.sed.
3621 2001-05-25 Timothy Wall <twall@oculustech.com>
3623 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3626 2001-05-25 Alan Modra <amodra@one.net.au>
3628 * configure.host: Replace linuxoldld with linux*oldld.
3629 * configure.tgt: Likewise.
3631 2001-05-24 H.J. Lu <hjl@gnu.org>
3633 * emultempl/stringify.sed: Removed again.
3635 2001-05-24 H.J. Lu <hjl@gnu.org>
3637 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3638 (gld${EMULATION_NAME}_before_parse): Initialize
3639 ldfile_output_architecture, ldfile_output_machine and
3640 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3641 * emultempl/beos.em: Likewise.
3642 * emultempl/elf32.em: Likewise.
3643 * emultempl/linux.em: Likewise.
3644 * emultempl/mipsecoff.em: Likewise.
3645 * emultempl/pe.em: Likewise.
3646 * emultempl/sunos.em: Likewise.
3648 2001-05-24 Tom Rix <trix@redhat.com>
3650 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3651 udate import file format.
3652 (change_symbol_mode) New, same
3653 (is_syscall) New, same
3654 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3655 * emulparams/aixppc64.sh : same
3656 * emulparams/aixrs6.sh : same
3657 * emulparams/ppcmacos.sh : same
3658 * emultempl/aix.em : use strtoull to parse options
3659 * Makefile.am : add eaixppc64 emulation for xcoff64
3660 * Makefile.in : same
3661 * configure.tgt : same
3663 * scripttempl/aix.sc : default text section offset to 0x10000000
3664 default data section offset to 0x20000000
3665 add .sv3264 and .sv64 pseudo sections
3666 loader and debug sections use the currect section offset.
3668 * emultempl/aix.em : Add xcoff64 support
3669 Add -binitfini support
3670 (gld${EMULATION_NAME}_before_parse) -binitfini
3671 (gld${EMULATION_NAME}_parse_args) same
3672 (gld${EMULATION_NAME}_before_allocation) format change for special
3675 * emulparams/aixppc64.sh : New file for xcoff64 support
3677 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3679 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3680 variable to avoid non-portable shell construct.
3682 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3684 * ldmain.c (get_emulation): Add -mips5 command line argument.
3686 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3688 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3689 (ELF_INTERPRETER_NAME): Define it.
3690 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3692 * configure.tgt (targ_emul, targ_extra_emuls)
3693 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3694 as primary, elf_i386 as extra.
3695 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3696 (eelf_i386_ldso.c): New rule.
3697 * Makefile.in: Rebuilt.
3699 2001-05-22 Nick Clifton <nickc@redhat.com>
3701 * lexsup.c (ld_options): Allow -I to be an alias for
3702 --dynamic-linker. This is for Solaris compatability.
3703 * ld.texinfo: Document that -I can be used.
3706 2001-05-16 Alan Modra <amodra@one.net.au>
3708 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3709 whether an input section is the first one assigned to an output
3711 Assorted formatting fixes.
3713 2001-05-14 DJ Delorie <dj@delorie.com>
3715 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3716 * Makefile.in: Ditto.
3718 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3720 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3721 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3723 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3725 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3727 * ldlang.c (lang_process): Call bfd_merge_sections.
3729 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3731 * ldgram.y: Fix typo.
3733 2001-05-03 H.J. Lu <hjl@gnu.org>
3735 * emultempl/elf32.em: Include "libiberty.h".
3736 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3737 basename of the bfd filename.
3738 (gld${EMULATION_NAME}_stat_needed): Likewise.
3739 (gld${EMULATION_NAME}_try_needed): Likewise.
3740 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3742 2001-05-02 H.J. Lu <hjl@gnu.org>
3744 * emultempl/pe.em: Include <ctype.h>.
3746 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3748 * emulparams/elf32openrisc.sh: New file.
3750 * Makefile.am: Add OpenRISC target.
3751 * Makefile.in: Regenerated.
3753 * configure.tgt: Add openrisc-*-* mapping.
3755 2001-05-02 Nick Clifton <nickc@redhat.com>
3757 * emultempl/aix.em: Replace buystring with xstrdup.
3758 * emultempl/beos.em: Replace buystring with xstrdup.
3760 2001-05-02 H.J. Lu <hjl@gnu.org>
3762 * ldfile.c: Include "libiberty.h".
3763 * ldlex.l: Likewise.
3765 * ldmisc.c (buystring): Removed.
3766 * ldmisc.h: Likewise.
3768 * ldfile.c: Replace buystring with xstrdup.
3769 * ldlang.c: Likewise.
3770 * ldlex.l: Likewise.
3771 * ldmain.c: Likewise.
3772 * ldmisc.c: Likewise.
3773 * lexsup.c: Likewise.
3774 * mpw-eppcmac.c: Likewise.
3776 2001-04-30 Andreas Jaeger <aj@suse.de>
3778 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3780 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3782 * ldlang.c (load_symbols): Give emulation a chance
3783 to process unrecognized file before fatal error is
3784 reported, not after.
3786 2001-04-27 Sean McNeil <sean@mcneil.com>
3788 * configure.tgt: Add arm-vxworks target.
3789 * scripttempl/armcoff.sc: Support .text or .data as a section name
3793 2001-04-13 J.T. Conklin <jtc@redback.com>
3795 * ld.texinfo: Document --fatal-warnings.
3798 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3799 warnings have been turned into errors.
3800 * lexsup.c (OPTION_WARN_FATAL): Define.
3801 (ld_options): Entry for --fatal-warnings.
3802 (parse_args): Handle OPTION_WARN_FATAL.
3803 * ld.h (ld_config_type): Add fatal_warnings field.
3805 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3807 * ldmain.c (main): Default to discard_sec_merge.
3808 * lexsup.c (OPTION_DISCARD_NONE): Define.
3809 (ld_options): Add --discard-none.
3810 (parse_args): Handle OPTION_DISCARD_NONE.
3811 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3812 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3813 all its input sections match.
3815 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3817 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3818 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3819 (eelf32ltsmip.c): New target.
3820 (eelf64btsmip.c): Likewise.
3821 (eelf64ltsmip.c): Likewise.
3822 * Makefile.in: Regenerated.
3824 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3826 (mips*-*-linux-gnu*): Likewise.
3828 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3830 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3832 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3835 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3837 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3838 correct value of __Stext here.
3839 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3842 * emulparams/crislinux.sh: Remove FIXME.
3844 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3846 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3847 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3849 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3851 * configure.tgt (cris-*-*): Change default emulation to criself.
3852 (cris-*-*aout*): New rule.
3854 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3856 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3857 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3859 2001-03-26 Andreas Jaeger <aj@suse.de>
3861 * ld.texinfo (Overview): Fix syntax in texi code.
3863 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3865 * ld.texinfo: Put @c man indications to generate the ld man page.
3866 When generating man, define all the variables. Define SEEALSO
3867 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3868 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3869 (ld.1): Generate from ld.texinfo.
3870 * Makefile.in: Regenerate.
3872 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3874 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3875 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3877 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3879 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3880 is an absolute path look only for this file and not along the path.
3882 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3884 * emultempl/elf32.em (OPTION_GROUP): New macro.
3885 Add new option Bgroup to longopts.
3886 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3887 (gld*_list_options): Add -Bgroup and -z defs.
3888 * ld.1: Document -Bgroup and -z defs.
3889 * ld.texinfo: Likewise.
3891 2001-03-07 Michael Meissner <meissner@redhat.com>
3893 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3894 with sections created by -fdata-sections.
3895 (.dynbss,.bss): Ditto.
3897 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3899 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3900 after_allocation_default, not gld..._before_allocation.
3902 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3904 * configure.in (BFD_VERSION): New.
3905 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3906 * configure: Regenerate.
3907 * Makefile.am: Run "make dep-am"
3908 * Makefile.in: Regenerate.
3910 2001-02-26 Timothy Wall <twall@cygnus.com>
3912 * emulparams/elf64_aix.sh: Add additional read-only sections;
3913 uncomment lines which are now required.
3915 2001-02-26 H.J. Lu <hjl@gnu.org>
3917 * ldlang.c (open_input_bfds): Set the bfd error handler so
3918 that problems can be caught whilst loading symbols.
3919 (record_bfd_errors): New function: Report BFD errors and mark
3920 the executable output as being invalid.
3922 2001-02-22 Timothy Wall <twall@cygnus.com>
3924 * configure.host: Add configuration for ia64-*-aix*.
3925 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3926 Add dependencies for eelf64_aix.c.
3927 * Makefile.in: Regenerate.
3928 * configure.tgt: Add ia64-*-aix* mapping.
3929 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3931 2001-02-20 H.J. Lu <hjl@gnu.org>
3933 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3934 false if we found the file.
3936 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3938 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3939 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3941 2001-02-18 lars brinkhoff <lars@nocrew.org>
3943 * Makefile.am: Add PDP-11 target.
3944 * configure.tgt: Likewise.
3945 * emulparams/pdp11.sh: New file.
3947 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3949 * configure.host: Add a generic FreeBSD configuration entry such that
3950 all [modern] FreeBSD systems on all platforms will look the same.
3952 2001-02-14 H.J. Lu <hjl@gnu.org>
3954 * configure.tgt: Remove mention of earmelf_linux26.
3956 2001-02-13 Richard Henderson <rth@redhat.com>
3958 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3960 2001-02-13 H.J. Lu <hjl@gnu.org>
3962 * ldexp.h (node_type): Add etree_provided.
3963 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3964 type to etree_provided if defined by PROVIDE. Allow updating
3966 (exp_print_tree): Handle etree_provided.
3967 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3970 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3972 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3973 .IA_64.unwind.* pattern to unwind table section and
3974 .IA_64.unwind_info* pattern to unwind info section.
3976 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3978 * Makefile.am: Add linux target for S/390.
3979 * Makefile.in: Likewise.
3980 * configure.host: Likewise.
3981 * configure.tgt: Likewise.
3982 * emulparams/elf64_s390.sh: New file.
3983 * emulparams/elf_s390.sh: New file.
3985 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3987 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3989 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3991 2001-02-06 Philip Blundell <philb@gnu.org>
3993 * Makefile.am: Remove mention of earmelf_linux26.
3994 * Makefile.in: Regenerate.
3996 2001-02-04 Philip Blundell <philb@gnu.org>
3998 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3999 * emulparams/armelf_linux26.sh: Delete.
4000 * configure.tgt: Remove mention of armelf_linux26 emulation.
4002 2001-02-01 Nick Clifton <nickc@redhat.com>
4004 * ld.1: Replace occurances of -oformat with --oformat.
4006 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4008 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4009 load_base is specified.
4011 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4013 * emultempl/elf32.em: Correct spelling in comments and listed
4016 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4018 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4019 default for the first section of a group of overlay sections.
4021 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4023 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4024 * Makefile.in: Regenerate.
4025 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4026 Check for null tool_dir.
4028 2001-01-16 Jim Wilson <wilson@redhat.com>
4030 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4031 and IA_64.unwind.info.
4033 2001-01-16 H.J. Lu <hjl@gnu.org>
4035 * ldlang.c (lang_check): Merge the private data only if the
4036 input file has contents.
4038 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4040 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4042 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4043 enabling search for libmilli. On a relocatable link, make .text
4045 (LDEMUL_AFTER_PARSE): Define.
4046 (hppaelf_finish): Correct spelling of relocatable in comments.
4048 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4049 rummage through the script for sections on the unique list.
4050 Correct length of strncmp for ".note".
4051 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4053 * ldlang.c (unique_section_list): New var.
4054 (unique_section_p): New function.
4055 (walk_wild_section): Don't match sections on unique_section_list.
4056 (lang_add_unique): New function.
4057 Correct spelling of relocatable in comments.
4059 * ldlang.h (struct unique_sections): Declare.
4060 (unique_section_list): Declare.
4061 (unique_section_p): Declare.
4062 (lang_add_unique): Declare.
4064 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4065 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4067 * ld.texinfo (--unique): Update.
4069 2001-01-13 Nick Clifton <nickc@redhat.com>
4071 * lexsup.c (parse_args): Remove spurious white space.
4073 2001-01-12 Nick Clifton <nickc@redhat.com>
4075 * lexsup.c (parse_args): Update copyright date.
4077 2001-01-12 Philip Blundell <pb@futuretv.com>
4079 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4081 2001-01-10 Kazu Hirata <kazu@hxi.com>
4083 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4084 * scripttempl/h8300h.sc: Fix formatting.
4085 * scripttempl/h8300s.sc: Likewise.
4086 * scripttempl/h8500.sc: Likewise.
4087 * scripttempl/h8500b.sc: Likewise.
4088 * scripttempl/h8500c.sc: Likewise.
4089 * scripttempl/h8500m.sc: Likewise.
4090 * scripttempl/h8500s.sc: Likewise.
4092 2000-01-07 David O'Brien <obrien@BSDi.com>
4094 * emultempl/elf32.em: Only perform Linux ld hints processing when
4097 2001-01-07 Philip Blundell <philb@gnu.org>
4099 * ld.texinfo (Bug Reporting): Update email address for reports.
4101 2000-12-31 Nick Clifton <nickc@redhat.com>
4103 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4104 options by checking for a return value of '?' not -1.
4106 2000-12-28 Nick Clifton <nickc@redhat.com>
4108 * lexsup.c (struct ld_option): Add new enum value:
4110 (ld_options[]): Change -omagic, -output and -oformat options
4111 to be EXACTLY_TWO_DASHES.
4112 (OUTPUT_COUNT): Use ARRAY_SIZE.
4113 (parse_args): Change parameter 'argc' to unsigned.
4114 Place EXACTLY_TWO_DASHES options into new really_longopts
4116 If getopt_long_only fails, try calling getopt_long using the
4117 really_longopts array.
4118 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4121 * ldlex.h: Fix prototype of parse_args.
4123 * ld.texinfo: Document that long options starting with 'o'
4124 must be preceeded by two dashes. Change example of a single
4125 dashed long option from -oformat to -trace-symbol.
4127 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4129 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4130 (longopts[]): New --no-default-excludes option.
4131 (gld_${EMULATION_NAME}_list_options): Document.
4132 (gld_${EMULATION_NAME}_parse_args): Handle.
4134 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4136 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4137 whitespace, it breaks the K&R C preprocessor.
4139 2000-12-11 DJ Delorie <dj@redhat.com>
4141 * ld.texinfo: Add notes about --whole-archive and gcc.
4143 2000-11-18 Fred Fish <fnf@be.com>
4145 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4146 (ld_options): Entry for --allow-shlib-undefined.
4147 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4148 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4150 * ld.texinfo: Document new command line switch.
4152 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4154 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4155 .fixup is actually read/write.
4156 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4157 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4158 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4160 2000-12-11 Jan Hubicka <jh@suse.cz>
4162 * NEWS: Add note about x86_64 architecture.
4164 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4166 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4167 Set DWARF2 sections to a VMA of zero.
4169 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4171 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4173 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4174 (sparc*-*-rtems*): Switched from a.out to ELF.
4176 2000-11-30 Jan Hubicka <jh@suse.cz>
4178 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4179 (eelf_x86_64.c): New.
4180 * Makefile.in: Regenerate.
4181 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4182 * emulparams/elf_x86_64.sh: New.
4184 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4186 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4187 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4189 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4190 merging non-a.out sections into CONSTRUCTING.
4192 2000-11-28 Nick Clifton <nickc@redhat.com>
4194 * ld.1 (COPYING): Mention that the GNU Free Documentation
4195 License is present in the sources, but not the output, and
4196 also available from the GNU website.
4197 (GNU Free Documentation License): Comment out this section.
4199 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4201 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4204 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4206 * ld.1: Remove old date so it does not give the impression the manpage
4209 2000-11-24 Nick Clifton <nickc@redhat.com>
4211 * configure.tgt (xscale-coff): Add target.
4212 (xscale-elf): Add target.
4214 2000-11-24 Fred Fish <fnf@be.com>
4216 * ldmain.c (main): Remove redundant init of config.make_executable
4219 2000-11-15 Richard Henderson <rth@redhat.com>
4221 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4223 2000-11-14 Kazu Hirata <kazu@hxi.com>
4225 * scripttempl/h8300.sc: Fix formatting.
4226 * scripttempl/h8300h.sc: Likewise.
4227 * scripttempl/h8300s.sc: Likewise.
4229 2000-11-14 Denis Chertykov <denisc@overta.ru>
4231 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4233 2000-11-09 Philip Blundell <pb@futuretv.com>
4235 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4236 around orphan sections whose names can be represented in C.
4238 2000-11-07 Jim Wilson <wilson@redhat.com>
4240 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4241 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4243 2000-11-06 Nick Clifton <nickc@redhat.com>
4245 * ld.texinfo: Add GNU Free Documentation License.
4246 * ldint.texinfo: Add GNU Free Documentation License.
4247 * ld.1: Add GNU Free Documentation License.
4249 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4251 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4252 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4254 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4255 Move 2000-11-02 Makefile.in changes to this file.
4256 * Makefile.in: Regenerate.
4258 2000-11-03 Nick Clifton <nickc@redhat.com>
4260 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4261 constructors and destructors.
4262 * scripttempl/h8300h.sc: Ditto.
4263 * scripttempl/h8300s.sc: Ditto.
4264 * scripttempl/h8500.sc: Ditto.
4265 * scripttempl/h8500b.sc: Ditto.
4266 * scripttempl/h8500c.sc: Ditto.
4267 * scripttempl/h8500m.sc: Ditto.
4268 * scripttempl/h8500s.sc: Ditto.
4269 * scripttempl/v850.sc: Ditto.
4270 * scripttempl/w65.sc: Ditto.
4271 * scripttempl/z8000.sc: Ditto.
4273 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4275 * Makefile.in (e_i386_chaos.c): New rule.
4276 (ALL_EMULATIONS): Added e_i386_chaos.o.
4277 * emulparams/elf_i386_chaos.sh: New file.
4278 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4280 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4282 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4283 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4284 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4285 library path suffix.
4286 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4288 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4290 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4291 for consecutive sections.
4293 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4295 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4297 * ld.texinfo: Added notes about this new option.
4299 2000-10-16 Nick Clifton <nickc@redhat.com>
4301 * emultempl/pe.em (_after_open): Add tests of return values from
4302 bfd functions. Emit appropriate error messages if necessary.
4304 2000-10-13 Nick Clifton <nickc@redhat.com>
4306 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4307 local variables - they are not used, but leave in the call to
4308 bfd_canonicalize_symtab.
4309 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4310 pe_dll_search_prefix.
4312 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4314 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4315 (longopts): New --dll-search-prefix option.
4316 (gld_${EMULATION_NAME}_list_options): Document.
4317 (gld_${EMULATION_NAME}_parse_args): Handle.
4318 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4319 dynamically, search for a dll named '<prefix><basename>.dll'
4320 in preference to 'lib<basename>.dll' if --dll-search-prefix
4323 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4325 * ldlang.c (section_already_linked): Set kept_section instead of
4328 2000-10-10 Kazu Hirata <kazu@hxi.com>
4330 * deffile.h: Fix formatting.
4331 * lexsup.c: Likewise.
4334 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4336 * pe-dll.c (make_one): Do not generate code thunk for DATA
4338 (process_def_file): deduce DATA flag for auto-export sumbols.
4340 2000-10-09 Kazu Hirata <kazu@hxi.com>
4342 * ld.h: Fix formatting.
4343 * ldcref.c: Likewise.
4344 * ldctor.h: Likewise.
4345 * ldemul.c: Likewise.
4346 * ldemul.h: Likewise.
4347 * ldexp.c: Likewise.
4348 * ldexp.h: Likewise.
4349 * ldfile.c: Likewise.
4350 * ldfile.h: Likewise.
4351 * ldlang.c: Likewise.
4352 * ldlang.h: Likewise.
4353 * ldmain.c: Likewise.
4354 * pe-dll.c: Likewise.
4356 * pe-dll.c: Revert some formatting fixes.
4358 2000-10-08 Kazu Hirata <kazu@hxi.com>
4360 * pe-dll.c: Fix formatting.
4362 2000-10-05 Kazu Hirata <kazu@hxi.com>
4364 * ldlang.c: Fix formatting.
4366 2000-10-03 DJ Delorie <dj@redhat.com>
4368 * pe-dll.c (fill_edata): initialize entire block
4369 (make_one): fill in correct section.
4371 2000-10-03 Kazu Hirata <kazu@hxi.com>
4373 * ldexp.c: Fix formatting.
4375 2000-10-02 DJ Delorie <dj@redhat.com>
4377 * emultempl/pe.em (gld_*_after_open): detect case where there two
4378 import libraries for same dll; rename one to ensure proper link
4381 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4383 (generate_edata): fix typo
4385 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4387 * scripttempl/crisaout.sc (ENTRY): Now __start.
4388 (.text): Add default setting for __start.
4389 Remove CONSTRUCTORS handling.
4390 (/DISCARD/): Add .gnu.warning.*.
4391 * emulparams/crislinux.sh (ENTRY): Now __start.
4392 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4393 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4394 (ENTRY): Now __start.
4395 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4396 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4398 2000-09-29 Kazu Hirata <kazu@hxi.com>
4400 * deffile.h: Fix formatting.
4402 * ldcref.c: Likewise.
4403 * ldctor.c: Likewise.
4404 * ldctor.h: Likewise.
4405 * ldemul.c: Likewise.
4406 * ldemul.h: Likewise.
4407 * ldexp.c: Likewise.
4408 * ldexp.h: Likewise.
4409 * ldfile.c: Likewise.
4410 * ldfile.h: Likewise.
4411 * ldlang.c: Likewise.
4412 * ldlang.h: Likewise.
4413 * lexsup.c: Likewise.
4415 * pe-dll.c: Likewise.
4417 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4419 * pe-dll.c (process_def_file): Uninitialized data wasn't
4420 exported with --export-all-symbols switch.
4422 2000-09-28 DJ Delorie <dj@redhat.com>
4424 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4425 noname work properly.
4427 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4429 * ld.texinfo (HPPA ELF32): New section.
4431 * emultempl/hppaelf.em (group_size): New.
4432 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4433 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4434 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4435 options to prevent abbreviations matching.
4436 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4437 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4439 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4441 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4442 on the m68*-*-elf target. Make it support COFF input objects.
4444 2000-09-21 Kazu Hirata <kazu@hxi.com>
4446 * ldmain.c: Fix formatting.
4447 * ldmisc.c: Likewise.
4448 * ldver.c: Likewise.
4449 * ldwrite.c: Likewise.
4451 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4453 * ldwrite.c (clone_section): Silence gcc warnings.
4455 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4457 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4458 out of memory failure.
4460 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4461 (clone_section): Handle out of memory failures. Rename var to
4462 avoid c++ reserved word.
4464 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4466 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4467 stub_name param to stub_sec_name.
4468 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4470 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4472 * emultempl/m68kelf.em: New file.
4473 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4474 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4475 * Makefile.in: Regenerate.
4477 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4479 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4482 2000-09-13 Nick Clifton <nickc@redhat.com>
4484 * ldmain.c (multiple_definition): Disable relaxation if
4485 multiple symbol definitions are encountered - otherwise the
4486 linker could abort with an assertion failure.
4488 2000-09-10 Nick Clifton <nickc@redhat.com>
4490 * mri.c: Fix formatting.
4492 2000-09-07 H.J. Lu <hjl@gnu.org>
4494 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4495 * configure: Rebuild.
4497 2000-09-07 H.J. Lu <hjl@gnu.org>
4499 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4500 * Makefile.in: Rebuild.
4502 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4504 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4505 broken list handling. Create __start_SECNAME and __stop_SECNAME
4506 when no place-holder. Add some comments. Test both SEC_CODE and
4507 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4508 Handle case where no output section statement created.
4510 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4512 * configure.tgt (sh-*-linux*): Added.
4513 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4514 * Makefile.in: Rebuilt.
4515 * emulparams/shelf_linux.sh: New file.
4516 * emulparams/shlelf_linux.sh: New file.
4518 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4520 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4521 try shuffling sections when the orphan happens to be the place
4522 holder. Keep count of unique section names generated so we speed
4523 the search for a new name.
4525 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4527 * configure: Rebuilt with new libtool.m4.
4529 2000-09-05 Nick Clifton <nickc@redhat.com>
4531 * Makefile.in: Regenerate.
4532 * aclocal.m4: Regenerate.
4533 * configure: Regenerate.
4534 * config.in: Regenerate.
4535 * po/ld.pot: Regenerate.
4537 * ldint.texinfo: Remove CVS revision marker - it foils local
4540 * emultempl/ticoff.em: Remove extraneous comma.
4542 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4544 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4545 to stub section flags.
4546 (hppa_for_each_input_file_wrapper): New.
4547 (hppa_lang_for_each_input_file): New.
4548 (lang_for_each_input_file): Define to call above.
4549 (multi_subspace): New.
4550 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4551 (PARSE_AND_LIST_PROLOGUE): Define.
4552 (PARSE_AND_LIST_LONGOPTS): Define.
4553 (PARSE_AND_LIST_OPTIONS): Define.
4554 (PARSE_AND_LIST_ARGS_CASES): Define.
4555 (hppaelf_finish): Call elf32_hppa_set_gp.
4556 (hppaelf_set_output_arch): Remove.
4557 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4559 * emulparams/hppalinux.sh (ELFSIZE): Define.
4561 (OTHER_READONLY_SECTIONS): Define.
4563 (GENERATE_SHLIB_SCRIPT): Define.
4565 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4566 to const throughout. Change `void *' to `PTR' throughout.
4567 (lang_memory_default): Function is local to file, add `static'.
4569 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4570 (ehppalinux.c): Likewise.
4571 (earmelf.c): Likewise.
4572 (earmelf_linux.c): Likewise.
4573 (earmelf_linux26.c): Likewise.
4574 * Makefile.in: Regenerate.
4576 * ld.h (ld_config_type): Add unique_orphan_sections.
4577 * lexsup.c (OPTION_UNIQUE): Define.
4578 (ld_options): Add "--unique".
4579 (parse_args): Handle it.
4580 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4581 search for an existing output section if unique_orphan_sections is
4582 set. Make use of bfd_get_unique_section_name rather than
4583 duplicating code here.
4584 * ld.texinfo: Describe --unique.
4586 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4587 optional arg to split-by-file.
4588 (parse_args): Handle them.
4589 * ld.texinfo: Update description of these options.
4590 * ldwrite.c (clone_section): Pass in the section name. Replace
4591 local code with bfd_get_unique_section_name.
4592 (split_sections): Tidy code and comments. Use a list traversal
4593 more appropriate to the list construction. Handle cooked section
4594 sizes. Split when split_by_reloc reached rather than exceeded.
4595 Track section size and split when split_by_file reached. Fix
4596 link_order_tail (even though it's not used).
4597 (ldwrite): Modify condition for calling split_sections to suit
4598 changed split_by_reloc and split_by_file.
4599 * ldmain.c (main): Init config.split_by_reloc and
4600 config.split_by_file to -1.
4601 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4602 Change split_by_file to bfd_size_type.
4604 2000-09-02 Nick Clifton <nickc@redhat.com>
4606 * configure.in: Increase version number to 2.10.91.
4607 * NEWS: Mention new ability to support removal of duplicate DWARF2
4609 * configure: Regenerate.
4610 * aclocal.m4: Regenerate.
4611 * config.in: Regenerate.
4613 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4615 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4617 * scripttempl/elf32avr.sc: Ditto.
4618 * scripttempl/elfd10v.sc: Ditto.
4619 * scripttempl/elfd30v.sc: Ditto.
4620 * scripttempl/elfi370.sc: Ditto.
4621 * scripttempl/elfm68hc11.sc: Ditto.
4622 * scripttempl/elfm68hc12.sc: Ditto.
4623 * scripttempl/elfi386beos.sc: Ditto.
4624 * scripttempl/v850.sc: Ditto.
4626 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4628 * acinclude.m4: Include libtool and gettext macros from the
4630 * aclocal.m4, configure: Rebuilt.
4632 2000-08-25 Nick Clifton <nickc@redhat.com>
4634 * ldlang.c (open_output): When choosing the target for a
4635 particular endianness, do nothing if the target is not
4638 2000-08-25 H.J. Lu <hjl@gnu.org>
4640 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4641 check -rpath nor LD_RUN_PATH for cross link.
4642 * ld.texinfo: Document the change.
4644 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4646 * NEWS: Mention support for CRIS.
4648 2000-08-23 H.J. Lu <hjl@gnu.org>
4650 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4651 the current runpath list from bfd_elf_get_runpath_list ()
4654 2000-08-22 H.J. Lu <hjl@gnu.org>
4656 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4657 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4658 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4659 trace_file_tries is non-zero.
4660 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4661 if trace_file_tries is non-zero.
4663 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4666 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4668 * NEWS: Mention i860 support.
4670 2000-08-14 Andreas Schwab <schwab@suse.de>
4672 * scripttempl/elf.sc: Fix last change to use correct comment
4675 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4677 * scripttempl/elf.sc: Add a comment giving the correspondence
4678 between sections, per-datum sections, and linkonce sections. Make
4679 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4682 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4684 * emulparams/elf32_i860.sh: New file.
4685 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4686 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4687 (eelf32_i860.c): New rule.
4688 * Makefile.in: Regenerate.
4690 2000-08-10 Nick Clifton <nickc@cygnus.com>
4692 * emulparams/mipspe.sh (ENTRY): Add definition.
4694 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4696 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4699 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4701 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4702 the final size of .bss section.
4703 * scripttempl/elfm68hc12.sc: Likewise.
4705 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4707 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4708 gld${EMULATION_NAME}_parse_args for consistency. Combine
4709 lastoptind and prevoptind vars, and keep track of last optind.
4710 (gld_${EMULATION_NAME}_list_options): Rename to
4711 gld${EMULATION_NAME}_list_options.
4713 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4715 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4716 (i586-sco-sysv5uw7.1.0).
4718 2000-07-27 H.J. Lu <hjl@gnu.org>
4720 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4721 (PARSE_AND_LIST_PROLOGUE): New.
4722 (PARSE_AND_LIST_LONGOPTS): Likewise.
4723 (PARSE_AND_LIST_OPTIONS): Likewise.
4724 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4725 (PARSE_AND_LIST_EPILOGUE): Likewise.
4727 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4729 * emultempl/armelf.em: Elide functions common to elf32.em,
4730 ie. most of the file.
4731 (arm_elf_after_open): New. Do arm specific things then call
4732 gld${EMULATION_NAME}_after_open.
4733 (arm_elf_before_allocation): New. Call
4734 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4735 (PARSE_AND_LIST_PROLOGUE): Define.
4736 (PARSE_AND_LIST_SHORTOPTS): Define.
4737 (PARSE_AND_LIST_LONGOPTS): Define.
4738 (PARSE_AND_LIST_OPTIONS): Define.
4739 (PARSE_AND_LIST_ARGS_CASES): Define.
4740 (LDEMUL_AFTER_OPEN): Define.
4741 (LDEMUL_BEFORE_ALLOCATION): Define.
4742 (LDEMUL_BEFORE_PARSE): Define.
4743 (LDEMUL_FINISH): Define.
4745 * emultempl/hppaelf.em: Similarly zap most of this file.
4746 (hppaelf_add_stub_section): Prototype.
4747 (hppaelf_layaout_sections_again): Prototype.
4748 (hook_in_stub): Prototype.
4749 (LDEMUL_SET_OUTPUT_ARCH): Define.
4750 (LDEMUL_FINISH): Define.
4751 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4753 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4754 (EXTRA_EM_FILE): New.
4755 * emulparams/armelf_linux.sh: Likewise.
4756 * emulparams/armelf_linux26.sh: Likewise.
4757 * emulparams/hppalinux.sh: Likewise.
4758 * emulparams/hppaelf.sh: Likewise.
4761 * emultempl/elf32.em: Fix formatting.
4762 (EXTRA_EM_FILE): Source it.
4763 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4764 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4765 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4766 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4767 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4768 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4769 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4770 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4771 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4772 allow functions in this file to be overridden.
4773 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4775 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4777 * emultempl/elf32.em: Reorganize file.
4779 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4781 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4782 specific option to fit 64-bit executable in the lower
4783 31-bit address range. This is done by changing start
4784 address of .interp (the very first section of executable)
4785 and then setting EF_ALPHA_32BIT elf header flag.
4787 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4789 * emultempl/m68kcoff.em: New file.
4790 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4791 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4793 * Makefile.in: Regenerate.
4795 2000-07-20 H.J. Lu <hjl@gnu.org>
4797 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4798 and "disable-new-dtags" to stop getopt from treating -d/-e as
4799 abbreviations for these options.
4801 2000-07-20 H.J. Lu <hjl@gnu.org>
4803 * ld.texinfo: Add documentation for --disable-new-dtags and
4806 * ldmain.c (main): Initialize link_info.new_dtags to false.
4808 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4809 --disable-new-dtags and --enable-new-dtags.
4810 (gld_${EMULATION_NAME}_list_options): Likewise.
4812 2000-07-05 Kenneth Block <krblock@computer.org>
4814 * lexsup.c: Add optional style to demangle switch
4815 * ld.texinfo: Document optional style to demangle switch.
4817 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4819 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4821 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4822 Regenerate dependencies.
4823 * Makefile.in: Rebuild.
4824 * configure.tgt (cris-*-*): New target.
4825 * emulparams/crisaout.sh, emulparams/criself.sh,
4826 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4827 * po/POTFILES.in, po/ld.pot: Regenerate.
4829 2000-07-20 H.J. Lu <hjl@gnu.org>
4831 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4832 Print out ignored -z options.
4834 2000-07-19 H.J. Lu <hjl@gnu.org>
4836 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4837 (PARSE_AND_LIST_PROLOGUE): New.
4838 (PARSE_AND_LIST_LONGOPTS): Likewise.
4839 (PARSE_AND_LIST_OPTIONS): Likewise.
4840 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4842 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4844 * lexsup.c (ld_options): Comment out 'z'.
4845 (parse_args): Likewise.
4847 * emultempl/elf32.em: Include "elf/common.h".
4848 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4850 (gld_${EMULATION_NAME}_list_options): Likewise.
4852 * ld.texinfo: Add documentation for the recognized -z options.
4854 2000-07-19 H.J. Lu <hjl@gnu.org>
4856 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4857 bfd_elf_set_dt_needed_soname ().
4859 2000-07-18 DJ Delorie <dj@cygnus.com>
4861 * pe-dll.c (pe_dll_id_target): check object target name also
4863 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4865 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4866 ${INIT_END} if relocating.
4867 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4869 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4871 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4872 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4873 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4874 errors introduced by the old dynamic lib search order.
4876 2000-07-17 DJ Delorie <dj@cygnus.com>
4878 * pe-dll.c (process_def_file): auto-export data items also
4879 (pe_process_import_defs): also see if _imp_ form needed
4881 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4883 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4884 for dll import libraries
4886 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4888 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4889 gcc 2.95.2 and later.
4891 2000-07-11 Kazu Hirata <kazu@hxi.com>
4893 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4896 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4898 * ldemul.h (struct lang_input_statement_struct): Remove forward
4900 (struct search_dirs): Likewise.
4901 * ldfile.h (struct lang_input_statement_struct): Likewise.
4902 Protect file from multiple inclusion.
4903 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4904 declaration from macro to file scope.
4906 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4907 * ldgram.y: Likewise here.
4908 * ldlang.c: And here.
4909 * ldmain.c: And here.
4910 * mpw-elfmips.c: And here.
4911 * mpw-eppcmac.c: And here.
4912 * emultempl/aix.em: And here.
4913 * emultempl/armcoff.em: And here.
4914 * emultempl/armelf.em: And here.
4915 * emultempl/armelf_oabi.em: And here.
4916 * emultempl/beos.em: And here.
4917 * emultempl/elf32.em: And here.
4918 * emultempl/hppaelf.em: And here.
4919 * emultempl/linux.em: And here.
4920 * emultempl/lnk960.em: And here.
4921 * emultempl/pe.em: And here.
4922 * emultempl/sunos.em: And here.
4923 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4924 * mpw-idtmips.c: Ditto.
4925 * emultempl/generic.em: Ditto.
4926 * emultempl/gld960.em: Ditto.
4927 * emultempl/gld960c.em: Ditto.
4928 * emultempl/mipsecoff.em: Ditto.
4929 * emultempl/ticoff.em: Ditto.
4930 * emultempl/vanilla.em: Ditto.
4932 * pe-dll.c: Include ldfile.h
4933 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4935 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4936 arguments to bfd_elf32_size_dynamic_sections call.
4937 (gldelf32ebmip_place_orphan): Add missing arguments to
4938 lang_leave_output_section_statement call.
4940 2000-07-10 H.J. Lu <hjl@gnu.org>
4942 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4944 (strhash): Likewise.
4945 (compute_dll_image_base): Likewise.
4946 (pe_undef_found_sym): Likewise.
4947 (pe_undef_cdecl_match): Likewise.
4948 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4949 argument "arch" with ATTRIBUTE_UNUSED.
4951 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4953 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4955 From Ryan Bradetich <rbradetich@uswest.net>
4956 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4958 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4960 Changes to create multiple linker stubs, positioned immediately
4961 before the section where they are required.
4962 * emultempl/hppaelf.em: Include elf32-hppa.h.
4963 (stub_sec, file_chain): Delete.
4964 (hppaelf_create_output_section_statements): Don't make a stub
4966 (hook_stub_info): New struct.
4967 (hook_in_stub): New function.
4968 (hppaelf_add_stub_section): New function.
4969 (hppaelf_finish): Do nothing for relocateable links. Modify the
4970 call to elf32_hppa_size_stubs. Move code for updating section
4972 (hppaelf_layaout_sections_again): ..to here, a new function.
4974 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4975 broken list handling. Pass in a pointer to the list.
4976 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4978 (hppaelf_before_parse): Prototype.
4979 (hppaelf_set_output_arch): Prototype.
4980 (hppaelf_create_output_section_statements): Prototype.
4981 (hppaelf_delete_padding_statements): Prototype.
4982 (hppaelf_finish): Prototype.
4985 * emultempl/hppaelf.em: Include ctype.h.
4986 (struct orphan_save): New.
4987 (gld${EMULATION_NAME}_place_orphan): New.
4988 (output_rel_find): New.
4989 (hppaelf_get_script): Update from elf32.em.
4990 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4991 Change emulation_name field to "${EMULATION_NAME}". Add
4992 gld${EMULATION_NAME}_place_orphan.
4994 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4995 ehppalinux.o, sort it. Regenerate dependencies.
4996 (ehppalinux.c): Depend on hppaelf.em
4997 * Makefile.in: Regenerate.
4999 * configure.tgt: targ_emul=hppalinux for hppa*linux
5001 * emulparams/hppalinux.sh: New.
5002 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5004 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5006 * lexsup.c (parse_args): Copy section name.
5008 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5010 * emultempl/pe.em: institute the following search order for
5011 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5012 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5013 static lib (libfoo.a) if none of the above are found.
5015 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5017 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5018 (longopts): New --{enable,disable}-auto-image-base options.
5019 (gld_${EMULATION_NAME}_list_options): Document.
5020 (gld_${EMULATION_NAME}_parse): Handle.
5021 (strhash): New static function.
5022 (compute_dll_image_base): New static function.
5023 (gld_${EMULATION_NAME}_set_symbols): Use.
5025 2000-07-05 DJ Delorie <dj@redhat.com>
5029 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5031 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5032 * emulparams/elf32btsmip.sh: New file.
5033 * Makefile.am: Add traditional mips target.
5034 * Makefile.in: Rebuild.
5036 2000-07-01 H.J. Lu <hjl@gnu.org>
5038 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5039 automake to use YLWRAP.
5040 * Makefile.in: Rebuild.
5042 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5044 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5045 (CLEANFILES): Add DEPA.
5046 * Makefile.in: Regenerate.
5048 2000-06-30 Timothy Wall <twall@ppc>
5050 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5051 the page in the upper octet of the address.
5053 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5055 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5057 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5059 * NEWS: arm-elf does --gc-sections too.
5061 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5063 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5065 * Makefile.in: Regenerate.
5067 2000-06-21 H.J. Lu <hjl@gnu.org>
5069 * Makefile.am: Rebuild dependency.
5070 * Makefile.in: Rebuild.
5072 2000-06-20 H.J. Lu <hjl@gnu.org>
5074 * Makefile.am: Rebuild dependency.
5075 * Makefile.in: Rebuild.
5077 2000-06-20 Timothy Wall <twall@cygnus.com>
5079 * scripttempl/tic54xcoff.sc: New.
5080 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5081 * gen-doc.texi: Add flag for TI COFF.
5082 * ld.texinfo: Add documentation for TI COFF handling switches.
5083 * emultempl/ticoff.em: New. TI COFF handling.
5084 * configure.tgt: Add tic54x target.
5085 * Makefile.am: Add tic54x target.
5086 * Makefile.in: Ditto.
5088 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5090 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5091 checking for backslashes.
5093 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5095 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5097 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5099 * NEWS: Update list of targets supporting --gc-sections.
5101 * scripttempl/elf.sc: KEEP .eh_frame contents.
5102 * scripttempl/elfd30v.sc: Same here.
5104 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5106 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5108 * Makefile.in: Rebuild.
5109 * configure.tgt: Recognize m68hc12 and m68hc11.
5110 * scripttempl/elfm68hc12.sc: New file.
5111 * emulparams/m68hc12elfb: New emulation.
5112 * emulparams/m68hc12elf: New emulation.
5113 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5114 (includes a memory.x script to define the ROM and RAM banks).
5115 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5116 New configuration files for support of Motorola 68hc11
5118 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5120 * ldmain.c (main): Only change SEC_READONLY for final link.
5122 2000-06-13 H.J. Lu <hjl@gnu.org>
5124 * configure: Regenerate.
5126 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5128 * configure.in (VERSION): Update to show this is the CVS mainline.
5130 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5132 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5133 input objects to be ECOFF.
5134 (check_sections): einfo takes %B, not %P, to print a BFD name.
5136 2000-06-05 Michael Matz <matz@ifh.de>
5138 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5141 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5143 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5145 * emulparams/avr1200.sh (STACK): Define as 0.
5146 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5147 * emulparams/avr4433.sh (STACK): Likewise.
5148 * emulparams/avr44x4.sh (STACK): Likewise.
5149 * emulparams/avr85xx.sh (STACK): Likewise.
5150 * emulparams/avrmega103.sh (STACK): Likewise.
5151 * emulparams/avrmega161.sh (STACK): Likewise.
5152 * emulparams/avrmega603.sh (STACK): Likewise.
5153 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5154 (__stack): Define from ${STACK} for main().
5156 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5158 * Makefile.am: Update dependencies with "make dep-am"
5159 * Makefile.in: Regenerate.
5161 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5163 * ldmain.c: Include filenames.h.
5164 (set_scripts_dir): Support backslashes in program name.
5166 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5168 * ldmain.c (main): When deciding if ".text" section should be
5169 read-only, don't forget to reset SEC_READONLY because it
5170 could be already set.
5172 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5174 * ld.1: Add documentation for new command line option:
5175 --section-start <sectionname>=<sectionorg>
5176 This is a generic version of -Ttext etc. which accepts
5177 any section name as a parameter instead of just text/data/
5179 * ld.texinfo: More docs.
5181 * lexsup.c: (parse_args): Recognize new command line option.
5182 (ld_options): Add new option.
5184 2000-05-18 H.J. Lu <hjl@gnu.org>
5186 * lexsup.c (parse_args): `i' == `r', not `q'.
5188 2000-05-18 Jeffrey A Law (law@cygnus.com)
5190 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5192 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5193 Rick Gorton <gorton@scrugs.lkg.dec.com>
5195 Add support for '-q' == '--emit-relocs' switch.
5196 * ldmain.c (main): Default to false.
5197 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5198 * NEWS: Describe the emitrelocations switch.
5199 * ld.texinfo: Describe the emitrelocations switch.
5201 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5203 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5204 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5205 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5208 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5210 * lexsup.c (parse_args): Update the year in the copyright notice.
5212 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5214 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5215 Replace defines with those from intl/libgettext.h to quieten gcc
5218 2000-05-10 H.J. Lu <hjl@gnu.org>
5220 * ldlang.c (open_input_bfds): Don't load the same file within
5221 a group again if the whole archive has been loaded already.
5223 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5225 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5226 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5229 2000-05-01 Jim Wilson <wilson@cygnus.com>
5231 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5233 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5234 host "ia64-*-linux-gnu*".
5236 2000-04-29 Andreas Jaeger <aj@suse.de>
5238 * ld.h: Correctly check GCC version.
5240 2000-04-25 Jeffrey A Law (law@cygnus.com)
5242 * Makefile.am: Add PA64 support. Add missing dependencies for
5244 * Makefile.in: Rebuilt.
5245 * configure.tgt: Add PA64 support (currently disabled).
5247 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5249 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5250 (output_rel_find): New function.
5251 (hold_section, hold_use): Delete.
5252 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5253 hold_interp): Make local to place_orphan.
5254 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5255 rather than place_section to find possible previous use of orphan.
5256 Similarly find the place-holder output sections. Use returned
5257 value from lang_enter_output_section_statement rather than calling
5258 lang_output_section_statement_lookup.
5259 * emultempl/armelf.em: Same here.
5260 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5262 * ldlang.c (lang_enter_output_section_statement): Return output
5264 * ldlang.h (lang_enter_output_section_statement): Change
5267 * ldlang.h (lang_output_section_statement): Export it.
5268 * ldlang.c (lang_output_section_statement): Ditto.
5270 2000-04-24 Nick Clifton <nickc@cygnus.com>
5272 * ld.texinfo (Output Section Data): Add note that section data
5273 commands cannot appear outside of section directives.
5275 2000-04-2 Matthew Green <mrg@cygnus.com>
5277 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5279 2000-04-21 Richard Henderson <rth@cygnus.com>
5280 David Mosberger <davidm@hpl.hp.com>
5282 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5283 (eelf64_ia64.c): New rule.
5284 * Makefile.in: Rebuild.
5285 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5286 * emulparams/elf64_ia64.sh: New file.
5288 2000-04-21 Richard Henderson <rth@cygnus.com>
5290 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5292 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5294 * dep-in.sed: Match space at start of file name, not at end.
5296 2000-04-18 H.J. Lu <hjl@gnu.org>
5298 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5299 lang_leave_output_section_statement () after calling
5300 lang_enter_output_section_statement ().
5301 * emultempl/armelf.em: Likewise.
5303 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5305 * emultempl/elf32.em (struct orphan_save): Add section field.
5306 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5307 better order, and place first orphan section as we did before the
5308 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5309 Don't call make_bfd_section here, let wild_doit do the job for us.
5310 Don't build a statement list when we'll only throw it away.
5311 * emultempl/armelf.em: Ditto.
5312 * emultempl/pe.em: Similarly.
5314 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5316 * scripttempl/elfppc.sc: Remove.
5317 * emulparams/elf32ppc.sh: Use elf.sc.
5318 * emulparams/elf32lppc.sh: Use elf.sc.
5319 * emulparams/elf32ppclinux.sh: Use elf.sc.
5320 * emulparams/elf32ppcsim.sh: New file.
5321 * emulparams/elf32lppcsim.sh: New file.
5322 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5323 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5324 * Makefile.in: Regenerate.
5325 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5327 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5329 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5330 ~SEC_ALLOC sections too. Init start address of debug sections.
5331 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5332 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5333 Also set all relocateable section start addresses.
5335 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5337 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5338 Add new BSS_PLT variable for when .plt need not be contained in
5339 the file. Move _etext so that it is also after .fini, and provide
5340 both etext and _etext with a leading underscore. Mark the start
5343 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5345 * emultempl/elf32.em (struct orphan_save): New.
5346 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5347 hold_interp): Make them struct orphan_save.
5348 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5349 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5350 the end of the relevant section list. Also add associated section
5351 statements to the end of any previous orphan statements.
5352 * emultempl/armelf.em: Similarly.
5353 * emultempl/pe.em: Similarly.
5355 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5357 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5359 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5361 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5362 --enable-build-warnings option.
5363 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5364 * Makefile.in, configure: Re-generate.
5366 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5368 * po/ld.pot: Regenerate.
5370 * lexsup.c (help): Restore translated part of bug string.
5372 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5373 (DEP): Quote when passing vars to sub-make. Add warning message
5375 (DEP1): Rewrite for "gcc -MM".
5376 (CLEANFILES): Add DEP2.
5377 Update dependencies.
5378 * Makefile.in: Regenerate.
5380 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5382 * ld.h: #include "bin-bugs.h"
5383 * lexsup.c (help): Use REPORT_BUGS_TO.
5385 2000-03-27 Denis Chertykov <denisc@overta.ru>
5387 * configure.tgt (avr-*-*): New target support.
5388 * Makefile.am: Likewise.
5389 * scripttempl/elf32avr.sc: New script file.
5390 * emulparams/avr1200.sh: New file.
5391 * emulparams/avr23xx.sh: New file.
5392 * emulparams/avr4433.sh New file.
5393 * emulparams/avr44x4.sh New file.
5394 * emulparams/avr85xx.sh New file.
5395 * emulparams/avrmega103.sh New file.
5396 * emulparams/avrmega161.sh New file.
5397 * emulparams/avrmega603.sh New file.
5398 * Makefile.in: Regenerate.
5400 2000-03-09 Andreas Jaeger <aj@suse.de>
5402 * Makefile.am (check-DEJAGNU): Also unset LANG.
5403 * Makefile.in: Rebuild.
5405 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5407 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5410 2000-03-02 H.J. Lu <hjl@gnu.org>
5412 * emulparams/elf32mcore.sh: Include "getopt.h".
5414 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5416 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5418 2000-03-01 H.J. Lu <hjl@gnu.org>
5420 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5421 * emulparams/shpe.sh: Likewise.
5423 2000-03-01 Nick Clifton <nickc@cygnus.com>
5425 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5426 to unused parameters.
5428 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5429 functions only used by DLL code.
5430 (_place_orphan): Initialise 'dollar'.
5432 2000-03-01 H.J. Lu <hjl@gnu.org>
5434 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5435 indicate if the undefined symbol is a fatal error or not.
5436 Don't delete the output file if "fatal" is false.
5438 2000-02-29 H.J. Lu <hjl@gnu.org>
5440 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5441 Set LC_COLLATE and LC_ALL to null and export them. It is for
5442 sort which expects the C locale.
5443 Add $(LIBS) to all $(HOSTING_LIBS).
5444 * Makefile.in: Rebuild.
5446 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5448 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5449 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5450 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5451 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5452 find_potential_libraries.
5454 2000-02-28 Jim Blandy <jimb@redhat.com>
5456 * ldgram.y (exclude_name_list): Don't require a comma to separate
5457 list entries; the lexer considers commas to be valid part of a
5458 filename, so in something like `foo, bar' the comma is considered
5459 part of the first filename, `foo,'.
5460 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5462 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5464 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5465 host "i[3456]86-*-freebsdelf*".
5467 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5469 * scripttempl/i386go32.sc: Move misplaced semicolons.
5471 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5473 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5474 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5475 (eelf64hppa.c, ehppaelf.c): Remove targets.
5476 * Makefile.in: Rebuild.
5478 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5480 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5481 GNU/Linux/sparc, but keep the default as 32.
5483 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5484 it default if sparcv9 or sparc64.
5486 2000-02-24 Nick Clifton <nickc@cygnus.com>
5488 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5489 * Makefile.in: Regenerate.
5490 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5492 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5493 find_potential_libraries.
5494 * ldemul.c (ldemul_find_potential_libraries): New function.
5496 * ldfile.c (ldfile_open_file_search): Allow function to be
5498 (ldfile_open_file): Call ldemul_find_potential_libraries.
5499 * ldfile.h: Add prototype for ldfile_open_file_search.
5501 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5503 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5504 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5506 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5507 (gld_X_find_potential_libraries): New function. Search for
5508 libraries called "*.lib".
5510 * scripttempl/pe.sc: Add .pdata section.
5512 2000-02-23 Richard Henderson <rth@cygnus.com>
5514 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5515 Add and use memory regions.
5517 2000-02-23 Linas Vepstas (linas@linas.org)
5519 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5521 * Makefile.am: Add support for Linux/IBM 370.
5522 * configure.tgt: Likewise.
5524 * Makefile.in: Regenerate.
5526 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5528 * ldlang.c (print_input_section, print_data_statement,
5529 print_reloc_statement, print_padding_statement, insert_pad,
5530 size_input_section, lang_check_section_addresses,
5531 lang_size_sections, lang_do_assignments, lang_set_startof,
5532 lang_one_common): Change `opb' to unsigned.
5533 (lang_do_assignments): Also change `size' to unsigned.
5535 2000-02-16 Richard Henderson <rth@cygnus.com>
5537 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5539 2000-02-16 Timothy Wall <twall@cygnus.com>
5541 * mri.c (mri_draw_tree): Add default LMA region argument to call
5542 to lang_leave_output_section_statement.
5543 * ldlang.h: Update prototypes with LMA region arguments.
5544 * ldlang.c (lang_size_sections): Encapsulate region bounds
5545 checking in os_check_region call.
5546 (os_check_region): New function.
5547 (lang_output_section_statement_lookup): Initialize lma_region.
5548 (lang_leave_output_section_statement): Add LMA region argument.
5549 (lang_leave_overlay): Ditto.
5550 * ldgram.y: Handle LMA region syntax.
5551 * ld.texinfo (Output Section Description): Describe LMA region usage.
5552 * emultempl/armelf.em (gld$place_orphan): Add default value for
5553 lma region in call to lang_leave_output_section_statement.
5554 * emultempl/elf32.em (gld$place_orphan): Add default value for
5555 lma region in call to lang_leave_output_section_statement.
5556 * emultempl/pe.em (gld$place_orphan): Add default value for
5557 lma region in call to lang_leave_output_section_statement.
5560 2000-02-04 Timothy Wall <twall@redhat.com>
5562 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5563 octets when calculating section end addresses.
5565 2000-02-04 Timothy Wall <twall@redhat.com>
5567 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5569 2000-02-03 Timothy Wall <twall@redhat.com>
5571 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5573 * ldlang.c (print_input_section, print_data_statement,
5574 print_reloc_statement, print_padding_statement): Print target
5575 address values and section sizes as bytes, not octets.
5576 (insert_pad) Calculate padding size in octets, and adjust "dot"
5578 (size_input_section) Always adjust "dot" by bytes, not octets.
5579 (lang_check_section_addresses, lang_do_assignments) Adjust
5580 "dot" by bytes, not octets. Use the larger of the directive size
5581 or octets_per_byte for the number of octets actually allocated in
5583 (lang_set_startof) Make sure STARTOF returns a target address.
5584 (lang_one_common) Record size changes in octets.
5585 (lang_abs_symbol_at_end_of) Section end symbol's value is
5586 recorded in target bytes.
5587 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5588 to be clear about behavior when an octet is smaller than one byte.
5590 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5592 * ldcref.c (output_cref): Don't pass message strings to printf
5596 * ldmisc.c (vfinfo): Same here.
5599 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5601 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5602 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5603 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5604 Add missing NULL initialisers, and comments.
5606 2000-01-21 Nick Clifton <nickc@cygnus.com>
5608 * ldlang.c (lang_size_sections): Fix typo in comment.
5610 2000-01-18 H.J. Lu <hjl@gnu.org>
5612 * ldlang.c (lang_size_sections): Also update the current
5613 address of a region if the SEC_NEVER_LOAD bit is not set.
5615 2000-01-10 Philip Blundell <pb@futuretv.com>
5617 * configure.tgt (arm*-*-conix*): New target.
5619 2000-01-07 Nick Clifton <nickc@cygnus.com>
5621 * ld.texinfo (Options): Remind users to preceed linker command
5622 line switches with -Wl, (or whatever is appropriate) if it is
5623 being invoked by a comnpiler driver program.
5624 Fix description of the behaviour of the -n command line switch.
5626 2000-01-05 Catherine Moore <clm@cygnus.com>
5628 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5630 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5631 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5632 (exclude_name_list): New.
5633 ldlang.c (walk_wild_section): Support list of excluded files.
5634 (print_wild_statement): Likewise.
5635 (lang_add_wild): Likewise.
5636 * ldlang.h (lang_wild_statement_type): Likewise.
5637 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5639 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5641 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5642 (process_def_file): Use.
5643 (pe_dll_compat_implib): New variable.
5646 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5647 pe_dll_compat_implib.
5649 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5650 compat-implib options.
5651 (gld_${EMULATION_NAME}_list_options): List new options.
5652 (gld_${EMULATION_NAME}_parse_args): Handle.
5654 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5657 * deffilep.y (opt_name): Allow "." in name.
5659 For older changes see ChangeLog-9899
5665 version-control: never