1 2003-01-21 Fabio Alemagna <falemagn@aros.org>
3 * configure.tgt: Handle i[3456]86-*-aros*
5 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
7 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
8 * Makefile.in: Regenerate
9 * configure.tgt: Added extra target emulations
10 * emulparams/tic3xcoff.sh: Remove old settings
11 * emulparams/tic4xcoff.sh: Ditto
12 * emulparams/tic3xcoff-onchip.sh: Added new
13 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
14 * scripttempl/tic3xcoff.sc: Remove
16 2003-01-17 Andreas Jaeger <aj@suse.de>
18 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
21 2003-01-16 Alan Modra <amodra@bigpond.net.au>
23 * Makefile.in: Regenerate.
25 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
27 * ld/ld.texinfo (node WIN32): Some clarifications
28 and formatting fixups.
30 2003-01-09 Chris Demetriou <cgd@broadcom.com>
32 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
33 order, and handle (ignore) -mips32r2.
35 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
37 * ldmain.c (main): Make sure ld_sysroot is initialized.
39 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
41 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
43 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
44 (GENSCRIPTS): Add @use_sysroot@.
45 * Makefile.in: Regenerated.
46 * configure.host: Move setting of NATIVE_LIB_DIRS to...
47 * configure.tgt: ... here. Use ${target} instead of ${host}
49 * configure.in: Add --with-sysroot.
50 * configure: Regenerated.
51 * genscripts.sh: Accept use_sysroot option. Set new variables
52 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
53 $use_sysroot. Don't search $tool_lib if $use_sysroot.
54 * ldfile.c (ldfile_add_library_path): Handle leading '='.
55 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
56 (ld_sysroot): New variable.
57 (main): Initialize ld_sysroot.
58 * ldmain.h (ld_sysroot): New extern.
59 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
60 searching $EMULATION_LIBPATH.
61 (gld${EMULATION_NAME}_add_sysroot): New function.
62 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
63 (gld${EMULATION_NAME}_after_open): Likewise. Only search
64 environment variables if $NATIVE.
65 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
66 * NEWS: Mention --with-sysroot.
68 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
69 instead of setting LIB_PATH.
70 * emulparams/elf32ppc.sh: Likewise.
71 * emulparams/elf64_s390.sh: Likewise.
72 * emulparams/elf64_sparc.sh: Likewise.
73 * emulparams/elf64ppc.sh: Likewise.
74 * emulparams/elf_x86_64.sh: Likewise.
76 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
77 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
79 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
81 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
83 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
85 * Makefile.am (ldmain.o): Pass BINDIR.
86 * Makefile.in: Regenerated.
87 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
90 2003-01-02 Ben Elliston <bje@redhat.com>
92 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
93 (eelf32iq2000.c): New target.
94 * Makefile.in: Regenerate.
95 * configure.tgt: Handle iq2000-*-elf.
96 * emulparams/elf32iq10.sh: New file.
97 * emulparams/elf32iq2000.sh: New file.
98 * scripttempl/iq2000.sc: New file.
100 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
102 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
103 and _pei386_runtime_relocator to the exclude list.
105 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
107 * ldfile.c: Fix comment typos.
108 * ldlang.c: Likewise.
110 * pe-dll.c: Likewise.
112 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
114 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
115 * Makefile.am (ld.1): Depend on configdoc.texi
117 * Makefile.in: Regenerated.
119 2002-12-24 Dmitry Diky <diwil@mail.ru>
121 * Makefile.am: Add msp430 target.
122 * configure.tgt: Likewise.
123 * Makefile.in: Regenerate.
124 * emulparams/msp430x???.sh: New files. Linker script parameters
125 for various msp430 configurations.
126 * gen-doc.texi: Enable msp430 documenation.
127 * ld.texinfo: Document msp430 sections.
128 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
129 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
131 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
132 Charles Wilson <cwilson@ece.gatech.edu>
134 * ld/config.in (HAVE_REALPATH): New entry.
135 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
137 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
139 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
142 2002-12-23 Alan Modra <amodra@bigpond.net.au>
144 * ldmain.c (main): Init "strip_discarded".
145 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
146 (OPTION_NO_STRIP_DISCARDED): Define.
147 (ld_options): Add "strip-discarded" and "no-strip-discarded".
148 (parse_args): Handle them.
150 2002-12-23 Nick Clifton <nickc@redhat.com>
152 * ld.h (struct args_type): Add new field
153 'accept_unknown_input_architecture'.
154 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
156 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
157 bfd_arch_get_compatible.
158 * ldfile.c (ldfile_try_open_bfd): Likewise.
159 * lexsup.c (ld_options): Add new command line switch
160 --accept-unknown-input-architecture and its inverse.
161 (parse_args): Handle --accept-unknown-input-architecture.
162 * ld.texinfo: Document new linker option.
163 * NEWS: Mention new linker option.
165 2002-12-20 Alan Modra <amodra@bigpond.net.au>
167 * ldmain.c (main): Re-order link_info initialization. Init all
170 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
172 * ld.texinfo: Clarify and extend the documentation
173 in the Machine Dependent, WIN32 section.
175 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
177 * ld.texinfo: Add win32 machine depending section.
178 * gen-doc.texi: Enable win32 machine depending section.
180 * configure.host: Add win32 library search path.
182 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
184 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
185 import when auto-import is disabled.
187 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
189 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
190 account for trailing '\0'.
192 2002-12-17 Nick Clifton <nickc@redhat.com>
194 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
195 so that it is not confused with -c.
197 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
198 Charles Wilson <cwilson@ece.gatech.edu>
200 * configure.in: Add check for realpath function.
201 * configure: Regenerate.
202 * config.in: Regenerate.
203 * aclocal.m4: Regenerate.
204 * deffile.h: Add .data field to def_file_import
206 * pe-dll.c (pe_proces_import_defs): Use .data field of
207 def_file_import structure to initialize flag_data field of
208 def_file_export structure.
209 (pe_implied_import_dll): New variables exp_funcbase and
210 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
211 not filename (which may be a symlink). Scan the sections and
212 initialize [data|bss]_[start|end]. When scanning the export
213 table, skip _nm_ symbols, and mark any symbols whose rva indicates
214 that it is in the .bss or .data sections as data.
215 * sysdep.h: Include limits.h and sys/param.h, and define
216 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
217 exists, NULL otherwise.
218 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
219 pe_process_import_defs before pe_find_data_imports, so that
220 auto-import will check the virtual implib as well as "real"
222 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
223 symlinks to their target; check that the target's extension is
224 .dll before calling pe_implied_import_dll(), not the filename
225 itself (which may be a symlink).
227 2002-12-10 Alan Modra <amodra@bigpond.net.au>
229 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
230 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
233 2002-12-08 Alan Modra <amodra@bigpond.net.au>
235 * ldlang.h: Formatting.
237 2002-12-07 Alan Modra <amodra@bigpond.net.au>
239 * ldlang.c (init_os): Ensure sections mentioned in load_base
242 2002-12-05 Alan Modra <amodra@bigpond.net.au>
244 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
245 load_base for orphans that follow a section with load_base set.
247 2002-12-01 H.J. Lu <hjl@gnu.org>
249 * ld.texinfo: Remove the extra `;' in sample version script.
251 2002-11-30 Alan Modra <amodra@bigpond.net.au>
253 * configure.host: Correct dynamic-linker for powerpc64 hosts.
255 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
256 * Makefile.in: Regenerate.
258 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
259 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
260 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
261 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
262 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
263 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
264 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
265 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
266 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
267 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
268 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
269 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
270 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
272 2002-11-27 David O'Brien <obrien@FreeBSD.org>
274 * configure.host: Fix generic FreeBSD configuration entry.
276 2002-11-27 H.J. Lu <hjl@gnu.org>
278 * ld.texinfo: Add the missing `;' to sample version scripts.
280 2002-11-20 Alan Modra <amodra@bigpond.net.au>
282 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
284 2002-11-14 Egor Duda <deo@logos-m.ru>
286 * ldmain.c (main): Make runtime relocs disabled by default. Remove
287 assignment which has no effect.
288 * pe-dll.h (pe_create_import_fixup): Change prototype.
289 * pe-dll.c (make_runtime_pseudo_reloc): New function.
290 (pe_create_runtime_relocator_reference): Ditto.
291 (pe_create_import_fixup): Handle relocations with non-zero addends.
292 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
293 --disable-runtime-pseudo-reloc.
294 (make_import_fixup): Handle relocations with non-zero addends. Create
295 an external reference to _pei386_runtime_relocator symbol if at least
296 one pseudo reloc was created.
297 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
298 --disable-runtime-pseudo-reloc options.
300 2002-11-12 Earl Chew <earl_chew@agilent.com>
302 * ldlang.c (lang_add_section): Discard debugging sections that have
303 been marked SEC_EXCLUDE.
305 2002-11-12 Nick Clifton <nickc@redhat.com>
307 * configure.in (ALL_LINGUAS): Add da.
308 * configure: Regenerate.
309 * po/da.po: New Danish translation.
311 2002-11-12 Alan Modra <amodra@bigpond.net.au>
313 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
314 (LDEMUL_BEFORE_ALLOCATION): Define.
315 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
317 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
319 2002-11-11 Christopher Faylor <cgf@redhat.com>
321 * configure.tgt (LIB_PATH): Default to searching w32api directory under
324 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
326 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
327 of restricted auto-export libs.
329 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
331 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
332 creative library naming instances like, e.g., libstdc++-2.a.
334 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
336 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
337 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
339 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
341 * deffilep.y (def_lex): Handle '@' as first character of an ID.
342 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
343 (make_one): Don't prefix decorated fastcall symbols with '_'.
344 (pe_process_import_defs): Likewise.
345 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
346 symbols to cdecl names or vise-versa.
348 2002-10-13 Eric Kohl <ekohl@rz-online.de>
350 * pe-dll.c (process_def_file): Handle fastcall symbols when
351 generating undecorated aliases. Don't prefix decorated fastcall
353 (fill_exported_offsets): Don't prefix decorated fastcall symbols
356 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
358 * emultempl/aix.em: Use include <> for generated headers.
359 * emultempl/beos.em: Likewise.
360 * emultempl/elf32.em: Likewise.
361 * emultempl/pe.em: Likewise.
362 * ldctor.c: Likewise.
364 * ldfile.c: Likewise.
365 * ldlang.c: Likewise.
368 * ldmain.c: Likewise.
369 * ldmisc.c: Likewise.
370 * ldwrite.c: Likewise.
371 * lexsup.c: Likewise.
373 * pe-dll.c: Likewise.
375 2002-10-23 Jakub Jelinek <jakub@redhat.com>
377 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
378 sections into .rel{,a}.dyn.
380 2002-10-23 Nick Clifton <nickc@redhat.com>
382 * lexsup.c (OPTION_NO_OMAGIC): Define.
383 (ld_options): Add "no-omagic" option.
384 (parse_args): Parse --no-omagic.
385 * ld.texinfo: Document --no-omagic.
386 * NEWS: Mention new option.
388 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
390 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
391 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
393 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
395 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
396 emulation name. Set LIB_PATH only for native tools, and
397 search the ABI-specific versions of NATIVE_LIB_DIRS before the
398 .../lib variants, not instead of them. Mostly copied from...
399 * emulparams/elf32ppc.sh: ... here. Fixed typo.
400 * emulparams/elf64bmip-defs.sh: Backed out.
401 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
402 * emulparams/elf64btsmip.sh: Likewise.
403 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
404 TEXT_DYNAMIC): Removed.
406 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
408 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
409 (GENERATE_SHLIB_SCRIPT): Set to yes.
410 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
411 * emulparams/elf32bmipn32.sh: here.
412 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
413 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
414 * emulparams/elf64bmip-defs.sh: New file. Extend
415 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
416 * emulparams/elf64bmip.sh: Bring in definitions from
418 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
420 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
421 * emulparams/elf64btsmip.sh: Bring in definitions from
423 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
424 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
426 2002-10-16 Jakub Jelinek <jakub@redhat.com>
428 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
429 (s390-*-linux*): Add elf64_s390 emulation if want64.
430 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
431 genscript.sh changes.
432 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
433 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
435 2002-10-15 Alan Modra <amodra@bigpond.net.au>
437 * ldlang.c (load_symbols): Revert last change.
439 2002-10-14 Alan Modra <amodra@bigpond.net.au>
441 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
443 (lang_reasonable_defaults): Don't compare against false.
444 (size_input_section): Likewise.
445 (lang_size_sections_1): Likewise.
446 (lang_do_assignments): Likewise.
447 (lang_add_output): Likewise.
449 * Makefile.am: Run "make dep-am".
450 * Makefile.in: Regenerate.
451 * ldver.c: #include "bfdver.h".
453 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
455 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
457 * scripttempl/elfm68hc12.sc: Likewise.
459 2002-10-11 Alan Modra <amodra@bigpond.net.au>
461 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
463 * ldgram.y (memory_spec): Provide empty action.
464 (section <NAME>): Likewise.
466 2002-10-10 Jakub Jelinek <jakub@redhat.com>
468 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
469 they have OUTPUT_FORMAT not matching actual output format.
470 * ldlang.c (lang_get_output_target): New function.
471 (open_output): Use it.
472 * ldlang.h (lang_get_output_target): New prototype.
474 2002-10-10 Alan Modra <amodra@bigpond.net.au>
476 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
477 when orphan is .rel, .rela when orphan is .rela.
478 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
479 first. Remove outsecname var.
481 2002-10-09 Richard Shann <richard.shann@superh.com>
482 Stephen Clarke <stephen.clarke@superh.com>
484 * Makefile.am: Add eshelf32_linux.o and
485 eshlelf32_linux.o, new emulations for sh64 Linux.
486 * Makefile.in: Regenerate.
487 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
488 * emulparams/shelf32_linux.sh: New file.
489 * emulparams/shlelf32_linux.sh: New file.
491 2002-10-08 H.J. Lu <hjl@gnu.org>
493 * ldlang.c (lang_file_exist): Removed.
494 (new_afile): Revert the last change.
495 * ldlang.h (lang_file_exist): Removed.
496 * lexsup.c (parse_args): Revert the last change.
498 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
500 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
502 (make_one): Create _nm_<symbol> for data only.
504 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
506 * ldlang.c (lang_file_exist): New function.
507 (new_afile): Abort if the filename to be added matches the linker
509 * ldlang.h: Add prototype for lang_file_exist.
510 * lexsup.c (parse_args): Abort if the output filename matches
511 one of the input filenames.
513 2002-10-02 Alan Modra <amodra@bigpond.net.au>
515 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
517 2002-09-30 Alan Modra <amodra@bigpond.net.au>
519 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
520 * scripttempl/elfm68hc11.sc: Likewise.
521 * scripttempl/elfm68hc12.sc: Likewise.
523 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
524 reloc sections just before .rel.plt/.rela.plt.
525 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
526 Only put loadable reloc sections in hold_rel.
528 2002-09-29 H.J. Lu <hjl@gnu.org>
530 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
532 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
534 From "Anita Kulkarni" <AnitaK@kpit.com>
535 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
538 2002-09-25 Alan Modra <amodra@bigpond.net.au>
540 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
542 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
543 SEGMENT_SIZE alignment.
544 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
545 (SEGMENT_SIZE): Define.
547 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
548 (fold_binary): Correct abs - non-abs case.
549 (fold_trinary): New. Split out from exp_fold_tree.
551 2002-09-24 Alan Modra <amodra@bigpond.net.au>
553 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
554 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
555 for start of .data, instead align up to 256M boundary.
556 * scripttempl/aix.sc: Likewise.
558 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
560 * scripttempl/i386go32.sc: Handle bss unique sections.
562 2002-09-21 Alan Modra <amodra@bigpond.net.au>
564 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
566 2002-09-17 Stan Cox <scox@redhat.com>
568 * emulparams/elf32bmipn32-defs.sh: New file.
569 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
570 * emulparams/elf32btsmipn32.sh: Likewise.
571 * emulparams/elf64bmip.sh: Likewise.
572 * emulparams/elf64btsmip.sh: Likewise.
574 2002-09-16 Bruno Haible <bruno@clisp.org>
576 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
578 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
581 2002-09-11 Nick Clifton <nickc@redhat.com>
583 * NEWS: New TI port supports both C4x and C3x series of DSPs.
585 * po/tr.po: Updated Turkish translation.
587 2002-09-06 Jeffrey A Law (law@redhat.com)
589 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
591 2002-09-02 Nick Clifton <nickc@redhat.com>
593 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
595 * emulparams/v850.sh (TEMPLATE_NAME): Define.
597 2002-08-30 Nick Clifton <nickc@redhat.com>
599 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
600 used. Change INSN to start at 0x01000000 and extend for
601 256K (ignoring holes). Start the STACK on a word aligned
603 (.rodata): Start it at the READONLY_START_ADDR.
605 2002-08-30 Alan Modra <amodra@bigpond.net.au>
607 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
609 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
611 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
612 added makefile targets for this file.
613 * Makefile.in: Regenerate.
614 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
615 * NEWS: Mention new port.
617 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
619 * emulparams/tic3xcoff.sh: New file.
620 * emulparams/tic4xcoff.sh: New file.
621 * scripttempl/tic3xcoff.sc: New file.
622 * scripttempl/tic4xcoff.sc: New file.
624 2002-08-28 Alan Modra <amodra@bigpond.net.au>
626 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
627 strtoul and strtoull with bfd_scan_vma.
628 (gld${EMULATION_NAME}_read_file): Likewise.
630 2002-08-28 Alan Modra <amodra@bigpond.net.au>
632 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
634 2002-08-27 Egor Duda <deo@logos-m.ru>
636 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
637 Add symbols for application to access them.
639 2002-08-27 Nick Clifton <nickc@redhat.com>
641 * emultempl/armelf.em: Revert this patch, it is not needed.
643 2002-08-22 Adam Nemet <anemet@lnxw.com>
645 2002-08-20 Dan Kegel <dank@kegel.com>
647 * configure.in: added --with-lib-path argument to ld's configure
649 * ld/NEWS: Document new switch.
650 * ld/README: Mention new switch.
651 * configure: Regenerate.
652 * Makefile.in: Regenerate.
655 2001-04-25 Christopher Faylor <cgf@cygnus.com>
657 * Makefile.in (LIB_PATH): Make configurable.
658 (GENSCRIPTS): Set LIB_PATH in environment.
659 * configure.in: Substitute LIB_PATH.
661 2002-08-22 Adam Nemet <anemet@lnxw.com>
663 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
664 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
665 depending on the type of the function.
666 (arm_elf_convert_thumb_symbol_to_address): New function.
668 2002-08-22 Graeme Peterson <gp@qnx.com>
670 * Makefile.am: Add esh{l}elf_nto.o files.
671 * Makefile.in: Regenerate.
672 * configure.tgt: Add support for sh-**-nto* targets.
673 * emulparams/shelf_nto.sh: New file.
674 * emulparams/shlelf_nto.sh: New file.
676 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
678 * ldlang.c (offsetof): Define if not defined.
680 2002-08-14 H.J. Lu <hjl@gnu.org>
682 * configure.tgt: Always enable 64bit emulations for 32bit
685 2002-08-13 Alan Modra <amodra@bigpond.net.au>
687 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
688 (MAXPAGESIZE): Set to 1.
690 * ld.h (ALIGN_N): Delete.
691 * ldexp.h (align_n): Declare.
692 * ldexp.c (align_n): New function.
693 (fold_binary): Use align_n instead of ALIGN_N.
694 (exp_fold_tree): Likewise.
695 * ldlang.c (lang_size_sections_1): Likewise.
696 (lang_one_common): Likewise.
697 * ld.texinfo (ALIGN): Remove power of 2 restriction.
699 2002-07-31 Graeme Peterson <gp@qnx.com>
701 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
702 * Makefile.am: Add eelf32{l}ppcnto.o files.
703 * Makefile.in: Regenerate.
704 * emulparams/elf32lppcnto.sh: New file.
705 * emulparams/elf32ppcnto.sh: New file.
707 2002-08-07 H.J. Lu <hjl@gnu.org>
709 * ld.texinfo: Document --no-undefined-version.
711 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
712 `script.' fields to 0.
714 * ldmain.c (main): Initialize the allow_undefined_version to
717 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
718 (ld_options): Add --no-undefined-version.
719 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
721 2002-08-07 Nick Clifton <nickc@redhat.com>
723 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
724 an interworking bfd if there are input bfds. (107501)
726 2002-08-06 Alan Modra <amodra@bigpond.net.au>
728 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
731 2002-08-01 Nick Clifton <nickc@redhat.com>
733 * emulparams/armelf.sh: Revert previous delta.
734 * scripttempl/elf.sc: Revert previous delta.
736 2002-07-31 H.J. Lu <hjl@gnu.org>
738 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
741 2002-07-31 H.J. Lu <hjl@gnu.org>
743 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
744 64bit BFD is selected.
746 2002-07-31 H.J. Lu <hjl@gnu.org>
748 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
749 if 64bit BFD is selected.
751 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
753 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
754 link_info.common_skip_ar_aymbols.
755 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
757 * ldmain.c (main): Initialize new field
758 link_info.common_skip_ar_aymbols.
760 2002-07-31 Adam Nemet <anemet@lnxw.com>
762 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
764 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
767 2002-07-31 Nick Clifton <nickc@redhat.com>
769 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
770 of the PDP-11 and 2.11BSD a.out support.
772 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
774 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
776 * Makefile.in: Regenerate.
777 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
778 n32 ABI emulations for these 64 bit targets.
779 * emulparams/elf32bmipn32.sh: Expand comment.
780 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
782 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
784 2002-07-30 Graeme Peterson <gp@qnx.com>
786 * configure.tgt: Add support for arm-*-nto target.
787 * Makefile.am: Add earmnto.o file.
788 * Makefile.in: Regenerate.
789 * NEWS: Mention port of ARM support to QNX.
790 * emulparams/armnto.sh: New file.
792 2002-07-30 Jakub Jelinek <jakub@redhat.com>
794 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
795 for relocatable link.
796 (lang_size_sections_1): Don't make .tbss zero size for relocatable
799 2002-07-26 Bernd Schmidt <bernds@redhat.com>
801 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
804 2002-07-25 Nick Clifton <nickc@redhat.com>
806 * po/sv.po: Updated Swedish translation.
807 * po/es.po: Updated Spanish translation.
808 * po/fr.po: Updated French translation.
810 2002-07-24 Nick Clifton <nickc@redhat.com>
812 * po/sv.po: Updated Swedish translation.
813 * po/es.po: Updated Spanish translation.
815 2002-07-23 Nick Clifton <nickc@redhat.com>
817 * po/fr.po: Updated French translation.
819 2002-07-20 Alan Modra <amodra@bigpond.net.au>
821 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
822 bomb on /DISCARD/ input section.
823 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
824 * emultempl/mmo.em (mmo_place_orphan): Likewise.
826 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
828 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
831 2002-07-16 Denis Chertykov <denisc@overta.ru>
832 Nick Clifton <nickc@redhat.com>
833 Frank Ch. Eigler <fche@redhat.com>
834 John Healy <jhealy@redhat.com>
836 * configure.tgt: Add support for ip2k-elf.
837 * Makefile.am: Add support for ip2k-elf.
838 * Makefile.in: Regenerate.
839 * emulparams/elf32ip2k.sh: New file.
840 * scripttempl/ip2k.sc: New file
841 * NEWS: Mention support for new port.
843 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
845 * NEWS: Add 'Changes in 2.13'.
847 2002-07-14 H.J. Lu <hjl@gnu.org>
849 * ld.texinfo: Document a .symver takes precedence over a
852 2002-07-12 Alan Modra <amodra@bigpond.net.au>
854 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
855 (COMMONPAGESIZE): Define.
857 2002-07-09 Alan Modra <amodra@bigpond.net.au>
859 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
861 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
863 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
864 powerpc-*-openbsd* and sparc64-*-openbsd*.
865 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
866 * Makefile.in: Regenerate.
867 * emulparams/hppaobsd.sh: New file.
869 2002-07-05 Alan Modra <amodra@bigpond.net.au>
871 * ldlang.c (print_wild_statement): Fix output formatting.
873 2002-07-04 Alan Modra <amodra@bigpond.net.au>
875 * ldlang.c: (strip_excluded_output_sections): New function.
876 (lang_process): Call it.
877 (lang_size_sections_1): Revert 2002-06-10 change.
879 2002-07-03 Alan Modra <amodra@bigpond.net.au>
881 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
883 * Makefile.in: Regenerate.
885 2002-07-02 Alan Modra <amodra@bigpond.net.au>
887 * ldfile.c (ldfile_try_open_bfd): Formatting.
889 * ldmisc.c (demangle): Move so that it doesn't intrude between
890 vfinfo comment and body. Add comment.
892 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
894 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
896 2002-07-01 Alan Modra <amodra@bigpond.net.au>
898 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
899 * ldlang.c (entry_sym): Likewise.
900 (ldlang_undef_chain_list_type): Likewise.
901 (lang_finish): Adjust references to entry_symbol.
902 (lang_add_entry): Likewise.
903 (lang_gc_sections): Use link_info.gc_sym_list.
904 (lang_process): Set link_info.gc_sym_list.
905 * ldlex.l: Include bfdlink.h.
906 * ldmain.c (main): Init link_info.gc_sym_list.
907 * emultempl/aix.em: Adjust references to entry_symbol.
908 * emultempl/armcoff.em: Likewise.
909 * emultempl/armelf.em: Likewise.
910 * emultempl/pe.em: Likewise.
911 * emultempl/ppc64elf.em (ppc_after_open): New function.
912 (LDEMUL_AFTER_OPEN): Define.
913 * emulparams/elf64ppc.sh: KEEP .opd sections.
915 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
917 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
918 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
919 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
920 (EEPROM_START_ADDR): Define.
921 (EEPROM_MEMORY): Define.
922 * emulparams/m68hc12elf.sh: Likewise.
923 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
924 section to put soft registers in .page0.
925 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
927 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
929 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
930 section. Add ${RELOCATING-0}.
932 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
934 * emulparams/shelf.sh (STACK_ADDR): Don't define.
935 (OTHER_SECTIONS): Define.
936 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
937 (OTHER_SECTIONS): Undef.
939 2002-06-26 Alan Modra <amodra@bigpond.net.au>
941 * ldmisc.c (demangle): Restore dots stripped from sym name.
943 2002-06-25 H.J. Lu <hjl@gnu.org>
945 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
946 * Makefile.in: Regenerated.
948 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
950 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
951 the size of attached object files, to allow make the object files
952 available via FTP or HTTP and to mention that the mail will be
953 sent to a mailing list.
955 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
957 * ld/configure.host (romp): Drop support.
959 2002-06-18 Chris Demetriou <cgd@broadcom.com>
961 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
962 section flags for SEC_DATA, rather than for SEC_CODE being unset.
964 2002-06-18 Chris Demetriou <cgd@broadcom.com>
966 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
967 format specifier used to print BFD name.
969 2002-06-18 Dave Brolley <brolley@redhat.com>
971 From Catherine Moore, Michael Meissner, Jim Blandy:
972 * emulparams/elf32frv.sh: New file.
973 * configure.tgt: Support frv-*-*.
974 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
975 (eelf32frv.c): New target.
977 2002-06-17 Tom Rix <trix@redhat.com>
979 * emultempl/elf32.em: gld*_get_script: Check for
980 GENERATE_COMBRELOC_SCRIPT.
981 * scripttempl/elfd10v.sc : Fix STACK and INSN.
982 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
984 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
986 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
988 2002-06-12 H.J. Lu <hjl@gnu.org>
990 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
991 false if xvec doesn't match.
993 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
995 * ldlang.c (lang_size_sections_1): Skip removed output sections.
997 2002-06-08 Alan Modra <amodra@bigpond.net.au>
999 * ldexp.c: Replace CONST with const.
1000 * ldfile.c: Likewise.
1001 * ldfile.h: Likewise.
1002 * ldlex.l: Likewise.
1004 * pe-dll.h: Likewise.
1006 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1008 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1010 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1012 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1013 to -1 == implicit enable.
1014 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1015 initialize link_info.pei386_auto_import to -1 == implicit
1017 (gld_${EMULATION_NAME}_parse_args): When processing
1018 --enable-auto-import and --disable-auto-import options, use
1019 '1' and '0' instead of 'true' and 'false'.
1020 (pe_find_data_imports): Only issue message about auto-import
1021 when the feature is implicitly enabled. Downgrade message to
1022 informational instead of warning.
1024 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1026 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1028 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1030 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1031 HOSTING_CRT0 and HOSTING_LIBS.
1033 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1035 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1037 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1039 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1040 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1042 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1044 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1045 SEC_EXCLUDE sections when doing a relocatable link.
1047 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1049 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1050 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1051 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1052 (eshlelf64_nbsd.c): New rules.
1053 * Makefile.in: Regenerate.
1054 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1055 (sh64-*-netbsd*): New targets.
1056 * emulparams/shelf32_nbsd.sh: New file.
1057 * emulparams/shelf64_nbsd.sh: New file.
1058 * emulparams/shlelf32_nbsd.sh: New file.
1059 * emulparams/shlelf64_nbsd.sh: New file.
1061 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1063 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1065 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1067 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1068 C++ constructors/destructors, loosely based on the m68hc11 port.
1070 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1072 * Makefile.in: Regenerate.
1073 * aclocal.m4: Regenerate.
1074 * config.in: Regenerate.
1075 * configure: Regenerate.
1077 2002-05-31 Graeme Peterson <gp@qnx.com>
1079 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1080 (ei386nto.c): Add rule.
1081 * Makefile.in: Regenerate.
1082 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1083 * emulparams/i386nto.sh: New file.
1085 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1087 * NEWS: Add entry for VAX ELF support.
1089 2002-05-29 Matt Thomas <matt@3am-software.com>
1090 Jason Thorpe <thorpej@wasabisystems.com>
1092 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1094 (evaxnbsd.c): New rules.
1095 * Makefile.in: Regenerate.
1096 * configure.tgt (vax-*-netbsdelf*)
1098 (vax-*-netbsd*): New targets.
1099 * emulparams/elf32vax.sh: New file.
1100 * emulparams/vaxnbsd.sh: New file.
1102 2002-05-29 Adam Nemet <anemet@lnxw.com>
1104 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1105 bfd_for_interwork, instead add glue sections to each input bfd.
1106 (bfd_for_interwork): New global.
1107 (arm_elf_set_bfd_for_interworking): New function.
1108 (arm_elf_before_allocation): Use it.
1110 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1112 * Makefile.am: Add DLX make target.
1113 * configure.tgt: Add DLX configuration.
1114 * Makefile.in: Regenerate.
1115 * emulparams/elf32_dlx.sh: New file
1116 * scripttempl/dlx.sc: New file
1118 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1120 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1121 * Makefile.in: Regenerate.
1122 * emulparams/elf_chaos.sh: Use elf_chaos script.
1123 * scripttempl/elf_chaos.sc: New file.
1125 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1127 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1128 addresses and regions from here...
1129 (lang_get_regions): ...to this new function.
1130 (lang_leave_output_section_statement): Use lang_get_regions.
1131 (lang_leave_overlay): Likewise.
1132 * mri.c (mri_draw_tree): Pass null as last argument to
1133 lang_leave_output_section_statement.
1134 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1135 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1136 * emultempl/pe.em (gld*_place_orphan): Likewise.
1138 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1140 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1142 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1144 * ldemul.c: Fix formatting.
1145 * ldfile.c: Likewise.
1146 * pe-dll.c: Likewise.
1147 * pe-dll.h: Likewise.
1149 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1151 * ldlang.c (lang_process): Formatting, grammar.
1153 * ldlex.l: Use #include "" instead of <> for local header files.
1155 2002-05-24 TAMURA Kent <kent@netbsd.org>
1157 * configure.tgt: Add a target for i386-netbsdpe.
1159 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1161 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1162 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1163 output section if necessary. Handle .tbss.
1164 (lang_size_sections): Clear _raw_size for .tbss section
1165 (it allocates space in PT_TLS segment only).
1166 * ldwrite.c (build_link_order): Build link order for .tbss too.
1168 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1170 * configure.in: Correct spelling of AC_PREREQ.
1172 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1174 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1176 (autofilter_objlist): Add crtbegin.o, crtend.o.
1178 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1180 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1181 (longopts): Add new option --exclude-libs.
1182 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1183 (gld_${EMULATION_NAME}_parse_args): Use it.
1184 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1185 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1186 from whole archives.
1187 (pe_dll_add_excludes): Set excludes->type.
1188 (auto_export): Add new variable libname and set to archive basename if
1189 abfd. Use it when filtering default and user-specified libarary
1190 excludes. Let string "ALL" mean all libs when filtering user-specified
1192 * ld.texinfo: Document --exclude-libs.
1194 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1196 * ldemul.c (ldemul_new_vers_pattern): New function.
1197 * ldemul.h (ldemul_new_vers_pattern): Declare.
1198 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1199 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1200 * emultempl/ppc64elf.em (dotsyms): New static var.
1201 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1202 (LDEMUL_NEW_VERS_PATTERN): Define.
1203 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1204 (PARSE_AND_LIST_LONGOPTS): Likewise.
1205 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1206 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1208 * emultempl/armcoff.em: Likewise.
1209 * emultempl/armelf_oabi.em: Likewise.
1210 * emultempl/beos.em: Likewise.
1211 * emultempl/elf32.em: Likewise.
1212 * emultempl/generic.em: Likewise.
1213 * emultempl/gld960.em: Likewise.
1214 * emultempl/gld960c.em: Likewise.
1215 * emultempl/linux.em: Likewise.
1216 * emultempl/lnk960.em: Likewise.
1217 * emultempl/m68kcoff.em: Likewise.
1218 * emultempl/mipsecoff.em: Likewise.
1219 * emultempl/pe.em: Likewise.
1220 * emultempl/sunos.em: Likewise.
1221 * emultempl/ticoff.em: Likewise.
1222 * emultempl/vanilla.em: Likewise.
1224 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1226 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1227 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1228 (LIB_SEARCH_DIRS): No need to use "tr".
1229 (COMPILE_IN): Only set for native targets.
1230 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1231 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1232 * configure.tgt (powerpc*): Set tdir_*.
1233 (powerpcle*): Correct targ_extra_emuls.
1234 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1235 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1237 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1239 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1240 calling lang_add_entry.
1242 2002-05-21 H.J. Lu (hjl@gnu.org)
1244 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1246 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1248 * ld.texinfo: Updated for --allow-multiple-definition and
1251 * ldmain.c (main): Initialize the allow_multiple_definition
1254 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1255 (ld_options): Add --allow-multiple-definition.
1256 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1258 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1260 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1261 (earmelfb_nbsd.c): New rule.
1262 * Makefile.in: Regenerate.
1263 * configure.tgt (armeb-*-netbsdelf*): New target.
1264 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1265 (arm-*-netbsd*): Likewise.
1266 * emulparams/armelfb_nbsd.sh: New file.
1268 2002-05-18 Tom Rix <trix@redhat.com>
1270 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1273 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1275 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1276 * Makefile.in: Regenerate.
1277 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1279 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1281 * emulparams/avr1.sh: New file.
1282 * emulparams/avr2.sh: New file.
1283 * emulparams/avr3.sh: New file.
1284 * emulparams/avr4.sh: New file.
1285 * emulparams/avr5.sh: New file.
1286 * scripttempl/avr.sc: New file.
1288 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1290 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1291 (lang_place_orphans): Abort if just_syms_flag.
1293 2002-05-10 Tom Rix <trix@redhat.com>
1295 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1296 architecture and machine information in the output bfd.
1297 (gld*_before_parse): Remove old arch and machine code.
1298 (choose_target): Rename to gld*_choose_target.
1299 (rtld): Change type to int.
1300 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1301 objects in XCOFF archives.
1302 * ldfile.h: Update copyright date.
1304 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1306 * ldmain.c (main): Enable -z combreloc by default.
1308 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1310 * Makefile.am: Honour DESTDIR.
1311 * Makefile.in: Regenerate.
1313 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1315 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1316 (lang_enter_overlay): Remove the last two parameters.
1317 (lang_leave_overlay): Take them here instead.
1318 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1319 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1320 than lang_enter_overlay.
1321 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1322 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1323 (lang_size_sections_1): Evaluate it.
1324 (lang_leave_output_section_statement): Rework LMA lookup.
1325 (overlay_lma, overlay_nocrossrefs): Remove.
1326 (lang_enter_overlay): Remove LMA and crossref arguments.
1327 (lang_enter_overlay_section): Don't set the LMA here.
1328 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1329 assignment to the last section's update_dot_tree. Unconditionally
1330 use the load and run-time regions specified in the OVERLAY statement.
1331 Likewise the first section's LMA. Only set the other sections' LMAs
1332 when no load region is given.
1334 2002-05-06 Nick Clifton <nickc@redhat.com>
1336 * po/sv.po: New translation.
1338 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1340 * emultempl/hppaelf.em (build_section_lists): New function.
1341 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1342 and build_section_lists.
1344 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1346 * ld.h: Fix formatting.
1347 * ldexp.c: Likewise.
1348 * ldfile.c: Likewise.
1349 * ldlang.c: Likewise.
1350 * ldmain.c: Likewise.
1351 * lexsup.c: Likewise.
1352 * pe-dll.c: Likewise.
1354 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1356 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1357 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1358 (build_section_lists): Do output_section tests here.
1360 2002-04-30 Tom Rix <trix@redhat.com>
1362 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1364 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1366 Long branch stubs, multiple stub sections.
1367 * emultempl/ppc64elf.em: Include ldctor.h.
1368 (stub_file): New var.
1369 (group_size): New var.
1370 (ppc_create_output_section_statements): New function.
1371 (struct hook_stub_info): New.
1372 (hook_in_stub): New function.
1373 (ppc_add_stub_section): New function.
1374 (ppc_layout_sections_again): New function.
1375 (build_section_lists): New function.
1376 (gld${EMULATION_NAME}_finish): Rewrite.
1377 (real_func): New var.
1378 (ppc_for_each_input_file_wrapper): New function.
1379 (ppc_lang_for_each_input_file): New function.
1380 (lang_for_each_input_file): Define.
1381 (PARSE_AND_LIST_PROLOGUE): Define.
1382 (PARSE_AND_LIST_LONGOPTS): Define.
1383 (PARSE_AND_LIST_OPTIONS): Define.
1384 (PARSE_AND_LIST_ARGS_CASES): Define.
1385 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1387 2002-04-30 Tom Rix <trix@redhat.com>
1389 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1390 -blibpath, -bnolibpath support.
1392 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1394 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1395 (eelf32ppcwindiss.c): New target.
1396 * Makefile.in: Regenerated.
1397 * configure.tgt: Add support for powerpc-*-windiss.
1398 * emulparams/elf32ppcwindiss.sh: New file.
1400 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1402 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1403 * ldexp.c (exp_print_token): Add "infix_p" argument.
1404 (exp_print_tree): Update accordingly.
1406 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1408 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1409 * Makefile.in: Regenerate.
1410 * mpw-elfmips.c: Delete.
1411 * mpw-eppcmac.c: Delete.
1412 * mpw-esh.c: Delete.
1413 * mpw-idtmips.c: Delete.
1415 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1417 * emulparams/shelf32.sh (MACHINE): Now sh5.
1419 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1421 * ldgram.y: Fix syntax warning.
1423 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1425 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1426 to prevent "-n" from being taken as an abbreviation for
1427 "--no-pipeline-knowledge".
1429 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1431 * ldlang.c (lang_size_sections_1): Don't complain about
1432 SEC_NEVER_LOAD sections having no memory region specified.
1434 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1436 2002-04-07 matthew green <mrg@redhat.com>
1438 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1440 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1442 * dep-in.sed: Cope with absolute paths.
1443 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1445 * Makefile.in: Regenerate.
1447 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1449 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1451 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1453 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1454 is smaller than maximum, round dot up to common page boundary.
1456 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1458 * configure.host: Set up for generic hosts first, then tweak as
1459 necessary in more specific targets.
1460 (HOSTING_LIBS): Include libgcc_eh.a if found.
1462 2002-03-23 Andreas Jaeger <aj@suse.de>
1464 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1466 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1468 * Makefile.am: Run "make dep-am".
1469 * Makefile.in: Regenerate.
1471 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1473 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1475 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1477 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1478 add the symbol to the linker hash table immediately.
1479 (lang_place_undefineds): Split symbol creation out..
1480 (insert_undefined): ..to here.
1482 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1484 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1485 the contents of the buffer returned from basename function will are
1486 getting overwritten while still being used.
1488 2002-03-18 Jan Hubicka <jh@suse.cz>
1489 Andreas Jaeger <aj@suse.de>
1490 Andreas Schwab <schwab@suse.de>
1492 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1493 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1494 set libraries to default to lib64 paths.
1496 2002-03-18 Tom Rix <trix@redhat.com>
1498 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1499 * configure.tgt : Same.
1500 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1501 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1502 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1503 emulation parameters for better -b32, -b64 support.
1504 * emulparms/aixrs6.sh : Same.
1505 * emulparms/ppcmacos.sh : Same.
1506 * emultempl/aix.em (choose_target) : Use new emulation parameters
1507 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1508 * Makefile.in : Regenerate.
1510 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1512 * po/fr.po: Updated version.
1514 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1516 * ldmain.c (main): Move .text readonly flag fudges from here..
1517 * ldlang.c (lang_process): ..to here.
1519 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1521 * ldlang.c (lang_check): Remove the word size check added in last
1522 change. Treat emitrelocations case as for relocatable links.
1524 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1526 * po/fr.po: Updated version.
1528 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1530 * ldlang.c (lang_check): Do relocatable link checks first, so that
1531 warn_mismatch can't override. Check compatible and word size too.
1533 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1535 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1537 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1539 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1542 2002-03-04 H.J. Lu <hjl@gnu.org>
1544 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1545 .fini_array in the data segment.
1547 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1549 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1551 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1553 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1554 .init_array, and .fini_array.
1556 2002-02-20 Andreas Schwab <schwab@suse.de>
1558 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1559 .IA64_unwind* in a relocatable link.
1561 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1563 * NEWS: Mark 2.12 branch.
1565 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1567 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1568 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1570 2002-02-18 Tom Rix <trix@redhat.com>
1572 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1573 (gld*_before_allocation): Same.
1574 (gld*_create_output_section_statements): Generate
1575 __rtinit if run time linking. Add librtl.a to the link.
1576 (gld*_read_file): Clean.
1578 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1580 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1582 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1584 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1585 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1586 and eelf64alpha_fbsd.
1587 * Makefile.in: Regenerate.
1588 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1589 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1590 use a FreeBSD-specific emulation rather than the psABI one.
1591 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1592 for all FreeBSD ELF systems.
1593 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1595 * emulparams/elf32ppc_fbsd.sh: Likewise.
1596 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1597 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1598 * emulparams/elf64alpha_fbsd.sh: Likewise.
1599 * emulparams/elf_i386_fbsd.sh: Likewise.
1600 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1602 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1604 * po/tr.po: Updated version.
1606 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1608 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1611 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1613 * emultempl/mmo.em (mmo_after_open): Don't call
1614 _bfd_mmix_check_all_relocs when producing ELF output.
1616 2002-02-15 Richard Henderson <rth@redhat.com>
1618 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1619 definition. Emit a unop+nop pair.
1621 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1623 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1624 for presence of .MMIX.reg_contents.linker_allocated before early
1627 * NEWS: Mention support for MMIX.
1629 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1631 Support arbitrary length fill patterns.
1632 * ld.texinfo (Output Section Fill): Describe fill expressions.
1633 (FILL): Refer to the above.
1634 * ldexp.h (etree_value_type): Add "str" field.
1635 (union etree_union): Add "str" to "value" struct.
1636 (exp_bigintop): Declare.
1637 (exp_get_fill): Declare.
1638 * ldexp.c: Include "safe-ctype.h".
1639 (exp_intop): Set value.str to NULL.
1640 (exp_bigintop): New function.
1641 (new_rel): Pass in "str", and set new.str from it.
1642 (new_rel_from_section): Set new.str to NULL.
1643 (fold_name): Adjust calls to new_rel.
1644 (exp_fold_tree): Likewise.
1645 (exp_get_fill): New function.
1646 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1647 (INT): Returns a "bigint". Adjust all code handling INTs.
1648 (fill_opt): Returns a "fill".
1649 (fill_exp): Split out of fill_opt, use for FILL.
1650 * ldlang.h (struct _fill_type): New.
1651 (fill_type): Move typedef to ldexp.h.
1652 (lang_output_section_statement_type): "fill" is now a pointer.
1653 (lang_fill_statement_type): Likewise.
1654 (lang_padding_statement_type): Likewise.
1655 (lang_add_fill): Now takes a "fill_type *" param.
1656 (lang_leave_output_section_statement): Likewise.
1657 (lang_do_assignments): Likewise.
1658 (lang_size_sections): Likewise.
1659 (lang_leave_overlay_section): Likewise.
1660 (lang_leave_overlay): Likewise.
1661 * ldlang.c: Include ldgram.h after ldexp.h.
1662 (lang_output_section_statement_lookup): Adjust for fill_type change.
1663 (print_fill_statement): Likewise.
1664 (print_padding_statement): Likewise.
1665 (insert_pad): Now takes a "fill_type *" arg.
1666 (size_input_section): Likewise.
1667 (lang_size_sections_1): Likewise.
1668 (lang_size_sections): Likewise.
1669 (lang_do_assignments): Likewise.
1670 (lang_add_fill): Likewise.
1671 (lang_leave_output_section_statement): Likewise.
1672 (lang_leave_overlay_section): Likewise.
1673 (lang_leave_overlay): Likewise.
1674 Adjust all callers of the above function.
1675 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1676 starting with "0X" as well as "0x". Return bigint.str for hex
1677 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1678 Always use base 16 for numbers starting with "$".
1679 * ldmain.c: Include ldgram.h after ldexp.h.
1680 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1681 of bfd_fill_link_order.
1682 * pe-dll.c: Adjust lang_do_assignments calls.
1683 * emultempl/elf32.em: Likewise.
1684 * emultempl/hppaelf.em: Likewise.
1685 * emultempl/ppc64elf.em: Likewise.
1686 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1687 lang_add_assignment call.
1688 * emultempl/pe.em: Likewise.
1690 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1692 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1693 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1694 the pattern in question is not a regexp.
1695 * ldlang.c: Likewise.
1696 * ldlang.h: Likewise.
1697 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1699 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1701 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1702 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1703 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1704 * ldexp.c (exp_data_seg): New variable.
1705 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1706 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1707 (exp_fold_tree): Handle DATA_SEGMENT_END.
1708 Pass allocation_done when recursing instead of hardcoding
1709 lang_allocating_phase_enum.
1710 * ldexp.h (exp_data_seg): New.
1711 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1712 (lang_size_sections): New.
1713 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1714 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1715 if COMMONPAGESIZE is defined.
1716 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1717 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1718 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1719 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1720 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1723 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1725 * Makefile.in: Regenerate.
1727 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1729 * lexsup.c: Remove strtoul declaration.
1731 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1733 * ldmain.c: Add prototype for main ().
1734 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1735 * emultempl/lnk960.em (lnk960_choose_target): Function should
1738 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1740 * ldlang.c (entry_section): New initialised variable.
1741 (lang_finish): Use it.
1742 * ldlang.h (entry_section): Declare.
1743 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1744 entry_section to ".opd".
1746 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1748 * ld.texinfo (Options): Add back in -nostdlib documentation,
1749 which had been inadvertently removed.
1751 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1753 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1754 register section vma to a sane value after emitting error. Make
1755 fatal conditions cause program exit when emitting message.
1757 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1759 * configure.tgt: Add or32-*-rtems target.
1761 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1763 Contribute sh64-elf.
1764 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1765 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1766 in OTHER_RELOCATABLE_SECTIONS.
1767 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1768 * emulparams/shelf32.sh (STACK_ADDR): Define.
1769 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1770 (OTHER_SECTIONS): this. Removed stack settings.
1771 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1772 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1773 2001-03-12 DJ Delorie <dj@redhat.com>
1774 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1775 relaxing if any shmedia or mixed sections are found.
1776 2001-03-07 DJ Delorie <dj@redhat.com>
1777 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1778 einfo. Gracefully decline to output to non-elf formats.
1779 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1780 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1781 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1782 * emulparams/shelf32.sh: Ditto.
1783 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1784 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1786 2001-01-10 Ben Elliston <bje@redhat.com>
1787 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1788 non-portable shell constructs. From Hans-Peter Nilsson.
1789 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1790 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1791 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1792 dependencies to the shell script include chain.
1793 * Makefile.in: Regenerate.
1794 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1795 * emultempl/sh64elf.em: Update and tweak comments.
1796 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1797 make a .cranges section SEC_IN_MEMORY.
1798 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1799 * emultempl/sh64elf.em
1800 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1801 .cranges section found to be necessary; continue and set stored
1802 section contents flags for sections with non-mixed contents.
1803 Use a struct sh64_section_data container and sh64_elf_section_data
1804 to store contents-type flags.
1805 Remove unused update of "isec".
1806 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1807 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1808 access contents-type flags. Assert that the associated container
1809 is initialized. Use that container, not elf_gp_size, to hold size
1810 of linker-generated cranges contents.
1811 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1812 * emultempl/sh64elf.em
1813 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1814 there's already a .cranges section. When section flag difference
1815 is found, don't NULL-check cranges a second time. Tweak comments.
1816 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1817 merging, not max size, as size of ld-generated .cranges contents.
1818 Don't set ELF section flags in output section. When checking for
1819 needed .cranges descriptors, don't use a variable; compare
1820 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1822 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1823 * emultempl/sh64elf.em: New file.
1824 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1825 * Makefile.in: Regenerate.
1826 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1827 (OTHER_RELOCATING_SECTIONS): Ditto.
1828 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1829 * emulparams/shlelf32.sh: Stub out all settings except
1830 OUTPUT_FORMAT. Source shelf32.sh.
1831 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1832 OTHER_RELOCATING_SECTIONS.
1833 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1834 * emulparams/shlelf64.sh: Stub out all settings except
1835 OUTPUT_FORMAT. Source shelf64.sh.
1836 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1837 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1839 (DATA_START_SYMBOLS): Define, provide ___data.
1840 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1841 for consecutive .data section.
1842 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1843 section after .data section.
1844 * emulparams/shlelf64.sh: Ditto.
1845 * emulparams/shelf32.sh: Ditto.
1846 (ALIGNMENT): Define to 8.
1847 * emulparams/shelf32.sh: Ditto.
1848 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1849 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1850 built-in linker scripts.
1851 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1852 * emulparams/shlelf64.sh: New.
1853 * emulparams/shelf64.sh: New.
1854 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1856 * Makefile.am: Add support for shlelf64 and shelf64.
1857 * Makefile.in: Regenerate.
1858 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1859 * configure.tgt (sh64-*-elf*): Add shelf as default.
1860 Add shlelf to targ_extra_emuls.
1861 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1862 * emulparams/shelf32.sh: New file.
1863 * emulparams/shlelf32.sh: New file.
1864 * Makefile.am: Add support for shlelf32 and shelf32.
1865 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1866 * Makefile.in: Regenerate.
1868 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1870 * ldlang.c (lang_reset_memory_regions): Rename from
1871 reset_memory_regions. Change all callers. Make public.
1872 * ldlang.h (lang_reset_memory_regions): Prototype.
1873 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1874 lang_reset_memory_regions before lang_size_sections.
1875 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1876 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1878 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1880 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1881 arithmetic when checking for too many global registers.
1883 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1885 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1886 (ehppanbsd.c): New rule.
1887 * Makefile.in: Regenerate.
1888 * configure.tgt (hppa*-*-netbsd*): New target.
1889 * emulparams/hppalinux.sh: Add comment to check other files
1890 that source this file it is modified, and list which
1892 * emulparams/hppanbsd.sh: New file.
1894 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1896 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1899 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1901 Support on-demand global register allocation from
1902 R_MMIX_BASE_PLUS_OFFSET relocs.
1903 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1904 mmix_set_reg_section_vma. Call
1905 _bfd_mmix_finalize_linker_allocated_gregs.
1906 (mmix_before_allocation): New function.
1907 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1908 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1909 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1910 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1911 before .MMIX.reg_contents.
1912 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1913 (mmo_after_open): New function.
1914 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1915 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1916 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1918 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1920 * emulparams/or32.sh: New file.
1921 * emulparams/or32elf.sh: New file.
1922 * scripttempl/or32.sc: New file.
1923 * configure.tgt : Add support for or32.
1924 * configure: Regenerate
1925 * Makefile.am: Add support for or32.
1926 * Makefile.in: Regenerate.
1927 * NEWS: Mention support for or32.
1928 * po/ld.pot: Regenerate.
1930 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1931 Mitch Lichtenberg <mpl@broadcom.com>
1933 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1934 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1935 reloc creation (ld --embedded-relocs).
1937 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1939 * configure: Regenerated.
1941 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1943 * Makefile.am (install): Depend on install-info.
1944 * Makefile.in: Regenerate.
1946 2002-01-26 Christian Rose <menthos@menthos.com>
1948 * ldmain.c (main): Use full sentences to ease translation.
1950 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1952 * po/fr.po: Updated version.
1954 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1956 * po/es.po: Updated version.
1958 2002-01-25 Andreas Jaeger <aj@suse.de>
1960 * ldlex.l (yy_input): Correct error check.
1962 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1964 * ldmisc.c (demangle): Put back dots when string not demangled.
1966 2002-01-22 Richard Henderson <rth@redhat.com>
1968 * emulparams/elf64alpha.sh (NOP): Use unop.
1970 2002-01-21 Andreas Jaeger <aj@suse.de>
1972 * ldlex.l: Use fread instead of read.
1974 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1976 * configure.tgt (ia64-*-netbsd*): New target.
1978 2002-01-21 H.J. Lu <hjl@gnu.org>
1980 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1982 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1984 2002-01-18 Andreas Jaeger <aj@suse.de>
1986 * ldver.c (ldversion): Update year.
1988 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1990 * po/ld.pot: Regenerate.
1992 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1994 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1995 * Makefile.in: Regenerate.
1996 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1997 * emultempl/ppc64elf.em: New file.
1999 2002-01-15 DJ Delorie <dj@redhat.com>
2001 * scripttempl/pe.sc: Add support for constructor priorities.
2003 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2005 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2006 * emulparams/avr23xx.sh: Likewise.
2007 * emulparams/avr4433.sh: Likewise.
2008 * emulparams/avr44x4.sh: Likewise.
2009 * emulparams/avr85xx.sh: Likewise.
2010 * emulparams/avrmega103.sh: Likewise.
2011 * emulparams/avrmega161.sh: Likewise.
2012 * emulparams/avrmega603.sh: Likewise.
2013 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2015 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2017 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2018 archive is excluded.
2020 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2022 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2023 (eshelf_nbsd.c): New rule.
2024 (eshlelf_nbsd.c): New rule.
2025 * Makefile.in: Regenerate.
2026 * configure.tgt (sh*le-*-netbsdelf*): New target.
2027 (sh*-*-netbsdelf*): New target.
2028 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2029 * ld/emulparams/shelf_nbsd.sh: New emulation.
2030 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2032 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2034 * po/es.po: New file: Spanish translation.
2035 * configure.in (ALL_LINGUAS): Add es.
2036 * configure: Regenerate.
2038 2002-01-06 John Marshall <jmarshall@acm.org>
2040 * ld.texinfo: Note that --emit-relocs is currently only
2041 implemented for ELF.
2043 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2045 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2046 of bfd_section_list_remove and bfd_section_list_insert macros.
2047 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2048 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2050 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2052 * configure.tgt (x86_64-*-netbsd*): New target.
2054 2001-12-21 Tom Rix <trix@redhat.com>
2056 (gld*_create_output_section_statements): New function.
2057 For -binitfini support.
2058 * emultempl/aix.em (gld*_before_parse): Fix comment.
2059 * emultempl/aix.em (gld*_parse_args): Fix comment.
2061 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2063 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2065 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2067 * configure.tgt (arm-*-netbsdelf*): Add target.
2068 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2069 * emulparams/armelf_nbsd.sh: Added.
2070 * Makefile.am: Add rules for earmelf_nbsd.
2071 * Makefile.in: Regenerate.
2073 2001-12-19 Andreas Jaeger <aj@suse.de>,
2074 Susanne Oberhauser <froh@suse.de>
2076 * configure.host: Add rules for x86_64-*linux-gnu. Change
2077 s390x-linux entry to use gcc to report configuration, replace gcc
2078 with $CC in s390-linux
2080 2001-12-19 Andreas Jaeger <aj@suse.de>
2082 * ld.texinfo (VERSION): Fix markup.
2084 2001-12-18 matthew green <mrg@eterna.com.au>
2086 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2087 (m68kelfnbsd.c): New rule.
2088 * Makefile.in: Regenerate.
2089 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2090 (m68*-*-netbsd*4k*): .. this.
2091 (m68*-*-netbsdelf*): New target.
2092 (m68*-*-netbsd*): Also include ELF support.
2093 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2094 * emulparams/m68kelfnbsd.sh: New emulation.
2096 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2098 * ldgram.y (vers_node): Support anonymous version tags.
2099 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2100 tag is not defined together with non-anonymous versions.
2101 * ld.texinfo: Document it.
2103 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2105 * po/tr.po: New file: Turkish translation.
2106 * configure.in (ALL_LINGUAS): Add tr.
2107 * configure: Regenerate.
2109 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2111 * Makefile.am: Add rules for eelf64alpha_nbsd.
2112 * Makefile.in: Regenerate.
2113 * configure.tgt (alpha*-*-netbsd*): Set
2114 targ_emul to elf64alpha_nbsd.
2115 * emulparams/elf64alpha_nbsd.sh: Added.
2117 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2119 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2120 section_tail when fiddling with section list.
2121 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2122 broken into separate strings to make translation easier.
2123 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2124 fiddling with section list.
2125 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2127 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2129 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2131 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2133 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2135 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2137 * emultempl/elf32.em (finish): Supply output_bfd
2138 to bfd_elf*_discard_info.
2139 (OPTION_EH_FRAME_HDR): Define.
2140 (longopts): Add --eh-frame-hdr.
2141 (parse_args): Handle it.
2142 (list_options): Add --eh-frame-hdr to help.
2143 * emultempl/hppaelf.em (finish): Supply output_bfd
2144 to bfd_elf*_discard_info.
2145 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2147 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2149 * lexsup.c (parse_args): Don't pass shortopts to second call to
2150 getopt functions. Restore optind rather than decrementing before
2151 second call. Remove errind as it now duplicates last_optind.
2153 2001-12-11 Christopher Faylor <cgf@redhat.com>
2155 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2157 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2158 Richard Henderson <rth@redhat.com>
2160 * Makefile.am: Add support for xstormy16.
2161 * configure.tgt: Add support for xstormy16.
2162 * Makefile.in: Regenerate.
2163 * emulparams/elf32xstormy16.sh: New file.
2164 * scripttempl/xstormy16.sc: New file.
2166 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2168 * Makefile.in (LIB_PATH): Make configurable.
2169 (GENSCRIPTS): Set LIB_PATH in environment.
2170 * configure.in: Substitute LIB_PATH.
2171 * configure: Regenerate.
2172 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2173 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2175 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2177 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2178 describing the -N option so that it is easier to translate into
2181 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2183 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2184 statements describing a single option with a single, newline
2185 escaped fprintf. This allows better translation into other
2188 * ldmain.c (add_archive_element): Combine multiple strings
2189 into a single string to permit better translation into other
2192 2001-12-05 Tom Rix <trix@redhat.com>
2194 * Makefile.am: Remove eaixppc64.
2195 * Makefile.in: Regenerate.
2197 2001-12-04 Tom Rix <trix@redhat.com>
2199 * emultempl/aix.em (choose_target): Change default target to
2200 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2202 (gld*_read_file): Fix typo.
2203 (change_symbol_mode): Add prototype.
2206 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2207 * emulparams/aixrs6.sh : Same.
2208 * emulparams/ppcmacos.sh : Same.
2209 * emulparams/aixppc64.sh : Delete file.
2210 * emultempl/aix.em : Formatting changes.
2212 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2214 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2215 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2217 (OTHER_END_SYMBOLS): Fix formatting.
2218 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2219 (OTHER_END_SYMBOLS): Fix formatting.
2221 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2223 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2225 2001-12-02 Tom Rix <trix@redhat.com>
2227 * configure.tgt : Remove eaixppc64 emulations.
2228 * Makefile.in : Remove eaixppc64.c
2229 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2230 (ldemul_default_target): Same.
2231 * emultempl/gld960.em (gld960_choose_target): Same.
2232 * emultempl/gld960c.em (gld960_choose_target): Same.
2233 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2234 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2235 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2236 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2237 * emultempl/aix.em (choose_target): New function. Handle emulation of
2240 2001-11-27 H.J. Lu <hjl@gnu.org>
2242 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2243 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2244 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2245 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2246 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2247 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2248 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2249 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2251 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2254 (REL_SDATA): Likewise.
2255 (REL_SBSS): Likewise.
2256 (REL_SDATA2): Likewise.
2257 (REL_SBSS2): Likewise.
2258 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2261 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2263 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2265 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2267 2001-11-22 H.J. Lu <hjl@gnu.org>
2269 * Makefile.in: Regenerated with automake based on automake
2270 1.4-8 in RedHat 7.1.
2272 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2274 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2275 (config.status): Delete rule.
2276 Add extra dependencies to cover sourced emulparams files.
2277 * Makefile.in: Regenerate.
2279 * scripttempl/elf.sc: Order <section>, <section>.* and
2280 corresponding linkonce sections as seen in input files.
2281 Formatting fixes. Zero vma of all sections if not relocating.
2282 (STACK): Define and insert if STACK_ADDR defined.
2283 (OTHER_RELOCATING_SECTIONS): Delete.
2284 (OTHER_END_SYMBOLS): Define.
2285 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2286 (OTHER_READWRITE_SECTIONS): Likewise.
2287 (OTHER_GOT_SECTIONS): Likewise.
2288 (OTHER_SDATA_SECTIONS): Likewise.
2289 (OTHER_BSS_SECTIONS): Likewise.
2290 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2291 (OTHER_READWRITE_SECTIONS): Likewise.
2292 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2293 (OTHER_READWRITE_SECTIONS): Likewise
2295 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2296 (STACK_ADDR): Define.
2297 * emulparams/armelf_oabi.sh: As for armelf.sh.
2298 * emulparams/elf32mcore.sh: As for armelf.sh.
2299 * emulparams/h8300elf.sh: As for armelf.sh.
2300 * emulparams/mn10200.sh: As for armelf.sh.
2301 * emulparams/shelf.sh: As for armelf.sh.
2303 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2304 (OTHER_END_SYMBOLS): Define.
2305 * emulparams/m32relf.sh: As for elf32fr30.sh.
2306 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2307 * emulparams/h8300self.sh: As for elf32fr30.sh.
2309 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2310 defines with RELOCATING test.
2311 (OTHER_SDATA_SECTIONS): Likewise.
2312 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2313 (OTHER_END_SYMBOLS): ..this.
2314 * emulparams/crislinux.sh: As for criself.sh.
2316 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2318 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2319 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2320 normal and linkonce sections as seen in input files.
2321 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2322 (TEXT_DYNAMIC): Likewise.
2323 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2324 (OTHER_SDATA_SECTIONS): Likewise.
2325 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2326 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2327 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2328 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2329 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2330 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2331 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2332 sections as seen in input files.
2333 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2334 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2336 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2337 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2338 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2339 (OTHER_SECTIONS): Instead, use this..
2340 (OTHER_END_SYMBOLS): ..and this.
2342 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2343 * emulparams/elf32bsmip.sh: Likewise.
2344 * emulparams/elf32btsmip.sh: Likewise.
2345 * emulparams/elf32ebmip.sh: Likewise.
2346 * emulparams/elf32lmip.sh: Likewise.
2347 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2348 * emulparams/elf32lsmip.sh: Likewise.
2349 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2350 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2351 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2352 * emulparams/elf64btsmip.sh: Likewise.
2353 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2354 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2355 * emulparams/elf32ppclinux.sh: Likewise.
2356 * emulparams/elf32ppcsim.sh: Likewise.
2357 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2358 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2359 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2360 * emulparams/h8300self.sh: Likewise.
2361 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2362 * emulparams/sh.sh: Comment.
2363 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2364 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2365 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2367 2001-11-21 David Heine <dlheine@tensilica.com>
2368 Alan Modra <amodra@bigpond.net.au>
2370 * ldlang.c (map_input_to_output_sections): Replace "break"
2371 accidentally removed with 2001-08-03 change.
2372 (lang_gc_sections_1): Likewise.
2374 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2376 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2378 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2380 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2381 of false when calling lang_size_sections.
2382 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2384 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2386 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2387 function when LDEMUL_FINISH isn't set to the same name. Don't
2388 call ${LDEMUL_FINISH}.
2389 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2390 * emultempl/armelf.em (arm_elf_finish): Call
2391 gld${EMULATION_NAME}_finish.
2392 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2393 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2394 hppaelf_layout_sections_again if necessary.
2395 (need_laying_out): New var.
2396 (hppaelf_layaout_sections_again): Rename to
2397 hppaelf_layout_sections_again. Clear need_laying_out.
2398 (PARSE_AND_LIST_OPTIONS): Format text.
2400 2001-11-14 H.J. Lu <hjl@gnu.org>
2402 * emultempl/armelf.em (arm_elf_finish): Renamed from
2403 gld${EMULATION_NAME}_finish.
2404 (LDEMUL_FINISH): Set to arm_elf_finish.
2406 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2408 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2409 (struct ld_emulation_xfer_struct): Use it.
2411 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2413 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2414 additional symbols referenced by newer crt0.o files from HP.
2416 2001-11-12 Anthony Green <green@redhat.com>
2418 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2420 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2422 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2423 * Makefile.in: Regenerate.
2425 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2427 * ld.texinfo: Use @command for commands, @option for options.
2428 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2430 * Makefile.in: Rebuild.
2432 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2434 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2435 Add support for targets.
2437 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2439 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2440 * configure: Regernate.
2441 * po/fr.po: New file.
2442 * po/sv.po: New file.
2444 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2446 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2447 as little endian default and to support big endian.
2449 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2451 * ld.texinfo (Options): Document new option, -nostdlib.
2452 * lexsup.c (OPTION_NOSTDLIB): New definition.
2453 (ld_options): Add entry for "nostdlib".
2454 (parse_args): Handle OPTIONS_NOSTDLIB.
2455 * ldfile.c (ldfile_add_library_path): Don't add directories
2456 to the search path if they weren't specified on the command line
2457 and -nostdlib was specified.
2458 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2460 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2462 * lexsup.c (parse_args): Prevent infinite parsing loop when
2463 "-rpath.a" is specified on the command line.
2464 Replace calls to fprintf with calls to einfo.
2466 2001-10-31 John Marshall <jmarshall@acm.org>
2468 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2469 appear only once across all the linker scripts involved in a link
2470 invocation no longer applies. Make the documentation reflect
2473 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2475 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2477 (sh-*-linux*): Added targ_extra_libpath.
2479 2001-10-31 David Heine <dlheine@tensilica.com>
2481 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2482 for padding statements.
2484 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2486 * configure.tgt (mmix-*-*): New target.
2487 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2488 Add dependencies to match.
2489 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2490 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2491 scripttempl/mmo.sc: New files.
2492 * gen-doc.texi: @set MMIX.
2493 * ld.texinfo: Ditto.
2494 [MMIX] Add MMIX node.
2495 * Makefile.in: Regenerate.
2497 2001-10-29 Kazu Hirata <kazu@hxi.com>
2499 * ldlang.c: Fix a comment typo.
2501 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2503 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2504 entries, and match *-*-linux*.
2506 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2508 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2509 with ldlex_script, ldlex_popstate.
2510 (ifile_p1): Likewise.
2511 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2513 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2514 to 1. Don't BEGIN(SCRIPT).
2515 (lex_redirect): Similarly.
2516 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2518 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2520 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2521 __EH_FRAME_END__ and accept eh frames into data section.
2522 Add ctor and dtor sections.
2524 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2526 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2527 (auto-export): Fix indentation.
2529 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2531 * pe-dll.c (autofilter_objectlist): Add startup objects
2533 (auto-export): Constify char * p.
2534 Extract file basename and use strcmp rather than ststr
2537 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2539 * ldmain.c (get_emulation): Improve comment about the handling
2542 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2544 * po/POTFILES.in: Regenerate.
2546 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2548 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2549 -z nocopyreloc and -z nocombreloc usage strings.
2551 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2553 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2556 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2558 * scripttempl/armaout.sc: Place .bss section after end of aligned
2559 data section to match behaviour of aout code in constructrion of
2562 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2564 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2565 startup files for mingw32 dlls to list.
2567 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2569 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2571 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2573 * configure.tgt (targ): Add arm9e-*-elf.
2575 2001-10-05 H.J. Lu <hjl@gnu.org>
2577 * genscripts.sh: Fix a typo in the last change.
2579 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2581 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2582 -z nocombreloc in usage.
2584 2001-10-03 Jim Blandy <jimb@redhat.com>
2586 * genscripts.sh: Include a comment at the top of each generated
2587 script, explaining its purpose.
2589 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2591 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2592 * NEWS: Mention -z nocopyreloc.
2593 * ld.texinfo (Options): Describe nocopyreloc.
2595 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2597 * configure: Regenerate.
2599 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2601 * ldver.h (ld_program_version): Remove declaration.
2602 * lexsup.c (parse_args): Move printing of copyright message..
2603 * ldver.c (ldversion): .. to here.
2604 Use BFD_VERSION_STRING in place of BFD_VERSION.
2605 (ld_program_version): Remove.
2606 * Makefile.am (Makefile): Depend on bfd/configure.in.
2608 * Makefile.in: Regenerate.
2610 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2612 * Makefile.am: Update dependencies with "make dep-am".
2613 * Makefile.in: Regenerate.
2615 2001-09-29 John Reiser <jreiser@BitWagon.com>
2617 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2618 * lexsup.c: Add --no-define-common commandline option.
2619 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2620 * ldlex.l: Likewise.
2621 * ld.h: Add command_line.inhibit_common_definition.
2622 * ldmain.c (main): Initialize.
2623 * ld.texinfo: Document.
2625 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2627 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2629 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2631 * ldmisc.c (USE_STDARG): Remove.
2632 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2637 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2638 declarations. Update copyright.
2640 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2642 * pe-dll.c: Remove obsoleted declaration of
2643 pe_get_data_import_dll_name.
2644 (pe_create_import_fixup): Fix thinko.
2646 * ld.texinfo(enable-auto-import): Clarify the explanation.
2648 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2650 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2651 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2652 DLL_SUPPORT controlled code.
2654 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2656 * emultempl/pe.em(pe_data_import_dll): Make static.
2657 (pe_get_data_import_dll_name): New accessor function.
2658 * pe-dll.c(pe_create_import_fixup): call
2659 pe_get_data_import_dll_name() from pe.em, instead of
2660 directly accessing pe_data_import_dll variable from pe.em.
2662 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2664 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2665 (def_file_add_directive): Use ISSPACE instead of isspace.
2666 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2667 isdigit/isxdigit/isalpha/isalnum.
2668 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2669 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2670 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2671 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2673 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2674 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2676 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2677 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2678 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2679 (ctor_prio): Use ISDIGIT instead of isdigit.
2680 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2681 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2682 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2684 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2685 (stricpy): Use TOLOWER instead of isupper/tolower.
2686 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2687 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2688 (lex_warn_invalid): Use ISPRINT instead of isprint.
2689 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2690 (main): For gettext, also set the LC_CTYPE locate facet.
2691 (add_keepsyms_file): Use ISSPACE instead of isspace.
2692 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2693 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2694 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2695 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2696 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2697 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2698 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2699 (quoteput): Use ISSPACE instead of isspace.
2700 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2703 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2705 * deffilep.y (def_stash_module): Constify "name" param.
2707 * pe-dll.c: Replace CONST with const throughout.
2708 (quick_symbol): Constify "n1", "n2", "n3" params.
2709 (make_singleton_name_thunk): Constify "import" param. Make
2710 "buffer_len" a size_t.
2711 (make_import_fixup_entry): Constify "name", "fixup_name",
2712 "dll_symname" params.
2713 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2714 (pe_get32): Likewise.
2715 (pe_implied_import_dll): Likewise.
2717 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2718 (sort_by_section_name): Likewise.
2720 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2721 (make_import_fixup): Cast printf arg, rel->address to long rather
2723 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2725 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2727 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2728 defines BufferSize. Increase buffer size by one.
2730 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2732 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2734 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2736 * configure.tgt: Add arm-openbsd target.
2738 2001-09-12 H.J. Lu <hjl@gnu.org>
2740 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2742 (ALL_64_EMULATIONS): Here.
2743 * Makefile.in: Regenerated.
2745 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2747 * emultempl/pe.em(make_import_fixup): change signature to
2748 take asection as well as arelec; we need this for proper
2749 error reporting. Only call pe_create_import_fixup() if
2750 there is no attempt to add a constant addend to the reloc;
2751 otherwise, report error condition.
2752 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2753 since final argument is a pointer to make_import_fixup().
2754 Change call to cb() to match make_import_fixup() signature.
2755 (make_import_fixup_mark): make buffer_len unsigned.
2756 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2758 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2760 * ld.texinfo: add verbose documentation for auto-import
2761 direct-addressing workaround, to compliment the terse
2764 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2766 * scripttempl/v850.sc: Add gcc_except_table sections.
2768 2001-09-11 Jeffrey A Law (law@cygnus.com)
2770 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2771 * emulparams/h8300self.sh: Similarly.
2773 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2775 * ld.texinfo (Options, --stack): Correct default value for stack
2778 2001-09-05 Tom Rix <trix@redhat.com>
2780 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2782 2001-09-03 Andreas Jaeger <aj@suse.de>
2784 * emultempl/beos.em: Declare prototypes for comparions functions,
2787 2001-09-02 Andreas Jaeger <aj@suse.de>
2789 * emultempl/aix.em: Add missing prototype.
2790 * emultempl/lnk960.em: Likewise.
2791 * emultempl/vanilla.em: Likewise.
2792 * emultempl/armcoff.em: Likewise.
2793 * emultempl/armelf_oabi.em: Likewise.
2794 * emultempl/beos.em: Likewise.
2795 * emultempl/gld960c.em: Likewise.
2796 * emultempl/gld960.em: Likewise.
2798 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2799 for prototype declaration.
2801 2001-08-31 Eric Christopher <echristo@redhat.com>
2802 Jason Eckhardt <jle@redhat.com>
2804 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2806 2001-08-31 Andreas Jaeger <aj@suse.de>
2808 * emultempl/pe.em: Add missing prototypes.
2809 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2810 pe_find_data_imports.
2811 (pr_sym): Add unused attribute.
2813 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2815 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2816 default from coff to elf.
2818 2001-08-29 Jeff Law <law@redhat.com>
2820 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2822 * emulparams/h8300self.sh: Similarly.
2824 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2826 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2828 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2829 * configure.tgt (h8300-*-elf*): New case.
2830 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2831 * emulparams/h8300self.sh: New file.
2832 * Makefile.in: Regenerated.
2834 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2836 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2839 2001-08-27 Linus Nordberg <linus@swox.com>
2840 Alan Modra <amodra@bigpond.net.au>
2842 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2843 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2845 * Makefile.in: Regenerate.
2846 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2847 entries to correct alphabetical position.
2848 * emulparams/elf64ppc.sh: New.
2849 * emulparams/elf64lppc.sh: New.
2851 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2853 * ldmain.c (main): Declare BSIZE as static.
2855 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2857 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2858 into .rel.dyn resp. .rela.dyn if combreloc.
2859 (get_script): If .x linker script is equal to .xn, only put it
2860 once into the binary.
2861 Add .xc and .xsc scripts.
2862 (parse_args): Handle -z combreloc and -z nocombreloc.
2863 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2864 For .xc and .xsc scripts put all .rel* or .rela* input sections
2865 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2866 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2868 Strip trailing whitespace from script.
2869 Generate .xc and .xsc scripts if requested.
2870 * ldmain.c (main): Initialize link_info.combreloc and
2871 link_info.spare_dynamic_tags.
2872 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2873 (ld_options): Add --spare-dynamic-tags option.
2874 (parse_args): Likewise.
2875 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2876 * ldint.texinfo: Document .xc and .xsc linker scripts.
2877 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2879 2001-08-22 H.J. Lu <hjl@gnu.org>
2881 * emulparams/elf32fr30.sh: Add a newline.
2883 2001-08-21 Andreas Jaeger <aj@suse.de>
2885 * deffilep.y: Add missing prototypes.
2886 * pe-dll.c: Likewise.
2888 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2890 * ldlang.c (insert_pad): Fix typos in last patch.
2892 * ldlang.c: When traversing lang_statement_union_type lists,
2893 consistently use "header.next" rather than "next".
2894 * mpw-eppcmac.c: Likewise.
2895 * emultempl/beos.em: Likewise.
2896 * emultempl/hppaelf.em: Likewise.
2897 * emultempl/pe.em: Likewise.
2898 * ldlang.h (union lang_statement_union): Remove "next" field.
2900 * ldlang.c (insert_pad): Use offsetof macro.
2901 (lang_size_sections): Always neuter padding statements.
2902 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2904 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2905 passed to lang_size_sections.
2906 (pe_exe_fill_sections): Likewise.
2907 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2908 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2910 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2912 * emultempl/aix.em: Formatting fixes.
2914 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2916 * ldlang.c (insert_pad): Make use of an existing pad statement if
2917 available. Move code calculating alignment, adjusting section
2918 alignment power, and adjusting dot to ..
2919 (size_input_section): .. here. Remove unused relax param.
2920 (lang_size_sections): Change boolean `relax' param to boolean *.
2921 Adjust call to size_input_section. Make use of insert_pad to
2922 place pad after the assignment statement. If relaxing, zap
2924 (reset_memory_regions): Reset output_bfd section sizes too.
2925 (relax_again): Move to..
2926 (lang_process): ..here. Adjust call to lang_size_sections, and
2927 remove duplicated code.
2928 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2930 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2932 * ld.texinfo: Document that fill values now use the four least
2934 * emulparams/elf32fr30.sh (NOP): Update.
2935 * emulparams/elf32mcore.sh: Likewise.
2936 * emulparams/elf64_s390.sh: Likewise.
2937 * emulparams/elf_i386.sh: Likewise.
2938 * emulparams/elf_i386_be.sh: Likewise.
2939 * emulparams/elf_i386_chaos.sh: Likewise.
2940 * emulparams/elf_i386_ldso.sh: Likewise.
2941 * emulparams/elf_s390.sh: Likewise.
2942 * emulparams/elf_x86_64.sh: Likewise.
2943 * emulparams/i386moss.sh: Likewise.
2944 * emulparams/i386nw.sh: Likewise.
2945 * emulparams/m68kelf.sh: Likewise.
2946 * scripttempl/elf.sc: Update NOP comment.
2947 * scripttempl/elfi370.sc: Likewise.
2948 * scripttempl/elfm68hc11.sc: Likewise.
2949 * scripttempl/elfm68hc12.sc: Likewise.
2950 * scripttempl/nw.sc: Likewise.
2952 2001-08-15 Tom Rix <trix@redhat.com>
2954 * ldgram.y (saved_script_handle): Initialize to NULL.
2955 * ldmain.c (main): Change check on saved_script_handle.
2957 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2959 * emultempl/elf32.em: Formatting fixes.
2960 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2961 looking at sec->owner.
2962 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2963 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2964 unused code, and reorganize orphan section placement code.
2966 * ldlang.c (wild_doit): Rename to lang_add_section.
2967 * ldlang.h: Here too.
2968 * mpw-elfmips.c: And here.
2969 * emultempl/beos.em: And here.
2970 * emultempl/elf32.em: And here.
2971 * emultempl/hppaelf.em: And here.
2972 * emultempl/pe.em: And here.
2974 2001-08-13 Richard Henderson <rth@redhat.com>
2976 * emultempl/needrelax.em: New file.
2977 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2978 * Makefile.am (eelf64_ia64.c): Depend on it.
2979 * Makefile.in: Rebuild.
2981 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2983 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2984 output_section is set non-NULL.
2986 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2987 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2988 needlessly create an output_section_statement. Treat a correctly
2989 named output_section_statement with NULL bfd_section as compatible.
2991 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2993 * emultempl/generic.em: Support EXTRA_EM_FILE.
2994 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2995 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2996 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2997 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2998 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2999 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3000 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3001 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3002 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3003 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3005 2001-08-12 Richard Henderson <rth@redhat.com>
3007 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3008 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3009 scripttempl/v850.sc: Keep .jcr data.
3011 2001-08-12 H.J. Lu <hjl@gnu.org>
3012 Andrew Haley <aph@cambridge.redhat.com>
3013 Nick Clifton <nickc@redhat.com>
3015 * ldgram.y (had_script): Change name to saved_script_handle.
3016 Change type to file handle.
3017 * ld.h (had_script): Rename and retype.
3018 * ldfile.c (ldfile_open_command_file): Save the file handle
3019 used in saved_script_handle.
3020 * lexsup.c (parse_args): Do not allow -c option to alter
3021 saved_script_handle.
3022 * ldmain.c (main): Print out the linker script used if
3023 --verbose is given. Check saved_script_handle to obtain the
3024 external linker script used, or if NULL, dump the builtin
3026 * ld.texinfo: Document that --verbose now dumps the linker
3027 script used, regardless of whether it was an internal or an
3030 2001-08-10 Andreas Jaeger <aj@suse.de>
3032 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3034 * configure: Regenerate.
3036 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3038 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3040 * scripttempl/elf.sc: Move non-text .dynamic section before
3041 .plt/.got/.sdata* group.
3042 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3043 (OTHER_SDATA_SECTIONS): Add.
3044 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3046 * emulparams/crislinux.sh: Likewise.
3047 * emulparams/elf32b4300.sh: Likewise.
3048 * emulparams/elf32bmip.sh: Likewise.
3049 * emulparams/elf32bmipn32.sh: Likewise.
3050 * emulparams/elf32bsmip.sh: Likewise.
3051 * emulparams/elf32btsmip.sh: Likewise.
3052 * emulparams/elf32ebmip.sh: Likewise.
3053 * emulparams/elf32elmip.sh: Likewise.
3054 * emulparams/elf32l4300.sh: Likewise.
3055 * emulparams/elf32lmip.sh: Likewise.
3056 * emulparams/elf32lsmip.sh: Likewise.
3057 * emulparams/elf32ltsmip.sh: Likewise.
3058 * emulparams/elf64bmip.sh: Likewise.
3059 * emulparams/elf64btsmip.sh: Likewise.
3060 * emulparams/elf64ltsmip.sh: Likewise.
3062 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3064 * genscripts.sh: Source the emulparams script before each output
3065 script is generated so that variables like `RELOCATING' may affect
3066 variables defined in the emulparams script.
3068 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3070 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3073 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3074 ie. iterate over wild_statement.section_list.
3075 (gld${EMULATION_NAME}_place_orphan): Likewise.
3077 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3079 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3080 .fini[0-4] sections used by _exit
3081 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3082 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3083 * scripttempl/elfm68hc11.sc: Likewise.
3085 2001-08-03 H.J. Lu <hjl@gnu.org>
3087 * emultempl/beos.em (init): Add the missing initialization.
3089 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3091 * ld.texinfo (Input Section Basics): Clarify ordering of output
3093 * ldlang.c (callback_t): Add wildcard_list param.
3094 (walk_wild_section): Remove "section" param. Rewrite for
3095 lang_wild_statement_type change. Remove unique_section_p test.
3096 (walk_wild_file): Remove "section" param.
3097 (walk_wild): Remove "section" and "file" params.
3098 (lang_gc_wild): Likewise.
3099 (wild): Likewise. Modify for lang_wild_statement_type change.
3100 (wild_sort): Likewise. Add "sec" param.
3101 (gc_section_callback): Likewise.
3102 (output_section_callback): Likewise. Do unique_section_p test.
3103 (map_input_to_output_sections): Modify call to wild.
3104 (lang_gc_sections_1): Likewise.
3105 (print_wild_statement): Modify for lang_wild_statement_type
3107 (lang_add_wild): Replace filename, filenames_sorted param with
3108 filespec. Replace section_name, sections_sorted,
3109 exclude_filename_list with section_list.
3110 * ldlang.h (lang_add_wild): Here too.
3111 (lang_wild_statement_type): Replace section_name, sections_sorted,
3112 and exclude_filename_list with section_list.
3113 * ldgram.y (current_file): Delete.
3114 (%union): Add wildcard_list.
3115 (file_NAME_list): Set type to wildcard_list. Build a linked list
3116 rather than calling lang_add_wild for each entry.
3117 (input_section_spec_no_keep): Call lang_add_wild here instead.
3118 * ld.h (struct wildcard_list): Declare.
3119 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3121 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3123 * ldmain.c (main): initialize link_info.pei386_auto_import
3124 * pe-dll.c: new tables for auto-export filtering
3125 (auto_export): change API, pass abfd for contextual filtering.
3126 Loop thru tables of excluded symbols instead of comparing
3129 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3131 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3132 static variable current_sec (static struct sec *). Add
3133 forward declaration for add_bfd_to_link.
3134 (process_def_file): Don't export undefined symbols. Do not
3135 export symbols starting with "_imp__". Call auto_export()
3137 (pe_walk_relocs_of_symbol): New function.
3138 (generate_reloc): add optional extra debugging
3139 (pe_dll_generate_def_file): eliminate extraneous initial blank
3141 (make_one): enlarge symtab to make room for __nm__ symbols
3142 (DATA auto-import support).
3143 (make_singleton_name_thunk): New function.
3144 (make_import_fixup_mark): New function.
3145 (make_import_fixup_entry): New function.
3146 (pe_create_import_fixup): New function.
3147 (add_bfd_to_link): Specify that 'name' argument is a CONST
3149 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3150 declare new functions pe_walk_relocs_of_symbol and
3151 pe_create_import_fixup.
3152 * emultempl/pe.em: add new options --enable-auto-import,
3153 --disable-auto-import, and --enable-extra-pe-debug.
3154 (make_import_fixup): New function.
3155 (pe_find_data_imports): New function.
3156 (pr_sym): New function.
3157 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3158 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3161 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3163 * ld.texinfo: add additional documentation for
3164 --export-all-symbols. Document --out-implib,
3165 --enable-auto-image-base, --disable-auto-image-base,
3166 --dll-search-prefix, --enable-auto-import, and
3167 --disable-auto-import.
3168 * ldint.texinfo: Add detailed documentation on auto-import
3171 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3173 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3176 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3178 * Makefile.am: Update dependencies with "make dep-am".
3179 * Makefile.in: Regenerate
3181 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3183 * ldcref.c (check_section_sym_xref): New function.
3184 (check_nocrossrefs): Call it.
3185 (check_nocrossref): Interate over h->refs here instead of..
3186 (check_refs): ..here. Pass in the symbol name, section, and bfd
3187 rather than hash_entry pointers.
3188 (struct check_refs_info): Keep symbol name rather than hash entry.
3190 (check_reloc_refs): Tweak for above changes in check_refs_info.
3191 Only report references to section syms when symname is NULL to
3192 prevent duplicate messages for the same reloc.
3194 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3196 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3197 available. Do not print NULL trees.
3198 (exp_print_token): Print unknown tokens with values > 126 as
3199 decimal values not ASCII characters.
3201 * ldlang.c (lang_leave_overlay): If a region is specified assign
3202 it to all sections inside the overlay unless they have been
3203 assigned to the own, non-default, memory region.
3205 * README: Add header for consistency with other README files.
3207 2001-07-14 H.J. Lu <hjl@gnu.org>
3209 * emultempl/elf32.em (output_prev_sec_find): Never return
3210 bfd_abs_section_ptr, bfd_com_section_ptr nor
3211 bfd_und_section_ptr.
3213 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3215 * Makefile.am (em32relf.c): Change dependency from generic.em to
3217 * Makefile.in: Regenerate.
3219 2001-07-14 matthew green <mrg@eterna.com.au>
3221 * configure.tgt (i386-*-netbsdelf*): New target.
3222 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3224 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3226 * emultempl/elf32.em (output_prev_sec_find): New.
3227 (place_orphan): Use it.
3229 2001-07-11 H.J. Lu <hjl@gnu.org>
3231 * ldmain.c (main): Fix typos in the last change.
3233 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3235 * ldmain.c (main): Disallow -F and -f without -shared.
3237 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3239 * emultempl/pe.em (after_open): Check for the output_bfd not
3240 having any coff_data structure allocated to it.
3242 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3244 * emultempl/elf32.em: Do not assuming that contents of the buffer
3245 returned from basename function will remain unchanged accross other
3248 2001-07-03 H.J. Lu <hjl@gnu.org>
3250 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3251 2001-07-03. It creates dynamic entries even for static binaries.
3253 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3255 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3256 (DYNAMIC): Use it to reserve few dynamic entries for
3259 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3261 * emulparams/hppa64linux.sh: New file.
3262 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3263 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3264 (ehppa64linux.c): Add rule to make it.
3266 * Makefile.in: Regenerate.
3268 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3270 * ld.texinfo (Options, -r): Mention restrictions when using
3271 different object formats.
3273 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3275 * ldlang.c (lang_check): Emit fatal error if relocatable link
3276 between different object flavours with relocations in input.
3278 2001-06-19 H.J. Lu <hjl@gnu.org>
3280 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3281 (--version-script): Mention the language support.
3283 2001-06-19 H.J. Lu <hjl@gnu.org>
3285 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3287 2001-06-18 H.J. Lu <hjl@gnu.org>
3289 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3290 (diststuff): Add $(MANS).
3291 * Makefile.in: Regenerated.
3295 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3297 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3298 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3299 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3300 * ld.h (args_type): Remove member export_dynamic. All users
3301 changed to use struct bfd_link_info member.
3303 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3304 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3305 * Makefile.in: Regenerate.
3307 2001-06-18 H.J. Lu <hjl@gnu.org>
3309 * ldlang.c (init_os): Add the newline to the einfo call.
3310 (lang_check): Likewise.
3311 (lang_do_version_exports_section): Likewise.
3313 2001-06-15 H.J. Lu <hjl@gnu.org>
3315 * lexsup.c (parse_args); Save optind to report unrecognized
3318 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3320 * ldlang.c (lang_check): Emit fatal error if relocatable link
3321 between different object flavours.
3323 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3324 Set new link_info member export_dynamic.
3325 * ldmain.c (main): Initialize new link_info member export_dynamic.
3327 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3329 * ldlang.c (walk_wild): Only call walk_wild_file if
3330 lookup_name returns something.
3331 (lookup_name): If load_symbols fails, return NULL.
3332 (load_symbols): Change to a boolean function.
3333 (open_input_bfds): If load_symbols fails then do not make the
3336 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3338 * ldlang.c (record_bfd_errors): Remove.
3340 * emultempl/aix.em: Fix copyright dates.
3342 2001-06-07 Andreas Jaeger <aj@suse.de>
3344 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3345 (TEXT_START_ADDR): Likewise.
3347 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3349 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3351 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3353 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3355 2001-05-31 H.J. Lu <hjl@gnu.org>
3357 * ldlang.c (open_input_bfds): Don't change the bfd error
3358 handler whilst loading symbols.
3360 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3362 * configure.tgt: Remove i370-mvs architecture, it is not currently
3365 2001-05-25 H.J. Lu <hjl@gnu.org>
3367 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3368 like emulparams/aixppc.sh.
3370 2001-05-25 H.J. Lu <hjl@gnu.org>
3372 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3373 setting of output_filename after bfd_scan_arch.
3374 * emultempl/pe.em: Likewise.
3376 2001-05-25 H.J. Lu <hjl@gnu.org>
3378 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3379 like emulparams/aixppc.sh.
3381 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3382 instead of ${srcdir}/emultempl/stringify.sed.
3384 2001-05-25 Timothy Wall <twall@oculustech.com>
3386 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3389 2001-05-25 Alan Modra <amodra@one.net.au>
3391 * configure.host: Replace linuxoldld with linux*oldld.
3392 * configure.tgt: Likewise.
3394 2001-05-24 H.J. Lu <hjl@gnu.org>
3396 * emultempl/stringify.sed: Removed again.
3398 2001-05-24 H.J. Lu <hjl@gnu.org>
3400 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3401 (gld${EMULATION_NAME}_before_parse): Initialize
3402 ldfile_output_architecture, ldfile_output_machine and
3403 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3404 * emultempl/beos.em: Likewise.
3405 * emultempl/elf32.em: Likewise.
3406 * emultempl/linux.em: Likewise.
3407 * emultempl/mipsecoff.em: Likewise.
3408 * emultempl/pe.em: Likewise.
3409 * emultempl/sunos.em: Likewise.
3411 2001-05-24 Tom Rix <trix@redhat.com>
3413 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3414 udate import file format.
3415 (change_symbol_mode) New, same
3416 (is_syscall) New, same
3417 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3418 * emulparams/aixppc64.sh : same
3419 * emulparams/aixrs6.sh : same
3420 * emulparams/ppcmacos.sh : same
3421 * emultempl/aix.em : use strtoull to parse options
3422 * Makefile.am : add eaixppc64 emulation for xcoff64
3423 * Makefile.in : same
3424 * configure.tgt : same
3426 * scripttempl/aix.sc : default text section offset to 0x10000000
3427 default data section offset to 0x20000000
3428 add .sv3264 and .sv64 pseudo sections
3429 loader and debug sections use the currect section offset.
3431 * emultempl/aix.em : Add xcoff64 support
3432 Add -binitfini support
3433 (gld${EMULATION_NAME}_before_parse) -binitfini
3434 (gld${EMULATION_NAME}_parse_args) same
3435 (gld${EMULATION_NAME}_before_allocation) format change for special
3438 * emulparams/aixppc64.sh : New file for xcoff64 support
3440 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3442 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3443 variable to avoid non-portable shell construct.
3445 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3447 * ldmain.c (get_emulation): Add -mips5 command line argument.
3449 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3451 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3452 (ELF_INTERPRETER_NAME): Define it.
3453 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3455 * configure.tgt (targ_emul, targ_extra_emuls)
3456 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3457 as primary, elf_i386 as extra.
3458 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3459 (eelf_i386_ldso.c): New rule.
3460 * Makefile.in: Rebuilt.
3462 2001-05-22 Nick Clifton <nickc@redhat.com>
3464 * lexsup.c (ld_options): Allow -I to be an alias for
3465 --dynamic-linker. This is for Solaris compatability.
3466 * ld.texinfo: Document that -I can be used.
3469 2001-05-16 Alan Modra <amodra@one.net.au>
3471 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3472 whether an input section is the first one assigned to an output
3474 Assorted formatting fixes.
3476 2001-05-14 DJ Delorie <dj@delorie.com>
3478 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3479 * Makefile.in: Ditto.
3481 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3483 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3484 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3486 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3488 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3490 * ldlang.c (lang_process): Call bfd_merge_sections.
3492 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3494 * ldgram.y: Fix typo.
3496 2001-05-03 H.J. Lu <hjl@gnu.org>
3498 * emultempl/elf32.em: Include "libiberty.h".
3499 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3500 basename of the bfd filename.
3501 (gld${EMULATION_NAME}_stat_needed): Likewise.
3502 (gld${EMULATION_NAME}_try_needed): Likewise.
3503 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3505 2001-05-02 H.J. Lu <hjl@gnu.org>
3507 * emultempl/pe.em: Include <ctype.h>.
3509 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3511 * emulparams/elf32openrisc.sh: New file.
3513 * Makefile.am: Add OpenRISC target.
3514 * Makefile.in: Regenerated.
3516 * configure.tgt: Add openrisc-*-* mapping.
3518 2001-05-02 Nick Clifton <nickc@redhat.com>
3520 * emultempl/aix.em: Replace buystring with xstrdup.
3521 * emultempl/beos.em: Replace buystring with xstrdup.
3523 2001-05-02 H.J. Lu <hjl@gnu.org>
3525 * ldfile.c: Include "libiberty.h".
3526 * ldlex.l: Likewise.
3528 * ldmisc.c (buystring): Removed.
3529 * ldmisc.h: Likewise.
3531 * ldfile.c: Replace buystring with xstrdup.
3532 * ldlang.c: Likewise.
3533 * ldlex.l: Likewise.
3534 * ldmain.c: Likewise.
3535 * ldmisc.c: Likewise.
3536 * lexsup.c: Likewise.
3537 * mpw-eppcmac.c: Likewise.
3539 2001-04-30 Andreas Jaeger <aj@suse.de>
3541 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3543 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3545 * ldlang.c (load_symbols): Give emulation a chance
3546 to process unrecognized file before fatal error is
3547 reported, not after.
3549 2001-04-27 Sean McNeil <sean@mcneil.com>
3551 * configure.tgt: Add arm-vxworks target.
3552 * scripttempl/armcoff.sc: Support .text or .data as a section name
3556 2001-04-13 J.T. Conklin <jtc@redback.com>
3558 * ld.texinfo: Document --fatal-warnings.
3561 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3562 warnings have been turned into errors.
3563 * lexsup.c (OPTION_WARN_FATAL): Define.
3564 (ld_options): Entry for --fatal-warnings.
3565 (parse_args): Handle OPTION_WARN_FATAL.
3566 * ld.h (ld_config_type): Add fatal_warnings field.
3568 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3570 * ldmain.c (main): Default to discard_sec_merge.
3571 * lexsup.c (OPTION_DISCARD_NONE): Define.
3572 (ld_options): Add --discard-none.
3573 (parse_args): Handle OPTION_DISCARD_NONE.
3574 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3575 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3576 all its input sections match.
3578 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3580 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3581 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3582 (eelf32ltsmip.c): New target.
3583 (eelf64btsmip.c): Likewise.
3584 (eelf64ltsmip.c): Likewise.
3585 * Makefile.in: Regenerated.
3587 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3589 (mips*-*-linux-gnu*): Likewise.
3591 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3593 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3595 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3598 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3600 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3601 correct value of __Stext here.
3602 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3605 * emulparams/crislinux.sh: Remove FIXME.
3607 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3609 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3610 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3612 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3614 * configure.tgt (cris-*-*): Change default emulation to criself.
3615 (cris-*-*aout*): New rule.
3617 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3619 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3620 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3622 2001-03-26 Andreas Jaeger <aj@suse.de>
3624 * ld.texinfo (Overview): Fix syntax in texi code.
3626 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3628 * ld.texinfo: Put @c man indications to generate the ld man page.
3629 When generating man, define all the variables. Define SEEALSO
3630 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3631 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3632 (ld.1): Generate from ld.texinfo.
3633 * Makefile.in: Regenerate.
3635 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3637 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3638 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3640 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3642 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3643 is an absolute path look only for this file and not along the path.
3645 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3647 * emultempl/elf32.em (OPTION_GROUP): New macro.
3648 Add new option Bgroup to longopts.
3649 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3650 (gld*_list_options): Add -Bgroup and -z defs.
3651 * ld.1: Document -Bgroup and -z defs.
3652 * ld.texinfo: Likewise.
3654 2001-03-07 Michael Meissner <meissner@redhat.com>
3656 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3657 with sections created by -fdata-sections.
3658 (.dynbss,.bss): Ditto.
3660 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3662 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3663 after_allocation_default, not gld..._before_allocation.
3665 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3667 * configure.in (BFD_VERSION): New.
3668 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3669 * configure: Regenerate.
3670 * Makefile.am: Run "make dep-am"
3671 * Makefile.in: Regenerate.
3673 2001-02-26 Timothy Wall <twall@cygnus.com>
3675 * emulparams/elf64_aix.sh: Add additional read-only sections;
3676 uncomment lines which are now required.
3678 2001-02-26 H.J. Lu <hjl@gnu.org>
3680 * ldlang.c (open_input_bfds): Set the bfd error handler so
3681 that problems can be caught whilst loading symbols.
3682 (record_bfd_errors): New function: Report BFD errors and mark
3683 the executable output as being invalid.
3685 2001-02-22 Timothy Wall <twall@cygnus.com>
3687 * configure.host: Add configuration for ia64-*-aix*.
3688 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3689 Add dependencies for eelf64_aix.c.
3690 * Makefile.in: Regenerate.
3691 * configure.tgt: Add ia64-*-aix* mapping.
3692 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3694 2001-02-20 H.J. Lu <hjl@gnu.org>
3696 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3697 false if we found the file.
3699 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3701 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3702 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3704 2001-02-18 lars brinkhoff <lars@nocrew.org>
3706 * Makefile.am: Add PDP-11 target.
3707 * configure.tgt: Likewise.
3708 * emulparams/pdp11.sh: New file.
3710 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3712 * configure.host: Add a generic FreeBSD configuration entry such that
3713 all [modern] FreeBSD systems on all platforms will look the same.
3715 2001-02-14 H.J. Lu <hjl@gnu.org>
3717 * configure.tgt: Remove mention of earmelf_linux26.
3719 2001-02-13 Richard Henderson <rth@redhat.com>
3721 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3723 2001-02-13 H.J. Lu <hjl@gnu.org>
3725 * ldexp.h (node_type): Add etree_provided.
3726 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3727 type to etree_provided if defined by PROVIDE. Allow updating
3729 (exp_print_tree): Handle etree_provided.
3730 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3733 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3735 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3736 .IA_64.unwind.* pattern to unwind table section and
3737 .IA_64.unwind_info* pattern to unwind info section.
3739 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3741 * Makefile.am: Add linux target for S/390.
3742 * Makefile.in: Likewise.
3743 * configure.host: Likewise.
3744 * configure.tgt: Likewise.
3745 * emulparams/elf64_s390.sh: New file.
3746 * emulparams/elf_s390.sh: New file.
3748 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3750 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3752 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3754 2001-02-06 Philip Blundell <philb@gnu.org>
3756 * Makefile.am: Remove mention of earmelf_linux26.
3757 * Makefile.in: Regenerate.
3759 2001-02-04 Philip Blundell <philb@gnu.org>
3761 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3762 * emulparams/armelf_linux26.sh: Delete.
3763 * configure.tgt: Remove mention of armelf_linux26 emulation.
3765 2001-02-01 Nick Clifton <nickc@redhat.com>
3767 * ld.1: Replace occurances of -oformat with --oformat.
3769 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3771 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3772 load_base is specified.
3774 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3776 * emultempl/elf32.em: Correct spelling in comments and listed
3779 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3781 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3782 default for the first section of a group of overlay sections.
3784 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3786 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3787 * Makefile.in: Regenerate.
3788 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3789 Check for null tool_dir.
3791 2001-01-16 Jim Wilson <wilson@redhat.com>
3793 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3794 and IA_64.unwind.info.
3796 2001-01-16 H.J. Lu <hjl@gnu.org>
3798 * ldlang.c (lang_check): Merge the private data only if the
3799 input file has contents.
3801 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3803 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3805 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3806 enabling search for libmilli. On a relocatable link, make .text
3808 (LDEMUL_AFTER_PARSE): Define.
3809 (hppaelf_finish): Correct spelling of relocatable in comments.
3811 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3812 rummage through the script for sections on the unique list.
3813 Correct length of strncmp for ".note".
3814 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3816 * ldlang.c (unique_section_list): New var.
3817 (unique_section_p): New function.
3818 (walk_wild_section): Don't match sections on unique_section_list.
3819 (lang_add_unique): New function.
3820 Correct spelling of relocatable in comments.
3822 * ldlang.h (struct unique_sections): Declare.
3823 (unique_section_list): Declare.
3824 (unique_section_p): Declare.
3825 (lang_add_unique): Declare.
3827 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3828 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3830 * ld.texinfo (--unique): Update.
3832 2001-01-13 Nick Clifton <nickc@redhat.com>
3834 * lexsup.c (parse_args): Remove spurious white space.
3836 2001-01-12 Nick Clifton <nickc@redhat.com>
3838 * lexsup.c (parse_args): Update copyright date.
3840 2001-01-12 Philip Blundell <pb@futuretv.com>
3842 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3844 2001-01-10 Kazu Hirata <kazu@hxi.com>
3846 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3847 * scripttempl/h8300h.sc: Fix formatting.
3848 * scripttempl/h8300s.sc: Likewise.
3849 * scripttempl/h8500.sc: Likewise.
3850 * scripttempl/h8500b.sc: Likewise.
3851 * scripttempl/h8500c.sc: Likewise.
3852 * scripttempl/h8500m.sc: Likewise.
3853 * scripttempl/h8500s.sc: Likewise.
3855 2000-01-07 David O'Brien <obrien@BSDi.com>
3857 * emultempl/elf32.em: Only perform Linux ld hints processing when
3860 2001-01-07 Philip Blundell <philb@gnu.org>
3862 * ld.texinfo (Bug Reporting): Update email address for reports.
3864 2000-12-31 Nick Clifton <nickc@redhat.com>
3866 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3867 options by checking for a return value of '?' not -1.
3869 2000-12-28 Nick Clifton <nickc@redhat.com>
3871 * lexsup.c (struct ld_option): Add new enum value:
3873 (ld_options[]): Change -omagic, -output and -oformat options
3874 to be EXACTLY_TWO_DASHES.
3875 (OUTPUT_COUNT): Use ARRAY_SIZE.
3876 (parse_args): Change parameter 'argc' to unsigned.
3877 Place EXACTLY_TWO_DASHES options into new really_longopts
3879 If getopt_long_only fails, try calling getopt_long using the
3880 really_longopts array.
3881 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3884 * ldlex.h: Fix prototype of parse_args.
3886 * ld.texinfo: Document that long options starting with 'o'
3887 must be preceeded by two dashes. Change example of a single
3888 dashed long option from -oformat to -trace-symbol.
3890 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3892 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3893 (longopts[]): New --no-default-excludes option.
3894 (gld_${EMULATION_NAME}_list_options): Document.
3895 (gld_${EMULATION_NAME}_parse_args): Handle.
3897 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3899 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3900 whitespace, it breaks the K&R C preprocessor.
3902 2000-12-11 DJ Delorie <dj@redhat.com>
3904 * ld.texinfo: Add notes about --whole-archive and gcc.
3906 2000-11-18 Fred Fish <fnf@be.com>
3908 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3909 (ld_options): Entry for --allow-shlib-undefined.
3910 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3911 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3913 * ld.texinfo: Document new command line switch.
3915 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3917 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3918 .fixup is actually read/write.
3919 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3920 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3921 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3923 2000-12-11 Jan Hubicka <jh@suse.cz>
3925 * NEWS: Add note about x86_64 architecture.
3927 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3929 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3930 Set DWARF2 sections to a VMA of zero.
3932 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3934 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3936 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3937 (sparc*-*-rtems*): Switched from a.out to ELF.
3939 2000-11-30 Jan Hubicka <jh@suse.cz>
3941 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3942 (eelf_x86_64.c): New.
3943 * Makefile.in: Regenerate.
3944 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3945 * emulparams/elf_x86_64.sh: New.
3947 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3949 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3950 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3952 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3953 merging non-a.out sections into CONSTRUCTING.
3955 2000-11-28 Nick Clifton <nickc@redhat.com>
3957 * ld.1 (COPYING): Mention that the GNU Free Documentation
3958 License is present in the sources, but not the output, and
3959 also available from the GNU website.
3960 (GNU Free Documentation License): Comment out this section.
3962 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3964 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3967 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3969 * ld.1: Remove old date so it does not give the impression the manpage
3972 2000-11-24 Nick Clifton <nickc@redhat.com>
3974 * configure.tgt (xscale-coff): Add target.
3975 (xscale-elf): Add target.
3977 2000-11-24 Fred Fish <fnf@be.com>
3979 * ldmain.c (main): Remove redundant init of config.make_executable
3982 2000-11-15 Richard Henderson <rth@redhat.com>
3984 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3986 2000-11-14 Kazu Hirata <kazu@hxi.com>
3988 * scripttempl/h8300.sc: Fix formatting.
3989 * scripttempl/h8300h.sc: Likewise.
3990 * scripttempl/h8300s.sc: Likewise.
3992 2000-11-14 Denis Chertykov <denisc@overta.ru>
3994 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3996 2000-11-09 Philip Blundell <pb@futuretv.com>
3998 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3999 around orphan sections whose names can be represented in C.
4001 2000-11-07 Jim Wilson <wilson@redhat.com>
4003 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4004 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4006 2000-11-06 Nick Clifton <nickc@redhat.com>
4008 * ld.texinfo: Add GNU Free Documentation License.
4009 * ldint.texinfo: Add GNU Free Documentation License.
4010 * ld.1: Add GNU Free Documentation License.
4012 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4014 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4015 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4017 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4018 Move 2000-11-02 Makefile.in changes to this file.
4019 * Makefile.in: Regenerate.
4021 2000-11-03 Nick Clifton <nickc@redhat.com>
4023 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4024 constructors and destructors.
4025 * scripttempl/h8300h.sc: Ditto.
4026 * scripttempl/h8300s.sc: Ditto.
4027 * scripttempl/h8500.sc: Ditto.
4028 * scripttempl/h8500b.sc: Ditto.
4029 * scripttempl/h8500c.sc: Ditto.
4030 * scripttempl/h8500m.sc: Ditto.
4031 * scripttempl/h8500s.sc: Ditto.
4032 * scripttempl/v850.sc: Ditto.
4033 * scripttempl/w65.sc: Ditto.
4034 * scripttempl/z8000.sc: Ditto.
4036 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4038 * Makefile.in (e_i386_chaos.c): New rule.
4039 (ALL_EMULATIONS): Added e_i386_chaos.o.
4040 * emulparams/elf_i386_chaos.sh: New file.
4041 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4043 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4045 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4046 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4047 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4048 library path suffix.
4049 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4051 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4053 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4054 for consecutive sections.
4056 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4058 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4060 * ld.texinfo: Added notes about this new option.
4062 2000-10-16 Nick Clifton <nickc@redhat.com>
4064 * emultempl/pe.em (_after_open): Add tests of return values from
4065 bfd functions. Emit appropriate error messages if necessary.
4067 2000-10-13 Nick Clifton <nickc@redhat.com>
4069 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4070 local variables - they are not used, but leave in the call to
4071 bfd_canonicalize_symtab.
4072 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4073 pe_dll_search_prefix.
4075 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4077 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4078 (longopts): New --dll-search-prefix option.
4079 (gld_${EMULATION_NAME}_list_options): Document.
4080 (gld_${EMULATION_NAME}_parse_args): Handle.
4081 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4082 dynamically, search for a dll named '<prefix><basename>.dll'
4083 in preference to 'lib<basename>.dll' if --dll-search-prefix
4086 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4088 * ldlang.c (section_already_linked): Set kept_section instead of
4091 2000-10-10 Kazu Hirata <kazu@hxi.com>
4093 * deffile.h: Fix formatting.
4094 * lexsup.c: Likewise.
4097 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4099 * pe-dll.c (make_one): Do not generate code thunk for DATA
4101 (process_def_file): deduce DATA flag for auto-export sumbols.
4103 2000-10-09 Kazu Hirata <kazu@hxi.com>
4105 * ld.h: Fix formatting.
4106 * ldcref.c: Likewise.
4107 * ldctor.h: Likewise.
4108 * ldemul.c: Likewise.
4109 * ldemul.h: Likewise.
4110 * ldexp.c: Likewise.
4111 * ldexp.h: Likewise.
4112 * ldfile.c: Likewise.
4113 * ldfile.h: Likewise.
4114 * ldlang.c: Likewise.
4115 * ldlang.h: Likewise.
4116 * ldmain.c: Likewise.
4117 * pe-dll.c: Likewise.
4119 * pe-dll.c: Revert some formatting fixes.
4121 2000-10-08 Kazu Hirata <kazu@hxi.com>
4123 * pe-dll.c: Fix formatting.
4125 2000-10-05 Kazu Hirata <kazu@hxi.com>
4127 * ldlang.c: Fix formatting.
4129 2000-10-03 DJ Delorie <dj@redhat.com>
4131 * pe-dll.c (fill_edata): initialize entire block
4132 (make_one): fill in correct section.
4134 2000-10-03 Kazu Hirata <kazu@hxi.com>
4136 * ldexp.c: Fix formatting.
4138 2000-10-02 DJ Delorie <dj@redhat.com>
4140 * emultempl/pe.em (gld_*_after_open): detect case where there two
4141 import libraries for same dll; rename one to ensure proper link
4144 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4146 (generate_edata): fix typo
4148 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4150 * scripttempl/crisaout.sc (ENTRY): Now __start.
4151 (.text): Add default setting for __start.
4152 Remove CONSTRUCTORS handling.
4153 (/DISCARD/): Add .gnu.warning.*.
4154 * emulparams/crislinux.sh (ENTRY): Now __start.
4155 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4156 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4157 (ENTRY): Now __start.
4158 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4159 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4161 2000-09-29 Kazu Hirata <kazu@hxi.com>
4163 * deffile.h: Fix formatting.
4165 * ldcref.c: Likewise.
4166 * ldctor.c: Likewise.
4167 * ldctor.h: Likewise.
4168 * ldemul.c: Likewise.
4169 * ldemul.h: Likewise.
4170 * ldexp.c: Likewise.
4171 * ldexp.h: Likewise.
4172 * ldfile.c: Likewise.
4173 * ldfile.h: Likewise.
4174 * ldlang.c: Likewise.
4175 * ldlang.h: Likewise.
4176 * lexsup.c: Likewise.
4178 * pe-dll.c: Likewise.
4180 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4182 * pe-dll.c (process_def_file): Uninitialized data wasn't
4183 exported with --export-all-symbols switch.
4185 2000-09-28 DJ Delorie <dj@redhat.com>
4187 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4188 noname work properly.
4190 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4192 * ld.texinfo (HPPA ELF32): New section.
4194 * emultempl/hppaelf.em (group_size): New.
4195 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4196 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4197 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4198 options to prevent abbreviations matching.
4199 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4200 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4202 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4204 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4205 on the m68*-*-elf target. Make it support COFF input objects.
4207 2000-09-21 Kazu Hirata <kazu@hxi.com>
4209 * ldmain.c: Fix formatting.
4210 * ldmisc.c: Likewise.
4211 * ldver.c: Likewise.
4212 * ldwrite.c: Likewise.
4214 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4216 * ldwrite.c (clone_section): Silence gcc warnings.
4218 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4220 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4221 out of memory failure.
4223 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4224 (clone_section): Handle out of memory failures. Rename var to
4225 avoid c++ reserved word.
4227 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4229 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4230 stub_name param to stub_sec_name.
4231 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4233 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4235 * emultempl/m68kelf.em: New file.
4236 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4237 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4238 * Makefile.in: Regenerate.
4240 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4242 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4245 2000-09-13 Nick Clifton <nickc@redhat.com>
4247 * ldmain.c (multiple_definition): Disable relaxation if
4248 multiple symbol definitions are encountered - otherwise the
4249 linker could abort with an assertion failure.
4251 2000-09-10 Nick Clifton <nickc@redhat.com>
4253 * mri.c: Fix formatting.
4255 2000-09-07 H.J. Lu <hjl@gnu.org>
4257 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4258 * configure: Rebuild.
4260 2000-09-07 H.J. Lu <hjl@gnu.org>
4262 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4263 * Makefile.in: Rebuild.
4265 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4267 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4268 broken list handling. Create __start_SECNAME and __stop_SECNAME
4269 when no place-holder. Add some comments. Test both SEC_CODE and
4270 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4271 Handle case where no output section statement created.
4273 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4275 * configure.tgt (sh-*-linux*): Added.
4276 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4277 * Makefile.in: Rebuilt.
4278 * emulparams/shelf_linux.sh: New file.
4279 * emulparams/shlelf_linux.sh: New file.
4281 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4283 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4284 try shuffling sections when the orphan happens to be the place
4285 holder. Keep count of unique section names generated so we speed
4286 the search for a new name.
4288 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4290 * configure: Rebuilt with new libtool.m4.
4292 2000-09-05 Nick Clifton <nickc@redhat.com>
4294 * Makefile.in: Regenerate.
4295 * aclocal.m4: Regenerate.
4296 * configure: Regenerate.
4297 * config.in: Regenerate.
4298 * po/ld.pot: Regenerate.
4300 * ldint.texinfo: Remove CVS revision marker - it foils local
4303 * emultempl/ticoff.em: Remove extraneous comma.
4305 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4307 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4308 to stub section flags.
4309 (hppa_for_each_input_file_wrapper): New.
4310 (hppa_lang_for_each_input_file): New.
4311 (lang_for_each_input_file): Define to call above.
4312 (multi_subspace): New.
4313 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4314 (PARSE_AND_LIST_PROLOGUE): Define.
4315 (PARSE_AND_LIST_LONGOPTS): Define.
4316 (PARSE_AND_LIST_OPTIONS): Define.
4317 (PARSE_AND_LIST_ARGS_CASES): Define.
4318 (hppaelf_finish): Call elf32_hppa_set_gp.
4319 (hppaelf_set_output_arch): Remove.
4320 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4322 * emulparams/hppalinux.sh (ELFSIZE): Define.
4324 (OTHER_READONLY_SECTIONS): Define.
4326 (GENERATE_SHLIB_SCRIPT): Define.
4328 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4329 to const throughout. Change `void *' to `PTR' throughout.
4330 (lang_memory_default): Function is local to file, add `static'.
4332 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4333 (ehppalinux.c): Likewise.
4334 (earmelf.c): Likewise.
4335 (earmelf_linux.c): Likewise.
4336 (earmelf_linux26.c): Likewise.
4337 * Makefile.in: Regenerate.
4339 * ld.h (ld_config_type): Add unique_orphan_sections.
4340 * lexsup.c (OPTION_UNIQUE): Define.
4341 (ld_options): Add "--unique".
4342 (parse_args): Handle it.
4343 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4344 search for an existing output section if unique_orphan_sections is
4345 set. Make use of bfd_get_unique_section_name rather than
4346 duplicating code here.
4347 * ld.texinfo: Describe --unique.
4349 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4350 optional arg to split-by-file.
4351 (parse_args): Handle them.
4352 * ld.texinfo: Update description of these options.
4353 * ldwrite.c (clone_section): Pass in the section name. Replace
4354 local code with bfd_get_unique_section_name.
4355 (split_sections): Tidy code and comments. Use a list traversal
4356 more appropriate to the list construction. Handle cooked section
4357 sizes. Split when split_by_reloc reached rather than exceeded.
4358 Track section size and split when split_by_file reached. Fix
4359 link_order_tail (even though it's not used).
4360 (ldwrite): Modify condition for calling split_sections to suit
4361 changed split_by_reloc and split_by_file.
4362 * ldmain.c (main): Init config.split_by_reloc and
4363 config.split_by_file to -1.
4364 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4365 Change split_by_file to bfd_size_type.
4367 2000-09-02 Nick Clifton <nickc@redhat.com>
4369 * configure.in: Increase version number to 2.10.91.
4370 * NEWS: Mention new ability to support removal of duplicate DWARF2
4372 * configure: Regenerate.
4373 * aclocal.m4: Regenerate.
4374 * config.in: Regenerate.
4376 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4378 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4380 * scripttempl/elf32avr.sc: Ditto.
4381 * scripttempl/elfd10v.sc: Ditto.
4382 * scripttempl/elfd30v.sc: Ditto.
4383 * scripttempl/elfi370.sc: Ditto.
4384 * scripttempl/elfm68hc11.sc: Ditto.
4385 * scripttempl/elfm68hc12.sc: Ditto.
4386 * scripttempl/elfi386beos.sc: Ditto.
4387 * scripttempl/v850.sc: Ditto.
4389 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4391 * acinclude.m4: Include libtool and gettext macros from the
4393 * aclocal.m4, configure: Rebuilt.
4395 2000-08-25 Nick Clifton <nickc@redhat.com>
4397 * ldlang.c (open_output): When choosing the target for a
4398 particular endianness, do nothing if the target is not
4401 2000-08-25 H.J. Lu <hjl@gnu.org>
4403 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4404 check -rpath nor LD_RUN_PATH for cross link.
4405 * ld.texinfo: Document the change.
4407 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4409 * NEWS: Mention support for CRIS.
4411 2000-08-23 H.J. Lu <hjl@gnu.org>
4413 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4414 the current runpath list from bfd_elf_get_runpath_list ()
4417 2000-08-22 H.J. Lu <hjl@gnu.org>
4419 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4420 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4421 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4422 trace_file_tries is non-zero.
4423 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4424 if trace_file_tries is non-zero.
4426 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4429 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4431 * NEWS: Mention i860 support.
4433 2000-08-14 Andreas Schwab <schwab@suse.de>
4435 * scripttempl/elf.sc: Fix last change to use correct comment
4438 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4440 * scripttempl/elf.sc: Add a comment giving the correspondence
4441 between sections, per-datum sections, and linkonce sections. Make
4442 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4445 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4447 * emulparams/elf32_i860.sh: New file.
4448 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4449 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4450 (eelf32_i860.c): New rule.
4451 * Makefile.in: Regenerate.
4453 2000-08-10 Nick Clifton <nickc@cygnus.com>
4455 * emulparams/mipspe.sh (ENTRY): Add definition.
4457 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4459 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4462 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4464 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4465 the final size of .bss section.
4466 * scripttempl/elfm68hc12.sc: Likewise.
4468 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4470 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4471 gld${EMULATION_NAME}_parse_args for consistency. Combine
4472 lastoptind and prevoptind vars, and keep track of last optind.
4473 (gld_${EMULATION_NAME}_list_options): Rename to
4474 gld${EMULATION_NAME}_list_options.
4476 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4478 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4479 (i586-sco-sysv5uw7.1.0).
4481 2000-07-27 H.J. Lu <hjl@gnu.org>
4483 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4484 (PARSE_AND_LIST_PROLOGUE): New.
4485 (PARSE_AND_LIST_LONGOPTS): Likewise.
4486 (PARSE_AND_LIST_OPTIONS): Likewise.
4487 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4488 (PARSE_AND_LIST_EPILOGUE): Likewise.
4490 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4492 * emultempl/armelf.em: Elide functions common to elf32.em,
4493 ie. most of the file.
4494 (arm_elf_after_open): New. Do arm specific things then call
4495 gld${EMULATION_NAME}_after_open.
4496 (arm_elf_before_allocation): New. Call
4497 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4498 (PARSE_AND_LIST_PROLOGUE): Define.
4499 (PARSE_AND_LIST_SHORTOPTS): Define.
4500 (PARSE_AND_LIST_LONGOPTS): Define.
4501 (PARSE_AND_LIST_OPTIONS): Define.
4502 (PARSE_AND_LIST_ARGS_CASES): Define.
4503 (LDEMUL_AFTER_OPEN): Define.
4504 (LDEMUL_BEFORE_ALLOCATION): Define.
4505 (LDEMUL_BEFORE_PARSE): Define.
4506 (LDEMUL_FINISH): Define.
4508 * emultempl/hppaelf.em: Similarly zap most of this file.
4509 (hppaelf_add_stub_section): Prototype.
4510 (hppaelf_layaout_sections_again): Prototype.
4511 (hook_in_stub): Prototype.
4512 (LDEMUL_SET_OUTPUT_ARCH): Define.
4513 (LDEMUL_FINISH): Define.
4514 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4516 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4517 (EXTRA_EM_FILE): New.
4518 * emulparams/armelf_linux.sh: Likewise.
4519 * emulparams/armelf_linux26.sh: Likewise.
4520 * emulparams/hppalinux.sh: Likewise.
4521 * emulparams/hppaelf.sh: Likewise.
4524 * emultempl/elf32.em: Fix formatting.
4525 (EXTRA_EM_FILE): Source it.
4526 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4527 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4528 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4529 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4530 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4531 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4532 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4533 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4534 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4535 allow functions in this file to be overridden.
4536 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4538 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4540 * emultempl/elf32.em: Reorganize file.
4542 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4544 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4545 specific option to fit 64-bit executable in the lower
4546 31-bit address range. This is done by changing start
4547 address of .interp (the very first section of executable)
4548 and then setting EF_ALPHA_32BIT elf header flag.
4550 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4552 * emultempl/m68kcoff.em: New file.
4553 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4554 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4556 * Makefile.in: Regenerate.
4558 2000-07-20 H.J. Lu <hjl@gnu.org>
4560 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4561 and "disable-new-dtags" to stop getopt from treating -d/-e as
4562 abbreviations for these options.
4564 2000-07-20 H.J. Lu <hjl@gnu.org>
4566 * ld.texinfo: Add documentation for --disable-new-dtags and
4569 * ldmain.c (main): Initialize link_info.new_dtags to false.
4571 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4572 --disable-new-dtags and --enable-new-dtags.
4573 (gld_${EMULATION_NAME}_list_options): Likewise.
4575 2000-07-05 Kenneth Block <krblock@computer.org>
4577 * lexsup.c: Add optional style to demangle switch
4578 * ld.texinfo: Document optional style to demangle switch.
4580 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4582 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4584 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4585 Regenerate dependencies.
4586 * Makefile.in: Rebuild.
4587 * configure.tgt (cris-*-*): New target.
4588 * emulparams/crisaout.sh, emulparams/criself.sh,
4589 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4590 * po/POTFILES.in, po/ld.pot: Regenerate.
4592 2000-07-20 H.J. Lu <hjl@gnu.org>
4594 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4595 Print out ignored -z options.
4597 2000-07-19 H.J. Lu <hjl@gnu.org>
4599 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4600 (PARSE_AND_LIST_PROLOGUE): New.
4601 (PARSE_AND_LIST_LONGOPTS): Likewise.
4602 (PARSE_AND_LIST_OPTIONS): Likewise.
4603 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4605 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4607 * lexsup.c (ld_options): Comment out 'z'.
4608 (parse_args): Likewise.
4610 * emultempl/elf32.em: Include "elf/common.h".
4611 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4613 (gld_${EMULATION_NAME}_list_options): Likewise.
4615 * ld.texinfo: Add documentation for the recognized -z options.
4617 2000-07-19 H.J. Lu <hjl@gnu.org>
4619 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4620 bfd_elf_set_dt_needed_soname ().
4622 2000-07-18 DJ Delorie <dj@cygnus.com>
4624 * pe-dll.c (pe_dll_id_target): check object target name also
4626 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4628 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4629 ${INIT_END} if relocating.
4630 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4632 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4634 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4635 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4636 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4637 errors introduced by the old dynamic lib search order.
4639 2000-07-17 DJ Delorie <dj@cygnus.com>
4641 * pe-dll.c (process_def_file): auto-export data items also
4642 (pe_process_import_defs): also see if _imp_ form needed
4644 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4646 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4647 for dll import libraries
4649 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4651 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4652 gcc 2.95.2 and later.
4654 2000-07-11 Kazu Hirata <kazu@hxi.com>
4656 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4659 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4661 * ldemul.h (struct lang_input_statement_struct): Remove forward
4663 (struct search_dirs): Likewise.
4664 * ldfile.h (struct lang_input_statement_struct): Likewise.
4665 Protect file from multiple inclusion.
4666 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4667 declaration from macro to file scope.
4669 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4670 * ldgram.y: Likewise here.
4671 * ldlang.c: And here.
4672 * ldmain.c: And here.
4673 * mpw-elfmips.c: And here.
4674 * mpw-eppcmac.c: And here.
4675 * emultempl/aix.em: And here.
4676 * emultempl/armcoff.em: And here.
4677 * emultempl/armelf.em: And here.
4678 * emultempl/armelf_oabi.em: And here.
4679 * emultempl/beos.em: And here.
4680 * emultempl/elf32.em: And here.
4681 * emultempl/hppaelf.em: And here.
4682 * emultempl/linux.em: And here.
4683 * emultempl/lnk960.em: And here.
4684 * emultempl/pe.em: And here.
4685 * emultempl/sunos.em: And here.
4686 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4687 * mpw-idtmips.c: Ditto.
4688 * emultempl/generic.em: Ditto.
4689 * emultempl/gld960.em: Ditto.
4690 * emultempl/gld960c.em: Ditto.
4691 * emultempl/mipsecoff.em: Ditto.
4692 * emultempl/ticoff.em: Ditto.
4693 * emultempl/vanilla.em: Ditto.
4695 * pe-dll.c: Include ldfile.h
4696 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4698 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4699 arguments to bfd_elf32_size_dynamic_sections call.
4700 (gldelf32ebmip_place_orphan): Add missing arguments to
4701 lang_leave_output_section_statement call.
4703 2000-07-10 H.J. Lu <hjl@gnu.org>
4705 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4707 (strhash): Likewise.
4708 (compute_dll_image_base): Likewise.
4709 (pe_undef_found_sym): Likewise.
4710 (pe_undef_cdecl_match): Likewise.
4711 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4712 argument "arch" with ATTRIBUTE_UNUSED.
4714 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4716 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4718 From Ryan Bradetich <rbradetich@uswest.net>
4719 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4721 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4723 Changes to create multiple linker stubs, positioned immediately
4724 before the section where they are required.
4725 * emultempl/hppaelf.em: Include elf32-hppa.h.
4726 (stub_sec, file_chain): Delete.
4727 (hppaelf_create_output_section_statements): Don't make a stub
4729 (hook_stub_info): New struct.
4730 (hook_in_stub): New function.
4731 (hppaelf_add_stub_section): New function.
4732 (hppaelf_finish): Do nothing for relocateable links. Modify the
4733 call to elf32_hppa_size_stubs. Move code for updating section
4735 (hppaelf_layaout_sections_again): ..to here, a new function.
4737 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4738 broken list handling. Pass in a pointer to the list.
4739 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4741 (hppaelf_before_parse): Prototype.
4742 (hppaelf_set_output_arch): Prototype.
4743 (hppaelf_create_output_section_statements): Prototype.
4744 (hppaelf_delete_padding_statements): Prototype.
4745 (hppaelf_finish): Prototype.
4748 * emultempl/hppaelf.em: Include ctype.h.
4749 (struct orphan_save): New.
4750 (gld${EMULATION_NAME}_place_orphan): New.
4751 (output_rel_find): New.
4752 (hppaelf_get_script): Update from elf32.em.
4753 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4754 Change emulation_name field to "${EMULATION_NAME}". Add
4755 gld${EMULATION_NAME}_place_orphan.
4757 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4758 ehppalinux.o, sort it. Regenerate dependencies.
4759 (ehppalinux.c): Depend on hppaelf.em
4760 * Makefile.in: Regenerate.
4762 * configure.tgt: targ_emul=hppalinux for hppa*linux
4764 * emulparams/hppalinux.sh: New.
4765 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4767 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4769 * lexsup.c (parse_args): Copy section name.
4771 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4773 * emultempl/pe.em: institute the following search order for
4774 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4775 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4776 static lib (libfoo.a) if none of the above are found.
4778 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4780 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4781 (longopts): New --{enable,disable}-auto-image-base options.
4782 (gld_${EMULATION_NAME}_list_options): Document.
4783 (gld_${EMULATION_NAME}_parse): Handle.
4784 (strhash): New static function.
4785 (compute_dll_image_base): New static function.
4786 (gld_${EMULATION_NAME}_set_symbols): Use.
4788 2000-07-05 DJ Delorie <dj@redhat.com>
4792 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4794 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4795 * emulparams/elf32btsmip.sh: New file.
4796 * Makefile.am: Add traditional mips target.
4797 * Makefile.in: Rebuild.
4799 2000-07-01 H.J. Lu <hjl@gnu.org>
4801 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4802 automake to use YLWRAP.
4803 * Makefile.in: Rebuild.
4805 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4807 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4808 (CLEANFILES): Add DEPA.
4809 * Makefile.in: Regenerate.
4811 2000-06-30 Timothy Wall <twall@ppc>
4813 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4814 the page in the upper octet of the address.
4816 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4818 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4820 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4822 * NEWS: arm-elf does --gc-sections too.
4824 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4826 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4828 * Makefile.in: Regenerate.
4830 2000-06-21 H.J. Lu <hjl@gnu.org>
4832 * Makefile.am: Rebuild dependency.
4833 * Makefile.in: Rebuild.
4835 2000-06-20 H.J. Lu <hjl@gnu.org>
4837 * Makefile.am: Rebuild dependency.
4838 * Makefile.in: Rebuild.
4840 2000-06-20 Timothy Wall <twall@cygnus.com>
4842 * scripttempl/tic54xcoff.sc: New.
4843 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4844 * gen-doc.texi: Add flag for TI COFF.
4845 * ld.texinfo: Add documentation for TI COFF handling switches.
4846 * emultempl/ticoff.em: New. TI COFF handling.
4847 * configure.tgt: Add tic54x target.
4848 * Makefile.am: Add tic54x target.
4849 * Makefile.in: Ditto.
4851 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4853 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4854 checking for backslashes.
4856 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4858 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4860 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4862 * NEWS: Update list of targets supporting --gc-sections.
4864 * scripttempl/elf.sc: KEEP .eh_frame contents.
4865 * scripttempl/elfd30v.sc: Same here.
4867 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4869 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4871 * Makefile.in: Rebuild.
4872 * configure.tgt: Recognize m68hc12 and m68hc11.
4873 * scripttempl/elfm68hc12.sc: New file.
4874 * emulparams/m68hc12elfb: New emulation.
4875 * emulparams/m68hc12elf: New emulation.
4876 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4877 (includes a memory.x script to define the ROM and RAM banks).
4878 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4879 New configuration files for support of Motorola 68hc11
4881 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4883 * ldmain.c (main): Only change SEC_READONLY for final link.
4885 2000-06-13 H.J. Lu <hjl@gnu.org>
4887 * configure: Regenerate.
4889 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4891 * configure.in (VERSION): Update to show this is the CVS mainline.
4893 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4895 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4896 input objects to be ECOFF.
4897 (check_sections): einfo takes %B, not %P, to print a BFD name.
4899 2000-06-05 Michael Matz <matz@ifh.de>
4901 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4904 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4906 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4908 * emulparams/avr1200.sh (STACK): Define as 0.
4909 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4910 * emulparams/avr4433.sh (STACK): Likewise.
4911 * emulparams/avr44x4.sh (STACK): Likewise.
4912 * emulparams/avr85xx.sh (STACK): Likewise.
4913 * emulparams/avrmega103.sh (STACK): Likewise.
4914 * emulparams/avrmega161.sh (STACK): Likewise.
4915 * emulparams/avrmega603.sh (STACK): Likewise.
4916 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4917 (__stack): Define from ${STACK} for main().
4919 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4921 * Makefile.am: Update dependencies with "make dep-am"
4922 * Makefile.in: Regenerate.
4924 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4926 * ldmain.c: Include filenames.h.
4927 (set_scripts_dir): Support backslashes in program name.
4929 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4931 * ldmain.c (main): When deciding if ".text" section should be
4932 read-only, don't forget to reset SEC_READONLY because it
4933 could be already set.
4935 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4937 * ld.1: Add documentation for new command line option:
4938 --section-start <sectionname>=<sectionorg>
4939 This is a generic version of -Ttext etc. which accepts
4940 any section name as a parameter instead of just text/data/
4942 * ld.texinfo: More docs.
4944 * lexsup.c: (parse_args): Recognize new command line option.
4945 (ld_options): Add new option.
4947 2000-05-18 H.J. Lu <hjl@gnu.org>
4949 * lexsup.c (parse_args): `i' == `r', not `q'.
4951 2000-05-18 Jeffrey A Law (law@cygnus.com)
4953 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4955 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4956 Rick Gorton <gorton@scrugs.lkg.dec.com>
4958 Add support for '-q' == '--emit-relocs' switch.
4959 * ldmain.c (main): Default to false.
4960 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4961 * NEWS: Describe the emitrelocations switch.
4962 * ld.texinfo: Describe the emitrelocations switch.
4964 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4966 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4967 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4968 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4971 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4973 * lexsup.c (parse_args): Update the year in the copyright notice.
4975 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4977 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4978 Replace defines with those from intl/libgettext.h to quieten gcc
4981 2000-05-10 H.J. Lu <hjl@gnu.org>
4983 * ldlang.c (open_input_bfds): Don't load the same file within
4984 a group again if the whole archive has been loaded already.
4986 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4988 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4989 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4992 2000-05-01 Jim Wilson <wilson@cygnus.com>
4994 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4996 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4997 host "ia64-*-linux-gnu*".
4999 2000-04-29 Andreas Jaeger <aj@suse.de>
5001 * ld.h: Correctly check GCC version.
5003 2000-04-25 Jeffrey A Law (law@cygnus.com)
5005 * Makefile.am: Add PA64 support. Add missing dependencies for
5007 * Makefile.in: Rebuilt.
5008 * configure.tgt: Add PA64 support (currently disabled).
5010 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5012 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5013 (output_rel_find): New function.
5014 (hold_section, hold_use): Delete.
5015 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5016 hold_interp): Make local to place_orphan.
5017 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5018 rather than place_section to find possible previous use of orphan.
5019 Similarly find the place-holder output sections. Use returned
5020 value from lang_enter_output_section_statement rather than calling
5021 lang_output_section_statement_lookup.
5022 * emultempl/armelf.em: Same here.
5023 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5025 * ldlang.c (lang_enter_output_section_statement): Return output
5027 * ldlang.h (lang_enter_output_section_statement): Change
5030 * ldlang.h (lang_output_section_statement): Export it.
5031 * ldlang.c (lang_output_section_statement): Ditto.
5033 2000-04-24 Nick Clifton <nickc@cygnus.com>
5035 * ld.texinfo (Output Section Data): Add note that section data
5036 commands cannot appear outside of section directives.
5038 2000-04-2 Matthew Green <mrg@cygnus.com>
5040 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5042 2000-04-21 Richard Henderson <rth@cygnus.com>
5043 David Mosberger <davidm@hpl.hp.com>
5045 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5046 (eelf64_ia64.c): New rule.
5047 * Makefile.in: Rebuild.
5048 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5049 * emulparams/elf64_ia64.sh: New file.
5051 2000-04-21 Richard Henderson <rth@cygnus.com>
5053 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5055 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5057 * dep-in.sed: Match space at start of file name, not at end.
5059 2000-04-18 H.J. Lu <hjl@gnu.org>
5061 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5062 lang_leave_output_section_statement () after calling
5063 lang_enter_output_section_statement ().
5064 * emultempl/armelf.em: Likewise.
5066 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5068 * emultempl/elf32.em (struct orphan_save): Add section field.
5069 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5070 better order, and place first orphan section as we did before the
5071 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5072 Don't call make_bfd_section here, let wild_doit do the job for us.
5073 Don't build a statement list when we'll only throw it away.
5074 * emultempl/armelf.em: Ditto.
5075 * emultempl/pe.em: Similarly.
5077 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5079 * scripttempl/elfppc.sc: Remove.
5080 * emulparams/elf32ppc.sh: Use elf.sc.
5081 * emulparams/elf32lppc.sh: Use elf.sc.
5082 * emulparams/elf32ppclinux.sh: Use elf.sc.
5083 * emulparams/elf32ppcsim.sh: New file.
5084 * emulparams/elf32lppcsim.sh: New file.
5085 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5086 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5087 * Makefile.in: Regenerate.
5088 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5090 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5092 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5093 ~SEC_ALLOC sections too. Init start address of debug sections.
5094 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5095 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5096 Also set all relocateable section start addresses.
5098 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5100 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5101 Add new BSS_PLT variable for when .plt need not be contained in
5102 the file. Move _etext so that it is also after .fini, and provide
5103 both etext and _etext with a leading underscore. Mark the start
5106 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5108 * emultempl/elf32.em (struct orphan_save): New.
5109 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5110 hold_interp): Make them struct orphan_save.
5111 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5112 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5113 the end of the relevant section list. Also add associated section
5114 statements to the end of any previous orphan statements.
5115 * emultempl/armelf.em: Similarly.
5116 * emultempl/pe.em: Similarly.
5118 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5120 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5122 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5124 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5125 --enable-build-warnings option.
5126 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5127 * Makefile.in, configure: Re-generate.
5129 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5131 * po/ld.pot: Regenerate.
5133 * lexsup.c (help): Restore translated part of bug string.
5135 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5136 (DEP): Quote when passing vars to sub-make. Add warning message
5138 (DEP1): Rewrite for "gcc -MM".
5139 (CLEANFILES): Add DEP2.
5140 Update dependencies.
5141 * Makefile.in: Regenerate.
5143 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5145 * ld.h: #include "bin-bugs.h"
5146 * lexsup.c (help): Use REPORT_BUGS_TO.
5148 2000-03-27 Denis Chertykov <denisc@overta.ru>
5150 * configure.tgt (avr-*-*): New target support.
5151 * Makefile.am: Likewise.
5152 * scripttempl/elf32avr.sc: New script file.
5153 * emulparams/avr1200.sh: New file.
5154 * emulparams/avr23xx.sh: New file.
5155 * emulparams/avr4433.sh New file.
5156 * emulparams/avr44x4.sh New file.
5157 * emulparams/avr85xx.sh New file.
5158 * emulparams/avrmega103.sh New file.
5159 * emulparams/avrmega161.sh New file.
5160 * emulparams/avrmega603.sh New file.
5161 * Makefile.in: Regenerate.
5163 2000-03-09 Andreas Jaeger <aj@suse.de>
5165 * Makefile.am (check-DEJAGNU): Also unset LANG.
5166 * Makefile.in: Rebuild.
5168 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5170 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5173 2000-03-02 H.J. Lu <hjl@gnu.org>
5175 * emulparams/elf32mcore.sh: Include "getopt.h".
5177 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5179 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5181 2000-03-01 H.J. Lu <hjl@gnu.org>
5183 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5184 * emulparams/shpe.sh: Likewise.
5186 2000-03-01 Nick Clifton <nickc@cygnus.com>
5188 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5189 to unused parameters.
5191 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5192 functions only used by DLL code.
5193 (_place_orphan): Initialise 'dollar'.
5195 2000-03-01 H.J. Lu <hjl@gnu.org>
5197 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5198 indicate if the undefined symbol is a fatal error or not.
5199 Don't delete the output file if "fatal" is false.
5201 2000-02-29 H.J. Lu <hjl@gnu.org>
5203 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5204 Set LC_COLLATE and LC_ALL to null and export them. It is for
5205 sort which expects the C locale.
5206 Add $(LIBS) to all $(HOSTING_LIBS).
5207 * Makefile.in: Rebuild.
5209 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5211 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5212 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5213 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5214 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5215 find_potential_libraries.
5217 2000-02-28 Jim Blandy <jimb@redhat.com>
5219 * ldgram.y (exclude_name_list): Don't require a comma to separate
5220 list entries; the lexer considers commas to be valid part of a
5221 filename, so in something like `foo, bar' the comma is considered
5222 part of the first filename, `foo,'.
5223 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5225 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5227 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5228 host "i[3456]86-*-freebsdelf*".
5230 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5232 * scripttempl/i386go32.sc: Move misplaced semicolons.
5234 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5236 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5237 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5238 (eelf64hppa.c, ehppaelf.c): Remove targets.
5239 * Makefile.in: Rebuild.
5241 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5243 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5244 GNU/Linux/sparc, but keep the default as 32.
5246 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5247 it default if sparcv9 or sparc64.
5249 2000-02-24 Nick Clifton <nickc@cygnus.com>
5251 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5252 * Makefile.in: Regenerate.
5253 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5255 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5256 find_potential_libraries.
5257 * ldemul.c (ldemul_find_potential_libraries): New function.
5259 * ldfile.c (ldfile_open_file_search): Allow function to be
5261 (ldfile_open_file): Call ldemul_find_potential_libraries.
5262 * ldfile.h: Add prototype for ldfile_open_file_search.
5264 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5266 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5267 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5269 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5270 (gld_X_find_potential_libraries): New function. Search for
5271 libraries called "*.lib".
5273 * scripttempl/pe.sc: Add .pdata section.
5275 2000-02-23 Richard Henderson <rth@cygnus.com>
5277 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5278 Add and use memory regions.
5280 2000-02-23 Linas Vepstas (linas@linas.org)
5282 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5284 * Makefile.am: Add support for Linux/IBM 370.
5285 * configure.tgt: Likewise.
5287 * Makefile.in: Regenerate.
5289 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5291 * ldlang.c (print_input_section, print_data_statement,
5292 print_reloc_statement, print_padding_statement, insert_pad,
5293 size_input_section, lang_check_section_addresses,
5294 lang_size_sections, lang_do_assignments, lang_set_startof,
5295 lang_one_common): Change `opb' to unsigned.
5296 (lang_do_assignments): Also change `size' to unsigned.
5298 2000-02-16 Richard Henderson <rth@cygnus.com>
5300 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5302 2000-02-16 Timothy Wall <twall@cygnus.com>
5304 * mri.c (mri_draw_tree): Add default LMA region argument to call
5305 to lang_leave_output_section_statement.
5306 * ldlang.h: Update prototypes with LMA region arguments.
5307 * ldlang.c (lang_size_sections): Encapsulate region bounds
5308 checking in os_check_region call.
5309 (os_check_region): New function.
5310 (lang_output_section_statement_lookup): Initialize lma_region.
5311 (lang_leave_output_section_statement): Add LMA region argument.
5312 (lang_leave_overlay): Ditto.
5313 * ldgram.y: Handle LMA region syntax.
5314 * ld.texinfo (Output Section Description): Describe LMA region usage.
5315 * emultempl/armelf.em (gld$place_orphan): Add default value for
5316 lma region in call to lang_leave_output_section_statement.
5317 * emultempl/elf32.em (gld$place_orphan): Add default value for
5318 lma region in call to lang_leave_output_section_statement.
5319 * emultempl/pe.em (gld$place_orphan): Add default value for
5320 lma region in call to lang_leave_output_section_statement.
5323 2000-02-04 Timothy Wall <twall@redhat.com>
5325 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5326 octets when calculating section end addresses.
5328 2000-02-04 Timothy Wall <twall@redhat.com>
5330 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5332 2000-02-03 Timothy Wall <twall@redhat.com>
5334 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5336 * ldlang.c (print_input_section, print_data_statement,
5337 print_reloc_statement, print_padding_statement): Print target
5338 address values and section sizes as bytes, not octets.
5339 (insert_pad) Calculate padding size in octets, and adjust "dot"
5341 (size_input_section) Always adjust "dot" by bytes, not octets.
5342 (lang_check_section_addresses, lang_do_assignments) Adjust
5343 "dot" by bytes, not octets. Use the larger of the directive size
5344 or octets_per_byte for the number of octets actually allocated in
5346 (lang_set_startof) Make sure STARTOF returns a target address.
5347 (lang_one_common) Record size changes in octets.
5348 (lang_abs_symbol_at_end_of) Section end symbol's value is
5349 recorded in target bytes.
5350 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5351 to be clear about behavior when an octet is smaller than one byte.
5353 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5355 * ldcref.c (output_cref): Don't pass message strings to printf
5359 * ldmisc.c (vfinfo): Same here.
5362 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5364 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5365 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5366 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5367 Add missing NULL initialisers, and comments.
5369 2000-01-21 Nick Clifton <nickc@cygnus.com>
5371 * ldlang.c (lang_size_sections): Fix typo in comment.
5373 2000-01-18 H.J. Lu <hjl@gnu.org>
5375 * ldlang.c (lang_size_sections): Also update the current
5376 address of a region if the SEC_NEVER_LOAD bit is not set.
5378 2000-01-10 Philip Blundell <pb@futuretv.com>
5380 * configure.tgt (arm*-*-conix*): New target.
5382 2000-01-07 Nick Clifton <nickc@cygnus.com>
5384 * ld.texinfo (Options): Remind users to preceed linker command
5385 line switches with -Wl, (or whatever is appropriate) if it is
5386 being invoked by a comnpiler driver program.
5387 Fix description of the behaviour of the -n command line switch.
5389 2000-01-05 Catherine Moore <clm@cygnus.com>
5391 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5393 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5394 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5395 (exclude_name_list): New.
5396 ldlang.c (walk_wild_section): Support list of excluded files.
5397 (print_wild_statement): Likewise.
5398 (lang_add_wild): Likewise.
5399 * ldlang.h (lang_wild_statement_type): Likewise.
5400 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5402 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5404 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5405 (process_def_file): Use.
5406 (pe_dll_compat_implib): New variable.
5409 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5410 pe_dll_compat_implib.
5412 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5413 compat-implib options.
5414 (gld_${EMULATION_NAME}_list_options): List new options.
5415 (gld_${EMULATION_NAME}_parse_args): Handle.
5417 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5420 * deffilep.y (opt_name): Allow "." in name.
5422 For older changes see ChangeLog-9899
5428 version-control: never