1 2003-02-17 Nick Clifton <nickc@redhat.com>
3 * ldmain.c (main) Default allow_shlib_undefined to true.
4 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
5 (parse_args): Parse the new switch.
6 * ld.texinfo: Document new switch and default behaviour of
7 allowing undefined symbols in shared libraries.
9 2003-02-11 Dmitry Diky <diwil@mail.ru>
11 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
12 * scripttempl/elf32msp430_3.sc: Likewise.
14 2003-02-11 Uwe Stieber <uwe@wwws.de>
16 * configure.tgt: Add support for kaOS as cross build target
19 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
21 * hppaelf.em (group_size): Change default back to 1.
23 2003-02-09 Alan Modra <amodra@bigpond.net.au>
25 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
27 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29 * hppaelf.em (group_size): Change default to -1.
31 2003-02-07 Nick Clifton <nickc@redhat.com>
33 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
35 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
36 no-pipeline-knowledge. This will prevent the getopt package from
37 thinking that there are any shorter abbreviations for
38 --no-pipeline-knowledge.
40 2003-02-07 Jakub Jelinek <jakub@redhat.com>
42 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
43 which already have it. Avoid duplicates.
45 2003-02-06 Jakub Jelinek <jakub@redhat.com>
47 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
48 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
49 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
51 2003-02-05 Alan Modra <amodra@bigpond.net.au>
53 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
54 call ppc64_elf_tls_optimize.
56 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
58 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
59 outside of GNU/Linux conditional.
61 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
63 * deffilep.y (def_get_module): New function: locate an already
65 * deffile.h (def_get_module): New prototype.
66 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
69 2003-01-23 Alan Modra <amodra@bigpond.net.au>
71 * emultempl/sh64elf.em: Include elf32-sh64.h.
72 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
73 sh64_elf_section_data.
74 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
76 2003-01-23 Wu Yongwei <adah@netstd.com>
78 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
79 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
80 cross-80th-column-margin "an" to the next line.
82 2003-01-21 Nick Clifton <nickc@redhat.com>
84 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
85 * emulparams/tic3xcoff_onchip.sh: ...this.
86 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
87 * Makefile.in: Regenerate.
89 2003-01-21 Fabio Alemagna <falemagn@aros.org>
91 * configure.tgt: Handle i[3456]86-*-aros*
93 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
95 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
96 * Makefile.in: Regenerate
97 * configure.tgt: Added extra target emulations
98 * emulparams/tic3xcoff.sh: Remove old settings
99 * emulparams/tic4xcoff.sh: Ditto
100 * emulparams/tic3xcoff-onchip.sh: Added new
101 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
102 * scripttempl/tic3xcoff.sc: Remove
104 2003-01-17 Andreas Jaeger <aj@suse.de>
106 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
109 2003-01-16 Alan Modra <amodra@bigpond.net.au>
111 * Makefile.in: Regenerate.
113 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
115 * ld/ld.texinfo (node WIN32): Some clarifications
116 and formatting fixups.
118 2003-01-09 Chris Demetriou <cgd@broadcom.com>
120 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
121 order, and handle (ignore) -mips32r2.
123 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
125 * ldmain.c (main): Make sure ld_sysroot is initialized.
127 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
129 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
131 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
132 (GENSCRIPTS): Add @use_sysroot@.
133 * Makefile.in: Regenerated.
134 * configure.host: Move setting of NATIVE_LIB_DIRS to...
135 * configure.tgt: ... here. Use ${target} instead of ${host}
137 * configure.in: Add --with-sysroot.
138 * configure: Regenerated.
139 * genscripts.sh: Accept use_sysroot option. Set new variables
140 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
141 $use_sysroot. Don't search $tool_lib if $use_sysroot.
142 * ldfile.c (ldfile_add_library_path): Handle leading '='.
143 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
144 (ld_sysroot): New variable.
145 (main): Initialize ld_sysroot.
146 * ldmain.h (ld_sysroot): New extern.
147 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
148 searching $EMULATION_LIBPATH.
149 (gld${EMULATION_NAME}_add_sysroot): New function.
150 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
151 (gld${EMULATION_NAME}_after_open): Likewise. Only search
152 environment variables if $NATIVE.
153 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
154 * NEWS: Mention --with-sysroot.
156 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
157 instead of setting LIB_PATH.
158 * emulparams/elf32ppc.sh: Likewise.
159 * emulparams/elf64_s390.sh: Likewise.
160 * emulparams/elf64_sparc.sh: Likewise.
161 * emulparams/elf64ppc.sh: Likewise.
162 * emulparams/elf_x86_64.sh: Likewise.
164 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
165 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
167 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
169 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
171 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
173 * Makefile.am (ldmain.o): Pass BINDIR.
174 * Makefile.in: Regenerated.
175 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
178 2003-01-02 Ben Elliston <bje@redhat.com>
180 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
181 (eelf32iq2000.c): New target.
182 * Makefile.in: Regenerate.
183 * configure.tgt: Handle iq2000-*-elf.
184 * emulparams/elf32iq10.sh: New file.
185 * emulparams/elf32iq2000.sh: New file.
186 * scripttempl/iq2000.sc: New file.
188 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
190 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
191 and _pei386_runtime_relocator to the exclude list.
193 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
195 * ldfile.c: Fix comment typos.
196 * ldlang.c: Likewise.
198 * pe-dll.c: Likewise.
200 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
202 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
203 * Makefile.am (ld.1): Depend on configdoc.texi
205 * Makefile.in: Regenerated.
207 2002-12-24 Dmitry Diky <diwil@mail.ru>
209 * Makefile.am: Add msp430 target.
210 * configure.tgt: Likewise.
211 * Makefile.in: Regenerate.
212 * emulparams/msp430x???.sh: New files. Linker script parameters
213 for various msp430 configurations.
214 * gen-doc.texi: Enable msp430 documenation.
215 * ld.texinfo: Document msp430 sections.
216 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
217 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
219 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
220 Charles Wilson <cwilson@ece.gatech.edu>
222 * ld/config.in (HAVE_REALPATH): New entry.
223 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
225 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
227 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
230 2002-12-23 Alan Modra <amodra@bigpond.net.au>
232 * ldmain.c (main): Init "strip_discarded".
233 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
234 (OPTION_NO_STRIP_DISCARDED): Define.
235 (ld_options): Add "strip-discarded" and "no-strip-discarded".
236 (parse_args): Handle them.
238 2002-12-23 Nick Clifton <nickc@redhat.com>
240 * ld.h (struct args_type): Add new field
241 'accept_unknown_input_architecture'.
242 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
244 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
245 bfd_arch_get_compatible.
246 * ldfile.c (ldfile_try_open_bfd): Likewise.
247 * lexsup.c (ld_options): Add new command line switch
248 --accept-unknown-input-architecture and its inverse.
249 (parse_args): Handle --accept-unknown-input-architecture.
250 * ld.texinfo: Document new linker option.
251 * NEWS: Mention new linker option.
253 2002-12-20 Alan Modra <amodra@bigpond.net.au>
255 * ldmain.c (main): Re-order link_info initialization. Init all
258 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
260 * ld.texinfo: Clarify and extend the documentation
261 in the Machine Dependent, WIN32 section.
263 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
265 * ld.texinfo: Add win32 machine depending section.
266 * gen-doc.texi: Enable win32 machine depending section.
268 * configure.host: Add win32 library search path.
270 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
272 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
273 import when auto-import is disabled.
275 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
277 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
278 account for trailing '\0'.
280 2002-12-17 Nick Clifton <nickc@redhat.com>
282 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
283 so that it is not confused with -c.
285 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
286 Charles Wilson <cwilson@ece.gatech.edu>
288 * configure.in: Add check for realpath function.
289 * configure: Regenerate.
290 * config.in: Regenerate.
291 * aclocal.m4: Regenerate.
292 * deffile.h: Add .data field to def_file_import
294 * pe-dll.c (pe_proces_import_defs): Use .data field of
295 def_file_import structure to initialize flag_data field of
296 def_file_export structure.
297 (pe_implied_import_dll): New variables exp_funcbase and
298 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
299 not filename (which may be a symlink). Scan the sections and
300 initialize [data|bss]_[start|end]. When scanning the export
301 table, skip _nm_ symbols, and mark any symbols whose rva indicates
302 that it is in the .bss or .data sections as data.
303 * sysdep.h: Include limits.h and sys/param.h, and define
304 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
305 exists, NULL otherwise.
306 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
307 pe_process_import_defs before pe_find_data_imports, so that
308 auto-import will check the virtual implib as well as "real"
310 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
311 symlinks to their target; check that the target's extension is
312 .dll before calling pe_implied_import_dll(), not the filename
313 itself (which may be a symlink).
315 2002-12-10 Alan Modra <amodra@bigpond.net.au>
317 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
318 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
321 2002-12-08 Alan Modra <amodra@bigpond.net.au>
323 * ldlang.h: Formatting.
325 2002-12-07 Alan Modra <amodra@bigpond.net.au>
327 * ldlang.c (init_os): Ensure sections mentioned in load_base
330 2002-12-05 Alan Modra <amodra@bigpond.net.au>
332 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
333 load_base for orphans that follow a section with load_base set.
335 2002-12-01 H.J. Lu <hjl@gnu.org>
337 * ld.texinfo: Remove the extra `;' in sample version script.
339 2002-11-30 Alan Modra <amodra@bigpond.net.au>
341 * configure.host: Correct dynamic-linker for powerpc64 hosts.
343 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
344 * Makefile.in: Regenerate.
346 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
347 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
348 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
349 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
350 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
351 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
352 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
353 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
354 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
355 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
356 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
357 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
358 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
360 2002-11-27 David O'Brien <obrien@FreeBSD.org>
362 * configure.host: Fix generic FreeBSD configuration entry.
364 2002-11-27 H.J. Lu <hjl@gnu.org>
366 * ld.texinfo: Add the missing `;' to sample version scripts.
368 2002-11-20 Alan Modra <amodra@bigpond.net.au>
370 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
372 2002-11-14 Egor Duda <deo@logos-m.ru>
374 * ldmain.c (main): Make runtime relocs disabled by default. Remove
375 assignment which has no effect.
376 * pe-dll.h (pe_create_import_fixup): Change prototype.
377 * pe-dll.c (make_runtime_pseudo_reloc): New function.
378 (pe_create_runtime_relocator_reference): Ditto.
379 (pe_create_import_fixup): Handle relocations with non-zero addends.
380 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
381 --disable-runtime-pseudo-reloc.
382 (make_import_fixup): Handle relocations with non-zero addends. Create
383 an external reference to _pei386_runtime_relocator symbol if at least
384 one pseudo reloc was created.
385 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
386 --disable-runtime-pseudo-reloc options.
388 2002-11-12 Earl Chew <earl_chew@agilent.com>
390 * ldlang.c (lang_add_section): Discard debugging sections that have
391 been marked SEC_EXCLUDE.
393 2002-11-12 Nick Clifton <nickc@redhat.com>
395 * configure.in (ALL_LINGUAS): Add da.
396 * configure: Regenerate.
397 * po/da.po: New Danish translation.
399 2002-11-12 Alan Modra <amodra@bigpond.net.au>
401 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
402 (LDEMUL_BEFORE_ALLOCATION): Define.
403 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
405 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
407 2002-11-11 Christopher Faylor <cgf@redhat.com>
409 * configure.tgt (LIB_PATH): Default to searching w32api directory under
412 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
414 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
415 of restricted auto-export libs.
417 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
419 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
420 creative library naming instances like, e.g., libstdc++-2.a.
422 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
424 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
425 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
427 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
429 * deffilep.y (def_lex): Handle '@' as first character of an ID.
430 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
431 (make_one): Don't prefix decorated fastcall symbols with '_'.
432 (pe_process_import_defs): Likewise.
433 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
434 symbols to cdecl names or vise-versa.
436 2002-10-13 Eric Kohl <ekohl@rz-online.de>
438 * pe-dll.c (process_def_file): Handle fastcall symbols when
439 generating undecorated aliases. Don't prefix decorated fastcall
441 (fill_exported_offsets): Don't prefix decorated fastcall symbols
444 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
446 * emultempl/aix.em: Use include <> for generated headers.
447 * emultempl/beos.em: Likewise.
448 * emultempl/elf32.em: Likewise.
449 * emultempl/pe.em: Likewise.
450 * ldctor.c: Likewise.
452 * ldfile.c: Likewise.
453 * ldlang.c: Likewise.
456 * ldmain.c: Likewise.
457 * ldmisc.c: Likewise.
458 * ldwrite.c: Likewise.
459 * lexsup.c: Likewise.
461 * pe-dll.c: Likewise.
463 2002-10-23 Jakub Jelinek <jakub@redhat.com>
465 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
466 sections into .rel{,a}.dyn.
468 2002-10-23 Nick Clifton <nickc@redhat.com>
470 * lexsup.c (OPTION_NO_OMAGIC): Define.
471 (ld_options): Add "no-omagic" option.
472 (parse_args): Parse --no-omagic.
473 * ld.texinfo: Document --no-omagic.
474 * NEWS: Mention new option.
476 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
478 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
479 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
481 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
483 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
484 emulation name. Set LIB_PATH only for native tools, and
485 search the ABI-specific versions of NATIVE_LIB_DIRS before the
486 .../lib variants, not instead of them. Mostly copied from...
487 * emulparams/elf32ppc.sh: ... here. Fixed typo.
488 * emulparams/elf64bmip-defs.sh: Backed out.
489 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
490 * emulparams/elf64btsmip.sh: Likewise.
491 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
492 TEXT_DYNAMIC): Removed.
494 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
496 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
497 (GENERATE_SHLIB_SCRIPT): Set to yes.
498 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
499 * emulparams/elf32bmipn32.sh: here.
500 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
501 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
502 * emulparams/elf64bmip-defs.sh: New file. Extend
503 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
504 * emulparams/elf64bmip.sh: Bring in definitions from
506 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
508 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
509 * emulparams/elf64btsmip.sh: Bring in definitions from
511 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
512 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
514 2002-10-16 Jakub Jelinek <jakub@redhat.com>
516 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
517 (s390-*-linux*): Add elf64_s390 emulation if want64.
518 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
519 genscript.sh changes.
520 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
521 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
523 2002-10-15 Alan Modra <amodra@bigpond.net.au>
525 * ldlang.c (load_symbols): Revert last change.
527 2002-10-14 Alan Modra <amodra@bigpond.net.au>
529 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
531 (lang_reasonable_defaults): Don't compare against false.
532 (size_input_section): Likewise.
533 (lang_size_sections_1): Likewise.
534 (lang_do_assignments): Likewise.
535 (lang_add_output): Likewise.
537 * Makefile.am: Run "make dep-am".
538 * Makefile.in: Regenerate.
539 * ldver.c: #include "bfdver.h".
541 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
543 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
545 * scripttempl/elfm68hc12.sc: Likewise.
547 2002-10-11 Alan Modra <amodra@bigpond.net.au>
549 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
551 * ldgram.y (memory_spec): Provide empty action.
552 (section <NAME>): Likewise.
554 2002-10-10 Jakub Jelinek <jakub@redhat.com>
556 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
557 they have OUTPUT_FORMAT not matching actual output format.
558 * ldlang.c (lang_get_output_target): New function.
559 (open_output): Use it.
560 * ldlang.h (lang_get_output_target): New prototype.
562 2002-10-10 Alan Modra <amodra@bigpond.net.au>
564 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
565 when orphan is .rel, .rela when orphan is .rela.
566 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
567 first. Remove outsecname var.
569 2002-10-09 Richard Shann <richard.shann@superh.com>
570 Stephen Clarke <stephen.clarke@superh.com>
572 * Makefile.am: Add eshelf32_linux.o and
573 eshlelf32_linux.o, new emulations for sh64 Linux.
574 * Makefile.in: Regenerate.
575 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
576 * emulparams/shelf32_linux.sh: New file.
577 * emulparams/shlelf32_linux.sh: New file.
579 2002-10-08 H.J. Lu <hjl@gnu.org>
581 * ldlang.c (lang_file_exist): Removed.
582 (new_afile): Revert the last change.
583 * ldlang.h (lang_file_exist): Removed.
584 * lexsup.c (parse_args): Revert the last change.
586 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
588 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
590 (make_one): Create _nm_<symbol> for data only.
592 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
594 * ldlang.c (lang_file_exist): New function.
595 (new_afile): Abort if the filename to be added matches the linker
597 * ldlang.h: Add prototype for lang_file_exist.
598 * lexsup.c (parse_args): Abort if the output filename matches
599 one of the input filenames.
601 2002-10-02 Alan Modra <amodra@bigpond.net.au>
603 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
605 2002-09-30 Alan Modra <amodra@bigpond.net.au>
607 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
608 * scripttempl/elfm68hc11.sc: Likewise.
609 * scripttempl/elfm68hc12.sc: Likewise.
611 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
612 reloc sections just before .rel.plt/.rela.plt.
613 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
614 Only put loadable reloc sections in hold_rel.
616 2002-09-29 H.J. Lu <hjl@gnu.org>
618 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
620 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
622 From "Anita Kulkarni" <AnitaK@kpit.com>
623 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
626 2002-09-25 Alan Modra <amodra@bigpond.net.au>
628 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
630 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
631 SEGMENT_SIZE alignment.
632 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
633 (SEGMENT_SIZE): Define.
635 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
636 (fold_binary): Correct abs - non-abs case.
637 (fold_trinary): New. Split out from exp_fold_tree.
639 2002-09-24 Alan Modra <amodra@bigpond.net.au>
641 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
642 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
643 for start of .data, instead align up to 256M boundary.
644 * scripttempl/aix.sc: Likewise.
646 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
648 * scripttempl/i386go32.sc: Handle bss unique sections.
650 2002-09-21 Alan Modra <amodra@bigpond.net.au>
652 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
654 2002-09-17 Stan Cox <scox@redhat.com>
656 * emulparams/elf32bmipn32-defs.sh: New file.
657 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
658 * emulparams/elf32btsmipn32.sh: Likewise.
659 * emulparams/elf64bmip.sh: Likewise.
660 * emulparams/elf64btsmip.sh: Likewise.
662 2002-09-16 Bruno Haible <bruno@clisp.org>
664 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
666 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
669 2002-09-11 Nick Clifton <nickc@redhat.com>
671 * NEWS: New TI port supports both C4x and C3x series of DSPs.
673 * po/tr.po: Updated Turkish translation.
675 2002-09-06 Jeffrey A Law (law@redhat.com)
677 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
679 2002-09-02 Nick Clifton <nickc@redhat.com>
681 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
683 * emulparams/v850.sh (TEMPLATE_NAME): Define.
685 2002-08-30 Nick Clifton <nickc@redhat.com>
687 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
688 used. Change INSN to start at 0x01000000 and extend for
689 256K (ignoring holes). Start the STACK on a word aligned
691 (.rodata): Start it at the READONLY_START_ADDR.
693 2002-08-30 Alan Modra <amodra@bigpond.net.au>
695 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
697 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
699 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
700 added makefile targets for this file.
701 * Makefile.in: Regenerate.
702 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
703 * NEWS: Mention new port.
705 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
707 * emulparams/tic3xcoff.sh: New file.
708 * emulparams/tic4xcoff.sh: New file.
709 * scripttempl/tic3xcoff.sc: New file.
710 * scripttempl/tic4xcoff.sc: New file.
712 2002-08-28 Alan Modra <amodra@bigpond.net.au>
714 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
715 strtoul and strtoull with bfd_scan_vma.
716 (gld${EMULATION_NAME}_read_file): Likewise.
718 2002-08-28 Alan Modra <amodra@bigpond.net.au>
720 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
722 2002-08-27 Egor Duda <deo@logos-m.ru>
724 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
725 Add symbols for application to access them.
727 2002-08-27 Nick Clifton <nickc@redhat.com>
729 * emultempl/armelf.em: Revert this patch, it is not needed.
731 2002-08-22 Adam Nemet <anemet@lnxw.com>
733 2002-08-20 Dan Kegel <dank@kegel.com>
735 * configure.in: added --with-lib-path argument to ld's configure
737 * ld/NEWS: Document new switch.
738 * ld/README: Mention new switch.
739 * configure: Regenerate.
740 * Makefile.in: Regenerate.
743 2001-04-25 Christopher Faylor <cgf@cygnus.com>
745 * Makefile.in (LIB_PATH): Make configurable.
746 (GENSCRIPTS): Set LIB_PATH in environment.
747 * configure.in: Substitute LIB_PATH.
749 2002-08-22 Adam Nemet <anemet@lnxw.com>
751 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
752 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
753 depending on the type of the function.
754 (arm_elf_convert_thumb_symbol_to_address): New function.
756 2002-08-22 Graeme Peterson <gp@qnx.com>
758 * Makefile.am: Add esh{l}elf_nto.o files.
759 * Makefile.in: Regenerate.
760 * configure.tgt: Add support for sh-**-nto* targets.
761 * emulparams/shelf_nto.sh: New file.
762 * emulparams/shlelf_nto.sh: New file.
764 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
766 * ldlang.c (offsetof): Define if not defined.
768 2002-08-14 H.J. Lu <hjl@gnu.org>
770 * configure.tgt: Always enable 64bit emulations for 32bit
773 2002-08-13 Alan Modra <amodra@bigpond.net.au>
775 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
776 (MAXPAGESIZE): Set to 1.
778 * ld.h (ALIGN_N): Delete.
779 * ldexp.h (align_n): Declare.
780 * ldexp.c (align_n): New function.
781 (fold_binary): Use align_n instead of ALIGN_N.
782 (exp_fold_tree): Likewise.
783 * ldlang.c (lang_size_sections_1): Likewise.
784 (lang_one_common): Likewise.
785 * ld.texinfo (ALIGN): Remove power of 2 restriction.
787 2002-07-31 Graeme Peterson <gp@qnx.com>
789 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
790 * Makefile.am: Add eelf32{l}ppcnto.o files.
791 * Makefile.in: Regenerate.
792 * emulparams/elf32lppcnto.sh: New file.
793 * emulparams/elf32ppcnto.sh: New file.
795 2002-08-07 H.J. Lu <hjl@gnu.org>
797 * ld.texinfo: Document --no-undefined-version.
799 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
800 `script.' fields to 0.
802 * ldmain.c (main): Initialize the allow_undefined_version to
805 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
806 (ld_options): Add --no-undefined-version.
807 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
809 2002-08-07 Nick Clifton <nickc@redhat.com>
811 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
812 an interworking bfd if there are input bfds. (107501)
814 2002-08-06 Alan Modra <amodra@bigpond.net.au>
816 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
819 2002-08-01 Nick Clifton <nickc@redhat.com>
821 * emulparams/armelf.sh: Revert previous delta.
822 * scripttempl/elf.sc: Revert previous delta.
824 2002-07-31 H.J. Lu <hjl@gnu.org>
826 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
829 2002-07-31 H.J. Lu <hjl@gnu.org>
831 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
832 64bit BFD is selected.
834 2002-07-31 H.J. Lu <hjl@gnu.org>
836 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
837 if 64bit BFD is selected.
839 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
841 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
842 link_info.common_skip_ar_aymbols.
843 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
845 * ldmain.c (main): Initialize new field
846 link_info.common_skip_ar_aymbols.
848 2002-07-31 Adam Nemet <anemet@lnxw.com>
850 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
852 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
855 2002-07-31 Nick Clifton <nickc@redhat.com>
857 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
858 of the PDP-11 and 2.11BSD a.out support.
860 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
862 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
864 * Makefile.in: Regenerate.
865 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
866 n32 ABI emulations for these 64 bit targets.
867 * emulparams/elf32bmipn32.sh: Expand comment.
868 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
870 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
872 2002-07-30 Graeme Peterson <gp@qnx.com>
874 * configure.tgt: Add support for arm-*-nto target.
875 * Makefile.am: Add earmnto.o file.
876 * Makefile.in: Regenerate.
877 * NEWS: Mention port of ARM support to QNX.
878 * emulparams/armnto.sh: New file.
880 2002-07-30 Jakub Jelinek <jakub@redhat.com>
882 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
883 for relocatable link.
884 (lang_size_sections_1): Don't make .tbss zero size for relocatable
887 2002-07-26 Bernd Schmidt <bernds@redhat.com>
889 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
892 2002-07-25 Nick Clifton <nickc@redhat.com>
894 * po/sv.po: Updated Swedish translation.
895 * po/es.po: Updated Spanish translation.
896 * po/fr.po: Updated French translation.
898 2002-07-24 Nick Clifton <nickc@redhat.com>
900 * po/sv.po: Updated Swedish translation.
901 * po/es.po: Updated Spanish translation.
903 2002-07-23 Nick Clifton <nickc@redhat.com>
905 * po/fr.po: Updated French translation.
907 2002-07-20 Alan Modra <amodra@bigpond.net.au>
909 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
910 bomb on /DISCARD/ input section.
911 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
912 * emultempl/mmo.em (mmo_place_orphan): Likewise.
914 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
916 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
919 2002-07-16 Denis Chertykov <denisc@overta.ru>
920 Nick Clifton <nickc@redhat.com>
921 Frank Ch. Eigler <fche@redhat.com>
922 John Healy <jhealy@redhat.com>
924 * configure.tgt: Add support for ip2k-elf.
925 * Makefile.am: Add support for ip2k-elf.
926 * Makefile.in: Regenerate.
927 * emulparams/elf32ip2k.sh: New file.
928 * scripttempl/ip2k.sc: New file
929 * NEWS: Mention support for new port.
931 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
933 * NEWS: Add 'Changes in 2.13'.
935 2002-07-14 H.J. Lu <hjl@gnu.org>
937 * ld.texinfo: Document a .symver takes precedence over a
940 2002-07-12 Alan Modra <amodra@bigpond.net.au>
942 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
943 (COMMONPAGESIZE): Define.
945 2002-07-09 Alan Modra <amodra@bigpond.net.au>
947 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
949 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
951 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
952 powerpc-*-openbsd* and sparc64-*-openbsd*.
953 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
954 * Makefile.in: Regenerate.
955 * emulparams/hppaobsd.sh: New file.
957 2002-07-05 Alan Modra <amodra@bigpond.net.au>
959 * ldlang.c (print_wild_statement): Fix output formatting.
961 2002-07-04 Alan Modra <amodra@bigpond.net.au>
963 * ldlang.c: (strip_excluded_output_sections): New function.
964 (lang_process): Call it.
965 (lang_size_sections_1): Revert 2002-06-10 change.
967 2002-07-03 Alan Modra <amodra@bigpond.net.au>
969 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
971 * Makefile.in: Regenerate.
973 2002-07-02 Alan Modra <amodra@bigpond.net.au>
975 * ldfile.c (ldfile_try_open_bfd): Formatting.
977 * ldmisc.c (demangle): Move so that it doesn't intrude between
978 vfinfo comment and body. Add comment.
980 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
982 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
984 2002-07-01 Alan Modra <amodra@bigpond.net.au>
986 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
987 * ldlang.c (entry_sym): Likewise.
988 (ldlang_undef_chain_list_type): Likewise.
989 (lang_finish): Adjust references to entry_symbol.
990 (lang_add_entry): Likewise.
991 (lang_gc_sections): Use link_info.gc_sym_list.
992 (lang_process): Set link_info.gc_sym_list.
993 * ldlex.l: Include bfdlink.h.
994 * ldmain.c (main): Init link_info.gc_sym_list.
995 * emultempl/aix.em: Adjust references to entry_symbol.
996 * emultempl/armcoff.em: Likewise.
997 * emultempl/armelf.em: Likewise.
998 * emultempl/pe.em: Likewise.
999 * emultempl/ppc64elf.em (ppc_after_open): New function.
1000 (LDEMUL_AFTER_OPEN): Define.
1001 * emulparams/elf64ppc.sh: KEEP .opd sections.
1003 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1005 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1006 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1007 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1008 (EEPROM_START_ADDR): Define.
1009 (EEPROM_MEMORY): Define.
1010 * emulparams/m68hc12elf.sh: Likewise.
1011 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1012 section to put soft registers in .page0.
1013 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1015 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1017 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1018 section. Add ${RELOCATING-0}.
1020 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1022 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1023 (OTHER_SECTIONS): Define.
1024 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1025 (OTHER_SECTIONS): Undef.
1027 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1029 * ldmisc.c (demangle): Restore dots stripped from sym name.
1031 2002-06-25 H.J. Lu <hjl@gnu.org>
1033 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1034 * Makefile.in: Regenerated.
1036 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1038 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1039 the size of attached object files, to allow make the object files
1040 available via FTP or HTTP and to mention that the mail will be
1041 sent to a mailing list.
1043 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1045 * ld/configure.host (romp): Drop support.
1047 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1049 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1050 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1052 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1054 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1055 format specifier used to print BFD name.
1057 2002-06-18 Dave Brolley <brolley@redhat.com>
1059 From Catherine Moore, Michael Meissner, Jim Blandy:
1060 * emulparams/elf32frv.sh: New file.
1061 * configure.tgt: Support frv-*-*.
1062 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1063 (eelf32frv.c): New target.
1065 2002-06-17 Tom Rix <trix@redhat.com>
1067 * emultempl/elf32.em: gld*_get_script: Check for
1068 GENERATE_COMBRELOC_SCRIPT.
1069 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1070 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1072 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1074 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1076 2002-06-12 H.J. Lu <hjl@gnu.org>
1078 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1079 false if xvec doesn't match.
1081 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1083 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1085 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1087 * ldexp.c: Replace CONST with const.
1088 * ldfile.c: Likewise.
1089 * ldfile.h: Likewise.
1090 * ldlex.l: Likewise.
1092 * pe-dll.h: Likewise.
1094 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1096 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1098 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1100 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1101 to -1 == implicit enable.
1102 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1103 initialize link_info.pei386_auto_import to -1 == implicit
1105 (gld_${EMULATION_NAME}_parse_args): When processing
1106 --enable-auto-import and --disable-auto-import options, use
1107 '1' and '0' instead of 'true' and 'false'.
1108 (pe_find_data_imports): Only issue message about auto-import
1109 when the feature is implicitly enabled. Downgrade message to
1110 informational instead of warning.
1112 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1114 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1116 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1118 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1119 HOSTING_CRT0 and HOSTING_LIBS.
1121 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1123 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1125 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1127 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1128 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1130 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1132 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1133 SEC_EXCLUDE sections when doing a relocatable link.
1135 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1137 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1138 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1139 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1140 (eshlelf64_nbsd.c): New rules.
1141 * Makefile.in: Regenerate.
1142 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1143 (sh64-*-netbsd*): New targets.
1144 * emulparams/shelf32_nbsd.sh: New file.
1145 * emulparams/shelf64_nbsd.sh: New file.
1146 * emulparams/shlelf32_nbsd.sh: New file.
1147 * emulparams/shlelf64_nbsd.sh: New file.
1149 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1151 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1153 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1155 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1156 C++ constructors/destructors, loosely based on the m68hc11 port.
1158 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1160 * Makefile.in: Regenerate.
1161 * aclocal.m4: Regenerate.
1162 * config.in: Regenerate.
1163 * configure: Regenerate.
1165 2002-05-31 Graeme Peterson <gp@qnx.com>
1167 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1168 (ei386nto.c): Add rule.
1169 * Makefile.in: Regenerate.
1170 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1171 * emulparams/i386nto.sh: New file.
1173 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1175 * NEWS: Add entry for VAX ELF support.
1177 2002-05-29 Matt Thomas <matt@3am-software.com>
1178 Jason Thorpe <thorpej@wasabisystems.com>
1180 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1182 (evaxnbsd.c): New rules.
1183 * Makefile.in: Regenerate.
1184 * configure.tgt (vax-*-netbsdelf*)
1186 (vax-*-netbsd*): New targets.
1187 * emulparams/elf32vax.sh: New file.
1188 * emulparams/vaxnbsd.sh: New file.
1190 2002-05-29 Adam Nemet <anemet@lnxw.com>
1192 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1193 bfd_for_interwork, instead add glue sections to each input bfd.
1194 (bfd_for_interwork): New global.
1195 (arm_elf_set_bfd_for_interworking): New function.
1196 (arm_elf_before_allocation): Use it.
1198 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1200 * Makefile.am: Add DLX make target.
1201 * configure.tgt: Add DLX configuration.
1202 * Makefile.in: Regenerate.
1203 * emulparams/elf32_dlx.sh: New file
1204 * scripttempl/dlx.sc: New file
1206 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1208 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1209 * Makefile.in: Regenerate.
1210 * emulparams/elf_chaos.sh: Use elf_chaos script.
1211 * scripttempl/elf_chaos.sc: New file.
1213 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1215 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1216 addresses and regions from here...
1217 (lang_get_regions): ...to this new function.
1218 (lang_leave_output_section_statement): Use lang_get_regions.
1219 (lang_leave_overlay): Likewise.
1220 * mri.c (mri_draw_tree): Pass null as last argument to
1221 lang_leave_output_section_statement.
1222 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1223 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1224 * emultempl/pe.em (gld*_place_orphan): Likewise.
1226 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1228 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1230 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1232 * ldemul.c: Fix formatting.
1233 * ldfile.c: Likewise.
1234 * pe-dll.c: Likewise.
1235 * pe-dll.h: Likewise.
1237 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1239 * ldlang.c (lang_process): Formatting, grammar.
1241 * ldlex.l: Use #include "" instead of <> for local header files.
1243 2002-05-24 TAMURA Kent <kent@netbsd.org>
1245 * configure.tgt: Add a target for i386-netbsdpe.
1247 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1249 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1250 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1251 output section if necessary. Handle .tbss.
1252 (lang_size_sections): Clear _raw_size for .tbss section
1253 (it allocates space in PT_TLS segment only).
1254 * ldwrite.c (build_link_order): Build link order for .tbss too.
1256 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1258 * configure.in: Correct spelling of AC_PREREQ.
1260 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1262 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1264 (autofilter_objlist): Add crtbegin.o, crtend.o.
1266 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1268 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1269 (longopts): Add new option --exclude-libs.
1270 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1271 (gld_${EMULATION_NAME}_parse_args): Use it.
1272 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1273 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1274 from whole archives.
1275 (pe_dll_add_excludes): Set excludes->type.
1276 (auto_export): Add new variable libname and set to archive basename if
1277 abfd. Use it when filtering default and user-specified libarary
1278 excludes. Let string "ALL" mean all libs when filtering user-specified
1280 * ld.texinfo: Document --exclude-libs.
1282 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1284 * ldemul.c (ldemul_new_vers_pattern): New function.
1285 * ldemul.h (ldemul_new_vers_pattern): Declare.
1286 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1287 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1288 * emultempl/ppc64elf.em (dotsyms): New static var.
1289 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1290 (LDEMUL_NEW_VERS_PATTERN): Define.
1291 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1292 (PARSE_AND_LIST_LONGOPTS): Likewise.
1293 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1294 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1296 * emultempl/armcoff.em: Likewise.
1297 * emultempl/armelf_oabi.em: Likewise.
1298 * emultempl/beos.em: Likewise.
1299 * emultempl/elf32.em: Likewise.
1300 * emultempl/generic.em: Likewise.
1301 * emultempl/gld960.em: Likewise.
1302 * emultempl/gld960c.em: Likewise.
1303 * emultempl/linux.em: Likewise.
1304 * emultempl/lnk960.em: Likewise.
1305 * emultempl/m68kcoff.em: Likewise.
1306 * emultempl/mipsecoff.em: Likewise.
1307 * emultempl/pe.em: Likewise.
1308 * emultempl/sunos.em: Likewise.
1309 * emultempl/ticoff.em: Likewise.
1310 * emultempl/vanilla.em: Likewise.
1312 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1314 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1315 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1316 (LIB_SEARCH_DIRS): No need to use "tr".
1317 (COMPILE_IN): Only set for native targets.
1318 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1319 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1320 * configure.tgt (powerpc*): Set tdir_*.
1321 (powerpcle*): Correct targ_extra_emuls.
1322 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1323 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1325 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1327 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1328 calling lang_add_entry.
1330 2002-05-21 H.J. Lu (hjl@gnu.org)
1332 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1334 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1336 * ld.texinfo: Updated for --allow-multiple-definition and
1339 * ldmain.c (main): Initialize the allow_multiple_definition
1342 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1343 (ld_options): Add --allow-multiple-definition.
1344 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1346 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1348 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1349 (earmelfb_nbsd.c): New rule.
1350 * Makefile.in: Regenerate.
1351 * configure.tgt (armeb-*-netbsdelf*): New target.
1352 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1353 (arm-*-netbsd*): Likewise.
1354 * emulparams/armelfb_nbsd.sh: New file.
1356 2002-05-18 Tom Rix <trix@redhat.com>
1358 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1361 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1363 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1364 * Makefile.in: Regenerate.
1365 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1367 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1369 * emulparams/avr1.sh: New file.
1370 * emulparams/avr2.sh: New file.
1371 * emulparams/avr3.sh: New file.
1372 * emulparams/avr4.sh: New file.
1373 * emulparams/avr5.sh: New file.
1374 * scripttempl/avr.sc: New file.
1376 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1378 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1379 (lang_place_orphans): Abort if just_syms_flag.
1381 2002-05-10 Tom Rix <trix@redhat.com>
1383 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1384 architecture and machine information in the output bfd.
1385 (gld*_before_parse): Remove old arch and machine code.
1386 (choose_target): Rename to gld*_choose_target.
1387 (rtld): Change type to int.
1388 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1389 objects in XCOFF archives.
1390 * ldfile.h: Update copyright date.
1392 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1394 * ldmain.c (main): Enable -z combreloc by default.
1396 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1398 * Makefile.am: Honour DESTDIR.
1399 * Makefile.in: Regenerate.
1401 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1403 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1404 (lang_enter_overlay): Remove the last two parameters.
1405 (lang_leave_overlay): Take them here instead.
1406 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1407 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1408 than lang_enter_overlay.
1409 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1410 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1411 (lang_size_sections_1): Evaluate it.
1412 (lang_leave_output_section_statement): Rework LMA lookup.
1413 (overlay_lma, overlay_nocrossrefs): Remove.
1414 (lang_enter_overlay): Remove LMA and crossref arguments.
1415 (lang_enter_overlay_section): Don't set the LMA here.
1416 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1417 assignment to the last section's update_dot_tree. Unconditionally
1418 use the load and run-time regions specified in the OVERLAY statement.
1419 Likewise the first section's LMA. Only set the other sections' LMAs
1420 when no load region is given.
1422 2002-05-06 Nick Clifton <nickc@redhat.com>
1424 * po/sv.po: New translation.
1426 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1428 * emultempl/hppaelf.em (build_section_lists): New function.
1429 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1430 and build_section_lists.
1432 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1434 * ld.h: Fix formatting.
1435 * ldexp.c: Likewise.
1436 * ldfile.c: Likewise.
1437 * ldlang.c: Likewise.
1438 * ldmain.c: Likewise.
1439 * lexsup.c: Likewise.
1440 * pe-dll.c: Likewise.
1442 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1444 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1445 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1446 (build_section_lists): Do output_section tests here.
1448 2002-04-30 Tom Rix <trix@redhat.com>
1450 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1452 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1454 Long branch stubs, multiple stub sections.
1455 * emultempl/ppc64elf.em: Include ldctor.h.
1456 (stub_file): New var.
1457 (group_size): New var.
1458 (ppc_create_output_section_statements): New function.
1459 (struct hook_stub_info): New.
1460 (hook_in_stub): New function.
1461 (ppc_add_stub_section): New function.
1462 (ppc_layout_sections_again): New function.
1463 (build_section_lists): New function.
1464 (gld${EMULATION_NAME}_finish): Rewrite.
1465 (real_func): New var.
1466 (ppc_for_each_input_file_wrapper): New function.
1467 (ppc_lang_for_each_input_file): New function.
1468 (lang_for_each_input_file): Define.
1469 (PARSE_AND_LIST_PROLOGUE): Define.
1470 (PARSE_AND_LIST_LONGOPTS): Define.
1471 (PARSE_AND_LIST_OPTIONS): Define.
1472 (PARSE_AND_LIST_ARGS_CASES): Define.
1473 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1475 2002-04-30 Tom Rix <trix@redhat.com>
1477 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1478 -blibpath, -bnolibpath support.
1480 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1482 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1483 (eelf32ppcwindiss.c): New target.
1484 * Makefile.in: Regenerated.
1485 * configure.tgt: Add support for powerpc-*-windiss.
1486 * emulparams/elf32ppcwindiss.sh: New file.
1488 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1490 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1491 * ldexp.c (exp_print_token): Add "infix_p" argument.
1492 (exp_print_tree): Update accordingly.
1494 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1496 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1497 * Makefile.in: Regenerate.
1498 * mpw-elfmips.c: Delete.
1499 * mpw-eppcmac.c: Delete.
1500 * mpw-esh.c: Delete.
1501 * mpw-idtmips.c: Delete.
1503 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1505 * emulparams/shelf32.sh (MACHINE): Now sh5.
1507 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1509 * ldgram.y: Fix syntax warning.
1511 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1513 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1514 to prevent "-n" from being taken as an abbreviation for
1515 "--no-pipeline-knowledge".
1517 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1519 * ldlang.c (lang_size_sections_1): Don't complain about
1520 SEC_NEVER_LOAD sections having no memory region specified.
1522 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1524 2002-04-07 matthew green <mrg@redhat.com>
1526 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1528 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1530 * dep-in.sed: Cope with absolute paths.
1531 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1533 * Makefile.in: Regenerate.
1535 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1537 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1539 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1541 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1542 is smaller than maximum, round dot up to common page boundary.
1544 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1546 * configure.host: Set up for generic hosts first, then tweak as
1547 necessary in more specific targets.
1548 (HOSTING_LIBS): Include libgcc_eh.a if found.
1550 2002-03-23 Andreas Jaeger <aj@suse.de>
1552 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1554 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1556 * Makefile.am: Run "make dep-am".
1557 * Makefile.in: Regenerate.
1559 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1561 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1563 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1565 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1566 add the symbol to the linker hash table immediately.
1567 (lang_place_undefineds): Split symbol creation out..
1568 (insert_undefined): ..to here.
1570 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1572 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1573 the contents of the buffer returned from basename function will are
1574 getting overwritten while still being used.
1576 2002-03-18 Jan Hubicka <jh@suse.cz>
1577 Andreas Jaeger <aj@suse.de>
1578 Andreas Schwab <schwab@suse.de>
1580 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1581 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1582 set libraries to default to lib64 paths.
1584 2002-03-18 Tom Rix <trix@redhat.com>
1586 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1587 * configure.tgt : Same.
1588 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1589 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1590 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1591 emulation parameters for better -b32, -b64 support.
1592 * emulparms/aixrs6.sh : Same.
1593 * emulparms/ppcmacos.sh : Same.
1594 * emultempl/aix.em (choose_target) : Use new emulation parameters
1595 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1596 * Makefile.in : Regenerate.
1598 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1600 * po/fr.po: Updated version.
1602 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1604 * ldmain.c (main): Move .text readonly flag fudges from here..
1605 * ldlang.c (lang_process): ..to here.
1607 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1609 * ldlang.c (lang_check): Remove the word size check added in last
1610 change. Treat emitrelocations case as for relocatable links.
1612 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1614 * po/fr.po: Updated version.
1616 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1618 * ldlang.c (lang_check): Do relocatable link checks first, so that
1619 warn_mismatch can't override. Check compatible and word size too.
1621 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1623 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1625 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1627 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1630 2002-03-04 H.J. Lu <hjl@gnu.org>
1632 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1633 .fini_array in the data segment.
1635 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1637 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1639 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1641 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1642 .init_array, and .fini_array.
1644 2002-02-20 Andreas Schwab <schwab@suse.de>
1646 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1647 .IA64_unwind* in a relocatable link.
1649 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1651 * NEWS: Mark 2.12 branch.
1653 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1655 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1656 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1658 2002-02-18 Tom Rix <trix@redhat.com>
1660 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1661 (gld*_before_allocation): Same.
1662 (gld*_create_output_section_statements): Generate
1663 __rtinit if run time linking. Add librtl.a to the link.
1664 (gld*_read_file): Clean.
1666 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1668 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1670 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1672 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1673 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1674 and eelf64alpha_fbsd.
1675 * Makefile.in: Regenerate.
1676 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1677 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1678 use a FreeBSD-specific emulation rather than the psABI one.
1679 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1680 for all FreeBSD ELF systems.
1681 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1683 * emulparams/elf32ppc_fbsd.sh: Likewise.
1684 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1685 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1686 * emulparams/elf64alpha_fbsd.sh: Likewise.
1687 * emulparams/elf_i386_fbsd.sh: Likewise.
1688 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1690 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1692 * po/tr.po: Updated version.
1694 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1696 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1699 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1701 * emultempl/mmo.em (mmo_after_open): Don't call
1702 _bfd_mmix_check_all_relocs when producing ELF output.
1704 2002-02-15 Richard Henderson <rth@redhat.com>
1706 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1707 definition. Emit a unop+nop pair.
1709 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1711 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1712 for presence of .MMIX.reg_contents.linker_allocated before early
1715 * NEWS: Mention support for MMIX.
1717 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1719 Support arbitrary length fill patterns.
1720 * ld.texinfo (Output Section Fill): Describe fill expressions.
1721 (FILL): Refer to the above.
1722 * ldexp.h (etree_value_type): Add "str" field.
1723 (union etree_union): Add "str" to "value" struct.
1724 (exp_bigintop): Declare.
1725 (exp_get_fill): Declare.
1726 * ldexp.c: Include "safe-ctype.h".
1727 (exp_intop): Set value.str to NULL.
1728 (exp_bigintop): New function.
1729 (new_rel): Pass in "str", and set new.str from it.
1730 (new_rel_from_section): Set new.str to NULL.
1731 (fold_name): Adjust calls to new_rel.
1732 (exp_fold_tree): Likewise.
1733 (exp_get_fill): New function.
1734 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1735 (INT): Returns a "bigint". Adjust all code handling INTs.
1736 (fill_opt): Returns a "fill".
1737 (fill_exp): Split out of fill_opt, use for FILL.
1738 * ldlang.h (struct _fill_type): New.
1739 (fill_type): Move typedef to ldexp.h.
1740 (lang_output_section_statement_type): "fill" is now a pointer.
1741 (lang_fill_statement_type): Likewise.
1742 (lang_padding_statement_type): Likewise.
1743 (lang_add_fill): Now takes a "fill_type *" param.
1744 (lang_leave_output_section_statement): Likewise.
1745 (lang_do_assignments): Likewise.
1746 (lang_size_sections): Likewise.
1747 (lang_leave_overlay_section): Likewise.
1748 (lang_leave_overlay): Likewise.
1749 * ldlang.c: Include ldgram.h after ldexp.h.
1750 (lang_output_section_statement_lookup): Adjust for fill_type change.
1751 (print_fill_statement): Likewise.
1752 (print_padding_statement): Likewise.
1753 (insert_pad): Now takes a "fill_type *" arg.
1754 (size_input_section): Likewise.
1755 (lang_size_sections_1): Likewise.
1756 (lang_size_sections): Likewise.
1757 (lang_do_assignments): Likewise.
1758 (lang_add_fill): Likewise.
1759 (lang_leave_output_section_statement): Likewise.
1760 (lang_leave_overlay_section): Likewise.
1761 (lang_leave_overlay): Likewise.
1762 Adjust all callers of the above function.
1763 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1764 starting with "0X" as well as "0x". Return bigint.str for hex
1765 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1766 Always use base 16 for numbers starting with "$".
1767 * ldmain.c: Include ldgram.h after ldexp.h.
1768 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1769 of bfd_fill_link_order.
1770 * pe-dll.c: Adjust lang_do_assignments calls.
1771 * emultempl/elf32.em: Likewise.
1772 * emultempl/hppaelf.em: Likewise.
1773 * emultempl/ppc64elf.em: Likewise.
1774 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1775 lang_add_assignment call.
1776 * emultempl/pe.em: Likewise.
1778 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1780 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1781 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1782 the pattern in question is not a regexp.
1783 * ldlang.c: Likewise.
1784 * ldlang.h: Likewise.
1785 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1787 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1789 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1790 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1791 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1792 * ldexp.c (exp_data_seg): New variable.
1793 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1794 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1795 (exp_fold_tree): Handle DATA_SEGMENT_END.
1796 Pass allocation_done when recursing instead of hardcoding
1797 lang_allocating_phase_enum.
1798 * ldexp.h (exp_data_seg): New.
1799 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1800 (lang_size_sections): New.
1801 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1802 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1803 if COMMONPAGESIZE is defined.
1804 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1805 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1806 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1807 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1808 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1811 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1813 * Makefile.in: Regenerate.
1815 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1817 * lexsup.c: Remove strtoul declaration.
1819 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1821 * ldmain.c: Add prototype for main ().
1822 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1823 * emultempl/lnk960.em (lnk960_choose_target): Function should
1826 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1828 * ldlang.c (entry_section): New initialised variable.
1829 (lang_finish): Use it.
1830 * ldlang.h (entry_section): Declare.
1831 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1832 entry_section to ".opd".
1834 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1836 * ld.texinfo (Options): Add back in -nostdlib documentation,
1837 which had been inadvertently removed.
1839 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1841 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1842 register section vma to a sane value after emitting error. Make
1843 fatal conditions cause program exit when emitting message.
1845 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1847 * configure.tgt: Add or32-*-rtems target.
1849 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1851 Contribute sh64-elf.
1852 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1853 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1854 in OTHER_RELOCATABLE_SECTIONS.
1855 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1856 * emulparams/shelf32.sh (STACK_ADDR): Define.
1857 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1858 (OTHER_SECTIONS): this. Removed stack settings.
1859 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1860 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1861 2001-03-12 DJ Delorie <dj@redhat.com>
1862 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1863 relaxing if any shmedia or mixed sections are found.
1864 2001-03-07 DJ Delorie <dj@redhat.com>
1865 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1866 einfo. Gracefully decline to output to non-elf formats.
1867 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1868 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1869 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1870 * emulparams/shelf32.sh: Ditto.
1871 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1872 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1874 2001-01-10 Ben Elliston <bje@redhat.com>
1875 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1876 non-portable shell constructs. From Hans-Peter Nilsson.
1877 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1878 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1879 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1880 dependencies to the shell script include chain.
1881 * Makefile.in: Regenerate.
1882 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1883 * emultempl/sh64elf.em: Update and tweak comments.
1884 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1885 make a .cranges section SEC_IN_MEMORY.
1886 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1887 * emultempl/sh64elf.em
1888 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1889 .cranges section found to be necessary; continue and set stored
1890 section contents flags for sections with non-mixed contents.
1891 Use a struct sh64_section_data container and sh64_elf_section_data
1892 to store contents-type flags.
1893 Remove unused update of "isec".
1894 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1895 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1896 access contents-type flags. Assert that the associated container
1897 is initialized. Use that container, not elf_gp_size, to hold size
1898 of linker-generated cranges contents.
1899 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1900 * emultempl/sh64elf.em
1901 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1902 there's already a .cranges section. When section flag difference
1903 is found, don't NULL-check cranges a second time. Tweak comments.
1904 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1905 merging, not max size, as size of ld-generated .cranges contents.
1906 Don't set ELF section flags in output section. When checking for
1907 needed .cranges descriptors, don't use a variable; compare
1908 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1910 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1911 * emultempl/sh64elf.em: New file.
1912 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1913 * Makefile.in: Regenerate.
1914 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1915 (OTHER_RELOCATING_SECTIONS): Ditto.
1916 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1917 * emulparams/shlelf32.sh: Stub out all settings except
1918 OUTPUT_FORMAT. Source shelf32.sh.
1919 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1920 OTHER_RELOCATING_SECTIONS.
1921 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1922 * emulparams/shlelf64.sh: Stub out all settings except
1923 OUTPUT_FORMAT. Source shelf64.sh.
1924 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1925 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1927 (DATA_START_SYMBOLS): Define, provide ___data.
1928 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1929 for consecutive .data section.
1930 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1931 section after .data section.
1932 * emulparams/shlelf64.sh: Ditto.
1933 * emulparams/shelf32.sh: Ditto.
1934 (ALIGNMENT): Define to 8.
1935 * emulparams/shelf32.sh: Ditto.
1936 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1937 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1938 built-in linker scripts.
1939 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1940 * emulparams/shlelf64.sh: New.
1941 * emulparams/shelf64.sh: New.
1942 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1944 * Makefile.am: Add support for shlelf64 and shelf64.
1945 * Makefile.in: Regenerate.
1946 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1947 * configure.tgt (sh64-*-elf*): Add shelf as default.
1948 Add shlelf to targ_extra_emuls.
1949 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1950 * emulparams/shelf32.sh: New file.
1951 * emulparams/shlelf32.sh: New file.
1952 * Makefile.am: Add support for shlelf32 and shelf32.
1953 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1954 * Makefile.in: Regenerate.
1956 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1958 * ldlang.c (lang_reset_memory_regions): Rename from
1959 reset_memory_regions. Change all callers. Make public.
1960 * ldlang.h (lang_reset_memory_regions): Prototype.
1961 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1962 lang_reset_memory_regions before lang_size_sections.
1963 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1964 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1966 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1968 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1969 arithmetic when checking for too many global registers.
1971 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1973 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1974 (ehppanbsd.c): New rule.
1975 * Makefile.in: Regenerate.
1976 * configure.tgt (hppa*-*-netbsd*): New target.
1977 * emulparams/hppalinux.sh: Add comment to check other files
1978 that source this file it is modified, and list which
1980 * emulparams/hppanbsd.sh: New file.
1982 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1984 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1987 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1989 Support on-demand global register allocation from
1990 R_MMIX_BASE_PLUS_OFFSET relocs.
1991 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1992 mmix_set_reg_section_vma. Call
1993 _bfd_mmix_finalize_linker_allocated_gregs.
1994 (mmix_before_allocation): New function.
1995 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1996 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1997 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1998 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1999 before .MMIX.reg_contents.
2000 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2001 (mmo_after_open): New function.
2002 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2003 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2004 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2006 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2008 * emulparams/or32.sh: New file.
2009 * emulparams/or32elf.sh: New file.
2010 * scripttempl/or32.sc: New file.
2011 * configure.tgt : Add support for or32.
2012 * configure: Regenerate
2013 * Makefile.am: Add support for or32.
2014 * Makefile.in: Regenerate.
2015 * NEWS: Mention support for or32.
2016 * po/ld.pot: Regenerate.
2018 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2019 Mitch Lichtenberg <mpl@broadcom.com>
2021 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2022 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2023 reloc creation (ld --embedded-relocs).
2025 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2027 * configure: Regenerated.
2029 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2031 * Makefile.am (install): Depend on install-info.
2032 * Makefile.in: Regenerate.
2034 2002-01-26 Christian Rose <menthos@menthos.com>
2036 * ldmain.c (main): Use full sentences to ease translation.
2038 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2040 * po/fr.po: Updated version.
2042 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2044 * po/es.po: Updated version.
2046 2002-01-25 Andreas Jaeger <aj@suse.de>
2048 * ldlex.l (yy_input): Correct error check.
2050 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2052 * ldmisc.c (demangle): Put back dots when string not demangled.
2054 2002-01-22 Richard Henderson <rth@redhat.com>
2056 * emulparams/elf64alpha.sh (NOP): Use unop.
2058 2002-01-21 Andreas Jaeger <aj@suse.de>
2060 * ldlex.l: Use fread instead of read.
2062 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2064 * configure.tgt (ia64-*-netbsd*): New target.
2066 2002-01-21 H.J. Lu <hjl@gnu.org>
2068 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2070 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2072 2002-01-18 Andreas Jaeger <aj@suse.de>
2074 * ldver.c (ldversion): Update year.
2076 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2078 * po/ld.pot: Regenerate.
2080 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2082 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2083 * Makefile.in: Regenerate.
2084 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2085 * emultempl/ppc64elf.em: New file.
2087 2002-01-15 DJ Delorie <dj@redhat.com>
2089 * scripttempl/pe.sc: Add support for constructor priorities.
2091 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2093 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2094 * emulparams/avr23xx.sh: Likewise.
2095 * emulparams/avr4433.sh: Likewise.
2096 * emulparams/avr44x4.sh: Likewise.
2097 * emulparams/avr85xx.sh: Likewise.
2098 * emulparams/avrmega103.sh: Likewise.
2099 * emulparams/avrmega161.sh: Likewise.
2100 * emulparams/avrmega603.sh: Likewise.
2101 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2103 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2105 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2106 archive is excluded.
2108 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2110 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2111 (eshelf_nbsd.c): New rule.
2112 (eshlelf_nbsd.c): New rule.
2113 * Makefile.in: Regenerate.
2114 * configure.tgt (sh*le-*-netbsdelf*): New target.
2115 (sh*-*-netbsdelf*): New target.
2116 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2117 * ld/emulparams/shelf_nbsd.sh: New emulation.
2118 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2120 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2122 * po/es.po: New file: Spanish translation.
2123 * configure.in (ALL_LINGUAS): Add es.
2124 * configure: Regenerate.
2126 2002-01-06 John Marshall <jmarshall@acm.org>
2128 * ld.texinfo: Note that --emit-relocs is currently only
2129 implemented for ELF.
2131 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2133 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2134 of bfd_section_list_remove and bfd_section_list_insert macros.
2135 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2136 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2138 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2140 * configure.tgt (x86_64-*-netbsd*): New target.
2142 2001-12-21 Tom Rix <trix@redhat.com>
2144 (gld*_create_output_section_statements): New function.
2145 For -binitfini support.
2146 * emultempl/aix.em (gld*_before_parse): Fix comment.
2147 * emultempl/aix.em (gld*_parse_args): Fix comment.
2149 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2151 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2153 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2155 * configure.tgt (arm-*-netbsdelf*): Add target.
2156 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2157 * emulparams/armelf_nbsd.sh: Added.
2158 * Makefile.am: Add rules for earmelf_nbsd.
2159 * Makefile.in: Regenerate.
2161 2001-12-19 Andreas Jaeger <aj@suse.de>,
2162 Susanne Oberhauser <froh@suse.de>
2164 * configure.host: Add rules for x86_64-*linux-gnu. Change
2165 s390x-linux entry to use gcc to report configuration, replace gcc
2166 with $CC in s390-linux
2168 2001-12-19 Andreas Jaeger <aj@suse.de>
2170 * ld.texinfo (VERSION): Fix markup.
2172 2001-12-18 matthew green <mrg@eterna.com.au>
2174 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2175 (m68kelfnbsd.c): New rule.
2176 * Makefile.in: Regenerate.
2177 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2178 (m68*-*-netbsd*4k*): .. this.
2179 (m68*-*-netbsdelf*): New target.
2180 (m68*-*-netbsd*): Also include ELF support.
2181 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2182 * emulparams/m68kelfnbsd.sh: New emulation.
2184 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2186 * ldgram.y (vers_node): Support anonymous version tags.
2187 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2188 tag is not defined together with non-anonymous versions.
2189 * ld.texinfo: Document it.
2191 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2193 * po/tr.po: New file: Turkish translation.
2194 * configure.in (ALL_LINGUAS): Add tr.
2195 * configure: Regenerate.
2197 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2199 * Makefile.am: Add rules for eelf64alpha_nbsd.
2200 * Makefile.in: Regenerate.
2201 * configure.tgt (alpha*-*-netbsd*): Set
2202 targ_emul to elf64alpha_nbsd.
2203 * emulparams/elf64alpha_nbsd.sh: Added.
2205 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2207 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2208 section_tail when fiddling with section list.
2209 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2210 broken into separate strings to make translation easier.
2211 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2212 fiddling with section list.
2213 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2215 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2217 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2219 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2221 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2223 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2225 * emultempl/elf32.em (finish): Supply output_bfd
2226 to bfd_elf*_discard_info.
2227 (OPTION_EH_FRAME_HDR): Define.
2228 (longopts): Add --eh-frame-hdr.
2229 (parse_args): Handle it.
2230 (list_options): Add --eh-frame-hdr to help.
2231 * emultempl/hppaelf.em (finish): Supply output_bfd
2232 to bfd_elf*_discard_info.
2233 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2235 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2237 * lexsup.c (parse_args): Don't pass shortopts to second call to
2238 getopt functions. Restore optind rather than decrementing before
2239 second call. Remove errind as it now duplicates last_optind.
2241 2001-12-11 Christopher Faylor <cgf@redhat.com>
2243 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2245 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2246 Richard Henderson <rth@redhat.com>
2248 * Makefile.am: Add support for xstormy16.
2249 * configure.tgt: Add support for xstormy16.
2250 * Makefile.in: Regenerate.
2251 * emulparams/elf32xstormy16.sh: New file.
2252 * scripttempl/xstormy16.sc: New file.
2254 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2256 * Makefile.in (LIB_PATH): Make configurable.
2257 (GENSCRIPTS): Set LIB_PATH in environment.
2258 * configure.in: Substitute LIB_PATH.
2259 * configure: Regenerate.
2260 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2261 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2263 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2265 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2266 describing the -N option so that it is easier to translate into
2269 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2271 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2272 statements describing a single option with a single, newline
2273 escaped fprintf. This allows better translation into other
2276 * ldmain.c (add_archive_element): Combine multiple strings
2277 into a single string to permit better translation into other
2280 2001-12-05 Tom Rix <trix@redhat.com>
2282 * Makefile.am: Remove eaixppc64.
2283 * Makefile.in: Regenerate.
2285 2001-12-04 Tom Rix <trix@redhat.com>
2287 * emultempl/aix.em (choose_target): Change default target to
2288 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2290 (gld*_read_file): Fix typo.
2291 (change_symbol_mode): Add prototype.
2294 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2295 * emulparams/aixrs6.sh : Same.
2296 * emulparams/ppcmacos.sh : Same.
2297 * emulparams/aixppc64.sh : Delete file.
2298 * emultempl/aix.em : Formatting changes.
2300 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2302 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2303 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2305 (OTHER_END_SYMBOLS): Fix formatting.
2306 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2307 (OTHER_END_SYMBOLS): Fix formatting.
2309 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2311 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2313 2001-12-02 Tom Rix <trix@redhat.com>
2315 * configure.tgt : Remove eaixppc64 emulations.
2316 * Makefile.in : Remove eaixppc64.c
2317 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2318 (ldemul_default_target): Same.
2319 * emultempl/gld960.em (gld960_choose_target): Same.
2320 * emultempl/gld960c.em (gld960_choose_target): Same.
2321 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2322 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2323 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2324 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2325 * emultempl/aix.em (choose_target): New function. Handle emulation of
2328 2001-11-27 H.J. Lu <hjl@gnu.org>
2330 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2331 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2332 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2333 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2334 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2335 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2336 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2337 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2339 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2342 (REL_SDATA): Likewise.
2343 (REL_SBSS): Likewise.
2344 (REL_SDATA2): Likewise.
2345 (REL_SBSS2): Likewise.
2346 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2349 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2351 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2353 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2355 2001-11-22 H.J. Lu <hjl@gnu.org>
2357 * Makefile.in: Regenerated with automake based on automake
2358 1.4-8 in RedHat 7.1.
2360 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2362 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2363 (config.status): Delete rule.
2364 Add extra dependencies to cover sourced emulparams files.
2365 * Makefile.in: Regenerate.
2367 * scripttempl/elf.sc: Order <section>, <section>.* and
2368 corresponding linkonce sections as seen in input files.
2369 Formatting fixes. Zero vma of all sections if not relocating.
2370 (STACK): Define and insert if STACK_ADDR defined.
2371 (OTHER_RELOCATING_SECTIONS): Delete.
2372 (OTHER_END_SYMBOLS): Define.
2373 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2374 (OTHER_READWRITE_SECTIONS): Likewise.
2375 (OTHER_GOT_SECTIONS): Likewise.
2376 (OTHER_SDATA_SECTIONS): Likewise.
2377 (OTHER_BSS_SECTIONS): Likewise.
2378 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2379 (OTHER_READWRITE_SECTIONS): Likewise.
2380 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2381 (OTHER_READWRITE_SECTIONS): Likewise
2383 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2384 (STACK_ADDR): Define.
2385 * emulparams/armelf_oabi.sh: As for armelf.sh.
2386 * emulparams/elf32mcore.sh: As for armelf.sh.
2387 * emulparams/h8300elf.sh: As for armelf.sh.
2388 * emulparams/mn10200.sh: As for armelf.sh.
2389 * emulparams/shelf.sh: As for armelf.sh.
2391 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2392 (OTHER_END_SYMBOLS): Define.
2393 * emulparams/m32relf.sh: As for elf32fr30.sh.
2394 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2395 * emulparams/h8300self.sh: As for elf32fr30.sh.
2397 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2398 defines with RELOCATING test.
2399 (OTHER_SDATA_SECTIONS): Likewise.
2400 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2401 (OTHER_END_SYMBOLS): ..this.
2402 * emulparams/crislinux.sh: As for criself.sh.
2404 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2406 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2407 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2408 normal and linkonce sections as seen in input files.
2409 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2410 (TEXT_DYNAMIC): Likewise.
2411 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2412 (OTHER_SDATA_SECTIONS): Likewise.
2413 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2414 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2415 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2416 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2417 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2418 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2419 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2420 sections as seen in input files.
2421 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2422 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2424 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2425 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2426 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2427 (OTHER_SECTIONS): Instead, use this..
2428 (OTHER_END_SYMBOLS): ..and this.
2430 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2431 * emulparams/elf32bsmip.sh: Likewise.
2432 * emulparams/elf32btsmip.sh: Likewise.
2433 * emulparams/elf32ebmip.sh: Likewise.
2434 * emulparams/elf32lmip.sh: Likewise.
2435 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2436 * emulparams/elf32lsmip.sh: Likewise.
2437 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2438 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2439 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2440 * emulparams/elf64btsmip.sh: Likewise.
2441 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2442 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2443 * emulparams/elf32ppclinux.sh: Likewise.
2444 * emulparams/elf32ppcsim.sh: Likewise.
2445 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2446 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2447 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2448 * emulparams/h8300self.sh: Likewise.
2449 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2450 * emulparams/sh.sh: Comment.
2451 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2452 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2453 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2455 2001-11-21 David Heine <dlheine@tensilica.com>
2456 Alan Modra <amodra@bigpond.net.au>
2458 * ldlang.c (map_input_to_output_sections): Replace "break"
2459 accidentally removed with 2001-08-03 change.
2460 (lang_gc_sections_1): Likewise.
2462 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2464 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2466 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2468 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2469 of false when calling lang_size_sections.
2470 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2472 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2474 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2475 function when LDEMUL_FINISH isn't set to the same name. Don't
2476 call ${LDEMUL_FINISH}.
2477 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2478 * emultempl/armelf.em (arm_elf_finish): Call
2479 gld${EMULATION_NAME}_finish.
2480 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2481 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2482 hppaelf_layout_sections_again if necessary.
2483 (need_laying_out): New var.
2484 (hppaelf_layaout_sections_again): Rename to
2485 hppaelf_layout_sections_again. Clear need_laying_out.
2486 (PARSE_AND_LIST_OPTIONS): Format text.
2488 2001-11-14 H.J. Lu <hjl@gnu.org>
2490 * emultempl/armelf.em (arm_elf_finish): Renamed from
2491 gld${EMULATION_NAME}_finish.
2492 (LDEMUL_FINISH): Set to arm_elf_finish.
2494 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2496 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2497 (struct ld_emulation_xfer_struct): Use it.
2499 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2501 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2502 additional symbols referenced by newer crt0.o files from HP.
2504 2001-11-12 Anthony Green <green@redhat.com>
2506 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2508 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2510 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2511 * Makefile.in: Regenerate.
2513 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2515 * ld.texinfo: Use @command for commands, @option for options.
2516 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2518 * Makefile.in: Rebuild.
2520 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2522 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2523 Add support for targets.
2525 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2527 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2528 * configure: Regernate.
2529 * po/fr.po: New file.
2530 * po/sv.po: New file.
2532 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2534 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2535 as little endian default and to support big endian.
2537 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2539 * ld.texinfo (Options): Document new option, -nostdlib.
2540 * lexsup.c (OPTION_NOSTDLIB): New definition.
2541 (ld_options): Add entry for "nostdlib".
2542 (parse_args): Handle OPTIONS_NOSTDLIB.
2543 * ldfile.c (ldfile_add_library_path): Don't add directories
2544 to the search path if they weren't specified on the command line
2545 and -nostdlib was specified.
2546 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2548 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2550 * lexsup.c (parse_args): Prevent infinite parsing loop when
2551 "-rpath.a" is specified on the command line.
2552 Replace calls to fprintf with calls to einfo.
2554 2001-10-31 John Marshall <jmarshall@acm.org>
2556 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2557 appear only once across all the linker scripts involved in a link
2558 invocation no longer applies. Make the documentation reflect
2561 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2563 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2565 (sh-*-linux*): Added targ_extra_libpath.
2567 2001-10-31 David Heine <dlheine@tensilica.com>
2569 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2570 for padding statements.
2572 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2574 * configure.tgt (mmix-*-*): New target.
2575 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2576 Add dependencies to match.
2577 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2578 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2579 scripttempl/mmo.sc: New files.
2580 * gen-doc.texi: @set MMIX.
2581 * ld.texinfo: Ditto.
2582 [MMIX] Add MMIX node.
2583 * Makefile.in: Regenerate.
2585 2001-10-29 Kazu Hirata <kazu@hxi.com>
2587 * ldlang.c: Fix a comment typo.
2589 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2591 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2592 entries, and match *-*-linux*.
2594 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2596 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2597 with ldlex_script, ldlex_popstate.
2598 (ifile_p1): Likewise.
2599 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2601 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2602 to 1. Don't BEGIN(SCRIPT).
2603 (lex_redirect): Similarly.
2604 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2606 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2608 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2609 __EH_FRAME_END__ and accept eh frames into data section.
2610 Add ctor and dtor sections.
2612 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2614 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2615 (auto-export): Fix indentation.
2617 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2619 * pe-dll.c (autofilter_objectlist): Add startup objects
2621 (auto-export): Constify char * p.
2622 Extract file basename and use strcmp rather than ststr
2625 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2627 * ldmain.c (get_emulation): Improve comment about the handling
2630 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2632 * po/POTFILES.in: Regenerate.
2634 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2636 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2637 -z nocopyreloc and -z nocombreloc usage strings.
2639 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2641 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2644 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2646 * scripttempl/armaout.sc: Place .bss section after end of aligned
2647 data section to match behaviour of aout code in constructrion of
2650 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2652 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2653 startup files for mingw32 dlls to list.
2655 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2657 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2659 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2661 * configure.tgt (targ): Add arm9e-*-elf.
2663 2001-10-05 H.J. Lu <hjl@gnu.org>
2665 * genscripts.sh: Fix a typo in the last change.
2667 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2669 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2670 -z nocombreloc in usage.
2672 2001-10-03 Jim Blandy <jimb@redhat.com>
2674 * genscripts.sh: Include a comment at the top of each generated
2675 script, explaining its purpose.
2677 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2679 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2680 * NEWS: Mention -z nocopyreloc.
2681 * ld.texinfo (Options): Describe nocopyreloc.
2683 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2685 * configure: Regenerate.
2687 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2689 * ldver.h (ld_program_version): Remove declaration.
2690 * lexsup.c (parse_args): Move printing of copyright message..
2691 * ldver.c (ldversion): .. to here.
2692 Use BFD_VERSION_STRING in place of BFD_VERSION.
2693 (ld_program_version): Remove.
2694 * Makefile.am (Makefile): Depend on bfd/configure.in.
2696 * Makefile.in: Regenerate.
2698 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2700 * Makefile.am: Update dependencies with "make dep-am".
2701 * Makefile.in: Regenerate.
2703 2001-09-29 John Reiser <jreiser@BitWagon.com>
2705 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2706 * lexsup.c: Add --no-define-common commandline option.
2707 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2708 * ldlex.l: Likewise.
2709 * ld.h: Add command_line.inhibit_common_definition.
2710 * ldmain.c (main): Initialize.
2711 * ld.texinfo: Document.
2713 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2715 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2717 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2719 * ldmisc.c (USE_STDARG): Remove.
2720 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2725 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2726 declarations. Update copyright.
2728 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2730 * pe-dll.c: Remove obsoleted declaration of
2731 pe_get_data_import_dll_name.
2732 (pe_create_import_fixup): Fix thinko.
2734 * ld.texinfo(enable-auto-import): Clarify the explanation.
2736 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2738 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2739 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2740 DLL_SUPPORT controlled code.
2742 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2744 * emultempl/pe.em(pe_data_import_dll): Make static.
2745 (pe_get_data_import_dll_name): New accessor function.
2746 * pe-dll.c(pe_create_import_fixup): call
2747 pe_get_data_import_dll_name() from pe.em, instead of
2748 directly accessing pe_data_import_dll variable from pe.em.
2750 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2752 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2753 (def_file_add_directive): Use ISSPACE instead of isspace.
2754 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2755 isdigit/isxdigit/isalpha/isalnum.
2756 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2757 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2758 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2759 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2761 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2762 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2764 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2765 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2766 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2767 (ctor_prio): Use ISDIGIT instead of isdigit.
2768 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2769 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2770 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2772 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2773 (stricpy): Use TOLOWER instead of isupper/tolower.
2774 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2775 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2776 (lex_warn_invalid): Use ISPRINT instead of isprint.
2777 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2778 (main): For gettext, also set the LC_CTYPE locate facet.
2779 (add_keepsyms_file): Use ISSPACE instead of isspace.
2780 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2781 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2782 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2783 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2784 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2785 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2786 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2787 (quoteput): Use ISSPACE instead of isspace.
2788 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2791 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2793 * deffilep.y (def_stash_module): Constify "name" param.
2795 * pe-dll.c: Replace CONST with const throughout.
2796 (quick_symbol): Constify "n1", "n2", "n3" params.
2797 (make_singleton_name_thunk): Constify "import" param. Make
2798 "buffer_len" a size_t.
2799 (make_import_fixup_entry): Constify "name", "fixup_name",
2800 "dll_symname" params.
2801 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2802 (pe_get32): Likewise.
2803 (pe_implied_import_dll): Likewise.
2805 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2806 (sort_by_section_name): Likewise.
2808 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2809 (make_import_fixup): Cast printf arg, rel->address to long rather
2811 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2813 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2815 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2816 defines BufferSize. Increase buffer size by one.
2818 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2820 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2822 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2824 * configure.tgt: Add arm-openbsd target.
2826 2001-09-12 H.J. Lu <hjl@gnu.org>
2828 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2830 (ALL_64_EMULATIONS): Here.
2831 * Makefile.in: Regenerated.
2833 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2835 * emultempl/pe.em(make_import_fixup): change signature to
2836 take asection as well as arelec; we need this for proper
2837 error reporting. Only call pe_create_import_fixup() if
2838 there is no attempt to add a constant addend to the reloc;
2839 otherwise, report error condition.
2840 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2841 since final argument is a pointer to make_import_fixup().
2842 Change call to cb() to match make_import_fixup() signature.
2843 (make_import_fixup_mark): make buffer_len unsigned.
2844 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2846 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2848 * ld.texinfo: add verbose documentation for auto-import
2849 direct-addressing workaround, to compliment the terse
2852 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2854 * scripttempl/v850.sc: Add gcc_except_table sections.
2856 2001-09-11 Jeffrey A Law (law@cygnus.com)
2858 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2859 * emulparams/h8300self.sh: Similarly.
2861 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2863 * ld.texinfo (Options, --stack): Correct default value for stack
2866 2001-09-05 Tom Rix <trix@redhat.com>
2868 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2870 2001-09-03 Andreas Jaeger <aj@suse.de>
2872 * emultempl/beos.em: Declare prototypes for comparions functions,
2875 2001-09-02 Andreas Jaeger <aj@suse.de>
2877 * emultempl/aix.em: Add missing prototype.
2878 * emultempl/lnk960.em: Likewise.
2879 * emultempl/vanilla.em: Likewise.
2880 * emultempl/armcoff.em: Likewise.
2881 * emultempl/armelf_oabi.em: Likewise.
2882 * emultempl/beos.em: Likewise.
2883 * emultempl/gld960c.em: Likewise.
2884 * emultempl/gld960.em: Likewise.
2886 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2887 for prototype declaration.
2889 2001-08-31 Eric Christopher <echristo@redhat.com>
2890 Jason Eckhardt <jle@redhat.com>
2892 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2894 2001-08-31 Andreas Jaeger <aj@suse.de>
2896 * emultempl/pe.em: Add missing prototypes.
2897 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2898 pe_find_data_imports.
2899 (pr_sym): Add unused attribute.
2901 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2903 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2904 default from coff to elf.
2906 2001-08-29 Jeff Law <law@redhat.com>
2908 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2910 * emulparams/h8300self.sh: Similarly.
2912 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2914 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2916 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2917 * configure.tgt (h8300-*-elf*): New case.
2918 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2919 * emulparams/h8300self.sh: New file.
2920 * Makefile.in: Regenerated.
2922 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2924 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2927 2001-08-27 Linus Nordberg <linus@swox.com>
2928 Alan Modra <amodra@bigpond.net.au>
2930 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2931 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2933 * Makefile.in: Regenerate.
2934 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2935 entries to correct alphabetical position.
2936 * emulparams/elf64ppc.sh: New.
2937 * emulparams/elf64lppc.sh: New.
2939 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2941 * ldmain.c (main): Declare BSIZE as static.
2943 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2945 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2946 into .rel.dyn resp. .rela.dyn if combreloc.
2947 (get_script): If .x linker script is equal to .xn, only put it
2948 once into the binary.
2949 Add .xc and .xsc scripts.
2950 (parse_args): Handle -z combreloc and -z nocombreloc.
2951 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2952 For .xc and .xsc scripts put all .rel* or .rela* input sections
2953 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2954 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2956 Strip trailing whitespace from script.
2957 Generate .xc and .xsc scripts if requested.
2958 * ldmain.c (main): Initialize link_info.combreloc and
2959 link_info.spare_dynamic_tags.
2960 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2961 (ld_options): Add --spare-dynamic-tags option.
2962 (parse_args): Likewise.
2963 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2964 * ldint.texinfo: Document .xc and .xsc linker scripts.
2965 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2967 2001-08-22 H.J. Lu <hjl@gnu.org>
2969 * emulparams/elf32fr30.sh: Add a newline.
2971 2001-08-21 Andreas Jaeger <aj@suse.de>
2973 * deffilep.y: Add missing prototypes.
2974 * pe-dll.c: Likewise.
2976 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2978 * ldlang.c (insert_pad): Fix typos in last patch.
2980 * ldlang.c: When traversing lang_statement_union_type lists,
2981 consistently use "header.next" rather than "next".
2982 * mpw-eppcmac.c: Likewise.
2983 * emultempl/beos.em: Likewise.
2984 * emultempl/hppaelf.em: Likewise.
2985 * emultempl/pe.em: Likewise.
2986 * ldlang.h (union lang_statement_union): Remove "next" field.
2988 * ldlang.c (insert_pad): Use offsetof macro.
2989 (lang_size_sections): Always neuter padding statements.
2990 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2992 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2993 passed to lang_size_sections.
2994 (pe_exe_fill_sections): Likewise.
2995 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2996 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2998 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3000 * emultempl/aix.em: Formatting fixes.
3002 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3004 * ldlang.c (insert_pad): Make use of an existing pad statement if
3005 available. Move code calculating alignment, adjusting section
3006 alignment power, and adjusting dot to ..
3007 (size_input_section): .. here. Remove unused relax param.
3008 (lang_size_sections): Change boolean `relax' param to boolean *.
3009 Adjust call to size_input_section. Make use of insert_pad to
3010 place pad after the assignment statement. If relaxing, zap
3012 (reset_memory_regions): Reset output_bfd section sizes too.
3013 (relax_again): Move to..
3014 (lang_process): ..here. Adjust call to lang_size_sections, and
3015 remove duplicated code.
3016 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3018 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3020 * ld.texinfo: Document that fill values now use the four least
3022 * emulparams/elf32fr30.sh (NOP): Update.
3023 * emulparams/elf32mcore.sh: Likewise.
3024 * emulparams/elf64_s390.sh: Likewise.
3025 * emulparams/elf_i386.sh: Likewise.
3026 * emulparams/elf_i386_be.sh: Likewise.
3027 * emulparams/elf_i386_chaos.sh: Likewise.
3028 * emulparams/elf_i386_ldso.sh: Likewise.
3029 * emulparams/elf_s390.sh: Likewise.
3030 * emulparams/elf_x86_64.sh: Likewise.
3031 * emulparams/i386moss.sh: Likewise.
3032 * emulparams/i386nw.sh: Likewise.
3033 * emulparams/m68kelf.sh: Likewise.
3034 * scripttempl/elf.sc: Update NOP comment.
3035 * scripttempl/elfi370.sc: Likewise.
3036 * scripttempl/elfm68hc11.sc: Likewise.
3037 * scripttempl/elfm68hc12.sc: Likewise.
3038 * scripttempl/nw.sc: Likewise.
3040 2001-08-15 Tom Rix <trix@redhat.com>
3042 * ldgram.y (saved_script_handle): Initialize to NULL.
3043 * ldmain.c (main): Change check on saved_script_handle.
3045 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3047 * emultempl/elf32.em: Formatting fixes.
3048 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3049 looking at sec->owner.
3050 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3051 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3052 unused code, and reorganize orphan section placement code.
3054 * ldlang.c (wild_doit): Rename to lang_add_section.
3055 * ldlang.h: Here too.
3056 * mpw-elfmips.c: And here.
3057 * emultempl/beos.em: And here.
3058 * emultempl/elf32.em: And here.
3059 * emultempl/hppaelf.em: And here.
3060 * emultempl/pe.em: And here.
3062 2001-08-13 Richard Henderson <rth@redhat.com>
3064 * emultempl/needrelax.em: New file.
3065 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3066 * Makefile.am (eelf64_ia64.c): Depend on it.
3067 * Makefile.in: Rebuild.
3069 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3071 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3072 output_section is set non-NULL.
3074 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3075 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3076 needlessly create an output_section_statement. Treat a correctly
3077 named output_section_statement with NULL bfd_section as compatible.
3079 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3081 * emultempl/generic.em: Support EXTRA_EM_FILE.
3082 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3083 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3084 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3085 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3086 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3087 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3088 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3089 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3090 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3091 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3093 2001-08-12 Richard Henderson <rth@redhat.com>
3095 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3096 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3097 scripttempl/v850.sc: Keep .jcr data.
3099 2001-08-12 H.J. Lu <hjl@gnu.org>
3100 Andrew Haley <aph@cambridge.redhat.com>
3101 Nick Clifton <nickc@redhat.com>
3103 * ldgram.y (had_script): Change name to saved_script_handle.
3104 Change type to file handle.
3105 * ld.h (had_script): Rename and retype.
3106 * ldfile.c (ldfile_open_command_file): Save the file handle
3107 used in saved_script_handle.
3108 * lexsup.c (parse_args): Do not allow -c option to alter
3109 saved_script_handle.
3110 * ldmain.c (main): Print out the linker script used if
3111 --verbose is given. Check saved_script_handle to obtain the
3112 external linker script used, or if NULL, dump the builtin
3114 * ld.texinfo: Document that --verbose now dumps the linker
3115 script used, regardless of whether it was an internal or an
3118 2001-08-10 Andreas Jaeger <aj@suse.de>
3120 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3122 * configure: Regenerate.
3124 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3126 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3128 * scripttempl/elf.sc: Move non-text .dynamic section before
3129 .plt/.got/.sdata* group.
3130 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3131 (OTHER_SDATA_SECTIONS): Add.
3132 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3134 * emulparams/crislinux.sh: Likewise.
3135 * emulparams/elf32b4300.sh: Likewise.
3136 * emulparams/elf32bmip.sh: Likewise.
3137 * emulparams/elf32bmipn32.sh: Likewise.
3138 * emulparams/elf32bsmip.sh: Likewise.
3139 * emulparams/elf32btsmip.sh: Likewise.
3140 * emulparams/elf32ebmip.sh: Likewise.
3141 * emulparams/elf32elmip.sh: Likewise.
3142 * emulparams/elf32l4300.sh: Likewise.
3143 * emulparams/elf32lmip.sh: Likewise.
3144 * emulparams/elf32lsmip.sh: Likewise.
3145 * emulparams/elf32ltsmip.sh: Likewise.
3146 * emulparams/elf64bmip.sh: Likewise.
3147 * emulparams/elf64btsmip.sh: Likewise.
3148 * emulparams/elf64ltsmip.sh: Likewise.
3150 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3152 * genscripts.sh: Source the emulparams script before each output
3153 script is generated so that variables like `RELOCATING' may affect
3154 variables defined in the emulparams script.
3156 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3158 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3161 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3162 ie. iterate over wild_statement.section_list.
3163 (gld${EMULATION_NAME}_place_orphan): Likewise.
3165 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3167 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3168 .fini[0-4] sections used by _exit
3169 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3170 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3171 * scripttempl/elfm68hc11.sc: Likewise.
3173 2001-08-03 H.J. Lu <hjl@gnu.org>
3175 * emultempl/beos.em (init): Add the missing initialization.
3177 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3179 * ld.texinfo (Input Section Basics): Clarify ordering of output
3181 * ldlang.c (callback_t): Add wildcard_list param.
3182 (walk_wild_section): Remove "section" param. Rewrite for
3183 lang_wild_statement_type change. Remove unique_section_p test.
3184 (walk_wild_file): Remove "section" param.
3185 (walk_wild): Remove "section" and "file" params.
3186 (lang_gc_wild): Likewise.
3187 (wild): Likewise. Modify for lang_wild_statement_type change.
3188 (wild_sort): Likewise. Add "sec" param.
3189 (gc_section_callback): Likewise.
3190 (output_section_callback): Likewise. Do unique_section_p test.
3191 (map_input_to_output_sections): Modify call to wild.
3192 (lang_gc_sections_1): Likewise.
3193 (print_wild_statement): Modify for lang_wild_statement_type
3195 (lang_add_wild): Replace filename, filenames_sorted param with
3196 filespec. Replace section_name, sections_sorted,
3197 exclude_filename_list with section_list.
3198 * ldlang.h (lang_add_wild): Here too.
3199 (lang_wild_statement_type): Replace section_name, sections_sorted,
3200 and exclude_filename_list with section_list.
3201 * ldgram.y (current_file): Delete.
3202 (%union): Add wildcard_list.
3203 (file_NAME_list): Set type to wildcard_list. Build a linked list
3204 rather than calling lang_add_wild for each entry.
3205 (input_section_spec_no_keep): Call lang_add_wild here instead.
3206 * ld.h (struct wildcard_list): Declare.
3207 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3209 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3211 * ldmain.c (main): initialize link_info.pei386_auto_import
3212 * pe-dll.c: new tables for auto-export filtering
3213 (auto_export): change API, pass abfd for contextual filtering.
3214 Loop thru tables of excluded symbols instead of comparing
3217 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3219 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3220 static variable current_sec (static struct sec *). Add
3221 forward declaration for add_bfd_to_link.
3222 (process_def_file): Don't export undefined symbols. Do not
3223 export symbols starting with "_imp__". Call auto_export()
3225 (pe_walk_relocs_of_symbol): New function.
3226 (generate_reloc): add optional extra debugging
3227 (pe_dll_generate_def_file): eliminate extraneous initial blank
3229 (make_one): enlarge symtab to make room for __nm__ symbols
3230 (DATA auto-import support).
3231 (make_singleton_name_thunk): New function.
3232 (make_import_fixup_mark): New function.
3233 (make_import_fixup_entry): New function.
3234 (pe_create_import_fixup): New function.
3235 (add_bfd_to_link): Specify that 'name' argument is a CONST
3237 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3238 declare new functions pe_walk_relocs_of_symbol and
3239 pe_create_import_fixup.
3240 * emultempl/pe.em: add new options --enable-auto-import,
3241 --disable-auto-import, and --enable-extra-pe-debug.
3242 (make_import_fixup): New function.
3243 (pe_find_data_imports): New function.
3244 (pr_sym): New function.
3245 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3246 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3249 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3251 * ld.texinfo: add additional documentation for
3252 --export-all-symbols. Document --out-implib,
3253 --enable-auto-image-base, --disable-auto-image-base,
3254 --dll-search-prefix, --enable-auto-import, and
3255 --disable-auto-import.
3256 * ldint.texinfo: Add detailed documentation on auto-import
3259 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3261 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3264 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3266 * Makefile.am: Update dependencies with "make dep-am".
3267 * Makefile.in: Regenerate
3269 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3271 * ldcref.c (check_section_sym_xref): New function.
3272 (check_nocrossrefs): Call it.
3273 (check_nocrossref): Interate over h->refs here instead of..
3274 (check_refs): ..here. Pass in the symbol name, section, and bfd
3275 rather than hash_entry pointers.
3276 (struct check_refs_info): Keep symbol name rather than hash entry.
3278 (check_reloc_refs): Tweak for above changes in check_refs_info.
3279 Only report references to section syms when symname is NULL to
3280 prevent duplicate messages for the same reloc.
3282 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3284 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3285 available. Do not print NULL trees.
3286 (exp_print_token): Print unknown tokens with values > 126 as
3287 decimal values not ASCII characters.
3289 * ldlang.c (lang_leave_overlay): If a region is specified assign
3290 it to all sections inside the overlay unless they have been
3291 assigned to the own, non-default, memory region.
3293 * README: Add header for consistency with other README files.
3295 2001-07-14 H.J. Lu <hjl@gnu.org>
3297 * emultempl/elf32.em (output_prev_sec_find): Never return
3298 bfd_abs_section_ptr, bfd_com_section_ptr nor
3299 bfd_und_section_ptr.
3301 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3303 * Makefile.am (em32relf.c): Change dependency from generic.em to
3305 * Makefile.in: Regenerate.
3307 2001-07-14 matthew green <mrg@eterna.com.au>
3309 * configure.tgt (i386-*-netbsdelf*): New target.
3310 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3312 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3314 * emultempl/elf32.em (output_prev_sec_find): New.
3315 (place_orphan): Use it.
3317 2001-07-11 H.J. Lu <hjl@gnu.org>
3319 * ldmain.c (main): Fix typos in the last change.
3321 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3323 * ldmain.c (main): Disallow -F and -f without -shared.
3325 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3327 * emultempl/pe.em (after_open): Check for the output_bfd not
3328 having any coff_data structure allocated to it.
3330 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3332 * emultempl/elf32.em: Do not assuming that contents of the buffer
3333 returned from basename function will remain unchanged accross other
3336 2001-07-03 H.J. Lu <hjl@gnu.org>
3338 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3339 2001-07-03. It creates dynamic entries even for static binaries.
3341 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3343 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3344 (DYNAMIC): Use it to reserve few dynamic entries for
3347 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3349 * emulparams/hppa64linux.sh: New file.
3350 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3351 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3352 (ehppa64linux.c): Add rule to make it.
3354 * Makefile.in: Regenerate.
3356 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3358 * ld.texinfo (Options, -r): Mention restrictions when using
3359 different object formats.
3361 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3363 * ldlang.c (lang_check): Emit fatal error if relocatable link
3364 between different object flavours with relocations in input.
3366 2001-06-19 H.J. Lu <hjl@gnu.org>
3368 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3369 (--version-script): Mention the language support.
3371 2001-06-19 H.J. Lu <hjl@gnu.org>
3373 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3375 2001-06-18 H.J. Lu <hjl@gnu.org>
3377 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3378 (diststuff): Add $(MANS).
3379 * Makefile.in: Regenerated.
3383 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3385 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3386 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3387 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3388 * ld.h (args_type): Remove member export_dynamic. All users
3389 changed to use struct bfd_link_info member.
3391 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3392 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3393 * Makefile.in: Regenerate.
3395 2001-06-18 H.J. Lu <hjl@gnu.org>
3397 * ldlang.c (init_os): Add the newline to the einfo call.
3398 (lang_check): Likewise.
3399 (lang_do_version_exports_section): Likewise.
3401 2001-06-15 H.J. Lu <hjl@gnu.org>
3403 * lexsup.c (parse_args); Save optind to report unrecognized
3406 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3408 * ldlang.c (lang_check): Emit fatal error if relocatable link
3409 between different object flavours.
3411 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3412 Set new link_info member export_dynamic.
3413 * ldmain.c (main): Initialize new link_info member export_dynamic.
3415 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3417 * ldlang.c (walk_wild): Only call walk_wild_file if
3418 lookup_name returns something.
3419 (lookup_name): If load_symbols fails, return NULL.
3420 (load_symbols): Change to a boolean function.
3421 (open_input_bfds): If load_symbols fails then do not make the
3424 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3426 * ldlang.c (record_bfd_errors): Remove.
3428 * emultempl/aix.em: Fix copyright dates.
3430 2001-06-07 Andreas Jaeger <aj@suse.de>
3432 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3433 (TEXT_START_ADDR): Likewise.
3435 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3437 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3439 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3441 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3443 2001-05-31 H.J. Lu <hjl@gnu.org>
3445 * ldlang.c (open_input_bfds): Don't change the bfd error
3446 handler whilst loading symbols.
3448 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3450 * configure.tgt: Remove i370-mvs architecture, it is not currently
3453 2001-05-25 H.J. Lu <hjl@gnu.org>
3455 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3456 like emulparams/aixppc.sh.
3458 2001-05-25 H.J. Lu <hjl@gnu.org>
3460 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3461 setting of output_filename after bfd_scan_arch.
3462 * emultempl/pe.em: Likewise.
3464 2001-05-25 H.J. Lu <hjl@gnu.org>
3466 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3467 like emulparams/aixppc.sh.
3469 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3470 instead of ${srcdir}/emultempl/stringify.sed.
3472 2001-05-25 Timothy Wall <twall@oculustech.com>
3474 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3477 2001-05-25 Alan Modra <amodra@one.net.au>
3479 * configure.host: Replace linuxoldld with linux*oldld.
3480 * configure.tgt: Likewise.
3482 2001-05-24 H.J. Lu <hjl@gnu.org>
3484 * emultempl/stringify.sed: Removed again.
3486 2001-05-24 H.J. Lu <hjl@gnu.org>
3488 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3489 (gld${EMULATION_NAME}_before_parse): Initialize
3490 ldfile_output_architecture, ldfile_output_machine and
3491 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3492 * emultempl/beos.em: Likewise.
3493 * emultempl/elf32.em: Likewise.
3494 * emultempl/linux.em: Likewise.
3495 * emultempl/mipsecoff.em: Likewise.
3496 * emultempl/pe.em: Likewise.
3497 * emultempl/sunos.em: Likewise.
3499 2001-05-24 Tom Rix <trix@redhat.com>
3501 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3502 udate import file format.
3503 (change_symbol_mode) New, same
3504 (is_syscall) New, same
3505 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3506 * emulparams/aixppc64.sh : same
3507 * emulparams/aixrs6.sh : same
3508 * emulparams/ppcmacos.sh : same
3509 * emultempl/aix.em : use strtoull to parse options
3510 * Makefile.am : add eaixppc64 emulation for xcoff64
3511 * Makefile.in : same
3512 * configure.tgt : same
3514 * scripttempl/aix.sc : default text section offset to 0x10000000
3515 default data section offset to 0x20000000
3516 add .sv3264 and .sv64 pseudo sections
3517 loader and debug sections use the currect section offset.
3519 * emultempl/aix.em : Add xcoff64 support
3520 Add -binitfini support
3521 (gld${EMULATION_NAME}_before_parse) -binitfini
3522 (gld${EMULATION_NAME}_parse_args) same
3523 (gld${EMULATION_NAME}_before_allocation) format change for special
3526 * emulparams/aixppc64.sh : New file for xcoff64 support
3528 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3530 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3531 variable to avoid non-portable shell construct.
3533 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3535 * ldmain.c (get_emulation): Add -mips5 command line argument.
3537 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3539 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3540 (ELF_INTERPRETER_NAME): Define it.
3541 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3543 * configure.tgt (targ_emul, targ_extra_emuls)
3544 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3545 as primary, elf_i386 as extra.
3546 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3547 (eelf_i386_ldso.c): New rule.
3548 * Makefile.in: Rebuilt.
3550 2001-05-22 Nick Clifton <nickc@redhat.com>
3552 * lexsup.c (ld_options): Allow -I to be an alias for
3553 --dynamic-linker. This is for Solaris compatability.
3554 * ld.texinfo: Document that -I can be used.
3557 2001-05-16 Alan Modra <amodra@one.net.au>
3559 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3560 whether an input section is the first one assigned to an output
3562 Assorted formatting fixes.
3564 2001-05-14 DJ Delorie <dj@delorie.com>
3566 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3567 * Makefile.in: Ditto.
3569 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3571 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3572 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3574 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3576 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3578 * ldlang.c (lang_process): Call bfd_merge_sections.
3580 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3582 * ldgram.y: Fix typo.
3584 2001-05-03 H.J. Lu <hjl@gnu.org>
3586 * emultempl/elf32.em: Include "libiberty.h".
3587 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3588 basename of the bfd filename.
3589 (gld${EMULATION_NAME}_stat_needed): Likewise.
3590 (gld${EMULATION_NAME}_try_needed): Likewise.
3591 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3593 2001-05-02 H.J. Lu <hjl@gnu.org>
3595 * emultempl/pe.em: Include <ctype.h>.
3597 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3599 * emulparams/elf32openrisc.sh: New file.
3601 * Makefile.am: Add OpenRISC target.
3602 * Makefile.in: Regenerated.
3604 * configure.tgt: Add openrisc-*-* mapping.
3606 2001-05-02 Nick Clifton <nickc@redhat.com>
3608 * emultempl/aix.em: Replace buystring with xstrdup.
3609 * emultempl/beos.em: Replace buystring with xstrdup.
3611 2001-05-02 H.J. Lu <hjl@gnu.org>
3613 * ldfile.c: Include "libiberty.h".
3614 * ldlex.l: Likewise.
3616 * ldmisc.c (buystring): Removed.
3617 * ldmisc.h: Likewise.
3619 * ldfile.c: Replace buystring with xstrdup.
3620 * ldlang.c: Likewise.
3621 * ldlex.l: Likewise.
3622 * ldmain.c: Likewise.
3623 * ldmisc.c: Likewise.
3624 * lexsup.c: Likewise.
3625 * mpw-eppcmac.c: Likewise.
3627 2001-04-30 Andreas Jaeger <aj@suse.de>
3629 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3631 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3633 * ldlang.c (load_symbols): Give emulation a chance
3634 to process unrecognized file before fatal error is
3635 reported, not after.
3637 2001-04-27 Sean McNeil <sean@mcneil.com>
3639 * configure.tgt: Add arm-vxworks target.
3640 * scripttempl/armcoff.sc: Support .text or .data as a section name
3644 2001-04-13 J.T. Conklin <jtc@redback.com>
3646 * ld.texinfo: Document --fatal-warnings.
3649 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3650 warnings have been turned into errors.
3651 * lexsup.c (OPTION_WARN_FATAL): Define.
3652 (ld_options): Entry for --fatal-warnings.
3653 (parse_args): Handle OPTION_WARN_FATAL.
3654 * ld.h (ld_config_type): Add fatal_warnings field.
3656 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3658 * ldmain.c (main): Default to discard_sec_merge.
3659 * lexsup.c (OPTION_DISCARD_NONE): Define.
3660 (ld_options): Add --discard-none.
3661 (parse_args): Handle OPTION_DISCARD_NONE.
3662 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3663 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3664 all its input sections match.
3666 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3668 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3669 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3670 (eelf32ltsmip.c): New target.
3671 (eelf64btsmip.c): Likewise.
3672 (eelf64ltsmip.c): Likewise.
3673 * Makefile.in: Regenerated.
3675 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3677 (mips*-*-linux-gnu*): Likewise.
3679 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3681 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3683 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3686 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3688 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3689 correct value of __Stext here.
3690 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3693 * emulparams/crislinux.sh: Remove FIXME.
3695 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3697 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3698 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3700 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3702 * configure.tgt (cris-*-*): Change default emulation to criself.
3703 (cris-*-*aout*): New rule.
3705 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3707 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3708 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3710 2001-03-26 Andreas Jaeger <aj@suse.de>
3712 * ld.texinfo (Overview): Fix syntax in texi code.
3714 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3716 * ld.texinfo: Put @c man indications to generate the ld man page.
3717 When generating man, define all the variables. Define SEEALSO
3718 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3719 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3720 (ld.1): Generate from ld.texinfo.
3721 * Makefile.in: Regenerate.
3723 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3725 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3726 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3728 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3730 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3731 is an absolute path look only for this file and not along the path.
3733 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3735 * emultempl/elf32.em (OPTION_GROUP): New macro.
3736 Add new option Bgroup to longopts.
3737 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3738 (gld*_list_options): Add -Bgroup and -z defs.
3739 * ld.1: Document -Bgroup and -z defs.
3740 * ld.texinfo: Likewise.
3742 2001-03-07 Michael Meissner <meissner@redhat.com>
3744 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3745 with sections created by -fdata-sections.
3746 (.dynbss,.bss): Ditto.
3748 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3750 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3751 after_allocation_default, not gld..._before_allocation.
3753 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3755 * configure.in (BFD_VERSION): New.
3756 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3757 * configure: Regenerate.
3758 * Makefile.am: Run "make dep-am"
3759 * Makefile.in: Regenerate.
3761 2001-02-26 Timothy Wall <twall@cygnus.com>
3763 * emulparams/elf64_aix.sh: Add additional read-only sections;
3764 uncomment lines which are now required.
3766 2001-02-26 H.J. Lu <hjl@gnu.org>
3768 * ldlang.c (open_input_bfds): Set the bfd error handler so
3769 that problems can be caught whilst loading symbols.
3770 (record_bfd_errors): New function: Report BFD errors and mark
3771 the executable output as being invalid.
3773 2001-02-22 Timothy Wall <twall@cygnus.com>
3775 * configure.host: Add configuration for ia64-*-aix*.
3776 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3777 Add dependencies for eelf64_aix.c.
3778 * Makefile.in: Regenerate.
3779 * configure.tgt: Add ia64-*-aix* mapping.
3780 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3782 2001-02-20 H.J. Lu <hjl@gnu.org>
3784 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3785 false if we found the file.
3787 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3789 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3790 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3792 2001-02-18 lars brinkhoff <lars@nocrew.org>
3794 * Makefile.am: Add PDP-11 target.
3795 * configure.tgt: Likewise.
3796 * emulparams/pdp11.sh: New file.
3798 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3800 * configure.host: Add a generic FreeBSD configuration entry such that
3801 all [modern] FreeBSD systems on all platforms will look the same.
3803 2001-02-14 H.J. Lu <hjl@gnu.org>
3805 * configure.tgt: Remove mention of earmelf_linux26.
3807 2001-02-13 Richard Henderson <rth@redhat.com>
3809 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3811 2001-02-13 H.J. Lu <hjl@gnu.org>
3813 * ldexp.h (node_type): Add etree_provided.
3814 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3815 type to etree_provided if defined by PROVIDE. Allow updating
3817 (exp_print_tree): Handle etree_provided.
3818 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3821 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3823 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3824 .IA_64.unwind.* pattern to unwind table section and
3825 .IA_64.unwind_info* pattern to unwind info section.
3827 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3829 * Makefile.am: Add linux target for S/390.
3830 * Makefile.in: Likewise.
3831 * configure.host: Likewise.
3832 * configure.tgt: Likewise.
3833 * emulparams/elf64_s390.sh: New file.
3834 * emulparams/elf_s390.sh: New file.
3836 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3838 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3840 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3842 2001-02-06 Philip Blundell <philb@gnu.org>
3844 * Makefile.am: Remove mention of earmelf_linux26.
3845 * Makefile.in: Regenerate.
3847 2001-02-04 Philip Blundell <philb@gnu.org>
3849 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3850 * emulparams/armelf_linux26.sh: Delete.
3851 * configure.tgt: Remove mention of armelf_linux26 emulation.
3853 2001-02-01 Nick Clifton <nickc@redhat.com>
3855 * ld.1: Replace occurances of -oformat with --oformat.
3857 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3859 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3860 load_base is specified.
3862 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3864 * emultempl/elf32.em: Correct spelling in comments and listed
3867 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3869 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3870 default for the first section of a group of overlay sections.
3872 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3874 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3875 * Makefile.in: Regenerate.
3876 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3877 Check for null tool_dir.
3879 2001-01-16 Jim Wilson <wilson@redhat.com>
3881 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3882 and IA_64.unwind.info.
3884 2001-01-16 H.J. Lu <hjl@gnu.org>
3886 * ldlang.c (lang_check): Merge the private data only if the
3887 input file has contents.
3889 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3891 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3893 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3894 enabling search for libmilli. On a relocatable link, make .text
3896 (LDEMUL_AFTER_PARSE): Define.
3897 (hppaelf_finish): Correct spelling of relocatable in comments.
3899 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3900 rummage through the script for sections on the unique list.
3901 Correct length of strncmp for ".note".
3902 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3904 * ldlang.c (unique_section_list): New var.
3905 (unique_section_p): New function.
3906 (walk_wild_section): Don't match sections on unique_section_list.
3907 (lang_add_unique): New function.
3908 Correct spelling of relocatable in comments.
3910 * ldlang.h (struct unique_sections): Declare.
3911 (unique_section_list): Declare.
3912 (unique_section_p): Declare.
3913 (lang_add_unique): Declare.
3915 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3916 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3918 * ld.texinfo (--unique): Update.
3920 2001-01-13 Nick Clifton <nickc@redhat.com>
3922 * lexsup.c (parse_args): Remove spurious white space.
3924 2001-01-12 Nick Clifton <nickc@redhat.com>
3926 * lexsup.c (parse_args): Update copyright date.
3928 2001-01-12 Philip Blundell <pb@futuretv.com>
3930 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3932 2001-01-10 Kazu Hirata <kazu@hxi.com>
3934 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3935 * scripttempl/h8300h.sc: Fix formatting.
3936 * scripttempl/h8300s.sc: Likewise.
3937 * scripttempl/h8500.sc: Likewise.
3938 * scripttempl/h8500b.sc: Likewise.
3939 * scripttempl/h8500c.sc: Likewise.
3940 * scripttempl/h8500m.sc: Likewise.
3941 * scripttempl/h8500s.sc: Likewise.
3943 2000-01-07 David O'Brien <obrien@BSDi.com>
3945 * emultempl/elf32.em: Only perform Linux ld hints processing when
3948 2001-01-07 Philip Blundell <philb@gnu.org>
3950 * ld.texinfo (Bug Reporting): Update email address for reports.
3952 2000-12-31 Nick Clifton <nickc@redhat.com>
3954 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3955 options by checking for a return value of '?' not -1.
3957 2000-12-28 Nick Clifton <nickc@redhat.com>
3959 * lexsup.c (struct ld_option): Add new enum value:
3961 (ld_options[]): Change -omagic, -output and -oformat options
3962 to be EXACTLY_TWO_DASHES.
3963 (OUTPUT_COUNT): Use ARRAY_SIZE.
3964 (parse_args): Change parameter 'argc' to unsigned.
3965 Place EXACTLY_TWO_DASHES options into new really_longopts
3967 If getopt_long_only fails, try calling getopt_long using the
3968 really_longopts array.
3969 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3972 * ldlex.h: Fix prototype of parse_args.
3974 * ld.texinfo: Document that long options starting with 'o'
3975 must be preceeded by two dashes. Change example of a single
3976 dashed long option from -oformat to -trace-symbol.
3978 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3980 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3981 (longopts[]): New --no-default-excludes option.
3982 (gld_${EMULATION_NAME}_list_options): Document.
3983 (gld_${EMULATION_NAME}_parse_args): Handle.
3985 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3987 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3988 whitespace, it breaks the K&R C preprocessor.
3990 2000-12-11 DJ Delorie <dj@redhat.com>
3992 * ld.texinfo: Add notes about --whole-archive and gcc.
3994 2000-11-18 Fred Fish <fnf@be.com>
3996 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3997 (ld_options): Entry for --allow-shlib-undefined.
3998 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3999 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4001 * ld.texinfo: Document new command line switch.
4003 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4005 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4006 .fixup is actually read/write.
4007 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4008 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4009 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4011 2000-12-11 Jan Hubicka <jh@suse.cz>
4013 * NEWS: Add note about x86_64 architecture.
4015 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4017 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4018 Set DWARF2 sections to a VMA of zero.
4020 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4022 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4024 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4025 (sparc*-*-rtems*): Switched from a.out to ELF.
4027 2000-11-30 Jan Hubicka <jh@suse.cz>
4029 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4030 (eelf_x86_64.c): New.
4031 * Makefile.in: Regenerate.
4032 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4033 * emulparams/elf_x86_64.sh: New.
4035 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4037 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4038 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4040 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4041 merging non-a.out sections into CONSTRUCTING.
4043 2000-11-28 Nick Clifton <nickc@redhat.com>
4045 * ld.1 (COPYING): Mention that the GNU Free Documentation
4046 License is present in the sources, but not the output, and
4047 also available from the GNU website.
4048 (GNU Free Documentation License): Comment out this section.
4050 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4052 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4055 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4057 * ld.1: Remove old date so it does not give the impression the manpage
4060 2000-11-24 Nick Clifton <nickc@redhat.com>
4062 * configure.tgt (xscale-coff): Add target.
4063 (xscale-elf): Add target.
4065 2000-11-24 Fred Fish <fnf@be.com>
4067 * ldmain.c (main): Remove redundant init of config.make_executable
4070 2000-11-15 Richard Henderson <rth@redhat.com>
4072 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4074 2000-11-14 Kazu Hirata <kazu@hxi.com>
4076 * scripttempl/h8300.sc: Fix formatting.
4077 * scripttempl/h8300h.sc: Likewise.
4078 * scripttempl/h8300s.sc: Likewise.
4080 2000-11-14 Denis Chertykov <denisc@overta.ru>
4082 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4084 2000-11-09 Philip Blundell <pb@futuretv.com>
4086 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4087 around orphan sections whose names can be represented in C.
4089 2000-11-07 Jim Wilson <wilson@redhat.com>
4091 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4092 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4094 2000-11-06 Nick Clifton <nickc@redhat.com>
4096 * ld.texinfo: Add GNU Free Documentation License.
4097 * ldint.texinfo: Add GNU Free Documentation License.
4098 * ld.1: Add GNU Free Documentation License.
4100 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4102 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4103 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4105 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4106 Move 2000-11-02 Makefile.in changes to this file.
4107 * Makefile.in: Regenerate.
4109 2000-11-03 Nick Clifton <nickc@redhat.com>
4111 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4112 constructors and destructors.
4113 * scripttempl/h8300h.sc: Ditto.
4114 * scripttempl/h8300s.sc: Ditto.
4115 * scripttempl/h8500.sc: Ditto.
4116 * scripttempl/h8500b.sc: Ditto.
4117 * scripttempl/h8500c.sc: Ditto.
4118 * scripttempl/h8500m.sc: Ditto.
4119 * scripttempl/h8500s.sc: Ditto.
4120 * scripttempl/v850.sc: Ditto.
4121 * scripttempl/w65.sc: Ditto.
4122 * scripttempl/z8000.sc: Ditto.
4124 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4126 * Makefile.in (e_i386_chaos.c): New rule.
4127 (ALL_EMULATIONS): Added e_i386_chaos.o.
4128 * emulparams/elf_i386_chaos.sh: New file.
4129 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4131 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4133 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4134 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4135 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4136 library path suffix.
4137 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4139 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4141 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4142 for consecutive sections.
4144 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4146 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4148 * ld.texinfo: Added notes about this new option.
4150 2000-10-16 Nick Clifton <nickc@redhat.com>
4152 * emultempl/pe.em (_after_open): Add tests of return values from
4153 bfd functions. Emit appropriate error messages if necessary.
4155 2000-10-13 Nick Clifton <nickc@redhat.com>
4157 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4158 local variables - they are not used, but leave in the call to
4159 bfd_canonicalize_symtab.
4160 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4161 pe_dll_search_prefix.
4163 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4165 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4166 (longopts): New --dll-search-prefix option.
4167 (gld_${EMULATION_NAME}_list_options): Document.
4168 (gld_${EMULATION_NAME}_parse_args): Handle.
4169 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4170 dynamically, search for a dll named '<prefix><basename>.dll'
4171 in preference to 'lib<basename>.dll' if --dll-search-prefix
4174 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4176 * ldlang.c (section_already_linked): Set kept_section instead of
4179 2000-10-10 Kazu Hirata <kazu@hxi.com>
4181 * deffile.h: Fix formatting.
4182 * lexsup.c: Likewise.
4185 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4187 * pe-dll.c (make_one): Do not generate code thunk for DATA
4189 (process_def_file): deduce DATA flag for auto-export sumbols.
4191 2000-10-09 Kazu Hirata <kazu@hxi.com>
4193 * ld.h: Fix formatting.
4194 * ldcref.c: Likewise.
4195 * ldctor.h: Likewise.
4196 * ldemul.c: Likewise.
4197 * ldemul.h: Likewise.
4198 * ldexp.c: Likewise.
4199 * ldexp.h: Likewise.
4200 * ldfile.c: Likewise.
4201 * ldfile.h: Likewise.
4202 * ldlang.c: Likewise.
4203 * ldlang.h: Likewise.
4204 * ldmain.c: Likewise.
4205 * pe-dll.c: Likewise.
4207 * pe-dll.c: Revert some formatting fixes.
4209 2000-10-08 Kazu Hirata <kazu@hxi.com>
4211 * pe-dll.c: Fix formatting.
4213 2000-10-05 Kazu Hirata <kazu@hxi.com>
4215 * ldlang.c: Fix formatting.
4217 2000-10-03 DJ Delorie <dj@redhat.com>
4219 * pe-dll.c (fill_edata): initialize entire block
4220 (make_one): fill in correct section.
4222 2000-10-03 Kazu Hirata <kazu@hxi.com>
4224 * ldexp.c: Fix formatting.
4226 2000-10-02 DJ Delorie <dj@redhat.com>
4228 * emultempl/pe.em (gld_*_after_open): detect case where there two
4229 import libraries for same dll; rename one to ensure proper link
4232 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4234 (generate_edata): fix typo
4236 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4238 * scripttempl/crisaout.sc (ENTRY): Now __start.
4239 (.text): Add default setting for __start.
4240 Remove CONSTRUCTORS handling.
4241 (/DISCARD/): Add .gnu.warning.*.
4242 * emulparams/crislinux.sh (ENTRY): Now __start.
4243 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4244 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4245 (ENTRY): Now __start.
4246 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4247 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4249 2000-09-29 Kazu Hirata <kazu@hxi.com>
4251 * deffile.h: Fix formatting.
4253 * ldcref.c: Likewise.
4254 * ldctor.c: Likewise.
4255 * ldctor.h: Likewise.
4256 * ldemul.c: Likewise.
4257 * ldemul.h: Likewise.
4258 * ldexp.c: Likewise.
4259 * ldexp.h: Likewise.
4260 * ldfile.c: Likewise.
4261 * ldfile.h: Likewise.
4262 * ldlang.c: Likewise.
4263 * ldlang.h: Likewise.
4264 * lexsup.c: Likewise.
4266 * pe-dll.c: Likewise.
4268 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4270 * pe-dll.c (process_def_file): Uninitialized data wasn't
4271 exported with --export-all-symbols switch.
4273 2000-09-28 DJ Delorie <dj@redhat.com>
4275 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4276 noname work properly.
4278 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4280 * ld.texinfo (HPPA ELF32): New section.
4282 * emultempl/hppaelf.em (group_size): New.
4283 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4284 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4285 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4286 options to prevent abbreviations matching.
4287 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4288 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4290 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4292 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4293 on the m68*-*-elf target. Make it support COFF input objects.
4295 2000-09-21 Kazu Hirata <kazu@hxi.com>
4297 * ldmain.c: Fix formatting.
4298 * ldmisc.c: Likewise.
4299 * ldver.c: Likewise.
4300 * ldwrite.c: Likewise.
4302 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4304 * ldwrite.c (clone_section): Silence gcc warnings.
4306 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4308 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4309 out of memory failure.
4311 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4312 (clone_section): Handle out of memory failures. Rename var to
4313 avoid c++ reserved word.
4315 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4317 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4318 stub_name param to stub_sec_name.
4319 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4321 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4323 * emultempl/m68kelf.em: New file.
4324 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4325 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4326 * Makefile.in: Regenerate.
4328 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4330 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4333 2000-09-13 Nick Clifton <nickc@redhat.com>
4335 * ldmain.c (multiple_definition): Disable relaxation if
4336 multiple symbol definitions are encountered - otherwise the
4337 linker could abort with an assertion failure.
4339 2000-09-10 Nick Clifton <nickc@redhat.com>
4341 * mri.c: Fix formatting.
4343 2000-09-07 H.J. Lu <hjl@gnu.org>
4345 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4346 * configure: Rebuild.
4348 2000-09-07 H.J. Lu <hjl@gnu.org>
4350 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4351 * Makefile.in: Rebuild.
4353 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4355 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4356 broken list handling. Create __start_SECNAME and __stop_SECNAME
4357 when no place-holder. Add some comments. Test both SEC_CODE and
4358 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4359 Handle case where no output section statement created.
4361 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4363 * configure.tgt (sh-*-linux*): Added.
4364 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4365 * Makefile.in: Rebuilt.
4366 * emulparams/shelf_linux.sh: New file.
4367 * emulparams/shlelf_linux.sh: New file.
4369 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4371 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4372 try shuffling sections when the orphan happens to be the place
4373 holder. Keep count of unique section names generated so we speed
4374 the search for a new name.
4376 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4378 * configure: Rebuilt with new libtool.m4.
4380 2000-09-05 Nick Clifton <nickc@redhat.com>
4382 * Makefile.in: Regenerate.
4383 * aclocal.m4: Regenerate.
4384 * configure: Regenerate.
4385 * config.in: Regenerate.
4386 * po/ld.pot: Regenerate.
4388 * ldint.texinfo: Remove CVS revision marker - it foils local
4391 * emultempl/ticoff.em: Remove extraneous comma.
4393 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4395 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4396 to stub section flags.
4397 (hppa_for_each_input_file_wrapper): New.
4398 (hppa_lang_for_each_input_file): New.
4399 (lang_for_each_input_file): Define to call above.
4400 (multi_subspace): New.
4401 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4402 (PARSE_AND_LIST_PROLOGUE): Define.
4403 (PARSE_AND_LIST_LONGOPTS): Define.
4404 (PARSE_AND_LIST_OPTIONS): Define.
4405 (PARSE_AND_LIST_ARGS_CASES): Define.
4406 (hppaelf_finish): Call elf32_hppa_set_gp.
4407 (hppaelf_set_output_arch): Remove.
4408 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4410 * emulparams/hppalinux.sh (ELFSIZE): Define.
4412 (OTHER_READONLY_SECTIONS): Define.
4414 (GENERATE_SHLIB_SCRIPT): Define.
4416 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4417 to const throughout. Change `void *' to `PTR' throughout.
4418 (lang_memory_default): Function is local to file, add `static'.
4420 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4421 (ehppalinux.c): Likewise.
4422 (earmelf.c): Likewise.
4423 (earmelf_linux.c): Likewise.
4424 (earmelf_linux26.c): Likewise.
4425 * Makefile.in: Regenerate.
4427 * ld.h (ld_config_type): Add unique_orphan_sections.
4428 * lexsup.c (OPTION_UNIQUE): Define.
4429 (ld_options): Add "--unique".
4430 (parse_args): Handle it.
4431 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4432 search for an existing output section if unique_orphan_sections is
4433 set. Make use of bfd_get_unique_section_name rather than
4434 duplicating code here.
4435 * ld.texinfo: Describe --unique.
4437 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4438 optional arg to split-by-file.
4439 (parse_args): Handle them.
4440 * ld.texinfo: Update description of these options.
4441 * ldwrite.c (clone_section): Pass in the section name. Replace
4442 local code with bfd_get_unique_section_name.
4443 (split_sections): Tidy code and comments. Use a list traversal
4444 more appropriate to the list construction. Handle cooked section
4445 sizes. Split when split_by_reloc reached rather than exceeded.
4446 Track section size and split when split_by_file reached. Fix
4447 link_order_tail (even though it's not used).
4448 (ldwrite): Modify condition for calling split_sections to suit
4449 changed split_by_reloc and split_by_file.
4450 * ldmain.c (main): Init config.split_by_reloc and
4451 config.split_by_file to -1.
4452 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4453 Change split_by_file to bfd_size_type.
4455 2000-09-02 Nick Clifton <nickc@redhat.com>
4457 * configure.in: Increase version number to 2.10.91.
4458 * NEWS: Mention new ability to support removal of duplicate DWARF2
4460 * configure: Regenerate.
4461 * aclocal.m4: Regenerate.
4462 * config.in: Regenerate.
4464 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4466 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4468 * scripttempl/elf32avr.sc: Ditto.
4469 * scripttempl/elfd10v.sc: Ditto.
4470 * scripttempl/elfd30v.sc: Ditto.
4471 * scripttempl/elfi370.sc: Ditto.
4472 * scripttempl/elfm68hc11.sc: Ditto.
4473 * scripttempl/elfm68hc12.sc: Ditto.
4474 * scripttempl/elfi386beos.sc: Ditto.
4475 * scripttempl/v850.sc: Ditto.
4477 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4479 * acinclude.m4: Include libtool and gettext macros from the
4481 * aclocal.m4, configure: Rebuilt.
4483 2000-08-25 Nick Clifton <nickc@redhat.com>
4485 * ldlang.c (open_output): When choosing the target for a
4486 particular endianness, do nothing if the target is not
4489 2000-08-25 H.J. Lu <hjl@gnu.org>
4491 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4492 check -rpath nor LD_RUN_PATH for cross link.
4493 * ld.texinfo: Document the change.
4495 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4497 * NEWS: Mention support for CRIS.
4499 2000-08-23 H.J. Lu <hjl@gnu.org>
4501 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4502 the current runpath list from bfd_elf_get_runpath_list ()
4505 2000-08-22 H.J. Lu <hjl@gnu.org>
4507 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4508 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4509 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4510 trace_file_tries is non-zero.
4511 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4512 if trace_file_tries is non-zero.
4514 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4517 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4519 * NEWS: Mention i860 support.
4521 2000-08-14 Andreas Schwab <schwab@suse.de>
4523 * scripttempl/elf.sc: Fix last change to use correct comment
4526 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4528 * scripttempl/elf.sc: Add a comment giving the correspondence
4529 between sections, per-datum sections, and linkonce sections. Make
4530 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4533 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4535 * emulparams/elf32_i860.sh: New file.
4536 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4537 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4538 (eelf32_i860.c): New rule.
4539 * Makefile.in: Regenerate.
4541 2000-08-10 Nick Clifton <nickc@cygnus.com>
4543 * emulparams/mipspe.sh (ENTRY): Add definition.
4545 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4547 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4550 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4552 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4553 the final size of .bss section.
4554 * scripttempl/elfm68hc12.sc: Likewise.
4556 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4558 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4559 gld${EMULATION_NAME}_parse_args for consistency. Combine
4560 lastoptind and prevoptind vars, and keep track of last optind.
4561 (gld_${EMULATION_NAME}_list_options): Rename to
4562 gld${EMULATION_NAME}_list_options.
4564 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4566 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4567 (i586-sco-sysv5uw7.1.0).
4569 2000-07-27 H.J. Lu <hjl@gnu.org>
4571 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4572 (PARSE_AND_LIST_PROLOGUE): New.
4573 (PARSE_AND_LIST_LONGOPTS): Likewise.
4574 (PARSE_AND_LIST_OPTIONS): Likewise.
4575 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4576 (PARSE_AND_LIST_EPILOGUE): Likewise.
4578 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4580 * emultempl/armelf.em: Elide functions common to elf32.em,
4581 ie. most of the file.
4582 (arm_elf_after_open): New. Do arm specific things then call
4583 gld${EMULATION_NAME}_after_open.
4584 (arm_elf_before_allocation): New. Call
4585 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4586 (PARSE_AND_LIST_PROLOGUE): Define.
4587 (PARSE_AND_LIST_SHORTOPTS): Define.
4588 (PARSE_AND_LIST_LONGOPTS): Define.
4589 (PARSE_AND_LIST_OPTIONS): Define.
4590 (PARSE_AND_LIST_ARGS_CASES): Define.
4591 (LDEMUL_AFTER_OPEN): Define.
4592 (LDEMUL_BEFORE_ALLOCATION): Define.
4593 (LDEMUL_BEFORE_PARSE): Define.
4594 (LDEMUL_FINISH): Define.
4596 * emultempl/hppaelf.em: Similarly zap most of this file.
4597 (hppaelf_add_stub_section): Prototype.
4598 (hppaelf_layaout_sections_again): Prototype.
4599 (hook_in_stub): Prototype.
4600 (LDEMUL_SET_OUTPUT_ARCH): Define.
4601 (LDEMUL_FINISH): Define.
4602 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4604 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4605 (EXTRA_EM_FILE): New.
4606 * emulparams/armelf_linux.sh: Likewise.
4607 * emulparams/armelf_linux26.sh: Likewise.
4608 * emulparams/hppalinux.sh: Likewise.
4609 * emulparams/hppaelf.sh: Likewise.
4612 * emultempl/elf32.em: Fix formatting.
4613 (EXTRA_EM_FILE): Source it.
4614 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4615 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4616 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4617 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4618 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4619 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4620 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4621 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4622 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4623 allow functions in this file to be overridden.
4624 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4626 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4628 * emultempl/elf32.em: Reorganize file.
4630 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4632 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4633 specific option to fit 64-bit executable in the lower
4634 31-bit address range. This is done by changing start
4635 address of .interp (the very first section of executable)
4636 and then setting EF_ALPHA_32BIT elf header flag.
4638 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4640 * emultempl/m68kcoff.em: New file.
4641 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4642 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4644 * Makefile.in: Regenerate.
4646 2000-07-20 H.J. Lu <hjl@gnu.org>
4648 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4649 and "disable-new-dtags" to stop getopt from treating -d/-e as
4650 abbreviations for these options.
4652 2000-07-20 H.J. Lu <hjl@gnu.org>
4654 * ld.texinfo: Add documentation for --disable-new-dtags and
4657 * ldmain.c (main): Initialize link_info.new_dtags to false.
4659 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4660 --disable-new-dtags and --enable-new-dtags.
4661 (gld_${EMULATION_NAME}_list_options): Likewise.
4663 2000-07-05 Kenneth Block <krblock@computer.org>
4665 * lexsup.c: Add optional style to demangle switch
4666 * ld.texinfo: Document optional style to demangle switch.
4668 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4670 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4672 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4673 Regenerate dependencies.
4674 * Makefile.in: Rebuild.
4675 * configure.tgt (cris-*-*): New target.
4676 * emulparams/crisaout.sh, emulparams/criself.sh,
4677 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4678 * po/POTFILES.in, po/ld.pot: Regenerate.
4680 2000-07-20 H.J. Lu <hjl@gnu.org>
4682 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4683 Print out ignored -z options.
4685 2000-07-19 H.J. Lu <hjl@gnu.org>
4687 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4688 (PARSE_AND_LIST_PROLOGUE): New.
4689 (PARSE_AND_LIST_LONGOPTS): Likewise.
4690 (PARSE_AND_LIST_OPTIONS): Likewise.
4691 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4693 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4695 * lexsup.c (ld_options): Comment out 'z'.
4696 (parse_args): Likewise.
4698 * emultempl/elf32.em: Include "elf/common.h".
4699 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4701 (gld_${EMULATION_NAME}_list_options): Likewise.
4703 * ld.texinfo: Add documentation for the recognized -z options.
4705 2000-07-19 H.J. Lu <hjl@gnu.org>
4707 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4708 bfd_elf_set_dt_needed_soname ().
4710 2000-07-18 DJ Delorie <dj@cygnus.com>
4712 * pe-dll.c (pe_dll_id_target): check object target name also
4714 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4716 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4717 ${INIT_END} if relocating.
4718 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4720 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4722 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4723 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4724 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4725 errors introduced by the old dynamic lib search order.
4727 2000-07-17 DJ Delorie <dj@cygnus.com>
4729 * pe-dll.c (process_def_file): auto-export data items also
4730 (pe_process_import_defs): also see if _imp_ form needed
4732 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4734 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4735 for dll import libraries
4737 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4739 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4740 gcc 2.95.2 and later.
4742 2000-07-11 Kazu Hirata <kazu@hxi.com>
4744 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4747 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4749 * ldemul.h (struct lang_input_statement_struct): Remove forward
4751 (struct search_dirs): Likewise.
4752 * ldfile.h (struct lang_input_statement_struct): Likewise.
4753 Protect file from multiple inclusion.
4754 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4755 declaration from macro to file scope.
4757 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4758 * ldgram.y: Likewise here.
4759 * ldlang.c: And here.
4760 * ldmain.c: And here.
4761 * mpw-elfmips.c: And here.
4762 * mpw-eppcmac.c: And here.
4763 * emultempl/aix.em: And here.
4764 * emultempl/armcoff.em: And here.
4765 * emultempl/armelf.em: And here.
4766 * emultempl/armelf_oabi.em: And here.
4767 * emultempl/beos.em: And here.
4768 * emultempl/elf32.em: And here.
4769 * emultempl/hppaelf.em: And here.
4770 * emultempl/linux.em: And here.
4771 * emultempl/lnk960.em: And here.
4772 * emultempl/pe.em: And here.
4773 * emultempl/sunos.em: And here.
4774 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4775 * mpw-idtmips.c: Ditto.
4776 * emultempl/generic.em: Ditto.
4777 * emultempl/gld960.em: Ditto.
4778 * emultempl/gld960c.em: Ditto.
4779 * emultempl/mipsecoff.em: Ditto.
4780 * emultempl/ticoff.em: Ditto.
4781 * emultempl/vanilla.em: Ditto.
4783 * pe-dll.c: Include ldfile.h
4784 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4786 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4787 arguments to bfd_elf32_size_dynamic_sections call.
4788 (gldelf32ebmip_place_orphan): Add missing arguments to
4789 lang_leave_output_section_statement call.
4791 2000-07-10 H.J. Lu <hjl@gnu.org>
4793 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4795 (strhash): Likewise.
4796 (compute_dll_image_base): Likewise.
4797 (pe_undef_found_sym): Likewise.
4798 (pe_undef_cdecl_match): Likewise.
4799 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4800 argument "arch" with ATTRIBUTE_UNUSED.
4802 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4804 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4806 From Ryan Bradetich <rbradetich@uswest.net>
4807 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4809 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4811 Changes to create multiple linker stubs, positioned immediately
4812 before the section where they are required.
4813 * emultempl/hppaelf.em: Include elf32-hppa.h.
4814 (stub_sec, file_chain): Delete.
4815 (hppaelf_create_output_section_statements): Don't make a stub
4817 (hook_stub_info): New struct.
4818 (hook_in_stub): New function.
4819 (hppaelf_add_stub_section): New function.
4820 (hppaelf_finish): Do nothing for relocateable links. Modify the
4821 call to elf32_hppa_size_stubs. Move code for updating section
4823 (hppaelf_layaout_sections_again): ..to here, a new function.
4825 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4826 broken list handling. Pass in a pointer to the list.
4827 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4829 (hppaelf_before_parse): Prototype.
4830 (hppaelf_set_output_arch): Prototype.
4831 (hppaelf_create_output_section_statements): Prototype.
4832 (hppaelf_delete_padding_statements): Prototype.
4833 (hppaelf_finish): Prototype.
4836 * emultempl/hppaelf.em: Include ctype.h.
4837 (struct orphan_save): New.
4838 (gld${EMULATION_NAME}_place_orphan): New.
4839 (output_rel_find): New.
4840 (hppaelf_get_script): Update from elf32.em.
4841 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4842 Change emulation_name field to "${EMULATION_NAME}". Add
4843 gld${EMULATION_NAME}_place_orphan.
4845 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4846 ehppalinux.o, sort it. Regenerate dependencies.
4847 (ehppalinux.c): Depend on hppaelf.em
4848 * Makefile.in: Regenerate.
4850 * configure.tgt: targ_emul=hppalinux for hppa*linux
4852 * emulparams/hppalinux.sh: New.
4853 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4855 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4857 * lexsup.c (parse_args): Copy section name.
4859 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4861 * emultempl/pe.em: institute the following search order for
4862 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4863 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4864 static lib (libfoo.a) if none of the above are found.
4866 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4868 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4869 (longopts): New --{enable,disable}-auto-image-base options.
4870 (gld_${EMULATION_NAME}_list_options): Document.
4871 (gld_${EMULATION_NAME}_parse): Handle.
4872 (strhash): New static function.
4873 (compute_dll_image_base): New static function.
4874 (gld_${EMULATION_NAME}_set_symbols): Use.
4876 2000-07-05 DJ Delorie <dj@redhat.com>
4880 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4882 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4883 * emulparams/elf32btsmip.sh: New file.
4884 * Makefile.am: Add traditional mips target.
4885 * Makefile.in: Rebuild.
4887 2000-07-01 H.J. Lu <hjl@gnu.org>
4889 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4890 automake to use YLWRAP.
4891 * Makefile.in: Rebuild.
4893 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4895 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4896 (CLEANFILES): Add DEPA.
4897 * Makefile.in: Regenerate.
4899 2000-06-30 Timothy Wall <twall@ppc>
4901 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4902 the page in the upper octet of the address.
4904 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4906 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4908 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4910 * NEWS: arm-elf does --gc-sections too.
4912 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4914 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4916 * Makefile.in: Regenerate.
4918 2000-06-21 H.J. Lu <hjl@gnu.org>
4920 * Makefile.am: Rebuild dependency.
4921 * Makefile.in: Rebuild.
4923 2000-06-20 H.J. Lu <hjl@gnu.org>
4925 * Makefile.am: Rebuild dependency.
4926 * Makefile.in: Rebuild.
4928 2000-06-20 Timothy Wall <twall@cygnus.com>
4930 * scripttempl/tic54xcoff.sc: New.
4931 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4932 * gen-doc.texi: Add flag for TI COFF.
4933 * ld.texinfo: Add documentation for TI COFF handling switches.
4934 * emultempl/ticoff.em: New. TI COFF handling.
4935 * configure.tgt: Add tic54x target.
4936 * Makefile.am: Add tic54x target.
4937 * Makefile.in: Ditto.
4939 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4941 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4942 checking for backslashes.
4944 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4946 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4948 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4950 * NEWS: Update list of targets supporting --gc-sections.
4952 * scripttempl/elf.sc: KEEP .eh_frame contents.
4953 * scripttempl/elfd30v.sc: Same here.
4955 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4957 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4959 * Makefile.in: Rebuild.
4960 * configure.tgt: Recognize m68hc12 and m68hc11.
4961 * scripttempl/elfm68hc12.sc: New file.
4962 * emulparams/m68hc12elfb: New emulation.
4963 * emulparams/m68hc12elf: New emulation.
4964 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4965 (includes a memory.x script to define the ROM and RAM banks).
4966 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4967 New configuration files for support of Motorola 68hc11
4969 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4971 * ldmain.c (main): Only change SEC_READONLY for final link.
4973 2000-06-13 H.J. Lu <hjl@gnu.org>
4975 * configure: Regenerate.
4977 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4979 * configure.in (VERSION): Update to show this is the CVS mainline.
4981 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4983 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4984 input objects to be ECOFF.
4985 (check_sections): einfo takes %B, not %P, to print a BFD name.
4987 2000-06-05 Michael Matz <matz@ifh.de>
4989 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4992 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4994 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4996 * emulparams/avr1200.sh (STACK): Define as 0.
4997 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4998 * emulparams/avr4433.sh (STACK): Likewise.
4999 * emulparams/avr44x4.sh (STACK): Likewise.
5000 * emulparams/avr85xx.sh (STACK): Likewise.
5001 * emulparams/avrmega103.sh (STACK): Likewise.
5002 * emulparams/avrmega161.sh (STACK): Likewise.
5003 * emulparams/avrmega603.sh (STACK): Likewise.
5004 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5005 (__stack): Define from ${STACK} for main().
5007 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5009 * Makefile.am: Update dependencies with "make dep-am"
5010 * Makefile.in: Regenerate.
5012 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5014 * ldmain.c: Include filenames.h.
5015 (set_scripts_dir): Support backslashes in program name.
5017 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5019 * ldmain.c (main): When deciding if ".text" section should be
5020 read-only, don't forget to reset SEC_READONLY because it
5021 could be already set.
5023 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5025 * ld.1: Add documentation for new command line option:
5026 --section-start <sectionname>=<sectionorg>
5027 This is a generic version of -Ttext etc. which accepts
5028 any section name as a parameter instead of just text/data/
5030 * ld.texinfo: More docs.
5032 * lexsup.c: (parse_args): Recognize new command line option.
5033 (ld_options): Add new option.
5035 2000-05-18 H.J. Lu <hjl@gnu.org>
5037 * lexsup.c (parse_args): `i' == `r', not `q'.
5039 2000-05-18 Jeffrey A Law (law@cygnus.com)
5041 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5043 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5044 Rick Gorton <gorton@scrugs.lkg.dec.com>
5046 Add support for '-q' == '--emit-relocs' switch.
5047 * ldmain.c (main): Default to false.
5048 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5049 * NEWS: Describe the emitrelocations switch.
5050 * ld.texinfo: Describe the emitrelocations switch.
5052 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5054 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5055 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5056 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5059 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5061 * lexsup.c (parse_args): Update the year in the copyright notice.
5063 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5065 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5066 Replace defines with those from intl/libgettext.h to quieten gcc
5069 2000-05-10 H.J. Lu <hjl@gnu.org>
5071 * ldlang.c (open_input_bfds): Don't load the same file within
5072 a group again if the whole archive has been loaded already.
5074 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5076 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5077 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5080 2000-05-01 Jim Wilson <wilson@cygnus.com>
5082 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5084 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5085 host "ia64-*-linux-gnu*".
5087 2000-04-29 Andreas Jaeger <aj@suse.de>
5089 * ld.h: Correctly check GCC version.
5091 2000-04-25 Jeffrey A Law (law@cygnus.com)
5093 * Makefile.am: Add PA64 support. Add missing dependencies for
5095 * Makefile.in: Rebuilt.
5096 * configure.tgt: Add PA64 support (currently disabled).
5098 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5100 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5101 (output_rel_find): New function.
5102 (hold_section, hold_use): Delete.
5103 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5104 hold_interp): Make local to place_orphan.
5105 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5106 rather than place_section to find possible previous use of orphan.
5107 Similarly find the place-holder output sections. Use returned
5108 value from lang_enter_output_section_statement rather than calling
5109 lang_output_section_statement_lookup.
5110 * emultempl/armelf.em: Same here.
5111 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5113 * ldlang.c (lang_enter_output_section_statement): Return output
5115 * ldlang.h (lang_enter_output_section_statement): Change
5118 * ldlang.h (lang_output_section_statement): Export it.
5119 * ldlang.c (lang_output_section_statement): Ditto.
5121 2000-04-24 Nick Clifton <nickc@cygnus.com>
5123 * ld.texinfo (Output Section Data): Add note that section data
5124 commands cannot appear outside of section directives.
5126 2000-04-2 Matthew Green <mrg@cygnus.com>
5128 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5130 2000-04-21 Richard Henderson <rth@cygnus.com>
5131 David Mosberger <davidm@hpl.hp.com>
5133 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5134 (eelf64_ia64.c): New rule.
5135 * Makefile.in: Rebuild.
5136 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5137 * emulparams/elf64_ia64.sh: New file.
5139 2000-04-21 Richard Henderson <rth@cygnus.com>
5141 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5143 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5145 * dep-in.sed: Match space at start of file name, not at end.
5147 2000-04-18 H.J. Lu <hjl@gnu.org>
5149 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5150 lang_leave_output_section_statement () after calling
5151 lang_enter_output_section_statement ().
5152 * emultempl/armelf.em: Likewise.
5154 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5156 * emultempl/elf32.em (struct orphan_save): Add section field.
5157 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5158 better order, and place first orphan section as we did before the
5159 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5160 Don't call make_bfd_section here, let wild_doit do the job for us.
5161 Don't build a statement list when we'll only throw it away.
5162 * emultempl/armelf.em: Ditto.
5163 * emultempl/pe.em: Similarly.
5165 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5167 * scripttempl/elfppc.sc: Remove.
5168 * emulparams/elf32ppc.sh: Use elf.sc.
5169 * emulparams/elf32lppc.sh: Use elf.sc.
5170 * emulparams/elf32ppclinux.sh: Use elf.sc.
5171 * emulparams/elf32ppcsim.sh: New file.
5172 * emulparams/elf32lppcsim.sh: New file.
5173 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5174 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5175 * Makefile.in: Regenerate.
5176 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5178 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5180 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5181 ~SEC_ALLOC sections too. Init start address of debug sections.
5182 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5183 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5184 Also set all relocateable section start addresses.
5186 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5188 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5189 Add new BSS_PLT variable for when .plt need not be contained in
5190 the file. Move _etext so that it is also after .fini, and provide
5191 both etext and _etext with a leading underscore. Mark the start
5194 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5196 * emultempl/elf32.em (struct orphan_save): New.
5197 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5198 hold_interp): Make them struct orphan_save.
5199 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5200 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5201 the end of the relevant section list. Also add associated section
5202 statements to the end of any previous orphan statements.
5203 * emultempl/armelf.em: Similarly.
5204 * emultempl/pe.em: Similarly.
5206 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5208 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5210 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5212 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5213 --enable-build-warnings option.
5214 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5215 * Makefile.in, configure: Re-generate.
5217 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5219 * po/ld.pot: Regenerate.
5221 * lexsup.c (help): Restore translated part of bug string.
5223 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5224 (DEP): Quote when passing vars to sub-make. Add warning message
5226 (DEP1): Rewrite for "gcc -MM".
5227 (CLEANFILES): Add DEP2.
5228 Update dependencies.
5229 * Makefile.in: Regenerate.
5231 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5233 * ld.h: #include "bin-bugs.h"
5234 * lexsup.c (help): Use REPORT_BUGS_TO.
5236 2000-03-27 Denis Chertykov <denisc@overta.ru>
5238 * configure.tgt (avr-*-*): New target support.
5239 * Makefile.am: Likewise.
5240 * scripttempl/elf32avr.sc: New script file.
5241 * emulparams/avr1200.sh: New file.
5242 * emulparams/avr23xx.sh: New file.
5243 * emulparams/avr4433.sh New file.
5244 * emulparams/avr44x4.sh New file.
5245 * emulparams/avr85xx.sh New file.
5246 * emulparams/avrmega103.sh New file.
5247 * emulparams/avrmega161.sh New file.
5248 * emulparams/avrmega603.sh New file.
5249 * Makefile.in: Regenerate.
5251 2000-03-09 Andreas Jaeger <aj@suse.de>
5253 * Makefile.am (check-DEJAGNU): Also unset LANG.
5254 * Makefile.in: Rebuild.
5256 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5258 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5261 2000-03-02 H.J. Lu <hjl@gnu.org>
5263 * emulparams/elf32mcore.sh: Include "getopt.h".
5265 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5267 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5269 2000-03-01 H.J. Lu <hjl@gnu.org>
5271 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5272 * emulparams/shpe.sh: Likewise.
5274 2000-03-01 Nick Clifton <nickc@cygnus.com>
5276 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5277 to unused parameters.
5279 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5280 functions only used by DLL code.
5281 (_place_orphan): Initialise 'dollar'.
5283 2000-03-01 H.J. Lu <hjl@gnu.org>
5285 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5286 indicate if the undefined symbol is a fatal error or not.
5287 Don't delete the output file if "fatal" is false.
5289 2000-02-29 H.J. Lu <hjl@gnu.org>
5291 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5292 Set LC_COLLATE and LC_ALL to null and export them. It is for
5293 sort which expects the C locale.
5294 Add $(LIBS) to all $(HOSTING_LIBS).
5295 * Makefile.in: Rebuild.
5297 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5299 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5300 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5301 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5302 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5303 find_potential_libraries.
5305 2000-02-28 Jim Blandy <jimb@redhat.com>
5307 * ldgram.y (exclude_name_list): Don't require a comma to separate
5308 list entries; the lexer considers commas to be valid part of a
5309 filename, so in something like `foo, bar' the comma is considered
5310 part of the first filename, `foo,'.
5311 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5313 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5315 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5316 host "i[3456]86-*-freebsdelf*".
5318 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5320 * scripttempl/i386go32.sc: Move misplaced semicolons.
5322 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5324 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5325 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5326 (eelf64hppa.c, ehppaelf.c): Remove targets.
5327 * Makefile.in: Rebuild.
5329 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5331 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5332 GNU/Linux/sparc, but keep the default as 32.
5334 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5335 it default if sparcv9 or sparc64.
5337 2000-02-24 Nick Clifton <nickc@cygnus.com>
5339 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5340 * Makefile.in: Regenerate.
5341 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5343 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5344 find_potential_libraries.
5345 * ldemul.c (ldemul_find_potential_libraries): New function.
5347 * ldfile.c (ldfile_open_file_search): Allow function to be
5349 (ldfile_open_file): Call ldemul_find_potential_libraries.
5350 * ldfile.h: Add prototype for ldfile_open_file_search.
5352 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5354 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5355 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5357 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5358 (gld_X_find_potential_libraries): New function. Search for
5359 libraries called "*.lib".
5361 * scripttempl/pe.sc: Add .pdata section.
5363 2000-02-23 Richard Henderson <rth@cygnus.com>
5365 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5366 Add and use memory regions.
5368 2000-02-23 Linas Vepstas (linas@linas.org)
5370 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5372 * Makefile.am: Add support for Linux/IBM 370.
5373 * configure.tgt: Likewise.
5375 * Makefile.in: Regenerate.
5377 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5379 * ldlang.c (print_input_section, print_data_statement,
5380 print_reloc_statement, print_padding_statement, insert_pad,
5381 size_input_section, lang_check_section_addresses,
5382 lang_size_sections, lang_do_assignments, lang_set_startof,
5383 lang_one_common): Change `opb' to unsigned.
5384 (lang_do_assignments): Also change `size' to unsigned.
5386 2000-02-16 Richard Henderson <rth@cygnus.com>
5388 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5390 2000-02-16 Timothy Wall <twall@cygnus.com>
5392 * mri.c (mri_draw_tree): Add default LMA region argument to call
5393 to lang_leave_output_section_statement.
5394 * ldlang.h: Update prototypes with LMA region arguments.
5395 * ldlang.c (lang_size_sections): Encapsulate region bounds
5396 checking in os_check_region call.
5397 (os_check_region): New function.
5398 (lang_output_section_statement_lookup): Initialize lma_region.
5399 (lang_leave_output_section_statement): Add LMA region argument.
5400 (lang_leave_overlay): Ditto.
5401 * ldgram.y: Handle LMA region syntax.
5402 * ld.texinfo (Output Section Description): Describe LMA region usage.
5403 * emultempl/armelf.em (gld$place_orphan): Add default value for
5404 lma region in call to lang_leave_output_section_statement.
5405 * emultempl/elf32.em (gld$place_orphan): Add default value for
5406 lma region in call to lang_leave_output_section_statement.
5407 * emultempl/pe.em (gld$place_orphan): Add default value for
5408 lma region in call to lang_leave_output_section_statement.
5411 2000-02-04 Timothy Wall <twall@redhat.com>
5413 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5414 octets when calculating section end addresses.
5416 2000-02-04 Timothy Wall <twall@redhat.com>
5418 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5420 2000-02-03 Timothy Wall <twall@redhat.com>
5422 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5424 * ldlang.c (print_input_section, print_data_statement,
5425 print_reloc_statement, print_padding_statement): Print target
5426 address values and section sizes as bytes, not octets.
5427 (insert_pad) Calculate padding size in octets, and adjust "dot"
5429 (size_input_section) Always adjust "dot" by bytes, not octets.
5430 (lang_check_section_addresses, lang_do_assignments) Adjust
5431 "dot" by bytes, not octets. Use the larger of the directive size
5432 or octets_per_byte for the number of octets actually allocated in
5434 (lang_set_startof) Make sure STARTOF returns a target address.
5435 (lang_one_common) Record size changes in octets.
5436 (lang_abs_symbol_at_end_of) Section end symbol's value is
5437 recorded in target bytes.
5438 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5439 to be clear about behavior when an octet is smaller than one byte.
5441 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5443 * ldcref.c (output_cref): Don't pass message strings to printf
5447 * ldmisc.c (vfinfo): Same here.
5450 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5452 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5453 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5454 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5455 Add missing NULL initialisers, and comments.
5457 2000-01-21 Nick Clifton <nickc@cygnus.com>
5459 * ldlang.c (lang_size_sections): Fix typo in comment.
5461 2000-01-18 H.J. Lu <hjl@gnu.org>
5463 * ldlang.c (lang_size_sections): Also update the current
5464 address of a region if the SEC_NEVER_LOAD bit is not set.
5466 2000-01-10 Philip Blundell <pb@futuretv.com>
5468 * configure.tgt (arm*-*-conix*): New target.
5470 2000-01-07 Nick Clifton <nickc@cygnus.com>
5472 * ld.texinfo (Options): Remind users to preceed linker command
5473 line switches with -Wl, (or whatever is appropriate) if it is
5474 being invoked by a comnpiler driver program.
5475 Fix description of the behaviour of the -n command line switch.
5477 2000-01-05 Catherine Moore <clm@cygnus.com>
5479 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5481 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5482 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5483 (exclude_name_list): New.
5484 ldlang.c (walk_wild_section): Support list of excluded files.
5485 (print_wild_statement): Likewise.
5486 (lang_add_wild): Likewise.
5487 * ldlang.h (lang_wild_statement_type): Likewise.
5488 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5490 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5492 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5493 (process_def_file): Use.
5494 (pe_dll_compat_implib): New variable.
5497 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5498 pe_dll_compat_implib.
5500 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5501 compat-implib options.
5502 (gld_${EMULATION_NAME}_list_options): List new options.
5503 (gld_${EMULATION_NAME}_parse_args): Handle.
5505 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5508 * deffilep.y (opt_name): Allow "." in name.
5510 For older changes see ChangeLog-9899
5516 version-control: never