1 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
3 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
4 * Makefile.in: Regenerate
5 * configure.tgt: Added extra target emulations
6 * emulparams/tic3xcoff.sh: Remove old settings
7 * emulparams/tic4xcoff.sh: Ditto
8 * emulparams/tic3xcoff-onchip.sh: Added new
9 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
10 * scripttempl/tic3xcoff.sc: Remove
12 2003-01-17 Andreas Jaeger <aj@suse.de>
14 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
17 2003-01-16 Alan Modra <amodra@bigpond.net.au>
19 * Makefile.in: Regenerate.
21 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
23 * ld/ld.texinfo (node WIN32): Some clarifications
24 and formatting fixups.
26 2003-01-09 Chris Demetriou <cgd@broadcom.com>
28 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
29 order, and handle (ignore) -mips32r2.
31 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
33 * ldmain.c (main): Make sure ld_sysroot is initialized.
35 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
37 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
39 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
40 (GENSCRIPTS): Add @use_sysroot@.
41 * Makefile.in: Regenerated.
42 * configure.host: Move setting of NATIVE_LIB_DIRS to...
43 * configure.tgt: ... here. Use ${target} instead of ${host}
45 * configure.in: Add --with-sysroot.
46 * configure: Regenerated.
47 * genscripts.sh: Accept use_sysroot option. Set new variables
48 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
49 $use_sysroot. Don't search $tool_lib if $use_sysroot.
50 * ldfile.c (ldfile_add_library_path): Handle leading '='.
51 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
52 (ld_sysroot): New variable.
53 (main): Initialize ld_sysroot.
54 * ldmain.h (ld_sysroot): New extern.
55 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
56 searching $EMULATION_LIBPATH.
57 (gld${EMULATION_NAME}_add_sysroot): New function.
58 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
59 (gld${EMULATION_NAME}_after_open): Likewise. Only search
60 environment variables if $NATIVE.
61 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
62 * NEWS: Mention --with-sysroot.
64 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
65 instead of setting LIB_PATH.
66 * emulparams/elf32ppc.sh: Likewise.
67 * emulparams/elf64_s390.sh: Likewise.
68 * emulparams/elf64_sparc.sh: Likewise.
69 * emulparams/elf64ppc.sh: Likewise.
70 * emulparams/elf_x86_64.sh: Likewise.
72 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
73 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
75 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
77 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
79 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
81 * Makefile.am (ldmain.o): Pass BINDIR.
82 * Makefile.in: Regenerated.
83 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
86 2003-01-02 Ben Elliston <bje@redhat.com>
88 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
89 (eelf32iq2000.c): New target.
90 * Makefile.in: Regenerate.
91 * configure.tgt: Handle iq2000-*-elf.
92 * emulparams/elf32iq10.sh: New file.
93 * emulparams/elf32iq2000.sh: New file.
94 * scripttempl/iq2000.sc: New file.
96 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
98 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
99 and _pei386_runtime_relocator to the exclude list.
101 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
103 * ldfile.c: Fix comment typos.
104 * ldlang.c: Likewise.
106 * pe-dll.c: Likewise.
108 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
110 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
111 * Makefile.am (ld.1): Depend on configdoc.texi
113 * Makefile.in: Regenerated.
115 2002-12-24 Dmitry Diky <diwil@mail.ru>
117 * Makefile.am: Add msp430 target.
118 * configure.tgt: Likewise.
119 * Makefile.in: Regenerate.
120 * emulparams/msp430x???.sh: New files. Linker script parameters
121 for various msp430 configurations.
122 * gen-doc.texi: Enable msp430 documenation.
123 * ld.texinfo: Document msp430 sections.
124 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
125 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
127 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
128 Charles Wilson <cwilson@ece.gatech.edu>
130 * ld/config.in (HAVE_REALPATH): New entry.
131 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
133 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
135 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
138 2002-12-23 Alan Modra <amodra@bigpond.net.au>
140 * ldmain.c (main): Init "strip_discarded".
141 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
142 (OPTION_NO_STRIP_DISCARDED): Define.
143 (ld_options): Add "strip-discarded" and "no-strip-discarded".
144 (parse_args): Handle them.
146 2002-12-23 Nick Clifton <nickc@redhat.com>
148 * ld.h (struct args_type): Add new field
149 'accept_unknown_input_architecture'.
150 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
152 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
153 bfd_arch_get_compatible.
154 * ldfile.c (ldfile_try_open_bfd): Likewise.
155 * lexsup.c (ld_options): Add new command line switch
156 --accept-unknown-input-architecture and its inverse.
157 (parse_args): Handle --accept-unknown-input-architecture.
158 * ld.texinfo: Document new linker option.
159 * NEWS: Mention new linker option.
161 2002-12-20 Alan Modra <amodra@bigpond.net.au>
163 * ldmain.c (main): Re-order link_info initialization. Init all
166 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
168 * ld.texinfo: Clarify and extend the documentation
169 in the Machine Dependent, WIN32 section.
171 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
173 * ld.texinfo: Add win32 machine depending section.
174 * gen-doc.texi: Enable win32 machine depending section.
176 * configure.host: Add win32 library search path.
178 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
180 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
181 import when auto-import is disabled.
183 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
185 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
186 account for trailing '\0'.
188 2002-12-17 Nick Clifton <nickc@redhat.com>
190 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
191 so that it is not confused with -c.
193 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
194 Charles Wilson <cwilson@ece.gatech.edu>
196 * configure.in: Add check for realpath function.
197 * configure: Regenerate.
198 * config.in: Regenerate.
199 * aclocal.m4: Regenerate.
200 * deffile.h: Add .data field to def_file_import
202 * pe-dll.c (pe_proces_import_defs): Use .data field of
203 def_file_import structure to initialize flag_data field of
204 def_file_export structure.
205 (pe_implied_import_dll): New variables exp_funcbase and
206 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
207 not filename (which may be a symlink). Scan the sections and
208 initialize [data|bss]_[start|end]. When scanning the export
209 table, skip _nm_ symbols, and mark any symbols whose rva indicates
210 that it is in the .bss or .data sections as data.
211 * sysdep.h: Include limits.h and sys/param.h, and define
212 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
213 exists, NULL otherwise.
214 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
215 pe_process_import_defs before pe_find_data_imports, so that
216 auto-import will check the virtual implib as well as "real"
218 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
219 symlinks to their target; check that the target's extension is
220 .dll before calling pe_implied_import_dll(), not the filename
221 itself (which may be a symlink).
223 2002-12-10 Alan Modra <amodra@bigpond.net.au>
225 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
226 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
229 2002-12-08 Alan Modra <amodra@bigpond.net.au>
231 * ldlang.h: Formatting.
233 2002-12-07 Alan Modra <amodra@bigpond.net.au>
235 * ldlang.c (init_os): Ensure sections mentioned in load_base
238 2002-12-05 Alan Modra <amodra@bigpond.net.au>
240 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
241 load_base for orphans that follow a section with load_base set.
243 2002-12-01 H.J. Lu <hjl@gnu.org>
245 * ld.texinfo: Remove the extra `;' in sample version script.
247 2002-11-30 Alan Modra <amodra@bigpond.net.au>
249 * configure.host: Correct dynamic-linker for powerpc64 hosts.
251 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
252 * Makefile.in: Regenerate.
254 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
255 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
256 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
257 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
258 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
259 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
260 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
261 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
262 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
263 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
264 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
265 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
266 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
268 2002-11-27 David O'Brien <obrien@FreeBSD.org>
270 * configure.host: Fix generic FreeBSD configuration entry.
272 2002-11-27 H.J. Lu <hjl@gnu.org>
274 * ld.texinfo: Add the missing `;' to sample version scripts.
276 2002-11-20 Alan Modra <amodra@bigpond.net.au>
278 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
280 2002-11-14 Egor Duda <deo@logos-m.ru>
282 * ldmain.c (main): Make runtime relocs disabled by default. Remove
283 assignment which has no effect.
284 * pe-dll.h (pe_create_import_fixup): Change prototype.
285 * pe-dll.c (make_runtime_pseudo_reloc): New function.
286 (pe_create_runtime_relocator_reference): Ditto.
287 (pe_create_import_fixup): Handle relocations with non-zero addends.
288 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
289 --disable-runtime-pseudo-reloc.
290 (make_import_fixup): Handle relocations with non-zero addends. Create
291 an external reference to _pei386_runtime_relocator symbol if at least
292 one pseudo reloc was created.
293 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
294 --disable-runtime-pseudo-reloc options.
296 2002-11-12 Earl Chew <earl_chew@agilent.com>
298 * ldlang.c (lang_add_section): Discard debugging sections that have
299 been marked SEC_EXCLUDE.
301 2002-11-12 Nick Clifton <nickc@redhat.com>
303 * configure.in (ALL_LINGUAS): Add da.
304 * configure: Regenerate.
305 * po/da.po: New Danish translation.
307 2002-11-12 Alan Modra <amodra@bigpond.net.au>
309 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
310 (LDEMUL_BEFORE_ALLOCATION): Define.
311 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
313 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
315 2002-11-11 Christopher Faylor <cgf@redhat.com>
317 * configure.tgt (LIB_PATH): Default to searching w32api directory under
320 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
322 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
323 of restricted auto-export libs.
325 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
327 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
328 creative library naming instances like, e.g., libstdc++-2.a.
330 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
332 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
333 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
335 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
337 * deffilep.y (def_lex): Handle '@' as first character of an ID.
338 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
339 (make_one): Don't prefix decorated fastcall symbols with '_'.
340 (pe_process_import_defs): Likewise.
341 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
342 symbols to cdecl names or vise-versa.
344 2002-10-13 Eric Kohl <ekohl@rz-online.de>
346 * pe-dll.c (process_def_file): Handle fastcall symbols when
347 generating undecorated aliases. Don't prefix decorated fastcall
349 (fill_exported_offsets): Don't prefix decorated fastcall symbols
352 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
354 * emultempl/aix.em: Use include <> for generated headers.
355 * emultempl/beos.em: Likewise.
356 * emultempl/elf32.em: Likewise.
357 * emultempl/pe.em: Likewise.
358 * ldctor.c: Likewise.
360 * ldfile.c: Likewise.
361 * ldlang.c: Likewise.
364 * ldmain.c: Likewise.
365 * ldmisc.c: Likewise.
366 * ldwrite.c: Likewise.
367 * lexsup.c: Likewise.
369 * pe-dll.c: Likewise.
371 2002-10-23 Jakub Jelinek <jakub@redhat.com>
373 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
374 sections into .rel{,a}.dyn.
376 2002-10-23 Nick Clifton <nickc@redhat.com>
378 * lexsup.c (OPTION_NO_OMAGIC): Define.
379 (ld_options): Add "no-omagic" option.
380 (parse_args): Parse --no-omagic.
381 * ld.texinfo: Document --no-omagic.
382 * NEWS: Mention new option.
384 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
386 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
387 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
389 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
391 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
392 emulation name. Set LIB_PATH only for native tools, and
393 search the ABI-specific versions of NATIVE_LIB_DIRS before the
394 .../lib variants, not instead of them. Mostly copied from...
395 * emulparams/elf32ppc.sh: ... here. Fixed typo.
396 * emulparams/elf64bmip-defs.sh: Backed out.
397 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
398 * emulparams/elf64btsmip.sh: Likewise.
399 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
400 TEXT_DYNAMIC): Removed.
402 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
404 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
405 (GENERATE_SHLIB_SCRIPT): Set to yes.
406 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
407 * emulparams/elf32bmipn32.sh: here.
408 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
409 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
410 * emulparams/elf64bmip-defs.sh: New file. Extend
411 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
412 * emulparams/elf64bmip.sh: Bring in definitions from
414 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
416 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
417 * emulparams/elf64btsmip.sh: Bring in definitions from
419 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
420 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
422 2002-10-16 Jakub Jelinek <jakub@redhat.com>
424 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
425 (s390-*-linux*): Add elf64_s390 emulation if want64.
426 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
427 genscript.sh changes.
428 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
429 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
431 2002-10-15 Alan Modra <amodra@bigpond.net.au>
433 * ldlang.c (load_symbols): Revert last change.
435 2002-10-14 Alan Modra <amodra@bigpond.net.au>
437 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
439 (lang_reasonable_defaults): Don't compare against false.
440 (size_input_section): Likewise.
441 (lang_size_sections_1): Likewise.
442 (lang_do_assignments): Likewise.
443 (lang_add_output): Likewise.
445 * Makefile.am: Run "make dep-am".
446 * Makefile.in: Regenerate.
447 * ldver.c: #include "bfdver.h".
449 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
451 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
453 * scripttempl/elfm68hc12.sc: Likewise.
455 2002-10-11 Alan Modra <amodra@bigpond.net.au>
457 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
459 * ldgram.y (memory_spec): Provide empty action.
460 (section <NAME>): Likewise.
462 2002-10-10 Jakub Jelinek <jakub@redhat.com>
464 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
465 they have OUTPUT_FORMAT not matching actual output format.
466 * ldlang.c (lang_get_output_target): New function.
467 (open_output): Use it.
468 * ldlang.h (lang_get_output_target): New prototype.
470 2002-10-10 Alan Modra <amodra@bigpond.net.au>
472 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
473 when orphan is .rel, .rela when orphan is .rela.
474 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
475 first. Remove outsecname var.
477 2002-10-09 Richard Shann <richard.shann@superh.com>
478 Stephen Clarke <stephen.clarke@superh.com>
480 * Makefile.am: Add eshelf32_linux.o and
481 eshlelf32_linux.o, new emulations for sh64 Linux.
482 * Makefile.in: Regenerate.
483 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
484 * emulparams/shelf32_linux.sh: New file.
485 * emulparams/shlelf32_linux.sh: New file.
487 2002-10-08 H.J. Lu <hjl@gnu.org>
489 * ldlang.c (lang_file_exist): Removed.
490 (new_afile): Revert the last change.
491 * ldlang.h (lang_file_exist): Removed.
492 * lexsup.c (parse_args): Revert the last change.
494 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
496 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
498 (make_one): Create _nm_<symbol> for data only.
500 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
502 * ldlang.c (lang_file_exist): New function.
503 (new_afile): Abort if the filename to be added matches the linker
505 * ldlang.h: Add prototype for lang_file_exist.
506 * lexsup.c (parse_args): Abort if the output filename matches
507 one of the input filenames.
509 2002-10-02 Alan Modra <amodra@bigpond.net.au>
511 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
513 2002-09-30 Alan Modra <amodra@bigpond.net.au>
515 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
516 * scripttempl/elfm68hc11.sc: Likewise.
517 * scripttempl/elfm68hc12.sc: Likewise.
519 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
520 reloc sections just before .rel.plt/.rela.plt.
521 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
522 Only put loadable reloc sections in hold_rel.
524 2002-09-29 H.J. Lu <hjl@gnu.org>
526 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
528 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
530 From "Anita Kulkarni" <AnitaK@kpit.com>
531 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
534 2002-09-25 Alan Modra <amodra@bigpond.net.au>
536 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
538 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
539 SEGMENT_SIZE alignment.
540 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
541 (SEGMENT_SIZE): Define.
543 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
544 (fold_binary): Correct abs - non-abs case.
545 (fold_trinary): New. Split out from exp_fold_tree.
547 2002-09-24 Alan Modra <amodra@bigpond.net.au>
549 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
550 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
551 for start of .data, instead align up to 256M boundary.
552 * scripttempl/aix.sc: Likewise.
554 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
556 * scripttempl/i386go32.sc: Handle bss unique sections.
558 2002-09-21 Alan Modra <amodra@bigpond.net.au>
560 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
562 2002-09-17 Stan Cox <scox@redhat.com>
564 * emulparams/elf32bmipn32-defs.sh: New file.
565 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
566 * emulparams/elf32btsmipn32.sh: Likewise.
567 * emulparams/elf64bmip.sh: Likewise.
568 * emulparams/elf64btsmip.sh: Likewise.
570 2002-09-16 Bruno Haible <bruno@clisp.org>
572 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
574 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
577 2002-09-11 Nick Clifton <nickc@redhat.com>
579 * NEWS: New TI port supports both C4x and C3x series of DSPs.
581 * po/tr.po: Updated Turkish translation.
583 2002-09-06 Jeffrey A Law (law@redhat.com)
585 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
587 2002-09-02 Nick Clifton <nickc@redhat.com>
589 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
591 * emulparams/v850.sh (TEMPLATE_NAME): Define.
593 2002-08-30 Nick Clifton <nickc@redhat.com>
595 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
596 used. Change INSN to start at 0x01000000 and extend for
597 256K (ignoring holes). Start the STACK on a word aligned
599 (.rodata): Start it at the READONLY_START_ADDR.
601 2002-08-30 Alan Modra <amodra@bigpond.net.au>
603 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
605 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
607 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
608 added makefile targets for this file.
609 * Makefile.in: Regenerate.
610 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
611 * NEWS: Mention new port.
613 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
615 * emulparams/tic3xcoff.sh: New file.
616 * emulparams/tic4xcoff.sh: New file.
617 * scripttempl/tic3xcoff.sc: New file.
618 * scripttempl/tic4xcoff.sc: New file.
620 2002-08-28 Alan Modra <amodra@bigpond.net.au>
622 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
623 strtoul and strtoull with bfd_scan_vma.
624 (gld${EMULATION_NAME}_read_file): Likewise.
626 2002-08-28 Alan Modra <amodra@bigpond.net.au>
628 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
630 2002-08-27 Egor Duda <deo@logos-m.ru>
632 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
633 Add symbols for application to access them.
635 2002-08-27 Nick Clifton <nickc@redhat.com>
637 * emultempl/armelf.em: Revert this patch, it is not needed.
639 2002-08-22 Adam Nemet <anemet@lnxw.com>
641 2002-08-20 Dan Kegel <dank@kegel.com>
643 * configure.in: added --with-lib-path argument to ld's configure
645 * ld/NEWS: Document new switch.
646 * ld/README: Mention new switch.
647 * configure: Regenerate.
648 * Makefile.in: Regenerate.
651 2001-04-25 Christopher Faylor <cgf@cygnus.com>
653 * Makefile.in (LIB_PATH): Make configurable.
654 (GENSCRIPTS): Set LIB_PATH in environment.
655 * configure.in: Substitute LIB_PATH.
657 2002-08-22 Adam Nemet <anemet@lnxw.com>
659 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
660 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
661 depending on the type of the function.
662 (arm_elf_convert_thumb_symbol_to_address): New function.
664 2002-08-22 Graeme Peterson <gp@qnx.com>
666 * Makefile.am: Add esh{l}elf_nto.o files.
667 * Makefile.in: Regenerate.
668 * configure.tgt: Add support for sh-**-nto* targets.
669 * emulparams/shelf_nto.sh: New file.
670 * emulparams/shlelf_nto.sh: New file.
672 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
674 * ldlang.c (offsetof): Define if not defined.
676 2002-08-14 H.J. Lu <hjl@gnu.org>
678 * configure.tgt: Always enable 64bit emulations for 32bit
681 2002-08-13 Alan Modra <amodra@bigpond.net.au>
683 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
684 (MAXPAGESIZE): Set to 1.
686 * ld.h (ALIGN_N): Delete.
687 * ldexp.h (align_n): Declare.
688 * ldexp.c (align_n): New function.
689 (fold_binary): Use align_n instead of ALIGN_N.
690 (exp_fold_tree): Likewise.
691 * ldlang.c (lang_size_sections_1): Likewise.
692 (lang_one_common): Likewise.
693 * ld.texinfo (ALIGN): Remove power of 2 restriction.
695 2002-07-31 Graeme Peterson <gp@qnx.com>
697 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
698 * Makefile.am: Add eelf32{l}ppcnto.o files.
699 * Makefile.in: Regenerate.
700 * emulparams/elf32lppcnto.sh: New file.
701 * emulparams/elf32ppcnto.sh: New file.
703 2002-08-07 H.J. Lu <hjl@gnu.org>
705 * ld.texinfo: Document --no-undefined-version.
707 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
708 `script.' fields to 0.
710 * ldmain.c (main): Initialize the allow_undefined_version to
713 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
714 (ld_options): Add --no-undefined-version.
715 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
717 2002-08-07 Nick Clifton <nickc@redhat.com>
719 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
720 an interworking bfd if there are input bfds. (107501)
722 2002-08-06 Alan Modra <amodra@bigpond.net.au>
724 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
727 2002-08-01 Nick Clifton <nickc@redhat.com>
729 * emulparams/armelf.sh: Revert previous delta.
730 * scripttempl/elf.sc: Revert previous delta.
732 2002-07-31 H.J. Lu <hjl@gnu.org>
734 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
737 2002-07-31 H.J. Lu <hjl@gnu.org>
739 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
740 64bit BFD is selected.
742 2002-07-31 H.J. Lu <hjl@gnu.org>
744 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
745 if 64bit BFD is selected.
747 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
749 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
750 link_info.common_skip_ar_aymbols.
751 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
753 * ldmain.c (main): Initialize new field
754 link_info.common_skip_ar_aymbols.
756 2002-07-31 Adam Nemet <anemet@lnxw.com>
758 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
760 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
763 2002-07-31 Nick Clifton <nickc@redhat.com>
765 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
766 of the PDP-11 and 2.11BSD a.out support.
768 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
770 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
772 * Makefile.in: Regenerate.
773 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
774 n32 ABI emulations for these 64 bit targets.
775 * emulparams/elf32bmipn32.sh: Expand comment.
776 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
778 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
780 2002-07-30 Graeme Peterson <gp@qnx.com>
782 * configure.tgt: Add support for arm-*-nto target.
783 * Makefile.am: Add earmnto.o file.
784 * Makefile.in: Regenerate.
785 * NEWS: Mention port of ARM support to QNX.
786 * emulparams/armnto.sh: New file.
788 2002-07-30 Jakub Jelinek <jakub@redhat.com>
790 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
791 for relocatable link.
792 (lang_size_sections_1): Don't make .tbss zero size for relocatable
795 2002-07-26 Bernd Schmidt <bernds@redhat.com>
797 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
800 2002-07-25 Nick Clifton <nickc@redhat.com>
802 * po/sv.po: Updated Swedish translation.
803 * po/es.po: Updated Spanish translation.
804 * po/fr.po: Updated French translation.
806 2002-07-24 Nick Clifton <nickc@redhat.com>
808 * po/sv.po: Updated Swedish translation.
809 * po/es.po: Updated Spanish translation.
811 2002-07-23 Nick Clifton <nickc@redhat.com>
813 * po/fr.po: Updated French translation.
815 2002-07-20 Alan Modra <amodra@bigpond.net.au>
817 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
818 bomb on /DISCARD/ input section.
819 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
820 * emultempl/mmo.em (mmo_place_orphan): Likewise.
822 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
824 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
827 2002-07-16 Denis Chertykov <denisc@overta.ru>
828 Nick Clifton <nickc@redhat.com>
829 Frank Ch. Eigler <fche@redhat.com>
830 John Healy <jhealy@redhat.com>
832 * configure.tgt: Add support for ip2k-elf.
833 * Makefile.am: Add support for ip2k-elf.
834 * Makefile.in: Regenerate.
835 * emulparams/elf32ip2k.sh: New file.
836 * scripttempl/ip2k.sc: New file
837 * NEWS: Mention support for new port.
839 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
841 * NEWS: Add 'Changes in 2.13'.
843 2002-07-14 H.J. Lu <hjl@gnu.org>
845 * ld.texinfo: Document a .symver takes precedence over a
848 2002-07-12 Alan Modra <amodra@bigpond.net.au>
850 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
851 (COMMONPAGESIZE): Define.
853 2002-07-09 Alan Modra <amodra@bigpond.net.au>
855 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
857 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
859 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
860 powerpc-*-openbsd* and sparc64-*-openbsd*.
861 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
862 * Makefile.in: Regenerate.
863 * emulparams/hppaobsd.sh: New file.
865 2002-07-05 Alan Modra <amodra@bigpond.net.au>
867 * ldlang.c (print_wild_statement): Fix output formatting.
869 2002-07-04 Alan Modra <amodra@bigpond.net.au>
871 * ldlang.c: (strip_excluded_output_sections): New function.
872 (lang_process): Call it.
873 (lang_size_sections_1): Revert 2002-06-10 change.
875 2002-07-03 Alan Modra <amodra@bigpond.net.au>
877 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
879 * Makefile.in: Regenerate.
881 2002-07-02 Alan Modra <amodra@bigpond.net.au>
883 * ldfile.c (ldfile_try_open_bfd): Formatting.
885 * ldmisc.c (demangle): Move so that it doesn't intrude between
886 vfinfo comment and body. Add comment.
888 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
890 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
892 2002-07-01 Alan Modra <amodra@bigpond.net.au>
894 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
895 * ldlang.c (entry_sym): Likewise.
896 (ldlang_undef_chain_list_type): Likewise.
897 (lang_finish): Adjust references to entry_symbol.
898 (lang_add_entry): Likewise.
899 (lang_gc_sections): Use link_info.gc_sym_list.
900 (lang_process): Set link_info.gc_sym_list.
901 * ldlex.l: Include bfdlink.h.
902 * ldmain.c (main): Init link_info.gc_sym_list.
903 * emultempl/aix.em: Adjust references to entry_symbol.
904 * emultempl/armcoff.em: Likewise.
905 * emultempl/armelf.em: Likewise.
906 * emultempl/pe.em: Likewise.
907 * emultempl/ppc64elf.em (ppc_after_open): New function.
908 (LDEMUL_AFTER_OPEN): Define.
909 * emulparams/elf64ppc.sh: KEEP .opd sections.
911 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
913 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
914 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
915 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
916 (EEPROM_START_ADDR): Define.
917 (EEPROM_MEMORY): Define.
918 * emulparams/m68hc12elf.sh: Likewise.
919 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
920 section to put soft registers in .page0.
921 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
923 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
925 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
926 section. Add ${RELOCATING-0}.
928 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
930 * emulparams/shelf.sh (STACK_ADDR): Don't define.
931 (OTHER_SECTIONS): Define.
932 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
933 (OTHER_SECTIONS): Undef.
935 2002-06-26 Alan Modra <amodra@bigpond.net.au>
937 * ldmisc.c (demangle): Restore dots stripped from sym name.
939 2002-06-25 H.J. Lu <hjl@gnu.org>
941 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
942 * Makefile.in: Regenerated.
944 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
946 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
947 the size of attached object files, to allow make the object files
948 available via FTP or HTTP and to mention that the mail will be
949 sent to a mailing list.
951 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
953 * ld/configure.host (romp): Drop support.
955 2002-06-18 Chris Demetriou <cgd@broadcom.com>
957 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
958 section flags for SEC_DATA, rather than for SEC_CODE being unset.
960 2002-06-18 Chris Demetriou <cgd@broadcom.com>
962 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
963 format specifier used to print BFD name.
965 2002-06-18 Dave Brolley <brolley@redhat.com>
967 From Catherine Moore, Michael Meissner, Jim Blandy:
968 * emulparams/elf32frv.sh: New file.
969 * configure.tgt: Support frv-*-*.
970 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
971 (eelf32frv.c): New target.
973 2002-06-17 Tom Rix <trix@redhat.com>
975 * emultempl/elf32.em: gld*_get_script: Check for
976 GENERATE_COMBRELOC_SCRIPT.
977 * scripttempl/elfd10v.sc : Fix STACK and INSN.
978 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
980 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
982 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
984 2002-06-12 H.J. Lu <hjl@gnu.org>
986 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
987 false if xvec doesn't match.
989 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
991 * ldlang.c (lang_size_sections_1): Skip removed output sections.
993 2002-06-08 Alan Modra <amodra@bigpond.net.au>
995 * ldexp.c: Replace CONST with const.
996 * ldfile.c: Likewise.
997 * ldfile.h: Likewise.
1000 * pe-dll.h: Likewise.
1002 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1004 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1006 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1008 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1009 to -1 == implicit enable.
1010 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1011 initialize link_info.pei386_auto_import to -1 == implicit
1013 (gld_${EMULATION_NAME}_parse_args): When processing
1014 --enable-auto-import and --disable-auto-import options, use
1015 '1' and '0' instead of 'true' and 'false'.
1016 (pe_find_data_imports): Only issue message about auto-import
1017 when the feature is implicitly enabled. Downgrade message to
1018 informational instead of warning.
1020 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1022 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1024 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1026 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1027 HOSTING_CRT0 and HOSTING_LIBS.
1029 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1031 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1033 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1035 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1036 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1038 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1040 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1041 SEC_EXCLUDE sections when doing a relocatable link.
1043 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1045 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1046 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1047 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1048 (eshlelf64_nbsd.c): New rules.
1049 * Makefile.in: Regenerate.
1050 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1051 (sh64-*-netbsd*): New targets.
1052 * emulparams/shelf32_nbsd.sh: New file.
1053 * emulparams/shelf64_nbsd.sh: New file.
1054 * emulparams/shlelf32_nbsd.sh: New file.
1055 * emulparams/shlelf64_nbsd.sh: New file.
1057 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1059 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1061 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1063 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1064 C++ constructors/destructors, loosely based on the m68hc11 port.
1066 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1068 * Makefile.in: Regenerate.
1069 * aclocal.m4: Regenerate.
1070 * config.in: Regenerate.
1071 * configure: Regenerate.
1073 2002-05-31 Graeme Peterson <gp@qnx.com>
1075 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1076 (ei386nto.c): Add rule.
1077 * Makefile.in: Regenerate.
1078 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1079 * emulparams/i386nto.sh: New file.
1081 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1083 * NEWS: Add entry for VAX ELF support.
1085 2002-05-29 Matt Thomas <matt@3am-software.com>
1086 Jason Thorpe <thorpej@wasabisystems.com>
1088 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1090 (evaxnbsd.c): New rules.
1091 * Makefile.in: Regenerate.
1092 * configure.tgt (vax-*-netbsdelf*)
1094 (vax-*-netbsd*): New targets.
1095 * emulparams/elf32vax.sh: New file.
1096 * emulparams/vaxnbsd.sh: New file.
1098 2002-05-29 Adam Nemet <anemet@lnxw.com>
1100 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1101 bfd_for_interwork, instead add glue sections to each input bfd.
1102 (bfd_for_interwork): New global.
1103 (arm_elf_set_bfd_for_interworking): New function.
1104 (arm_elf_before_allocation): Use it.
1106 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1108 * Makefile.am: Add DLX make target.
1109 * configure.tgt: Add DLX configuration.
1110 * Makefile.in: Regenerate.
1111 * emulparams/elf32_dlx.sh: New file
1112 * scripttempl/dlx.sc: New file
1114 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1116 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1117 * Makefile.in: Regenerate.
1118 * emulparams/elf_chaos.sh: Use elf_chaos script.
1119 * scripttempl/elf_chaos.sc: New file.
1121 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1123 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1124 addresses and regions from here...
1125 (lang_get_regions): ...to this new function.
1126 (lang_leave_output_section_statement): Use lang_get_regions.
1127 (lang_leave_overlay): Likewise.
1128 * mri.c (mri_draw_tree): Pass null as last argument to
1129 lang_leave_output_section_statement.
1130 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1131 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1132 * emultempl/pe.em (gld*_place_orphan): Likewise.
1134 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1136 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1138 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1140 * ldemul.c: Fix formatting.
1141 * ldfile.c: Likewise.
1142 * pe-dll.c: Likewise.
1143 * pe-dll.h: Likewise.
1145 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1147 * ldlang.c (lang_process): Formatting, grammar.
1149 * ldlex.l: Use #include "" instead of <> for local header files.
1151 2002-05-24 TAMURA Kent <kent@netbsd.org>
1153 * configure.tgt: Add a target for i386-netbsdpe.
1155 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1157 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1158 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1159 output section if necessary. Handle .tbss.
1160 (lang_size_sections): Clear _raw_size for .tbss section
1161 (it allocates space in PT_TLS segment only).
1162 * ldwrite.c (build_link_order): Build link order for .tbss too.
1164 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1166 * configure.in: Correct spelling of AC_PREREQ.
1168 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1170 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1172 (autofilter_objlist): Add crtbegin.o, crtend.o.
1174 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1176 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1177 (longopts): Add new option --exclude-libs.
1178 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1179 (gld_${EMULATION_NAME}_parse_args): Use it.
1180 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1181 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1182 from whole archives.
1183 (pe_dll_add_excludes): Set excludes->type.
1184 (auto_export): Add new variable libname and set to archive basename if
1185 abfd. Use it when filtering default and user-specified libarary
1186 excludes. Let string "ALL" mean all libs when filtering user-specified
1188 * ld.texinfo: Document --exclude-libs.
1190 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1192 * ldemul.c (ldemul_new_vers_pattern): New function.
1193 * ldemul.h (ldemul_new_vers_pattern): Declare.
1194 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1195 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1196 * emultempl/ppc64elf.em (dotsyms): New static var.
1197 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1198 (LDEMUL_NEW_VERS_PATTERN): Define.
1199 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1200 (PARSE_AND_LIST_LONGOPTS): Likewise.
1201 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1202 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1204 * emultempl/armcoff.em: Likewise.
1205 * emultempl/armelf_oabi.em: Likewise.
1206 * emultempl/beos.em: Likewise.
1207 * emultempl/elf32.em: Likewise.
1208 * emultempl/generic.em: Likewise.
1209 * emultempl/gld960.em: Likewise.
1210 * emultempl/gld960c.em: Likewise.
1211 * emultempl/linux.em: Likewise.
1212 * emultempl/lnk960.em: Likewise.
1213 * emultempl/m68kcoff.em: Likewise.
1214 * emultempl/mipsecoff.em: Likewise.
1215 * emultempl/pe.em: Likewise.
1216 * emultempl/sunos.em: Likewise.
1217 * emultempl/ticoff.em: Likewise.
1218 * emultempl/vanilla.em: Likewise.
1220 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1222 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1223 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1224 (LIB_SEARCH_DIRS): No need to use "tr".
1225 (COMPILE_IN): Only set for native targets.
1226 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1227 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1228 * configure.tgt (powerpc*): Set tdir_*.
1229 (powerpcle*): Correct targ_extra_emuls.
1230 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1231 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1233 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1235 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1236 calling lang_add_entry.
1238 2002-05-21 H.J. Lu (hjl@gnu.org)
1240 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1242 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1244 * ld.texinfo: Updated for --allow-multiple-definition and
1247 * ldmain.c (main): Initialize the allow_multiple_definition
1250 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1251 (ld_options): Add --allow-multiple-definition.
1252 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1254 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1256 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1257 (earmelfb_nbsd.c): New rule.
1258 * Makefile.in: Regenerate.
1259 * configure.tgt (armeb-*-netbsdelf*): New target.
1260 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1261 (arm-*-netbsd*): Likewise.
1262 * emulparams/armelfb_nbsd.sh: New file.
1264 2002-05-18 Tom Rix <trix@redhat.com>
1266 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1269 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1271 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1272 * Makefile.in: Regenerate.
1273 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1275 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1277 * emulparams/avr1.sh: New file.
1278 * emulparams/avr2.sh: New file.
1279 * emulparams/avr3.sh: New file.
1280 * emulparams/avr4.sh: New file.
1281 * emulparams/avr5.sh: New file.
1282 * scripttempl/avr.sc: New file.
1284 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1286 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1287 (lang_place_orphans): Abort if just_syms_flag.
1289 2002-05-10 Tom Rix <trix@redhat.com>
1291 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1292 architecture and machine information in the output bfd.
1293 (gld*_before_parse): Remove old arch and machine code.
1294 (choose_target): Rename to gld*_choose_target.
1295 (rtld): Change type to int.
1296 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1297 objects in XCOFF archives.
1298 * ldfile.h: Update copyright date.
1300 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1302 * ldmain.c (main): Enable -z combreloc by default.
1304 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1306 * Makefile.am: Honour DESTDIR.
1307 * Makefile.in: Regenerate.
1309 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1311 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1312 (lang_enter_overlay): Remove the last two parameters.
1313 (lang_leave_overlay): Take them here instead.
1314 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1315 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1316 than lang_enter_overlay.
1317 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1318 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1319 (lang_size_sections_1): Evaluate it.
1320 (lang_leave_output_section_statement): Rework LMA lookup.
1321 (overlay_lma, overlay_nocrossrefs): Remove.
1322 (lang_enter_overlay): Remove LMA and crossref arguments.
1323 (lang_enter_overlay_section): Don't set the LMA here.
1324 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1325 assignment to the last section's update_dot_tree. Unconditionally
1326 use the load and run-time regions specified in the OVERLAY statement.
1327 Likewise the first section's LMA. Only set the other sections' LMAs
1328 when no load region is given.
1330 2002-05-06 Nick Clifton <nickc@redhat.com>
1332 * po/sv.po: New translation.
1334 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1336 * emultempl/hppaelf.em (build_section_lists): New function.
1337 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1338 and build_section_lists.
1340 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1342 * ld.h: Fix formatting.
1343 * ldexp.c: Likewise.
1344 * ldfile.c: Likewise.
1345 * ldlang.c: Likewise.
1346 * ldmain.c: Likewise.
1347 * lexsup.c: Likewise.
1348 * pe-dll.c: Likewise.
1350 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1352 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1353 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1354 (build_section_lists): Do output_section tests here.
1356 2002-04-30 Tom Rix <trix@redhat.com>
1358 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1360 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1362 Long branch stubs, multiple stub sections.
1363 * emultempl/ppc64elf.em: Include ldctor.h.
1364 (stub_file): New var.
1365 (group_size): New var.
1366 (ppc_create_output_section_statements): New function.
1367 (struct hook_stub_info): New.
1368 (hook_in_stub): New function.
1369 (ppc_add_stub_section): New function.
1370 (ppc_layout_sections_again): New function.
1371 (build_section_lists): New function.
1372 (gld${EMULATION_NAME}_finish): Rewrite.
1373 (real_func): New var.
1374 (ppc_for_each_input_file_wrapper): New function.
1375 (ppc_lang_for_each_input_file): New function.
1376 (lang_for_each_input_file): Define.
1377 (PARSE_AND_LIST_PROLOGUE): Define.
1378 (PARSE_AND_LIST_LONGOPTS): Define.
1379 (PARSE_AND_LIST_OPTIONS): Define.
1380 (PARSE_AND_LIST_ARGS_CASES): Define.
1381 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1383 2002-04-30 Tom Rix <trix@redhat.com>
1385 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1386 -blibpath, -bnolibpath support.
1388 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1390 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1391 (eelf32ppcwindiss.c): New target.
1392 * Makefile.in: Regenerated.
1393 * configure.tgt: Add support for powerpc-*-windiss.
1394 * emulparams/elf32ppcwindiss.sh: New file.
1396 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1398 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1399 * ldexp.c (exp_print_token): Add "infix_p" argument.
1400 (exp_print_tree): Update accordingly.
1402 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1404 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1405 * Makefile.in: Regenerate.
1406 * mpw-elfmips.c: Delete.
1407 * mpw-eppcmac.c: Delete.
1408 * mpw-esh.c: Delete.
1409 * mpw-idtmips.c: Delete.
1411 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1413 * emulparams/shelf32.sh (MACHINE): Now sh5.
1415 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1417 * ldgram.y: Fix syntax warning.
1419 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1421 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1422 to prevent "-n" from being taken as an abbreviation for
1423 "--no-pipeline-knowledge".
1425 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1427 * ldlang.c (lang_size_sections_1): Don't complain about
1428 SEC_NEVER_LOAD sections having no memory region specified.
1430 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1432 2002-04-07 matthew green <mrg@redhat.com>
1434 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1436 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1438 * dep-in.sed: Cope with absolute paths.
1439 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1441 * Makefile.in: Regenerate.
1443 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1445 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1447 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1449 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1450 is smaller than maximum, round dot up to common page boundary.
1452 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1454 * configure.host: Set up for generic hosts first, then tweak as
1455 necessary in more specific targets.
1456 (HOSTING_LIBS): Include libgcc_eh.a if found.
1458 2002-03-23 Andreas Jaeger <aj@suse.de>
1460 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1462 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1464 * Makefile.am: Run "make dep-am".
1465 * Makefile.in: Regenerate.
1467 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1469 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1471 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1473 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1474 add the symbol to the linker hash table immediately.
1475 (lang_place_undefineds): Split symbol creation out..
1476 (insert_undefined): ..to here.
1478 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1480 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1481 the contents of the buffer returned from basename function will are
1482 getting overwritten while still being used.
1484 2002-03-18 Jan Hubicka <jh@suse.cz>
1485 Andreas Jaeger <aj@suse.de>
1486 Andreas Schwab <schwab@suse.de>
1488 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1489 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1490 set libraries to default to lib64 paths.
1492 2002-03-18 Tom Rix <trix@redhat.com>
1494 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1495 * configure.tgt : Same.
1496 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1497 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1498 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1499 emulation parameters for better -b32, -b64 support.
1500 * emulparms/aixrs6.sh : Same.
1501 * emulparms/ppcmacos.sh : Same.
1502 * emultempl/aix.em (choose_target) : Use new emulation parameters
1503 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1504 * Makefile.in : Regenerate.
1506 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1508 * po/fr.po: Updated version.
1510 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1512 * ldmain.c (main): Move .text readonly flag fudges from here..
1513 * ldlang.c (lang_process): ..to here.
1515 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1517 * ldlang.c (lang_check): Remove the word size check added in last
1518 change. Treat emitrelocations case as for relocatable links.
1520 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1522 * po/fr.po: Updated version.
1524 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1526 * ldlang.c (lang_check): Do relocatable link checks first, so that
1527 warn_mismatch can't override. Check compatible and word size too.
1529 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1531 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1533 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1535 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1538 2002-03-04 H.J. Lu <hjl@gnu.org>
1540 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1541 .fini_array in the data segment.
1543 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1545 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1547 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1549 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1550 .init_array, and .fini_array.
1552 2002-02-20 Andreas Schwab <schwab@suse.de>
1554 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1555 .IA64_unwind* in a relocatable link.
1557 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1559 * NEWS: Mark 2.12 branch.
1561 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1563 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1564 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1566 2002-02-18 Tom Rix <trix@redhat.com>
1568 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1569 (gld*_before_allocation): Same.
1570 (gld*_create_output_section_statements): Generate
1571 __rtinit if run time linking. Add librtl.a to the link.
1572 (gld*_read_file): Clean.
1574 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1576 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1578 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1580 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1581 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1582 and eelf64alpha_fbsd.
1583 * Makefile.in: Regenerate.
1584 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1585 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1586 use a FreeBSD-specific emulation rather than the psABI one.
1587 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1588 for all FreeBSD ELF systems.
1589 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1591 * emulparams/elf32ppc_fbsd.sh: Likewise.
1592 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1593 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1594 * emulparams/elf64alpha_fbsd.sh: Likewise.
1595 * emulparams/elf_i386_fbsd.sh: Likewise.
1596 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1598 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1600 * po/tr.po: Updated version.
1602 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1604 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1607 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1609 * emultempl/mmo.em (mmo_after_open): Don't call
1610 _bfd_mmix_check_all_relocs when producing ELF output.
1612 2002-02-15 Richard Henderson <rth@redhat.com>
1614 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1615 definition. Emit a unop+nop pair.
1617 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1619 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1620 for presence of .MMIX.reg_contents.linker_allocated before early
1623 * NEWS: Mention support for MMIX.
1625 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1627 Support arbitrary length fill patterns.
1628 * ld.texinfo (Output Section Fill): Describe fill expressions.
1629 (FILL): Refer to the above.
1630 * ldexp.h (etree_value_type): Add "str" field.
1631 (union etree_union): Add "str" to "value" struct.
1632 (exp_bigintop): Declare.
1633 (exp_get_fill): Declare.
1634 * ldexp.c: Include "safe-ctype.h".
1635 (exp_intop): Set value.str to NULL.
1636 (exp_bigintop): New function.
1637 (new_rel): Pass in "str", and set new.str from it.
1638 (new_rel_from_section): Set new.str to NULL.
1639 (fold_name): Adjust calls to new_rel.
1640 (exp_fold_tree): Likewise.
1641 (exp_get_fill): New function.
1642 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1643 (INT): Returns a "bigint". Adjust all code handling INTs.
1644 (fill_opt): Returns a "fill".
1645 (fill_exp): Split out of fill_opt, use for FILL.
1646 * ldlang.h (struct _fill_type): New.
1647 (fill_type): Move typedef to ldexp.h.
1648 (lang_output_section_statement_type): "fill" is now a pointer.
1649 (lang_fill_statement_type): Likewise.
1650 (lang_padding_statement_type): Likewise.
1651 (lang_add_fill): Now takes a "fill_type *" param.
1652 (lang_leave_output_section_statement): Likewise.
1653 (lang_do_assignments): Likewise.
1654 (lang_size_sections): Likewise.
1655 (lang_leave_overlay_section): Likewise.
1656 (lang_leave_overlay): Likewise.
1657 * ldlang.c: Include ldgram.h after ldexp.h.
1658 (lang_output_section_statement_lookup): Adjust for fill_type change.
1659 (print_fill_statement): Likewise.
1660 (print_padding_statement): Likewise.
1661 (insert_pad): Now takes a "fill_type *" arg.
1662 (size_input_section): Likewise.
1663 (lang_size_sections_1): Likewise.
1664 (lang_size_sections): Likewise.
1665 (lang_do_assignments): Likewise.
1666 (lang_add_fill): Likewise.
1667 (lang_leave_output_section_statement): Likewise.
1668 (lang_leave_overlay_section): Likewise.
1669 (lang_leave_overlay): Likewise.
1670 Adjust all callers of the above function.
1671 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1672 starting with "0X" as well as "0x". Return bigint.str for hex
1673 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1674 Always use base 16 for numbers starting with "$".
1675 * ldmain.c: Include ldgram.h after ldexp.h.
1676 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1677 of bfd_fill_link_order.
1678 * pe-dll.c: Adjust lang_do_assignments calls.
1679 * emultempl/elf32.em: Likewise.
1680 * emultempl/hppaelf.em: Likewise.
1681 * emultempl/ppc64elf.em: Likewise.
1682 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1683 lang_add_assignment call.
1684 * emultempl/pe.em: Likewise.
1686 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1688 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1689 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1690 the pattern in question is not a regexp.
1691 * ldlang.c: Likewise.
1692 * ldlang.h: Likewise.
1693 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1695 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1697 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1698 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1699 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1700 * ldexp.c (exp_data_seg): New variable.
1701 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1702 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1703 (exp_fold_tree): Handle DATA_SEGMENT_END.
1704 Pass allocation_done when recursing instead of hardcoding
1705 lang_allocating_phase_enum.
1706 * ldexp.h (exp_data_seg): New.
1707 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1708 (lang_size_sections): New.
1709 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1710 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1711 if COMMONPAGESIZE is defined.
1712 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1713 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1714 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1715 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1716 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1719 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1721 * Makefile.in: Regenerate.
1723 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1725 * lexsup.c: Remove strtoul declaration.
1727 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1729 * ldmain.c: Add prototype for main ().
1730 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1731 * emultempl/lnk960.em (lnk960_choose_target): Function should
1734 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1736 * ldlang.c (entry_section): New initialised variable.
1737 (lang_finish): Use it.
1738 * ldlang.h (entry_section): Declare.
1739 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1740 entry_section to ".opd".
1742 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1744 * ld.texinfo (Options): Add back in -nostdlib documentation,
1745 which had been inadvertently removed.
1747 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1749 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1750 register section vma to a sane value after emitting error. Make
1751 fatal conditions cause program exit when emitting message.
1753 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1755 * configure.tgt: Add or32-*-rtems target.
1757 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1759 Contribute sh64-elf.
1760 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1761 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1762 in OTHER_RELOCATABLE_SECTIONS.
1763 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1764 * emulparams/shelf32.sh (STACK_ADDR): Define.
1765 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1766 (OTHER_SECTIONS): this. Removed stack settings.
1767 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1768 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1769 2001-03-12 DJ Delorie <dj@redhat.com>
1770 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1771 relaxing if any shmedia or mixed sections are found.
1772 2001-03-07 DJ Delorie <dj@redhat.com>
1773 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1774 einfo. Gracefully decline to output to non-elf formats.
1775 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1776 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1777 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1778 * emulparams/shelf32.sh: Ditto.
1779 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1780 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1782 2001-01-10 Ben Elliston <bje@redhat.com>
1783 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1784 non-portable shell constructs. From Hans-Peter Nilsson.
1785 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1786 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1787 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1788 dependencies to the shell script include chain.
1789 * Makefile.in: Regenerate.
1790 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1791 * emultempl/sh64elf.em: Update and tweak comments.
1792 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1793 make a .cranges section SEC_IN_MEMORY.
1794 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1795 * emultempl/sh64elf.em
1796 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1797 .cranges section found to be necessary; continue and set stored
1798 section contents flags for sections with non-mixed contents.
1799 Use a struct sh64_section_data container and sh64_elf_section_data
1800 to store contents-type flags.
1801 Remove unused update of "isec".
1802 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1803 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1804 access contents-type flags. Assert that the associated container
1805 is initialized. Use that container, not elf_gp_size, to hold size
1806 of linker-generated cranges contents.
1807 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1808 * emultempl/sh64elf.em
1809 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1810 there's already a .cranges section. When section flag difference
1811 is found, don't NULL-check cranges a second time. Tweak comments.
1812 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1813 merging, not max size, as size of ld-generated .cranges contents.
1814 Don't set ELF section flags in output section. When checking for
1815 needed .cranges descriptors, don't use a variable; compare
1816 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1818 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1819 * emultempl/sh64elf.em: New file.
1820 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1821 * Makefile.in: Regenerate.
1822 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1823 (OTHER_RELOCATING_SECTIONS): Ditto.
1824 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1825 * emulparams/shlelf32.sh: Stub out all settings except
1826 OUTPUT_FORMAT. Source shelf32.sh.
1827 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1828 OTHER_RELOCATING_SECTIONS.
1829 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1830 * emulparams/shlelf64.sh: Stub out all settings except
1831 OUTPUT_FORMAT. Source shelf64.sh.
1832 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1833 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1835 (DATA_START_SYMBOLS): Define, provide ___data.
1836 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1837 for consecutive .data section.
1838 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1839 section after .data section.
1840 * emulparams/shlelf64.sh: Ditto.
1841 * emulparams/shelf32.sh: Ditto.
1842 (ALIGNMENT): Define to 8.
1843 * emulparams/shelf32.sh: Ditto.
1844 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1845 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1846 built-in linker scripts.
1847 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1848 * emulparams/shlelf64.sh: New.
1849 * emulparams/shelf64.sh: New.
1850 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1852 * Makefile.am: Add support for shlelf64 and shelf64.
1853 * Makefile.in: Regenerate.
1854 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1855 * configure.tgt (sh64-*-elf*): Add shelf as default.
1856 Add shlelf to targ_extra_emuls.
1857 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1858 * emulparams/shelf32.sh: New file.
1859 * emulparams/shlelf32.sh: New file.
1860 * Makefile.am: Add support for shlelf32 and shelf32.
1861 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1862 * Makefile.in: Regenerate.
1864 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1866 * ldlang.c (lang_reset_memory_regions): Rename from
1867 reset_memory_regions. Change all callers. Make public.
1868 * ldlang.h (lang_reset_memory_regions): Prototype.
1869 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1870 lang_reset_memory_regions before lang_size_sections.
1871 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1872 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1874 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1876 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1877 arithmetic when checking for too many global registers.
1879 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1881 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1882 (ehppanbsd.c): New rule.
1883 * Makefile.in: Regenerate.
1884 * configure.tgt (hppa*-*-netbsd*): New target.
1885 * emulparams/hppalinux.sh: Add comment to check other files
1886 that source this file it is modified, and list which
1888 * emulparams/hppanbsd.sh: New file.
1890 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1892 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1895 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1897 Support on-demand global register allocation from
1898 R_MMIX_BASE_PLUS_OFFSET relocs.
1899 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1900 mmix_set_reg_section_vma. Call
1901 _bfd_mmix_finalize_linker_allocated_gregs.
1902 (mmix_before_allocation): New function.
1903 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1904 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1905 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1906 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1907 before .MMIX.reg_contents.
1908 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1909 (mmo_after_open): New function.
1910 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1911 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1912 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1914 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1916 * emulparams/or32.sh: New file.
1917 * emulparams/or32elf.sh: New file.
1918 * scripttempl/or32.sc: New file.
1919 * configure.tgt : Add support for or32.
1920 * configure: Regenerate
1921 * Makefile.am: Add support for or32.
1922 * Makefile.in: Regenerate.
1923 * NEWS: Mention support for or32.
1924 * po/ld.pot: Regenerate.
1926 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1927 Mitch Lichtenberg <mpl@broadcom.com>
1929 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1930 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1931 reloc creation (ld --embedded-relocs).
1933 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1935 * configure: Regenerated.
1937 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1939 * Makefile.am (install): Depend on install-info.
1940 * Makefile.in: Regenerate.
1942 2002-01-26 Christian Rose <menthos@menthos.com>
1944 * ldmain.c (main): Use full sentences to ease translation.
1946 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1948 * po/fr.po: Updated version.
1950 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1952 * po/es.po: Updated version.
1954 2002-01-25 Andreas Jaeger <aj@suse.de>
1956 * ldlex.l (yy_input): Correct error check.
1958 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1960 * ldmisc.c (demangle): Put back dots when string not demangled.
1962 2002-01-22 Richard Henderson <rth@redhat.com>
1964 * emulparams/elf64alpha.sh (NOP): Use unop.
1966 2002-01-21 Andreas Jaeger <aj@suse.de>
1968 * ldlex.l: Use fread instead of read.
1970 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1972 * configure.tgt (ia64-*-netbsd*): New target.
1974 2002-01-21 H.J. Lu <hjl@gnu.org>
1976 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1978 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1980 2002-01-18 Andreas Jaeger <aj@suse.de>
1982 * ldver.c (ldversion): Update year.
1984 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1986 * po/ld.pot: Regenerate.
1988 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1990 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1991 * Makefile.in: Regenerate.
1992 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1993 * emultempl/ppc64elf.em: New file.
1995 2002-01-15 DJ Delorie <dj@redhat.com>
1997 * scripttempl/pe.sc: Add support for constructor priorities.
1999 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2001 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2002 * emulparams/avr23xx.sh: Likewise.
2003 * emulparams/avr4433.sh: Likewise.
2004 * emulparams/avr44x4.sh: Likewise.
2005 * emulparams/avr85xx.sh: Likewise.
2006 * emulparams/avrmega103.sh: Likewise.
2007 * emulparams/avrmega161.sh: Likewise.
2008 * emulparams/avrmega603.sh: Likewise.
2009 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2011 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2013 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2014 archive is excluded.
2016 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2018 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2019 (eshelf_nbsd.c): New rule.
2020 (eshlelf_nbsd.c): New rule.
2021 * Makefile.in: Regenerate.
2022 * configure.tgt (sh*le-*-netbsdelf*): New target.
2023 (sh*-*-netbsdelf*): New target.
2024 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2025 * ld/emulparams/shelf_nbsd.sh: New emulation.
2026 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2028 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2030 * po/es.po: New file: Spanish translation.
2031 * configure.in (ALL_LINGUAS): Add es.
2032 * configure: Regenerate.
2034 2002-01-06 John Marshall <jmarshall@acm.org>
2036 * ld.texinfo: Note that --emit-relocs is currently only
2037 implemented for ELF.
2039 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2041 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2042 of bfd_section_list_remove and bfd_section_list_insert macros.
2043 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2044 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2046 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2048 * configure.tgt (x86_64-*-netbsd*): New target.
2050 2001-12-21 Tom Rix <trix@redhat.com>
2052 (gld*_create_output_section_statements): New function.
2053 For -binitfini support.
2054 * emultempl/aix.em (gld*_before_parse): Fix comment.
2055 * emultempl/aix.em (gld*_parse_args): Fix comment.
2057 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2059 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2061 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2063 * configure.tgt (arm-*-netbsdelf*): Add target.
2064 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2065 * emulparams/armelf_nbsd.sh: Added.
2066 * Makefile.am: Add rules for earmelf_nbsd.
2067 * Makefile.in: Regenerate.
2069 2001-12-19 Andreas Jaeger <aj@suse.de>,
2070 Susanne Oberhauser <froh@suse.de>
2072 * configure.host: Add rules for x86_64-*linux-gnu. Change
2073 s390x-linux entry to use gcc to report configuration, replace gcc
2074 with $CC in s390-linux
2076 2001-12-19 Andreas Jaeger <aj@suse.de>
2078 * ld.texinfo (VERSION): Fix markup.
2080 2001-12-18 matthew green <mrg@eterna.com.au>
2082 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2083 (m68kelfnbsd.c): New rule.
2084 * Makefile.in: Regenerate.
2085 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2086 (m68*-*-netbsd*4k*): .. this.
2087 (m68*-*-netbsdelf*): New target.
2088 (m68*-*-netbsd*): Also include ELF support.
2089 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2090 * emulparams/m68kelfnbsd.sh: New emulation.
2092 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2094 * ldgram.y (vers_node): Support anonymous version tags.
2095 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2096 tag is not defined together with non-anonymous versions.
2097 * ld.texinfo: Document it.
2099 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2101 * po/tr.po: New file: Turkish translation.
2102 * configure.in (ALL_LINGUAS): Add tr.
2103 * configure: Regenerate.
2105 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2107 * Makefile.am: Add rules for eelf64alpha_nbsd.
2108 * Makefile.in: Regenerate.
2109 * configure.tgt (alpha*-*-netbsd*): Set
2110 targ_emul to elf64alpha_nbsd.
2111 * emulparams/elf64alpha_nbsd.sh: Added.
2113 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2115 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2116 section_tail when fiddling with section list.
2117 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2118 broken into separate strings to make translation easier.
2119 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2120 fiddling with section list.
2121 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2123 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2125 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2127 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2129 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2131 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2133 * emultempl/elf32.em (finish): Supply output_bfd
2134 to bfd_elf*_discard_info.
2135 (OPTION_EH_FRAME_HDR): Define.
2136 (longopts): Add --eh-frame-hdr.
2137 (parse_args): Handle it.
2138 (list_options): Add --eh-frame-hdr to help.
2139 * emultempl/hppaelf.em (finish): Supply output_bfd
2140 to bfd_elf*_discard_info.
2141 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2143 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2145 * lexsup.c (parse_args): Don't pass shortopts to second call to
2146 getopt functions. Restore optind rather than decrementing before
2147 second call. Remove errind as it now duplicates last_optind.
2149 2001-12-11 Christopher Faylor <cgf@redhat.com>
2151 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2153 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2154 Richard Henderson <rth@redhat.com>
2156 * Makefile.am: Add support for xstormy16.
2157 * configure.tgt: Add support for xstormy16.
2158 * Makefile.in: Regenerate.
2159 * emulparams/elf32xstormy16.sh: New file.
2160 * scripttempl/xstormy16.sc: New file.
2162 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2164 * Makefile.in (LIB_PATH): Make configurable.
2165 (GENSCRIPTS): Set LIB_PATH in environment.
2166 * configure.in: Substitute LIB_PATH.
2167 * configure: Regenerate.
2168 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2169 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2171 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2173 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2174 describing the -N option so that it is easier to translate into
2177 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2179 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2180 statements describing a single option with a single, newline
2181 escaped fprintf. This allows better translation into other
2184 * ldmain.c (add_archive_element): Combine multiple strings
2185 into a single string to permit better translation into other
2188 2001-12-05 Tom Rix <trix@redhat.com>
2190 * Makefile.am: Remove eaixppc64.
2191 * Makefile.in: Regenerate.
2193 2001-12-04 Tom Rix <trix@redhat.com>
2195 * emultempl/aix.em (choose_target): Change default target to
2196 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2198 (gld*_read_file): Fix typo.
2199 (change_symbol_mode): Add prototype.
2202 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2203 * emulparams/aixrs6.sh : Same.
2204 * emulparams/ppcmacos.sh : Same.
2205 * emulparams/aixppc64.sh : Delete file.
2206 * emultempl/aix.em : Formatting changes.
2208 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2210 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2211 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2213 (OTHER_END_SYMBOLS): Fix formatting.
2214 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2215 (OTHER_END_SYMBOLS): Fix formatting.
2217 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2219 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2221 2001-12-02 Tom Rix <trix@redhat.com>
2223 * configure.tgt : Remove eaixppc64 emulations.
2224 * Makefile.in : Remove eaixppc64.c
2225 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2226 (ldemul_default_target): Same.
2227 * emultempl/gld960.em (gld960_choose_target): Same.
2228 * emultempl/gld960c.em (gld960_choose_target): Same.
2229 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2230 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2231 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2232 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2233 * emultempl/aix.em (choose_target): New function. Handle emulation of
2236 2001-11-27 H.J. Lu <hjl@gnu.org>
2238 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2239 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2240 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2241 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2242 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2243 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2244 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2245 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2247 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2250 (REL_SDATA): Likewise.
2251 (REL_SBSS): Likewise.
2252 (REL_SDATA2): Likewise.
2253 (REL_SBSS2): Likewise.
2254 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2257 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2259 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2261 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2263 2001-11-22 H.J. Lu <hjl@gnu.org>
2265 * Makefile.in: Regenerated with automake based on automake
2266 1.4-8 in RedHat 7.1.
2268 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2270 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2271 (config.status): Delete rule.
2272 Add extra dependencies to cover sourced emulparams files.
2273 * Makefile.in: Regenerate.
2275 * scripttempl/elf.sc: Order <section>, <section>.* and
2276 corresponding linkonce sections as seen in input files.
2277 Formatting fixes. Zero vma of all sections if not relocating.
2278 (STACK): Define and insert if STACK_ADDR defined.
2279 (OTHER_RELOCATING_SECTIONS): Delete.
2280 (OTHER_END_SYMBOLS): Define.
2281 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2282 (OTHER_READWRITE_SECTIONS): Likewise.
2283 (OTHER_GOT_SECTIONS): Likewise.
2284 (OTHER_SDATA_SECTIONS): Likewise.
2285 (OTHER_BSS_SECTIONS): Likewise.
2286 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2287 (OTHER_READWRITE_SECTIONS): Likewise.
2288 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2289 (OTHER_READWRITE_SECTIONS): Likewise
2291 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2292 (STACK_ADDR): Define.
2293 * emulparams/armelf_oabi.sh: As for armelf.sh.
2294 * emulparams/elf32mcore.sh: As for armelf.sh.
2295 * emulparams/h8300elf.sh: As for armelf.sh.
2296 * emulparams/mn10200.sh: As for armelf.sh.
2297 * emulparams/shelf.sh: As for armelf.sh.
2299 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2300 (OTHER_END_SYMBOLS): Define.
2301 * emulparams/m32relf.sh: As for elf32fr30.sh.
2302 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2303 * emulparams/h8300self.sh: As for elf32fr30.sh.
2305 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2306 defines with RELOCATING test.
2307 (OTHER_SDATA_SECTIONS): Likewise.
2308 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2309 (OTHER_END_SYMBOLS): ..this.
2310 * emulparams/crislinux.sh: As for criself.sh.
2312 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2314 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2315 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2316 normal and linkonce sections as seen in input files.
2317 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2318 (TEXT_DYNAMIC): Likewise.
2319 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2320 (OTHER_SDATA_SECTIONS): Likewise.
2321 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2322 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2323 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2324 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2325 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2326 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2327 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2328 sections as seen in input files.
2329 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2330 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2332 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2333 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2334 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2335 (OTHER_SECTIONS): Instead, use this..
2336 (OTHER_END_SYMBOLS): ..and this.
2338 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2339 * emulparams/elf32bsmip.sh: Likewise.
2340 * emulparams/elf32btsmip.sh: Likewise.
2341 * emulparams/elf32ebmip.sh: Likewise.
2342 * emulparams/elf32lmip.sh: Likewise.
2343 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2344 * emulparams/elf32lsmip.sh: Likewise.
2345 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2346 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2347 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2348 * emulparams/elf64btsmip.sh: Likewise.
2349 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2350 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2351 * emulparams/elf32ppclinux.sh: Likewise.
2352 * emulparams/elf32ppcsim.sh: Likewise.
2353 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2354 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2355 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2356 * emulparams/h8300self.sh: Likewise.
2357 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2358 * emulparams/sh.sh: Comment.
2359 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2360 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2361 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2363 2001-11-21 David Heine <dlheine@tensilica.com>
2364 Alan Modra <amodra@bigpond.net.au>
2366 * ldlang.c (map_input_to_output_sections): Replace "break"
2367 accidentally removed with 2001-08-03 change.
2368 (lang_gc_sections_1): Likewise.
2370 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2372 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2374 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2376 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2377 of false when calling lang_size_sections.
2378 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2380 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2382 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2383 function when LDEMUL_FINISH isn't set to the same name. Don't
2384 call ${LDEMUL_FINISH}.
2385 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2386 * emultempl/armelf.em (arm_elf_finish): Call
2387 gld${EMULATION_NAME}_finish.
2388 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2389 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2390 hppaelf_layout_sections_again if necessary.
2391 (need_laying_out): New var.
2392 (hppaelf_layaout_sections_again): Rename to
2393 hppaelf_layout_sections_again. Clear need_laying_out.
2394 (PARSE_AND_LIST_OPTIONS): Format text.
2396 2001-11-14 H.J. Lu <hjl@gnu.org>
2398 * emultempl/armelf.em (arm_elf_finish): Renamed from
2399 gld${EMULATION_NAME}_finish.
2400 (LDEMUL_FINISH): Set to arm_elf_finish.
2402 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2404 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2405 (struct ld_emulation_xfer_struct): Use it.
2407 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2409 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2410 additional symbols referenced by newer crt0.o files from HP.
2412 2001-11-12 Anthony Green <green@redhat.com>
2414 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2416 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2418 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2419 * Makefile.in: Regenerate.
2421 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2423 * ld.texinfo: Use @command for commands, @option for options.
2424 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2426 * Makefile.in: Rebuild.
2428 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2430 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2431 Add support for targets.
2433 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2435 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2436 * configure: Regernate.
2437 * po/fr.po: New file.
2438 * po/sv.po: New file.
2440 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2442 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2443 as little endian default and to support big endian.
2445 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2447 * ld.texinfo (Options): Document new option, -nostdlib.
2448 * lexsup.c (OPTION_NOSTDLIB): New definition.
2449 (ld_options): Add entry for "nostdlib".
2450 (parse_args): Handle OPTIONS_NOSTDLIB.
2451 * ldfile.c (ldfile_add_library_path): Don't add directories
2452 to the search path if they weren't specified on the command line
2453 and -nostdlib was specified.
2454 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2456 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2458 * lexsup.c (parse_args): Prevent infinite parsing loop when
2459 "-rpath.a" is specified on the command line.
2460 Replace calls to fprintf with calls to einfo.
2462 2001-10-31 John Marshall <jmarshall@acm.org>
2464 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2465 appear only once across all the linker scripts involved in a link
2466 invocation no longer applies. Make the documentation reflect
2469 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2471 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2473 (sh-*-linux*): Added targ_extra_libpath.
2475 2001-10-31 David Heine <dlheine@tensilica.com>
2477 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2478 for padding statements.
2480 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2482 * configure.tgt (mmix-*-*): New target.
2483 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2484 Add dependencies to match.
2485 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2486 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2487 scripttempl/mmo.sc: New files.
2488 * gen-doc.texi: @set MMIX.
2489 * ld.texinfo: Ditto.
2490 [MMIX] Add MMIX node.
2491 * Makefile.in: Regenerate.
2493 2001-10-29 Kazu Hirata <kazu@hxi.com>
2495 * ldlang.c: Fix a comment typo.
2497 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2499 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2500 entries, and match *-*-linux*.
2502 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2504 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2505 with ldlex_script, ldlex_popstate.
2506 (ifile_p1): Likewise.
2507 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2509 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2510 to 1. Don't BEGIN(SCRIPT).
2511 (lex_redirect): Similarly.
2512 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2514 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2516 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2517 __EH_FRAME_END__ and accept eh frames into data section.
2518 Add ctor and dtor sections.
2520 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2522 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2523 (auto-export): Fix indentation.
2525 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2527 * pe-dll.c (autofilter_objectlist): Add startup objects
2529 (auto-export): Constify char * p.
2530 Extract file basename and use strcmp rather than ststr
2533 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2535 * ldmain.c (get_emulation): Improve comment about the handling
2538 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2540 * po/POTFILES.in: Regenerate.
2542 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2544 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2545 -z nocopyreloc and -z nocombreloc usage strings.
2547 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2549 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2552 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2554 * scripttempl/armaout.sc: Place .bss section after end of aligned
2555 data section to match behaviour of aout code in constructrion of
2558 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2560 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2561 startup files for mingw32 dlls to list.
2563 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2565 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2567 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2569 * configure.tgt (targ): Add arm9e-*-elf.
2571 2001-10-05 H.J. Lu <hjl@gnu.org>
2573 * genscripts.sh: Fix a typo in the last change.
2575 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2577 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2578 -z nocombreloc in usage.
2580 2001-10-03 Jim Blandy <jimb@redhat.com>
2582 * genscripts.sh: Include a comment at the top of each generated
2583 script, explaining its purpose.
2585 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2587 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2588 * NEWS: Mention -z nocopyreloc.
2589 * ld.texinfo (Options): Describe nocopyreloc.
2591 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2593 * configure: Regenerate.
2595 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2597 * ldver.h (ld_program_version): Remove declaration.
2598 * lexsup.c (parse_args): Move printing of copyright message..
2599 * ldver.c (ldversion): .. to here.
2600 Use BFD_VERSION_STRING in place of BFD_VERSION.
2601 (ld_program_version): Remove.
2602 * Makefile.am (Makefile): Depend on bfd/configure.in.
2604 * Makefile.in: Regenerate.
2606 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2608 * Makefile.am: Update dependencies with "make dep-am".
2609 * Makefile.in: Regenerate.
2611 2001-09-29 John Reiser <jreiser@BitWagon.com>
2613 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2614 * lexsup.c: Add --no-define-common commandline option.
2615 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2616 * ldlex.l: Likewise.
2617 * ld.h: Add command_line.inhibit_common_definition.
2618 * ldmain.c (main): Initialize.
2619 * ld.texinfo: Document.
2621 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2623 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2625 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2627 * ldmisc.c (USE_STDARG): Remove.
2628 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2633 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2634 declarations. Update copyright.
2636 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2638 * pe-dll.c: Remove obsoleted declaration of
2639 pe_get_data_import_dll_name.
2640 (pe_create_import_fixup): Fix thinko.
2642 * ld.texinfo(enable-auto-import): Clarify the explanation.
2644 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2646 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2647 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2648 DLL_SUPPORT controlled code.
2650 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2652 * emultempl/pe.em(pe_data_import_dll): Make static.
2653 (pe_get_data_import_dll_name): New accessor function.
2654 * pe-dll.c(pe_create_import_fixup): call
2655 pe_get_data_import_dll_name() from pe.em, instead of
2656 directly accessing pe_data_import_dll variable from pe.em.
2658 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2660 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2661 (def_file_add_directive): Use ISSPACE instead of isspace.
2662 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2663 isdigit/isxdigit/isalpha/isalnum.
2664 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2665 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2666 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2667 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2669 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2670 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2672 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2673 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2674 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2675 (ctor_prio): Use ISDIGIT instead of isdigit.
2676 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2677 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2678 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2680 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2681 (stricpy): Use TOLOWER instead of isupper/tolower.
2682 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2683 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2684 (lex_warn_invalid): Use ISPRINT instead of isprint.
2685 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2686 (main): For gettext, also set the LC_CTYPE locate facet.
2687 (add_keepsyms_file): Use ISSPACE instead of isspace.
2688 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2689 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2690 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2691 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2692 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2693 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2694 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2695 (quoteput): Use ISSPACE instead of isspace.
2696 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2699 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2701 * deffilep.y (def_stash_module): Constify "name" param.
2703 * pe-dll.c: Replace CONST with const throughout.
2704 (quick_symbol): Constify "n1", "n2", "n3" params.
2705 (make_singleton_name_thunk): Constify "import" param. Make
2706 "buffer_len" a size_t.
2707 (make_import_fixup_entry): Constify "name", "fixup_name",
2708 "dll_symname" params.
2709 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2710 (pe_get32): Likewise.
2711 (pe_implied_import_dll): Likewise.
2713 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2714 (sort_by_section_name): Likewise.
2716 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2717 (make_import_fixup): Cast printf arg, rel->address to long rather
2719 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2721 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2723 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2724 defines BufferSize. Increase buffer size by one.
2726 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2728 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2730 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2732 * configure.tgt: Add arm-openbsd target.
2734 2001-09-12 H.J. Lu <hjl@gnu.org>
2736 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2738 (ALL_64_EMULATIONS): Here.
2739 * Makefile.in: Regenerated.
2741 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2743 * emultempl/pe.em(make_import_fixup): change signature to
2744 take asection as well as arelec; we need this for proper
2745 error reporting. Only call pe_create_import_fixup() if
2746 there is no attempt to add a constant addend to the reloc;
2747 otherwise, report error condition.
2748 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2749 since final argument is a pointer to make_import_fixup().
2750 Change call to cb() to match make_import_fixup() signature.
2751 (make_import_fixup_mark): make buffer_len unsigned.
2752 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2754 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2756 * ld.texinfo: add verbose documentation for auto-import
2757 direct-addressing workaround, to compliment the terse
2760 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2762 * scripttempl/v850.sc: Add gcc_except_table sections.
2764 2001-09-11 Jeffrey A Law (law@cygnus.com)
2766 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2767 * emulparams/h8300self.sh: Similarly.
2769 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2771 * ld.texinfo (Options, --stack): Correct default value for stack
2774 2001-09-05 Tom Rix <trix@redhat.com>
2776 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2778 2001-09-03 Andreas Jaeger <aj@suse.de>
2780 * emultempl/beos.em: Declare prototypes for comparions functions,
2783 2001-09-02 Andreas Jaeger <aj@suse.de>
2785 * emultempl/aix.em: Add missing prototype.
2786 * emultempl/lnk960.em: Likewise.
2787 * emultempl/vanilla.em: Likewise.
2788 * emultempl/armcoff.em: Likewise.
2789 * emultempl/armelf_oabi.em: Likewise.
2790 * emultempl/beos.em: Likewise.
2791 * emultempl/gld960c.em: Likewise.
2792 * emultempl/gld960.em: Likewise.
2794 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2795 for prototype declaration.
2797 2001-08-31 Eric Christopher <echristo@redhat.com>
2798 Jason Eckhardt <jle@redhat.com>
2800 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2802 2001-08-31 Andreas Jaeger <aj@suse.de>
2804 * emultempl/pe.em: Add missing prototypes.
2805 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2806 pe_find_data_imports.
2807 (pr_sym): Add unused attribute.
2809 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2811 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2812 default from coff to elf.
2814 2001-08-29 Jeff Law <law@redhat.com>
2816 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2818 * emulparams/h8300self.sh: Similarly.
2820 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2822 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2824 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2825 * configure.tgt (h8300-*-elf*): New case.
2826 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2827 * emulparams/h8300self.sh: New file.
2828 * Makefile.in: Regenerated.
2830 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2832 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2835 2001-08-27 Linus Nordberg <linus@swox.com>
2836 Alan Modra <amodra@bigpond.net.au>
2838 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2839 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2841 * Makefile.in: Regenerate.
2842 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2843 entries to correct alphabetical position.
2844 * emulparams/elf64ppc.sh: New.
2845 * emulparams/elf64lppc.sh: New.
2847 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2849 * ldmain.c (main): Declare BSIZE as static.
2851 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2853 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2854 into .rel.dyn resp. .rela.dyn if combreloc.
2855 (get_script): If .x linker script is equal to .xn, only put it
2856 once into the binary.
2857 Add .xc and .xsc scripts.
2858 (parse_args): Handle -z combreloc and -z nocombreloc.
2859 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2860 For .xc and .xsc scripts put all .rel* or .rela* input sections
2861 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2862 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2864 Strip trailing whitespace from script.
2865 Generate .xc and .xsc scripts if requested.
2866 * ldmain.c (main): Initialize link_info.combreloc and
2867 link_info.spare_dynamic_tags.
2868 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2869 (ld_options): Add --spare-dynamic-tags option.
2870 (parse_args): Likewise.
2871 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2872 * ldint.texinfo: Document .xc and .xsc linker scripts.
2873 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2875 2001-08-22 H.J. Lu <hjl@gnu.org>
2877 * emulparams/elf32fr30.sh: Add a newline.
2879 2001-08-21 Andreas Jaeger <aj@suse.de>
2881 * deffilep.y: Add missing prototypes.
2882 * pe-dll.c: Likewise.
2884 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2886 * ldlang.c (insert_pad): Fix typos in last patch.
2888 * ldlang.c: When traversing lang_statement_union_type lists,
2889 consistently use "header.next" rather than "next".
2890 * mpw-eppcmac.c: Likewise.
2891 * emultempl/beos.em: Likewise.
2892 * emultempl/hppaelf.em: Likewise.
2893 * emultempl/pe.em: Likewise.
2894 * ldlang.h (union lang_statement_union): Remove "next" field.
2896 * ldlang.c (insert_pad): Use offsetof macro.
2897 (lang_size_sections): Always neuter padding statements.
2898 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2900 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2901 passed to lang_size_sections.
2902 (pe_exe_fill_sections): Likewise.
2903 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2904 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2906 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2908 * emultempl/aix.em: Formatting fixes.
2910 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2912 * ldlang.c (insert_pad): Make use of an existing pad statement if
2913 available. Move code calculating alignment, adjusting section
2914 alignment power, and adjusting dot to ..
2915 (size_input_section): .. here. Remove unused relax param.
2916 (lang_size_sections): Change boolean `relax' param to boolean *.
2917 Adjust call to size_input_section. Make use of insert_pad to
2918 place pad after the assignment statement. If relaxing, zap
2920 (reset_memory_regions): Reset output_bfd section sizes too.
2921 (relax_again): Move to..
2922 (lang_process): ..here. Adjust call to lang_size_sections, and
2923 remove duplicated code.
2924 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2926 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2928 * ld.texinfo: Document that fill values now use the four least
2930 * emulparams/elf32fr30.sh (NOP): Update.
2931 * emulparams/elf32mcore.sh: Likewise.
2932 * emulparams/elf64_s390.sh: Likewise.
2933 * emulparams/elf_i386.sh: Likewise.
2934 * emulparams/elf_i386_be.sh: Likewise.
2935 * emulparams/elf_i386_chaos.sh: Likewise.
2936 * emulparams/elf_i386_ldso.sh: Likewise.
2937 * emulparams/elf_s390.sh: Likewise.
2938 * emulparams/elf_x86_64.sh: Likewise.
2939 * emulparams/i386moss.sh: Likewise.
2940 * emulparams/i386nw.sh: Likewise.
2941 * emulparams/m68kelf.sh: Likewise.
2942 * scripttempl/elf.sc: Update NOP comment.
2943 * scripttempl/elfi370.sc: Likewise.
2944 * scripttempl/elfm68hc11.sc: Likewise.
2945 * scripttempl/elfm68hc12.sc: Likewise.
2946 * scripttempl/nw.sc: Likewise.
2948 2001-08-15 Tom Rix <trix@redhat.com>
2950 * ldgram.y (saved_script_handle): Initialize to NULL.
2951 * ldmain.c (main): Change check on saved_script_handle.
2953 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2955 * emultempl/elf32.em: Formatting fixes.
2956 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2957 looking at sec->owner.
2958 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2959 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2960 unused code, and reorganize orphan section placement code.
2962 * ldlang.c (wild_doit): Rename to lang_add_section.
2963 * ldlang.h: Here too.
2964 * mpw-elfmips.c: And here.
2965 * emultempl/beos.em: And here.
2966 * emultempl/elf32.em: And here.
2967 * emultempl/hppaelf.em: And here.
2968 * emultempl/pe.em: And here.
2970 2001-08-13 Richard Henderson <rth@redhat.com>
2972 * emultempl/needrelax.em: New file.
2973 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2974 * Makefile.am (eelf64_ia64.c): Depend on it.
2975 * Makefile.in: Rebuild.
2977 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2979 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2980 output_section is set non-NULL.
2982 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2983 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2984 needlessly create an output_section_statement. Treat a correctly
2985 named output_section_statement with NULL bfd_section as compatible.
2987 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2989 * emultempl/generic.em: Support EXTRA_EM_FILE.
2990 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2991 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2992 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2993 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2994 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2995 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2996 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2997 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2998 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2999 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3001 2001-08-12 Richard Henderson <rth@redhat.com>
3003 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3004 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3005 scripttempl/v850.sc: Keep .jcr data.
3007 2001-08-12 H.J. Lu <hjl@gnu.org>
3008 Andrew Haley <aph@cambridge.redhat.com>
3009 Nick Clifton <nickc@redhat.com>
3011 * ldgram.y (had_script): Change name to saved_script_handle.
3012 Change type to file handle.
3013 * ld.h (had_script): Rename and retype.
3014 * ldfile.c (ldfile_open_command_file): Save the file handle
3015 used in saved_script_handle.
3016 * lexsup.c (parse_args): Do not allow -c option to alter
3017 saved_script_handle.
3018 * ldmain.c (main): Print out the linker script used if
3019 --verbose is given. Check saved_script_handle to obtain the
3020 external linker script used, or if NULL, dump the builtin
3022 * ld.texinfo: Document that --verbose now dumps the linker
3023 script used, regardless of whether it was an internal or an
3026 2001-08-10 Andreas Jaeger <aj@suse.de>
3028 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3030 * configure: Regenerate.
3032 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3034 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3036 * scripttempl/elf.sc: Move non-text .dynamic section before
3037 .plt/.got/.sdata* group.
3038 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3039 (OTHER_SDATA_SECTIONS): Add.
3040 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3042 * emulparams/crislinux.sh: Likewise.
3043 * emulparams/elf32b4300.sh: Likewise.
3044 * emulparams/elf32bmip.sh: Likewise.
3045 * emulparams/elf32bmipn32.sh: Likewise.
3046 * emulparams/elf32bsmip.sh: Likewise.
3047 * emulparams/elf32btsmip.sh: Likewise.
3048 * emulparams/elf32ebmip.sh: Likewise.
3049 * emulparams/elf32elmip.sh: Likewise.
3050 * emulparams/elf32l4300.sh: Likewise.
3051 * emulparams/elf32lmip.sh: Likewise.
3052 * emulparams/elf32lsmip.sh: Likewise.
3053 * emulparams/elf32ltsmip.sh: Likewise.
3054 * emulparams/elf64bmip.sh: Likewise.
3055 * emulparams/elf64btsmip.sh: Likewise.
3056 * emulparams/elf64ltsmip.sh: Likewise.
3058 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3060 * genscripts.sh: Source the emulparams script before each output
3061 script is generated so that variables like `RELOCATING' may affect
3062 variables defined in the emulparams script.
3064 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3066 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3069 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3070 ie. iterate over wild_statement.section_list.
3071 (gld${EMULATION_NAME}_place_orphan): Likewise.
3073 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3075 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3076 .fini[0-4] sections used by _exit
3077 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3078 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3079 * scripttempl/elfm68hc11.sc: Likewise.
3081 2001-08-03 H.J. Lu <hjl@gnu.org>
3083 * emultempl/beos.em (init): Add the missing initialization.
3085 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3087 * ld.texinfo (Input Section Basics): Clarify ordering of output
3089 * ldlang.c (callback_t): Add wildcard_list param.
3090 (walk_wild_section): Remove "section" param. Rewrite for
3091 lang_wild_statement_type change. Remove unique_section_p test.
3092 (walk_wild_file): Remove "section" param.
3093 (walk_wild): Remove "section" and "file" params.
3094 (lang_gc_wild): Likewise.
3095 (wild): Likewise. Modify for lang_wild_statement_type change.
3096 (wild_sort): Likewise. Add "sec" param.
3097 (gc_section_callback): Likewise.
3098 (output_section_callback): Likewise. Do unique_section_p test.
3099 (map_input_to_output_sections): Modify call to wild.
3100 (lang_gc_sections_1): Likewise.
3101 (print_wild_statement): Modify for lang_wild_statement_type
3103 (lang_add_wild): Replace filename, filenames_sorted param with
3104 filespec. Replace section_name, sections_sorted,
3105 exclude_filename_list with section_list.
3106 * ldlang.h (lang_add_wild): Here too.
3107 (lang_wild_statement_type): Replace section_name, sections_sorted,
3108 and exclude_filename_list with section_list.
3109 * ldgram.y (current_file): Delete.
3110 (%union): Add wildcard_list.
3111 (file_NAME_list): Set type to wildcard_list. Build a linked list
3112 rather than calling lang_add_wild for each entry.
3113 (input_section_spec_no_keep): Call lang_add_wild here instead.
3114 * ld.h (struct wildcard_list): Declare.
3115 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3117 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3119 * ldmain.c (main): initialize link_info.pei386_auto_import
3120 * pe-dll.c: new tables for auto-export filtering
3121 (auto_export): change API, pass abfd for contextual filtering.
3122 Loop thru tables of excluded symbols instead of comparing
3125 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3127 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3128 static variable current_sec (static struct sec *). Add
3129 forward declaration for add_bfd_to_link.
3130 (process_def_file): Don't export undefined symbols. Do not
3131 export symbols starting with "_imp__". Call auto_export()
3133 (pe_walk_relocs_of_symbol): New function.
3134 (generate_reloc): add optional extra debugging
3135 (pe_dll_generate_def_file): eliminate extraneous initial blank
3137 (make_one): enlarge symtab to make room for __nm__ symbols
3138 (DATA auto-import support).
3139 (make_singleton_name_thunk): New function.
3140 (make_import_fixup_mark): New function.
3141 (make_import_fixup_entry): New function.
3142 (pe_create_import_fixup): New function.
3143 (add_bfd_to_link): Specify that 'name' argument is a CONST
3145 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3146 declare new functions pe_walk_relocs_of_symbol and
3147 pe_create_import_fixup.
3148 * emultempl/pe.em: add new options --enable-auto-import,
3149 --disable-auto-import, and --enable-extra-pe-debug.
3150 (make_import_fixup): New function.
3151 (pe_find_data_imports): New function.
3152 (pr_sym): New function.
3153 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3154 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3157 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3159 * ld.texinfo: add additional documentation for
3160 --export-all-symbols. Document --out-implib,
3161 --enable-auto-image-base, --disable-auto-image-base,
3162 --dll-search-prefix, --enable-auto-import, and
3163 --disable-auto-import.
3164 * ldint.texinfo: Add detailed documentation on auto-import
3167 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3169 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3172 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3174 * Makefile.am: Update dependencies with "make dep-am".
3175 * Makefile.in: Regenerate
3177 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3179 * ldcref.c (check_section_sym_xref): New function.
3180 (check_nocrossrefs): Call it.
3181 (check_nocrossref): Interate over h->refs here instead of..
3182 (check_refs): ..here. Pass in the symbol name, section, and bfd
3183 rather than hash_entry pointers.
3184 (struct check_refs_info): Keep symbol name rather than hash entry.
3186 (check_reloc_refs): Tweak for above changes in check_refs_info.
3187 Only report references to section syms when symname is NULL to
3188 prevent duplicate messages for the same reloc.
3190 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3192 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3193 available. Do not print NULL trees.
3194 (exp_print_token): Print unknown tokens with values > 126 as
3195 decimal values not ASCII characters.
3197 * ldlang.c (lang_leave_overlay): If a region is specified assign
3198 it to all sections inside the overlay unless they have been
3199 assigned to the own, non-default, memory region.
3201 * README: Add header for consistency with other README files.
3203 2001-07-14 H.J. Lu <hjl@gnu.org>
3205 * emultempl/elf32.em (output_prev_sec_find): Never return
3206 bfd_abs_section_ptr, bfd_com_section_ptr nor
3207 bfd_und_section_ptr.
3209 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3211 * Makefile.am (em32relf.c): Change dependency from generic.em to
3213 * Makefile.in: Regenerate.
3215 2001-07-14 matthew green <mrg@eterna.com.au>
3217 * configure.tgt (i386-*-netbsdelf*): New target.
3218 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3220 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3222 * emultempl/elf32.em (output_prev_sec_find): New.
3223 (place_orphan): Use it.
3225 2001-07-11 H.J. Lu <hjl@gnu.org>
3227 * ldmain.c (main): Fix typos in the last change.
3229 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3231 * ldmain.c (main): Disallow -F and -f without -shared.
3233 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3235 * emultempl/pe.em (after_open): Check for the output_bfd not
3236 having any coff_data structure allocated to it.
3238 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3240 * emultempl/elf32.em: Do not assuming that contents of the buffer
3241 returned from basename function will remain unchanged accross other
3244 2001-07-03 H.J. Lu <hjl@gnu.org>
3246 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3247 2001-07-03. It creates dynamic entries even for static binaries.
3249 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3251 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3252 (DYNAMIC): Use it to reserve few dynamic entries for
3255 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3257 * emulparams/hppa64linux.sh: New file.
3258 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3259 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3260 (ehppa64linux.c): Add rule to make it.
3262 * Makefile.in: Regenerate.
3264 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3266 * ld.texinfo (Options, -r): Mention restrictions when using
3267 different object formats.
3269 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3271 * ldlang.c (lang_check): Emit fatal error if relocatable link
3272 between different object flavours with relocations in input.
3274 2001-06-19 H.J. Lu <hjl@gnu.org>
3276 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3277 (--version-script): Mention the language support.
3279 2001-06-19 H.J. Lu <hjl@gnu.org>
3281 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3283 2001-06-18 H.J. Lu <hjl@gnu.org>
3285 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3286 (diststuff): Add $(MANS).
3287 * Makefile.in: Regenerated.
3291 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3293 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3294 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3295 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3296 * ld.h (args_type): Remove member export_dynamic. All users
3297 changed to use struct bfd_link_info member.
3299 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3300 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3301 * Makefile.in: Regenerate.
3303 2001-06-18 H.J. Lu <hjl@gnu.org>
3305 * ldlang.c (init_os): Add the newline to the einfo call.
3306 (lang_check): Likewise.
3307 (lang_do_version_exports_section): Likewise.
3309 2001-06-15 H.J. Lu <hjl@gnu.org>
3311 * lexsup.c (parse_args); Save optind to report unrecognized
3314 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3316 * ldlang.c (lang_check): Emit fatal error if relocatable link
3317 between different object flavours.
3319 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3320 Set new link_info member export_dynamic.
3321 * ldmain.c (main): Initialize new link_info member export_dynamic.
3323 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3325 * ldlang.c (walk_wild): Only call walk_wild_file if
3326 lookup_name returns something.
3327 (lookup_name): If load_symbols fails, return NULL.
3328 (load_symbols): Change to a boolean function.
3329 (open_input_bfds): If load_symbols fails then do not make the
3332 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3334 * ldlang.c (record_bfd_errors): Remove.
3336 * emultempl/aix.em: Fix copyright dates.
3338 2001-06-07 Andreas Jaeger <aj@suse.de>
3340 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3341 (TEXT_START_ADDR): Likewise.
3343 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3345 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3347 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3349 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3351 2001-05-31 H.J. Lu <hjl@gnu.org>
3353 * ldlang.c (open_input_bfds): Don't change the bfd error
3354 handler whilst loading symbols.
3356 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3358 * configure.tgt: Remove i370-mvs architecture, it is not currently
3361 2001-05-25 H.J. Lu <hjl@gnu.org>
3363 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3364 like emulparams/aixppc.sh.
3366 2001-05-25 H.J. Lu <hjl@gnu.org>
3368 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3369 setting of output_filename after bfd_scan_arch.
3370 * emultempl/pe.em: Likewise.
3372 2001-05-25 H.J. Lu <hjl@gnu.org>
3374 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3375 like emulparams/aixppc.sh.
3377 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3378 instead of ${srcdir}/emultempl/stringify.sed.
3380 2001-05-25 Timothy Wall <twall@oculustech.com>
3382 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3385 2001-05-25 Alan Modra <amodra@one.net.au>
3387 * configure.host: Replace linuxoldld with linux*oldld.
3388 * configure.tgt: Likewise.
3390 2001-05-24 H.J. Lu <hjl@gnu.org>
3392 * emultempl/stringify.sed: Removed again.
3394 2001-05-24 H.J. Lu <hjl@gnu.org>
3396 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3397 (gld${EMULATION_NAME}_before_parse): Initialize
3398 ldfile_output_architecture, ldfile_output_machine and
3399 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3400 * emultempl/beos.em: Likewise.
3401 * emultempl/elf32.em: Likewise.
3402 * emultempl/linux.em: Likewise.
3403 * emultempl/mipsecoff.em: Likewise.
3404 * emultempl/pe.em: Likewise.
3405 * emultempl/sunos.em: Likewise.
3407 2001-05-24 Tom Rix <trix@redhat.com>
3409 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3410 udate import file format.
3411 (change_symbol_mode) New, same
3412 (is_syscall) New, same
3413 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3414 * emulparams/aixppc64.sh : same
3415 * emulparams/aixrs6.sh : same
3416 * emulparams/ppcmacos.sh : same
3417 * emultempl/aix.em : use strtoull to parse options
3418 * Makefile.am : add eaixppc64 emulation for xcoff64
3419 * Makefile.in : same
3420 * configure.tgt : same
3422 * scripttempl/aix.sc : default text section offset to 0x10000000
3423 default data section offset to 0x20000000
3424 add .sv3264 and .sv64 pseudo sections
3425 loader and debug sections use the currect section offset.
3427 * emultempl/aix.em : Add xcoff64 support
3428 Add -binitfini support
3429 (gld${EMULATION_NAME}_before_parse) -binitfini
3430 (gld${EMULATION_NAME}_parse_args) same
3431 (gld${EMULATION_NAME}_before_allocation) format change for special
3434 * emulparams/aixppc64.sh : New file for xcoff64 support
3436 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3438 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3439 variable to avoid non-portable shell construct.
3441 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3443 * ldmain.c (get_emulation): Add -mips5 command line argument.
3445 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3447 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3448 (ELF_INTERPRETER_NAME): Define it.
3449 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3451 * configure.tgt (targ_emul, targ_extra_emuls)
3452 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3453 as primary, elf_i386 as extra.
3454 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3455 (eelf_i386_ldso.c): New rule.
3456 * Makefile.in: Rebuilt.
3458 2001-05-22 Nick Clifton <nickc@redhat.com>
3460 * lexsup.c (ld_options): Allow -I to be an alias for
3461 --dynamic-linker. This is for Solaris compatability.
3462 * ld.texinfo: Document that -I can be used.
3465 2001-05-16 Alan Modra <amodra@one.net.au>
3467 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3468 whether an input section is the first one assigned to an output
3470 Assorted formatting fixes.
3472 2001-05-14 DJ Delorie <dj@delorie.com>
3474 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3475 * Makefile.in: Ditto.
3477 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3479 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3480 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3482 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3484 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3486 * ldlang.c (lang_process): Call bfd_merge_sections.
3488 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3490 * ldgram.y: Fix typo.
3492 2001-05-03 H.J. Lu <hjl@gnu.org>
3494 * emultempl/elf32.em: Include "libiberty.h".
3495 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3496 basename of the bfd filename.
3497 (gld${EMULATION_NAME}_stat_needed): Likewise.
3498 (gld${EMULATION_NAME}_try_needed): Likewise.
3499 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3501 2001-05-02 H.J. Lu <hjl@gnu.org>
3503 * emultempl/pe.em: Include <ctype.h>.
3505 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3507 * emulparams/elf32openrisc.sh: New file.
3509 * Makefile.am: Add OpenRISC target.
3510 * Makefile.in: Regenerated.
3512 * configure.tgt: Add openrisc-*-* mapping.
3514 2001-05-02 Nick Clifton <nickc@redhat.com>
3516 * emultempl/aix.em: Replace buystring with xstrdup.
3517 * emultempl/beos.em: Replace buystring with xstrdup.
3519 2001-05-02 H.J. Lu <hjl@gnu.org>
3521 * ldfile.c: Include "libiberty.h".
3522 * ldlex.l: Likewise.
3524 * ldmisc.c (buystring): Removed.
3525 * ldmisc.h: Likewise.
3527 * ldfile.c: Replace buystring with xstrdup.
3528 * ldlang.c: Likewise.
3529 * ldlex.l: Likewise.
3530 * ldmain.c: Likewise.
3531 * ldmisc.c: Likewise.
3532 * lexsup.c: Likewise.
3533 * mpw-eppcmac.c: Likewise.
3535 2001-04-30 Andreas Jaeger <aj@suse.de>
3537 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3539 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3541 * ldlang.c (load_symbols): Give emulation a chance
3542 to process unrecognized file before fatal error is
3543 reported, not after.
3545 2001-04-27 Sean McNeil <sean@mcneil.com>
3547 * configure.tgt: Add arm-vxworks target.
3548 * scripttempl/armcoff.sc: Support .text or .data as a section name
3552 2001-04-13 J.T. Conklin <jtc@redback.com>
3554 * ld.texinfo: Document --fatal-warnings.
3557 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3558 warnings have been turned into errors.
3559 * lexsup.c (OPTION_WARN_FATAL): Define.
3560 (ld_options): Entry for --fatal-warnings.
3561 (parse_args): Handle OPTION_WARN_FATAL.
3562 * ld.h (ld_config_type): Add fatal_warnings field.
3564 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3566 * ldmain.c (main): Default to discard_sec_merge.
3567 * lexsup.c (OPTION_DISCARD_NONE): Define.
3568 (ld_options): Add --discard-none.
3569 (parse_args): Handle OPTION_DISCARD_NONE.
3570 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3571 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3572 all its input sections match.
3574 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3576 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3577 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3578 (eelf32ltsmip.c): New target.
3579 (eelf64btsmip.c): Likewise.
3580 (eelf64ltsmip.c): Likewise.
3581 * Makefile.in: Regenerated.
3583 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3585 (mips*-*-linux-gnu*): Likewise.
3587 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3589 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3591 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3594 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3596 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3597 correct value of __Stext here.
3598 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3601 * emulparams/crislinux.sh: Remove FIXME.
3603 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3605 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3606 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3608 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3610 * configure.tgt (cris-*-*): Change default emulation to criself.
3611 (cris-*-*aout*): New rule.
3613 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3615 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3616 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3618 2001-03-26 Andreas Jaeger <aj@suse.de>
3620 * ld.texinfo (Overview): Fix syntax in texi code.
3622 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3624 * ld.texinfo: Put @c man indications to generate the ld man page.
3625 When generating man, define all the variables. Define SEEALSO
3626 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3627 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3628 (ld.1): Generate from ld.texinfo.
3629 * Makefile.in: Regenerate.
3631 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3633 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3634 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3636 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3638 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3639 is an absolute path look only for this file and not along the path.
3641 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3643 * emultempl/elf32.em (OPTION_GROUP): New macro.
3644 Add new option Bgroup to longopts.
3645 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3646 (gld*_list_options): Add -Bgroup and -z defs.
3647 * ld.1: Document -Bgroup and -z defs.
3648 * ld.texinfo: Likewise.
3650 2001-03-07 Michael Meissner <meissner@redhat.com>
3652 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3653 with sections created by -fdata-sections.
3654 (.dynbss,.bss): Ditto.
3656 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3658 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3659 after_allocation_default, not gld..._before_allocation.
3661 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3663 * configure.in (BFD_VERSION): New.
3664 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3665 * configure: Regenerate.
3666 * Makefile.am: Run "make dep-am"
3667 * Makefile.in: Regenerate.
3669 2001-02-26 Timothy Wall <twall@cygnus.com>
3671 * emulparams/elf64_aix.sh: Add additional read-only sections;
3672 uncomment lines which are now required.
3674 2001-02-26 H.J. Lu <hjl@gnu.org>
3676 * ldlang.c (open_input_bfds): Set the bfd error handler so
3677 that problems can be caught whilst loading symbols.
3678 (record_bfd_errors): New function: Report BFD errors and mark
3679 the executable output as being invalid.
3681 2001-02-22 Timothy Wall <twall@cygnus.com>
3683 * configure.host: Add configuration for ia64-*-aix*.
3684 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3685 Add dependencies for eelf64_aix.c.
3686 * Makefile.in: Regenerate.
3687 * configure.tgt: Add ia64-*-aix* mapping.
3688 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3690 2001-02-20 H.J. Lu <hjl@gnu.org>
3692 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3693 false if we found the file.
3695 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3697 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3698 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3700 2001-02-18 lars brinkhoff <lars@nocrew.org>
3702 * Makefile.am: Add PDP-11 target.
3703 * configure.tgt: Likewise.
3704 * emulparams/pdp11.sh: New file.
3706 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3708 * configure.host: Add a generic FreeBSD configuration entry such that
3709 all [modern] FreeBSD systems on all platforms will look the same.
3711 2001-02-14 H.J. Lu <hjl@gnu.org>
3713 * configure.tgt: Remove mention of earmelf_linux26.
3715 2001-02-13 Richard Henderson <rth@redhat.com>
3717 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3719 2001-02-13 H.J. Lu <hjl@gnu.org>
3721 * ldexp.h (node_type): Add etree_provided.
3722 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3723 type to etree_provided if defined by PROVIDE. Allow updating
3725 (exp_print_tree): Handle etree_provided.
3726 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3729 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3731 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3732 .IA_64.unwind.* pattern to unwind table section and
3733 .IA_64.unwind_info* pattern to unwind info section.
3735 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3737 * Makefile.am: Add linux target for S/390.
3738 * Makefile.in: Likewise.
3739 * configure.host: Likewise.
3740 * configure.tgt: Likewise.
3741 * emulparams/elf64_s390.sh: New file.
3742 * emulparams/elf_s390.sh: New file.
3744 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3746 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3748 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3750 2001-02-06 Philip Blundell <philb@gnu.org>
3752 * Makefile.am: Remove mention of earmelf_linux26.
3753 * Makefile.in: Regenerate.
3755 2001-02-04 Philip Blundell <philb@gnu.org>
3757 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3758 * emulparams/armelf_linux26.sh: Delete.
3759 * configure.tgt: Remove mention of armelf_linux26 emulation.
3761 2001-02-01 Nick Clifton <nickc@redhat.com>
3763 * ld.1: Replace occurances of -oformat with --oformat.
3765 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3767 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3768 load_base is specified.
3770 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3772 * emultempl/elf32.em: Correct spelling in comments and listed
3775 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3777 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3778 default for the first section of a group of overlay sections.
3780 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3782 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3783 * Makefile.in: Regenerate.
3784 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3785 Check for null tool_dir.
3787 2001-01-16 Jim Wilson <wilson@redhat.com>
3789 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3790 and IA_64.unwind.info.
3792 2001-01-16 H.J. Lu <hjl@gnu.org>
3794 * ldlang.c (lang_check): Merge the private data only if the
3795 input file has contents.
3797 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3799 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3801 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3802 enabling search for libmilli. On a relocatable link, make .text
3804 (LDEMUL_AFTER_PARSE): Define.
3805 (hppaelf_finish): Correct spelling of relocatable in comments.
3807 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3808 rummage through the script for sections on the unique list.
3809 Correct length of strncmp for ".note".
3810 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3812 * ldlang.c (unique_section_list): New var.
3813 (unique_section_p): New function.
3814 (walk_wild_section): Don't match sections on unique_section_list.
3815 (lang_add_unique): New function.
3816 Correct spelling of relocatable in comments.
3818 * ldlang.h (struct unique_sections): Declare.
3819 (unique_section_list): Declare.
3820 (unique_section_p): Declare.
3821 (lang_add_unique): Declare.
3823 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3824 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3826 * ld.texinfo (--unique): Update.
3828 2001-01-13 Nick Clifton <nickc@redhat.com>
3830 * lexsup.c (parse_args): Remove spurious white space.
3832 2001-01-12 Nick Clifton <nickc@redhat.com>
3834 * lexsup.c (parse_args): Update copyright date.
3836 2001-01-12 Philip Blundell <pb@futuretv.com>
3838 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3840 2001-01-10 Kazu Hirata <kazu@hxi.com>
3842 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3843 * scripttempl/h8300h.sc: Fix formatting.
3844 * scripttempl/h8300s.sc: Likewise.
3845 * scripttempl/h8500.sc: Likewise.
3846 * scripttempl/h8500b.sc: Likewise.
3847 * scripttempl/h8500c.sc: Likewise.
3848 * scripttempl/h8500m.sc: Likewise.
3849 * scripttempl/h8500s.sc: Likewise.
3851 2000-01-07 David O'Brien <obrien@BSDi.com>
3853 * emultempl/elf32.em: Only perform Linux ld hints processing when
3856 2001-01-07 Philip Blundell <philb@gnu.org>
3858 * ld.texinfo (Bug Reporting): Update email address for reports.
3860 2000-12-31 Nick Clifton <nickc@redhat.com>
3862 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3863 options by checking for a return value of '?' not -1.
3865 2000-12-28 Nick Clifton <nickc@redhat.com>
3867 * lexsup.c (struct ld_option): Add new enum value:
3869 (ld_options[]): Change -omagic, -output and -oformat options
3870 to be EXACTLY_TWO_DASHES.
3871 (OUTPUT_COUNT): Use ARRAY_SIZE.
3872 (parse_args): Change parameter 'argc' to unsigned.
3873 Place EXACTLY_TWO_DASHES options into new really_longopts
3875 If getopt_long_only fails, try calling getopt_long using the
3876 really_longopts array.
3877 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3880 * ldlex.h: Fix prototype of parse_args.
3882 * ld.texinfo: Document that long options starting with 'o'
3883 must be preceeded by two dashes. Change example of a single
3884 dashed long option from -oformat to -trace-symbol.
3886 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3888 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3889 (longopts[]): New --no-default-excludes option.
3890 (gld_${EMULATION_NAME}_list_options): Document.
3891 (gld_${EMULATION_NAME}_parse_args): Handle.
3893 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3895 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3896 whitespace, it breaks the K&R C preprocessor.
3898 2000-12-11 DJ Delorie <dj@redhat.com>
3900 * ld.texinfo: Add notes about --whole-archive and gcc.
3902 2000-11-18 Fred Fish <fnf@be.com>
3904 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3905 (ld_options): Entry for --allow-shlib-undefined.
3906 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3907 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3909 * ld.texinfo: Document new command line switch.
3911 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3913 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3914 .fixup is actually read/write.
3915 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3916 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3917 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3919 2000-12-11 Jan Hubicka <jh@suse.cz>
3921 * NEWS: Add note about x86_64 architecture.
3923 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3925 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3926 Set DWARF2 sections to a VMA of zero.
3928 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3930 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3932 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3933 (sparc*-*-rtems*): Switched from a.out to ELF.
3935 2000-11-30 Jan Hubicka <jh@suse.cz>
3937 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3938 (eelf_x86_64.c): New.
3939 * Makefile.in: Regenerate.
3940 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3941 * emulparams/elf_x86_64.sh: New.
3943 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3945 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3946 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3948 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3949 merging non-a.out sections into CONSTRUCTING.
3951 2000-11-28 Nick Clifton <nickc@redhat.com>
3953 * ld.1 (COPYING): Mention that the GNU Free Documentation
3954 License is present in the sources, but not the output, and
3955 also available from the GNU website.
3956 (GNU Free Documentation License): Comment out this section.
3958 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3960 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3963 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3965 * ld.1: Remove old date so it does not give the impression the manpage
3968 2000-11-24 Nick Clifton <nickc@redhat.com>
3970 * configure.tgt (xscale-coff): Add target.
3971 (xscale-elf): Add target.
3973 2000-11-24 Fred Fish <fnf@be.com>
3975 * ldmain.c (main): Remove redundant init of config.make_executable
3978 2000-11-15 Richard Henderson <rth@redhat.com>
3980 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3982 2000-11-14 Kazu Hirata <kazu@hxi.com>
3984 * scripttempl/h8300.sc: Fix formatting.
3985 * scripttempl/h8300h.sc: Likewise.
3986 * scripttempl/h8300s.sc: Likewise.
3988 2000-11-14 Denis Chertykov <denisc@overta.ru>
3990 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3992 2000-11-09 Philip Blundell <pb@futuretv.com>
3994 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3995 around orphan sections whose names can be represented in C.
3997 2000-11-07 Jim Wilson <wilson@redhat.com>
3999 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4000 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4002 2000-11-06 Nick Clifton <nickc@redhat.com>
4004 * ld.texinfo: Add GNU Free Documentation License.
4005 * ldint.texinfo: Add GNU Free Documentation License.
4006 * ld.1: Add GNU Free Documentation License.
4008 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4010 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4011 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4013 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4014 Move 2000-11-02 Makefile.in changes to this file.
4015 * Makefile.in: Regenerate.
4017 2000-11-03 Nick Clifton <nickc@redhat.com>
4019 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4020 constructors and destructors.
4021 * scripttempl/h8300h.sc: Ditto.
4022 * scripttempl/h8300s.sc: Ditto.
4023 * scripttempl/h8500.sc: Ditto.
4024 * scripttempl/h8500b.sc: Ditto.
4025 * scripttempl/h8500c.sc: Ditto.
4026 * scripttempl/h8500m.sc: Ditto.
4027 * scripttempl/h8500s.sc: Ditto.
4028 * scripttempl/v850.sc: Ditto.
4029 * scripttempl/w65.sc: Ditto.
4030 * scripttempl/z8000.sc: Ditto.
4032 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4034 * Makefile.in (e_i386_chaos.c): New rule.
4035 (ALL_EMULATIONS): Added e_i386_chaos.o.
4036 * emulparams/elf_i386_chaos.sh: New file.
4037 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4039 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4041 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4042 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4043 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4044 library path suffix.
4045 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4047 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4049 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4050 for consecutive sections.
4052 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4054 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4056 * ld.texinfo: Added notes about this new option.
4058 2000-10-16 Nick Clifton <nickc@redhat.com>
4060 * emultempl/pe.em (_after_open): Add tests of return values from
4061 bfd functions. Emit appropriate error messages if necessary.
4063 2000-10-13 Nick Clifton <nickc@redhat.com>
4065 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4066 local variables - they are not used, but leave in the call to
4067 bfd_canonicalize_symtab.
4068 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4069 pe_dll_search_prefix.
4071 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4073 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4074 (longopts): New --dll-search-prefix option.
4075 (gld_${EMULATION_NAME}_list_options): Document.
4076 (gld_${EMULATION_NAME}_parse_args): Handle.
4077 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4078 dynamically, search for a dll named '<prefix><basename>.dll'
4079 in preference to 'lib<basename>.dll' if --dll-search-prefix
4082 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4084 * ldlang.c (section_already_linked): Set kept_section instead of
4087 2000-10-10 Kazu Hirata <kazu@hxi.com>
4089 * deffile.h: Fix formatting.
4090 * lexsup.c: Likewise.
4093 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4095 * pe-dll.c (make_one): Do not generate code thunk for DATA
4097 (process_def_file): deduce DATA flag for auto-export sumbols.
4099 2000-10-09 Kazu Hirata <kazu@hxi.com>
4101 * ld.h: Fix formatting.
4102 * ldcref.c: Likewise.
4103 * ldctor.h: Likewise.
4104 * ldemul.c: Likewise.
4105 * ldemul.h: Likewise.
4106 * ldexp.c: Likewise.
4107 * ldexp.h: Likewise.
4108 * ldfile.c: Likewise.
4109 * ldfile.h: Likewise.
4110 * ldlang.c: Likewise.
4111 * ldlang.h: Likewise.
4112 * ldmain.c: Likewise.
4113 * pe-dll.c: Likewise.
4115 * pe-dll.c: Revert some formatting fixes.
4117 2000-10-08 Kazu Hirata <kazu@hxi.com>
4119 * pe-dll.c: Fix formatting.
4121 2000-10-05 Kazu Hirata <kazu@hxi.com>
4123 * ldlang.c: Fix formatting.
4125 2000-10-03 DJ Delorie <dj@redhat.com>
4127 * pe-dll.c (fill_edata): initialize entire block
4128 (make_one): fill in correct section.
4130 2000-10-03 Kazu Hirata <kazu@hxi.com>
4132 * ldexp.c: Fix formatting.
4134 2000-10-02 DJ Delorie <dj@redhat.com>
4136 * emultempl/pe.em (gld_*_after_open): detect case where there two
4137 import libraries for same dll; rename one to ensure proper link
4140 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4142 (generate_edata): fix typo
4144 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4146 * scripttempl/crisaout.sc (ENTRY): Now __start.
4147 (.text): Add default setting for __start.
4148 Remove CONSTRUCTORS handling.
4149 (/DISCARD/): Add .gnu.warning.*.
4150 * emulparams/crislinux.sh (ENTRY): Now __start.
4151 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4152 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4153 (ENTRY): Now __start.
4154 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4155 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4157 2000-09-29 Kazu Hirata <kazu@hxi.com>
4159 * deffile.h: Fix formatting.
4161 * ldcref.c: Likewise.
4162 * ldctor.c: Likewise.
4163 * ldctor.h: Likewise.
4164 * ldemul.c: Likewise.
4165 * ldemul.h: Likewise.
4166 * ldexp.c: Likewise.
4167 * ldexp.h: Likewise.
4168 * ldfile.c: Likewise.
4169 * ldfile.h: Likewise.
4170 * ldlang.c: Likewise.
4171 * ldlang.h: Likewise.
4172 * lexsup.c: Likewise.
4174 * pe-dll.c: Likewise.
4176 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4178 * pe-dll.c (process_def_file): Uninitialized data wasn't
4179 exported with --export-all-symbols switch.
4181 2000-09-28 DJ Delorie <dj@redhat.com>
4183 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4184 noname work properly.
4186 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4188 * ld.texinfo (HPPA ELF32): New section.
4190 * emultempl/hppaelf.em (group_size): New.
4191 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4192 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4193 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4194 options to prevent abbreviations matching.
4195 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4196 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4198 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4200 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4201 on the m68*-*-elf target. Make it support COFF input objects.
4203 2000-09-21 Kazu Hirata <kazu@hxi.com>
4205 * ldmain.c: Fix formatting.
4206 * ldmisc.c: Likewise.
4207 * ldver.c: Likewise.
4208 * ldwrite.c: Likewise.
4210 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4212 * ldwrite.c (clone_section): Silence gcc warnings.
4214 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4216 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4217 out of memory failure.
4219 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4220 (clone_section): Handle out of memory failures. Rename var to
4221 avoid c++ reserved word.
4223 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4225 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4226 stub_name param to stub_sec_name.
4227 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4229 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4231 * emultempl/m68kelf.em: New file.
4232 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4233 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4234 * Makefile.in: Regenerate.
4236 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4238 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4241 2000-09-13 Nick Clifton <nickc@redhat.com>
4243 * ldmain.c (multiple_definition): Disable relaxation if
4244 multiple symbol definitions are encountered - otherwise the
4245 linker could abort with an assertion failure.
4247 2000-09-10 Nick Clifton <nickc@redhat.com>
4249 * mri.c: Fix formatting.
4251 2000-09-07 H.J. Lu <hjl@gnu.org>
4253 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4254 * configure: Rebuild.
4256 2000-09-07 H.J. Lu <hjl@gnu.org>
4258 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4259 * Makefile.in: Rebuild.
4261 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4263 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4264 broken list handling. Create __start_SECNAME and __stop_SECNAME
4265 when no place-holder. Add some comments. Test both SEC_CODE and
4266 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4267 Handle case where no output section statement created.
4269 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4271 * configure.tgt (sh-*-linux*): Added.
4272 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4273 * Makefile.in: Rebuilt.
4274 * emulparams/shelf_linux.sh: New file.
4275 * emulparams/shlelf_linux.sh: New file.
4277 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4279 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4280 try shuffling sections when the orphan happens to be the place
4281 holder. Keep count of unique section names generated so we speed
4282 the search for a new name.
4284 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4286 * configure: Rebuilt with new libtool.m4.
4288 2000-09-05 Nick Clifton <nickc@redhat.com>
4290 * Makefile.in: Regenerate.
4291 * aclocal.m4: Regenerate.
4292 * configure: Regenerate.
4293 * config.in: Regenerate.
4294 * po/ld.pot: Regenerate.
4296 * ldint.texinfo: Remove CVS revision marker - it foils local
4299 * emultempl/ticoff.em: Remove extraneous comma.
4301 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4303 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4304 to stub section flags.
4305 (hppa_for_each_input_file_wrapper): New.
4306 (hppa_lang_for_each_input_file): New.
4307 (lang_for_each_input_file): Define to call above.
4308 (multi_subspace): New.
4309 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4310 (PARSE_AND_LIST_PROLOGUE): Define.
4311 (PARSE_AND_LIST_LONGOPTS): Define.
4312 (PARSE_AND_LIST_OPTIONS): Define.
4313 (PARSE_AND_LIST_ARGS_CASES): Define.
4314 (hppaelf_finish): Call elf32_hppa_set_gp.
4315 (hppaelf_set_output_arch): Remove.
4316 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4318 * emulparams/hppalinux.sh (ELFSIZE): Define.
4320 (OTHER_READONLY_SECTIONS): Define.
4322 (GENERATE_SHLIB_SCRIPT): Define.
4324 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4325 to const throughout. Change `void *' to `PTR' throughout.
4326 (lang_memory_default): Function is local to file, add `static'.
4328 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4329 (ehppalinux.c): Likewise.
4330 (earmelf.c): Likewise.
4331 (earmelf_linux.c): Likewise.
4332 (earmelf_linux26.c): Likewise.
4333 * Makefile.in: Regenerate.
4335 * ld.h (ld_config_type): Add unique_orphan_sections.
4336 * lexsup.c (OPTION_UNIQUE): Define.
4337 (ld_options): Add "--unique".
4338 (parse_args): Handle it.
4339 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4340 search for an existing output section if unique_orphan_sections is
4341 set. Make use of bfd_get_unique_section_name rather than
4342 duplicating code here.
4343 * ld.texinfo: Describe --unique.
4345 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4346 optional arg to split-by-file.
4347 (parse_args): Handle them.
4348 * ld.texinfo: Update description of these options.
4349 * ldwrite.c (clone_section): Pass in the section name. Replace
4350 local code with bfd_get_unique_section_name.
4351 (split_sections): Tidy code and comments. Use a list traversal
4352 more appropriate to the list construction. Handle cooked section
4353 sizes. Split when split_by_reloc reached rather than exceeded.
4354 Track section size and split when split_by_file reached. Fix
4355 link_order_tail (even though it's not used).
4356 (ldwrite): Modify condition for calling split_sections to suit
4357 changed split_by_reloc and split_by_file.
4358 * ldmain.c (main): Init config.split_by_reloc and
4359 config.split_by_file to -1.
4360 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4361 Change split_by_file to bfd_size_type.
4363 2000-09-02 Nick Clifton <nickc@redhat.com>
4365 * configure.in: Increase version number to 2.10.91.
4366 * NEWS: Mention new ability to support removal of duplicate DWARF2
4368 * configure: Regenerate.
4369 * aclocal.m4: Regenerate.
4370 * config.in: Regenerate.
4372 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4374 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4376 * scripttempl/elf32avr.sc: Ditto.
4377 * scripttempl/elfd10v.sc: Ditto.
4378 * scripttempl/elfd30v.sc: Ditto.
4379 * scripttempl/elfi370.sc: Ditto.
4380 * scripttempl/elfm68hc11.sc: Ditto.
4381 * scripttempl/elfm68hc12.sc: Ditto.
4382 * scripttempl/elfi386beos.sc: Ditto.
4383 * scripttempl/v850.sc: Ditto.
4385 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4387 * acinclude.m4: Include libtool and gettext macros from the
4389 * aclocal.m4, configure: Rebuilt.
4391 2000-08-25 Nick Clifton <nickc@redhat.com>
4393 * ldlang.c (open_output): When choosing the target for a
4394 particular endianness, do nothing if the target is not
4397 2000-08-25 H.J. Lu <hjl@gnu.org>
4399 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4400 check -rpath nor LD_RUN_PATH for cross link.
4401 * ld.texinfo: Document the change.
4403 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4405 * NEWS: Mention support for CRIS.
4407 2000-08-23 H.J. Lu <hjl@gnu.org>
4409 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4410 the current runpath list from bfd_elf_get_runpath_list ()
4413 2000-08-22 H.J. Lu <hjl@gnu.org>
4415 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4416 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4417 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4418 trace_file_tries is non-zero.
4419 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4420 if trace_file_tries is non-zero.
4422 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4425 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4427 * NEWS: Mention i860 support.
4429 2000-08-14 Andreas Schwab <schwab@suse.de>
4431 * scripttempl/elf.sc: Fix last change to use correct comment
4434 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4436 * scripttempl/elf.sc: Add a comment giving the correspondence
4437 between sections, per-datum sections, and linkonce sections. Make
4438 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4441 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4443 * emulparams/elf32_i860.sh: New file.
4444 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4445 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4446 (eelf32_i860.c): New rule.
4447 * Makefile.in: Regenerate.
4449 2000-08-10 Nick Clifton <nickc@cygnus.com>
4451 * emulparams/mipspe.sh (ENTRY): Add definition.
4453 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4455 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4458 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4460 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4461 the final size of .bss section.
4462 * scripttempl/elfm68hc12.sc: Likewise.
4464 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4466 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4467 gld${EMULATION_NAME}_parse_args for consistency. Combine
4468 lastoptind and prevoptind vars, and keep track of last optind.
4469 (gld_${EMULATION_NAME}_list_options): Rename to
4470 gld${EMULATION_NAME}_list_options.
4472 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4474 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4475 (i586-sco-sysv5uw7.1.0).
4477 2000-07-27 H.J. Lu <hjl@gnu.org>
4479 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4480 (PARSE_AND_LIST_PROLOGUE): New.
4481 (PARSE_AND_LIST_LONGOPTS): Likewise.
4482 (PARSE_AND_LIST_OPTIONS): Likewise.
4483 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4484 (PARSE_AND_LIST_EPILOGUE): Likewise.
4486 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4488 * emultempl/armelf.em: Elide functions common to elf32.em,
4489 ie. most of the file.
4490 (arm_elf_after_open): New. Do arm specific things then call
4491 gld${EMULATION_NAME}_after_open.
4492 (arm_elf_before_allocation): New. Call
4493 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4494 (PARSE_AND_LIST_PROLOGUE): Define.
4495 (PARSE_AND_LIST_SHORTOPTS): Define.
4496 (PARSE_AND_LIST_LONGOPTS): Define.
4497 (PARSE_AND_LIST_OPTIONS): Define.
4498 (PARSE_AND_LIST_ARGS_CASES): Define.
4499 (LDEMUL_AFTER_OPEN): Define.
4500 (LDEMUL_BEFORE_ALLOCATION): Define.
4501 (LDEMUL_BEFORE_PARSE): Define.
4502 (LDEMUL_FINISH): Define.
4504 * emultempl/hppaelf.em: Similarly zap most of this file.
4505 (hppaelf_add_stub_section): Prototype.
4506 (hppaelf_layaout_sections_again): Prototype.
4507 (hook_in_stub): Prototype.
4508 (LDEMUL_SET_OUTPUT_ARCH): Define.
4509 (LDEMUL_FINISH): Define.
4510 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4512 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4513 (EXTRA_EM_FILE): New.
4514 * emulparams/armelf_linux.sh: Likewise.
4515 * emulparams/armelf_linux26.sh: Likewise.
4516 * emulparams/hppalinux.sh: Likewise.
4517 * emulparams/hppaelf.sh: Likewise.
4520 * emultempl/elf32.em: Fix formatting.
4521 (EXTRA_EM_FILE): Source it.
4522 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4523 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4524 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4525 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4526 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4527 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4528 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4529 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4530 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4531 allow functions in this file to be overridden.
4532 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4534 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4536 * emultempl/elf32.em: Reorganize file.
4538 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4540 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4541 specific option to fit 64-bit executable in the lower
4542 31-bit address range. This is done by changing start
4543 address of .interp (the very first section of executable)
4544 and then setting EF_ALPHA_32BIT elf header flag.
4546 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4548 * emultempl/m68kcoff.em: New file.
4549 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4550 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4552 * Makefile.in: Regenerate.
4554 2000-07-20 H.J. Lu <hjl@gnu.org>
4556 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4557 and "disable-new-dtags" to stop getopt from treating -d/-e as
4558 abbreviations for these options.
4560 2000-07-20 H.J. Lu <hjl@gnu.org>
4562 * ld.texinfo: Add documentation for --disable-new-dtags and
4565 * ldmain.c (main): Initialize link_info.new_dtags to false.
4567 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4568 --disable-new-dtags and --enable-new-dtags.
4569 (gld_${EMULATION_NAME}_list_options): Likewise.
4571 2000-07-05 Kenneth Block <krblock@computer.org>
4573 * lexsup.c: Add optional style to demangle switch
4574 * ld.texinfo: Document optional style to demangle switch.
4576 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4578 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4580 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4581 Regenerate dependencies.
4582 * Makefile.in: Rebuild.
4583 * configure.tgt (cris-*-*): New target.
4584 * emulparams/crisaout.sh, emulparams/criself.sh,
4585 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4586 * po/POTFILES.in, po/ld.pot: Regenerate.
4588 2000-07-20 H.J. Lu <hjl@gnu.org>
4590 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4591 Print out ignored -z options.
4593 2000-07-19 H.J. Lu <hjl@gnu.org>
4595 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4596 (PARSE_AND_LIST_PROLOGUE): New.
4597 (PARSE_AND_LIST_LONGOPTS): Likewise.
4598 (PARSE_AND_LIST_OPTIONS): Likewise.
4599 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4601 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4603 * lexsup.c (ld_options): Comment out 'z'.
4604 (parse_args): Likewise.
4606 * emultempl/elf32.em: Include "elf/common.h".
4607 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4609 (gld_${EMULATION_NAME}_list_options): Likewise.
4611 * ld.texinfo: Add documentation for the recognized -z options.
4613 2000-07-19 H.J. Lu <hjl@gnu.org>
4615 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4616 bfd_elf_set_dt_needed_soname ().
4618 2000-07-18 DJ Delorie <dj@cygnus.com>
4620 * pe-dll.c (pe_dll_id_target): check object target name also
4622 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4624 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4625 ${INIT_END} if relocating.
4626 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4628 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4630 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4631 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4632 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4633 errors introduced by the old dynamic lib search order.
4635 2000-07-17 DJ Delorie <dj@cygnus.com>
4637 * pe-dll.c (process_def_file): auto-export data items also
4638 (pe_process_import_defs): also see if _imp_ form needed
4640 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4642 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4643 for dll import libraries
4645 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4647 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4648 gcc 2.95.2 and later.
4650 2000-07-11 Kazu Hirata <kazu@hxi.com>
4652 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4655 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4657 * ldemul.h (struct lang_input_statement_struct): Remove forward
4659 (struct search_dirs): Likewise.
4660 * ldfile.h (struct lang_input_statement_struct): Likewise.
4661 Protect file from multiple inclusion.
4662 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4663 declaration from macro to file scope.
4665 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4666 * ldgram.y: Likewise here.
4667 * ldlang.c: And here.
4668 * ldmain.c: And here.
4669 * mpw-elfmips.c: And here.
4670 * mpw-eppcmac.c: And here.
4671 * emultempl/aix.em: And here.
4672 * emultempl/armcoff.em: And here.
4673 * emultempl/armelf.em: And here.
4674 * emultempl/armelf_oabi.em: And here.
4675 * emultempl/beos.em: And here.
4676 * emultempl/elf32.em: And here.
4677 * emultempl/hppaelf.em: And here.
4678 * emultempl/linux.em: And here.
4679 * emultempl/lnk960.em: And here.
4680 * emultempl/pe.em: And here.
4681 * emultempl/sunos.em: And here.
4682 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4683 * mpw-idtmips.c: Ditto.
4684 * emultempl/generic.em: Ditto.
4685 * emultempl/gld960.em: Ditto.
4686 * emultempl/gld960c.em: Ditto.
4687 * emultempl/mipsecoff.em: Ditto.
4688 * emultempl/ticoff.em: Ditto.
4689 * emultempl/vanilla.em: Ditto.
4691 * pe-dll.c: Include ldfile.h
4692 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4694 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4695 arguments to bfd_elf32_size_dynamic_sections call.
4696 (gldelf32ebmip_place_orphan): Add missing arguments to
4697 lang_leave_output_section_statement call.
4699 2000-07-10 H.J. Lu <hjl@gnu.org>
4701 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4703 (strhash): Likewise.
4704 (compute_dll_image_base): Likewise.
4705 (pe_undef_found_sym): Likewise.
4706 (pe_undef_cdecl_match): Likewise.
4707 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4708 argument "arch" with ATTRIBUTE_UNUSED.
4710 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4712 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4714 From Ryan Bradetich <rbradetich@uswest.net>
4715 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4717 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4719 Changes to create multiple linker stubs, positioned immediately
4720 before the section where they are required.
4721 * emultempl/hppaelf.em: Include elf32-hppa.h.
4722 (stub_sec, file_chain): Delete.
4723 (hppaelf_create_output_section_statements): Don't make a stub
4725 (hook_stub_info): New struct.
4726 (hook_in_stub): New function.
4727 (hppaelf_add_stub_section): New function.
4728 (hppaelf_finish): Do nothing for relocateable links. Modify the
4729 call to elf32_hppa_size_stubs. Move code for updating section
4731 (hppaelf_layaout_sections_again): ..to here, a new function.
4733 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4734 broken list handling. Pass in a pointer to the list.
4735 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4737 (hppaelf_before_parse): Prototype.
4738 (hppaelf_set_output_arch): Prototype.
4739 (hppaelf_create_output_section_statements): Prototype.
4740 (hppaelf_delete_padding_statements): Prototype.
4741 (hppaelf_finish): Prototype.
4744 * emultempl/hppaelf.em: Include ctype.h.
4745 (struct orphan_save): New.
4746 (gld${EMULATION_NAME}_place_orphan): New.
4747 (output_rel_find): New.
4748 (hppaelf_get_script): Update from elf32.em.
4749 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4750 Change emulation_name field to "${EMULATION_NAME}". Add
4751 gld${EMULATION_NAME}_place_orphan.
4753 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4754 ehppalinux.o, sort it. Regenerate dependencies.
4755 (ehppalinux.c): Depend on hppaelf.em
4756 * Makefile.in: Regenerate.
4758 * configure.tgt: targ_emul=hppalinux for hppa*linux
4760 * emulparams/hppalinux.sh: New.
4761 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4763 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4765 * lexsup.c (parse_args): Copy section name.
4767 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4769 * emultempl/pe.em: institute the following search order for
4770 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4771 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4772 static lib (libfoo.a) if none of the above are found.
4774 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4776 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4777 (longopts): New --{enable,disable}-auto-image-base options.
4778 (gld_${EMULATION_NAME}_list_options): Document.
4779 (gld_${EMULATION_NAME}_parse): Handle.
4780 (strhash): New static function.
4781 (compute_dll_image_base): New static function.
4782 (gld_${EMULATION_NAME}_set_symbols): Use.
4784 2000-07-05 DJ Delorie <dj@redhat.com>
4788 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4790 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4791 * emulparams/elf32btsmip.sh: New file.
4792 * Makefile.am: Add traditional mips target.
4793 * Makefile.in: Rebuild.
4795 2000-07-01 H.J. Lu <hjl@gnu.org>
4797 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4798 automake to use YLWRAP.
4799 * Makefile.in: Rebuild.
4801 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4803 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4804 (CLEANFILES): Add DEPA.
4805 * Makefile.in: Regenerate.
4807 2000-06-30 Timothy Wall <twall@ppc>
4809 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4810 the page in the upper octet of the address.
4812 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4814 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4816 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4818 * NEWS: arm-elf does --gc-sections too.
4820 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4822 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4824 * Makefile.in: Regenerate.
4826 2000-06-21 H.J. Lu <hjl@gnu.org>
4828 * Makefile.am: Rebuild dependency.
4829 * Makefile.in: Rebuild.
4831 2000-06-20 H.J. Lu <hjl@gnu.org>
4833 * Makefile.am: Rebuild dependency.
4834 * Makefile.in: Rebuild.
4836 2000-06-20 Timothy Wall <twall@cygnus.com>
4838 * scripttempl/tic54xcoff.sc: New.
4839 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4840 * gen-doc.texi: Add flag for TI COFF.
4841 * ld.texinfo: Add documentation for TI COFF handling switches.
4842 * emultempl/ticoff.em: New. TI COFF handling.
4843 * configure.tgt: Add tic54x target.
4844 * Makefile.am: Add tic54x target.
4845 * Makefile.in: Ditto.
4847 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4849 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4850 checking for backslashes.
4852 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4854 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4856 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4858 * NEWS: Update list of targets supporting --gc-sections.
4860 * scripttempl/elf.sc: KEEP .eh_frame contents.
4861 * scripttempl/elfd30v.sc: Same here.
4863 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4865 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4867 * Makefile.in: Rebuild.
4868 * configure.tgt: Recognize m68hc12 and m68hc11.
4869 * scripttempl/elfm68hc12.sc: New file.
4870 * emulparams/m68hc12elfb: New emulation.
4871 * emulparams/m68hc12elf: New emulation.
4872 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4873 (includes a memory.x script to define the ROM and RAM banks).
4874 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4875 New configuration files for support of Motorola 68hc11
4877 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4879 * ldmain.c (main): Only change SEC_READONLY for final link.
4881 2000-06-13 H.J. Lu <hjl@gnu.org>
4883 * configure: Regenerate.
4885 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4887 * configure.in (VERSION): Update to show this is the CVS mainline.
4889 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4891 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4892 input objects to be ECOFF.
4893 (check_sections): einfo takes %B, not %P, to print a BFD name.
4895 2000-06-05 Michael Matz <matz@ifh.de>
4897 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4900 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4902 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4904 * emulparams/avr1200.sh (STACK): Define as 0.
4905 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4906 * emulparams/avr4433.sh (STACK): Likewise.
4907 * emulparams/avr44x4.sh (STACK): Likewise.
4908 * emulparams/avr85xx.sh (STACK): Likewise.
4909 * emulparams/avrmega103.sh (STACK): Likewise.
4910 * emulparams/avrmega161.sh (STACK): Likewise.
4911 * emulparams/avrmega603.sh (STACK): Likewise.
4912 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4913 (__stack): Define from ${STACK} for main().
4915 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4917 * Makefile.am: Update dependencies with "make dep-am"
4918 * Makefile.in: Regenerate.
4920 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4922 * ldmain.c: Include filenames.h.
4923 (set_scripts_dir): Support backslashes in program name.
4925 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4927 * ldmain.c (main): When deciding if ".text" section should be
4928 read-only, don't forget to reset SEC_READONLY because it
4929 could be already set.
4931 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4933 * ld.1: Add documentation for new command line option:
4934 --section-start <sectionname>=<sectionorg>
4935 This is a generic version of -Ttext etc. which accepts
4936 any section name as a parameter instead of just text/data/
4938 * ld.texinfo: More docs.
4940 * lexsup.c: (parse_args): Recognize new command line option.
4941 (ld_options): Add new option.
4943 2000-05-18 H.J. Lu <hjl@gnu.org>
4945 * lexsup.c (parse_args): `i' == `r', not `q'.
4947 2000-05-18 Jeffrey A Law (law@cygnus.com)
4949 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4951 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4952 Rick Gorton <gorton@scrugs.lkg.dec.com>
4954 Add support for '-q' == '--emit-relocs' switch.
4955 * ldmain.c (main): Default to false.
4956 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4957 * NEWS: Describe the emitrelocations switch.
4958 * ld.texinfo: Describe the emitrelocations switch.
4960 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4962 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4963 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4964 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4967 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4969 * lexsup.c (parse_args): Update the year in the copyright notice.
4971 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4973 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4974 Replace defines with those from intl/libgettext.h to quieten gcc
4977 2000-05-10 H.J. Lu <hjl@gnu.org>
4979 * ldlang.c (open_input_bfds): Don't load the same file within
4980 a group again if the whole archive has been loaded already.
4982 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4984 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4985 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4988 2000-05-01 Jim Wilson <wilson@cygnus.com>
4990 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4992 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4993 host "ia64-*-linux-gnu*".
4995 2000-04-29 Andreas Jaeger <aj@suse.de>
4997 * ld.h: Correctly check GCC version.
4999 2000-04-25 Jeffrey A Law (law@cygnus.com)
5001 * Makefile.am: Add PA64 support. Add missing dependencies for
5003 * Makefile.in: Rebuilt.
5004 * configure.tgt: Add PA64 support (currently disabled).
5006 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5008 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5009 (output_rel_find): New function.
5010 (hold_section, hold_use): Delete.
5011 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5012 hold_interp): Make local to place_orphan.
5013 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5014 rather than place_section to find possible previous use of orphan.
5015 Similarly find the place-holder output sections. Use returned
5016 value from lang_enter_output_section_statement rather than calling
5017 lang_output_section_statement_lookup.
5018 * emultempl/armelf.em: Same here.
5019 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5021 * ldlang.c (lang_enter_output_section_statement): Return output
5023 * ldlang.h (lang_enter_output_section_statement): Change
5026 * ldlang.h (lang_output_section_statement): Export it.
5027 * ldlang.c (lang_output_section_statement): Ditto.
5029 2000-04-24 Nick Clifton <nickc@cygnus.com>
5031 * ld.texinfo (Output Section Data): Add note that section data
5032 commands cannot appear outside of section directives.
5034 2000-04-2 Matthew Green <mrg@cygnus.com>
5036 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5038 2000-04-21 Richard Henderson <rth@cygnus.com>
5039 David Mosberger <davidm@hpl.hp.com>
5041 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5042 (eelf64_ia64.c): New rule.
5043 * Makefile.in: Rebuild.
5044 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5045 * emulparams/elf64_ia64.sh: New file.
5047 2000-04-21 Richard Henderson <rth@cygnus.com>
5049 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5051 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5053 * dep-in.sed: Match space at start of file name, not at end.
5055 2000-04-18 H.J. Lu <hjl@gnu.org>
5057 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5058 lang_leave_output_section_statement () after calling
5059 lang_enter_output_section_statement ().
5060 * emultempl/armelf.em: Likewise.
5062 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5064 * emultempl/elf32.em (struct orphan_save): Add section field.
5065 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5066 better order, and place first orphan section as we did before the
5067 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5068 Don't call make_bfd_section here, let wild_doit do the job for us.
5069 Don't build a statement list when we'll only throw it away.
5070 * emultempl/armelf.em: Ditto.
5071 * emultempl/pe.em: Similarly.
5073 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5075 * scripttempl/elfppc.sc: Remove.
5076 * emulparams/elf32ppc.sh: Use elf.sc.
5077 * emulparams/elf32lppc.sh: Use elf.sc.
5078 * emulparams/elf32ppclinux.sh: Use elf.sc.
5079 * emulparams/elf32ppcsim.sh: New file.
5080 * emulparams/elf32lppcsim.sh: New file.
5081 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5082 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5083 * Makefile.in: Regenerate.
5084 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5086 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5088 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5089 ~SEC_ALLOC sections too. Init start address of debug sections.
5090 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5091 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5092 Also set all relocateable section start addresses.
5094 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5096 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5097 Add new BSS_PLT variable for when .plt need not be contained in
5098 the file. Move _etext so that it is also after .fini, and provide
5099 both etext and _etext with a leading underscore. Mark the start
5102 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5104 * emultempl/elf32.em (struct orphan_save): New.
5105 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5106 hold_interp): Make them struct orphan_save.
5107 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5108 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5109 the end of the relevant section list. Also add associated section
5110 statements to the end of any previous orphan statements.
5111 * emultempl/armelf.em: Similarly.
5112 * emultempl/pe.em: Similarly.
5114 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5116 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5118 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5120 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5121 --enable-build-warnings option.
5122 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5123 * Makefile.in, configure: Re-generate.
5125 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5127 * po/ld.pot: Regenerate.
5129 * lexsup.c (help): Restore translated part of bug string.
5131 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5132 (DEP): Quote when passing vars to sub-make. Add warning message
5134 (DEP1): Rewrite for "gcc -MM".
5135 (CLEANFILES): Add DEP2.
5136 Update dependencies.
5137 * Makefile.in: Regenerate.
5139 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5141 * ld.h: #include "bin-bugs.h"
5142 * lexsup.c (help): Use REPORT_BUGS_TO.
5144 2000-03-27 Denis Chertykov <denisc@overta.ru>
5146 * configure.tgt (avr-*-*): New target support.
5147 * Makefile.am: Likewise.
5148 * scripttempl/elf32avr.sc: New script file.
5149 * emulparams/avr1200.sh: New file.
5150 * emulparams/avr23xx.sh: New file.
5151 * emulparams/avr4433.sh New file.
5152 * emulparams/avr44x4.sh New file.
5153 * emulparams/avr85xx.sh New file.
5154 * emulparams/avrmega103.sh New file.
5155 * emulparams/avrmega161.sh New file.
5156 * emulparams/avrmega603.sh New file.
5157 * Makefile.in: Regenerate.
5159 2000-03-09 Andreas Jaeger <aj@suse.de>
5161 * Makefile.am (check-DEJAGNU): Also unset LANG.
5162 * Makefile.in: Rebuild.
5164 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5166 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5169 2000-03-02 H.J. Lu <hjl@gnu.org>
5171 * emulparams/elf32mcore.sh: Include "getopt.h".
5173 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5175 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5177 2000-03-01 H.J. Lu <hjl@gnu.org>
5179 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5180 * emulparams/shpe.sh: Likewise.
5182 2000-03-01 Nick Clifton <nickc@cygnus.com>
5184 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5185 to unused parameters.
5187 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5188 functions only used by DLL code.
5189 (_place_orphan): Initialise 'dollar'.
5191 2000-03-01 H.J. Lu <hjl@gnu.org>
5193 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5194 indicate if the undefined symbol is a fatal error or not.
5195 Don't delete the output file if "fatal" is false.
5197 2000-02-29 H.J. Lu <hjl@gnu.org>
5199 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5200 Set LC_COLLATE and LC_ALL to null and export them. It is for
5201 sort which expects the C locale.
5202 Add $(LIBS) to all $(HOSTING_LIBS).
5203 * Makefile.in: Rebuild.
5205 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5207 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5208 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5209 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5210 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5211 find_potential_libraries.
5213 2000-02-28 Jim Blandy <jimb@redhat.com>
5215 * ldgram.y (exclude_name_list): Don't require a comma to separate
5216 list entries; the lexer considers commas to be valid part of a
5217 filename, so in something like `foo, bar' the comma is considered
5218 part of the first filename, `foo,'.
5219 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5221 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5223 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5224 host "i[3456]86-*-freebsdelf*".
5226 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5228 * scripttempl/i386go32.sc: Move misplaced semicolons.
5230 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5232 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5233 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5234 (eelf64hppa.c, ehppaelf.c): Remove targets.
5235 * Makefile.in: Rebuild.
5237 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5239 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5240 GNU/Linux/sparc, but keep the default as 32.
5242 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5243 it default if sparcv9 or sparc64.
5245 2000-02-24 Nick Clifton <nickc@cygnus.com>
5247 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5248 * Makefile.in: Regenerate.
5249 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5251 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5252 find_potential_libraries.
5253 * ldemul.c (ldemul_find_potential_libraries): New function.
5255 * ldfile.c (ldfile_open_file_search): Allow function to be
5257 (ldfile_open_file): Call ldemul_find_potential_libraries.
5258 * ldfile.h: Add prototype for ldfile_open_file_search.
5260 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5262 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5263 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5265 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5266 (gld_X_find_potential_libraries): New function. Search for
5267 libraries called "*.lib".
5269 * scripttempl/pe.sc: Add .pdata section.
5271 2000-02-23 Richard Henderson <rth@cygnus.com>
5273 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5274 Add and use memory regions.
5276 2000-02-23 Linas Vepstas (linas@linas.org)
5278 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5280 * Makefile.am: Add support for Linux/IBM 370.
5281 * configure.tgt: Likewise.
5283 * Makefile.in: Regenerate.
5285 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5287 * ldlang.c (print_input_section, print_data_statement,
5288 print_reloc_statement, print_padding_statement, insert_pad,
5289 size_input_section, lang_check_section_addresses,
5290 lang_size_sections, lang_do_assignments, lang_set_startof,
5291 lang_one_common): Change `opb' to unsigned.
5292 (lang_do_assignments): Also change `size' to unsigned.
5294 2000-02-16 Richard Henderson <rth@cygnus.com>
5296 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5298 2000-02-16 Timothy Wall <twall@cygnus.com>
5300 * mri.c (mri_draw_tree): Add default LMA region argument to call
5301 to lang_leave_output_section_statement.
5302 * ldlang.h: Update prototypes with LMA region arguments.
5303 * ldlang.c (lang_size_sections): Encapsulate region bounds
5304 checking in os_check_region call.
5305 (os_check_region): New function.
5306 (lang_output_section_statement_lookup): Initialize lma_region.
5307 (lang_leave_output_section_statement): Add LMA region argument.
5308 (lang_leave_overlay): Ditto.
5309 * ldgram.y: Handle LMA region syntax.
5310 * ld.texinfo (Output Section Description): Describe LMA region usage.
5311 * emultempl/armelf.em (gld$place_orphan): Add default value for
5312 lma region in call to lang_leave_output_section_statement.
5313 * emultempl/elf32.em (gld$place_orphan): Add default value for
5314 lma region in call to lang_leave_output_section_statement.
5315 * emultempl/pe.em (gld$place_orphan): Add default value for
5316 lma region in call to lang_leave_output_section_statement.
5319 2000-02-04 Timothy Wall <twall@redhat.com>
5321 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5322 octets when calculating section end addresses.
5324 2000-02-04 Timothy Wall <twall@redhat.com>
5326 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5328 2000-02-03 Timothy Wall <twall@redhat.com>
5330 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5332 * ldlang.c (print_input_section, print_data_statement,
5333 print_reloc_statement, print_padding_statement): Print target
5334 address values and section sizes as bytes, not octets.
5335 (insert_pad) Calculate padding size in octets, and adjust "dot"
5337 (size_input_section) Always adjust "dot" by bytes, not octets.
5338 (lang_check_section_addresses, lang_do_assignments) Adjust
5339 "dot" by bytes, not octets. Use the larger of the directive size
5340 or octets_per_byte for the number of octets actually allocated in
5342 (lang_set_startof) Make sure STARTOF returns a target address.
5343 (lang_one_common) Record size changes in octets.
5344 (lang_abs_symbol_at_end_of) Section end symbol's value is
5345 recorded in target bytes.
5346 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5347 to be clear about behavior when an octet is smaller than one byte.
5349 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5351 * ldcref.c (output_cref): Don't pass message strings to printf
5355 * ldmisc.c (vfinfo): Same here.
5358 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5360 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5361 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5362 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5363 Add missing NULL initialisers, and comments.
5365 2000-01-21 Nick Clifton <nickc@cygnus.com>
5367 * ldlang.c (lang_size_sections): Fix typo in comment.
5369 2000-01-18 H.J. Lu <hjl@gnu.org>
5371 * ldlang.c (lang_size_sections): Also update the current
5372 address of a region if the SEC_NEVER_LOAD bit is not set.
5374 2000-01-10 Philip Blundell <pb@futuretv.com>
5376 * configure.tgt (arm*-*-conix*): New target.
5378 2000-01-07 Nick Clifton <nickc@cygnus.com>
5380 * ld.texinfo (Options): Remind users to preceed linker command
5381 line switches with -Wl, (or whatever is appropriate) if it is
5382 being invoked by a comnpiler driver program.
5383 Fix description of the behaviour of the -n command line switch.
5385 2000-01-05 Catherine Moore <clm@cygnus.com>
5387 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5389 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5390 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5391 (exclude_name_list): New.
5392 ldlang.c (walk_wild_section): Support list of excluded files.
5393 (print_wild_statement): Likewise.
5394 (lang_add_wild): Likewise.
5395 * ldlang.h (lang_wild_statement_type): Likewise.
5396 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5398 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5400 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5401 (process_def_file): Use.
5402 (pe_dll_compat_implib): New variable.
5405 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5406 pe_dll_compat_implib.
5408 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5409 compat-implib options.
5410 (gld_${EMULATION_NAME}_list_options): List new options.
5411 (gld_${EMULATION_NAME}_parse_args): Handle.
5413 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5416 * deffilep.y (opt_name): Allow "." in name.
5418 For older changes see ChangeLog-9899
5424 version-control: never