1 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
3 * ldmain.c (main): Make sure ld_sysroot is initialized.
5 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
7 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
9 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
10 (GENSCRIPTS): Add @use_sysroot@.
11 * Makefile.in: Regenerated.
12 * configure.host: Move setting of NATIVE_LIB_DIRS to...
13 * configure.tgt: ... here. Use ${target} instead of ${host}
15 * configure.in: Add --with-sysroot.
16 * configure: Regenerated.
17 * genscripts.sh: Accept use_sysroot option. Set new variables
18 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
19 $use_sysroot. Don't search $tool_lib if $use_sysroot.
20 * ldfile.c (ldfile_add_library_path): Handle leading '='.
21 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
22 (ld_sysroot): New variable.
23 (main): Initialize ld_sysroot.
24 * ldmain.h (ld_sysroot): New extern.
25 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
26 searching $EMULATION_LIBPATH.
27 (gld${EMULATION_NAME}_add_sysroot): New function.
28 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
29 (gld${EMULATION_NAME}_after_open): Likewise. Only search
30 environment variables if $NATIVE.
31 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
32 * NEWS: Mention --with-sysroot.
34 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
35 instead of setting LIB_PATH.
36 * emulparams/elf32ppc.sh: Likewise.
37 * emulparams/elf64_s390.sh: Likewise.
38 * emulparams/elf64_sparc.sh: Likewise.
39 * emulparams/elf64ppc.sh: Likewise.
40 * emulparams/elf_x86_64.sh: Likewise.
42 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
43 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
45 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
47 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
49 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
51 * Makefile.am (ldmain.o): Pass BINDIR.
52 * Makefile.in: Regenerated.
53 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
56 2003-01-02 Ben Elliston <bje@redhat.com>
58 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
59 (eelf32iq2000.c): New target.
60 * Makefile.in: Regenerate.
61 * configure.tgt: Handle iq2000-*-elf.
62 * emulparams/elf32iq10.sh: New file.
63 * emulparams/elf32iq2000.sh: New file.
64 * scripttempl/iq2000.sc: New file.
66 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
68 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
69 and _pei386_runtime_relocator to the exclude list.
71 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
73 * ldfile.c: Fix comment typos.
78 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
80 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
81 * Makefile.am (ld.1): Depend on configdoc.texi
83 * Makefile.in: Regenerated.
85 2002-12-24 Dmitry Diky <diwil@mail.ru>
87 * Makefile.am: Add msp430 target.
88 * configure.tgt: Likewise.
89 * Makefile.in: Regenerate.
90 * emulparams/msp430x???.sh: New files. Linker script parameters
91 for various msp430 configurations.
92 * gen-doc.texi: Enable msp430 documenation.
93 * ld.texinfo: Document msp430 sections.
94 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
95 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
97 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
98 Charles Wilson <cwilson@ece.gatech.edu>
100 * ld/config.in (HAVE_REALPATH): New entry.
101 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
103 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
105 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
108 2002-12-23 Alan Modra <amodra@bigpond.net.au>
110 * ldmain.c (main): Init "strip_discarded".
111 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
112 (OPTION_NO_STRIP_DISCARDED): Define.
113 (ld_options): Add "strip-discarded" and "no-strip-discarded".
114 (parse_args): Handle them.
116 2002-12-23 Nick Clifton <nickc@redhat.com>
118 * ld.h (struct args_type): Add new field
119 'accept_unknown_input_architecture'.
120 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
122 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
123 bfd_arch_get_compatible.
124 * ldfile.c (ldfile_try_open_bfd): Likewise.
125 * lexsup.c (ld_options): Add new command line switch
126 --accept-unknown-input-architecture and its inverse.
127 (parse_args): Handle --accept-unknown-input-architecture.
128 * ld.texinfo: Document new linker option.
129 * NEWS: Mention new linker option.
131 2002-12-20 Alan Modra <amodra@bigpond.net.au>
133 * ldmain.c (main): Re-order link_info initialization. Init all
136 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
138 * ld.texinfo: Clarify and extend the documentation
139 in the Machine Dependent, WIN32 section.
141 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
143 * ld.texinfo: Add win32 machine depending section.
144 * gen-doc.texi: Enable win32 machine depending section.
146 * configure.host: Add win32 library search path.
148 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
150 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
151 import when auto-import is disabled.
153 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
155 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
156 account for trailing '\0'.
158 2002-12-17 Nick Clifton <nickc@redhat.com>
160 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
161 so that it is not confused with -c.
163 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
164 Charles Wilson <cwilson@ece.gatech.edu>
166 * configure.in: Add check for realpath function.
167 * configure: Regenerate.
168 * config.in: Regenerate.
169 * aclocal.m4: Regenerate.
170 * deffile.h: Add .data field to def_file_import
172 * pe-dll.c (pe_proces_import_defs): Use .data field of
173 def_file_import structure to initialize flag_data field of
174 def_file_export structure.
175 (pe_implied_import_dll): New variables exp_funcbase and
176 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
177 not filename (which may be a symlink). Scan the sections and
178 initialize [data|bss]_[start|end]. When scanning the export
179 table, skip _nm_ symbols, and mark any symbols whose rva indicates
180 that it is in the .bss or .data sections as data.
181 * sysdep.h: Include limits.h and sys/param.h, and define
182 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
183 exists, NULL otherwise.
184 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
185 pe_process_import_defs before pe_find_data_imports, so that
186 auto-import will check the virtual implib as well as "real"
188 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
189 symlinks to their target; check that the target's extension is
190 .dll before calling pe_implied_import_dll(), not the filename
191 itself (which may be a symlink).
193 2002-12-10 Alan Modra <amodra@bigpond.net.au>
195 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
196 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
199 2002-12-08 Alan Modra <amodra@bigpond.net.au>
201 * ldlang.h: Formatting.
203 2002-12-07 Alan Modra <amodra@bigpond.net.au>
205 * ldlang.c (init_os): Ensure sections mentioned in load_base
208 2002-12-05 Alan Modra <amodra@bigpond.net.au>
210 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
211 load_base for orphans that follow a section with load_base set.
213 2002-12-01 H.J. Lu <hjl@gnu.org>
215 * ld.texinfo: Remove the extra `;' in sample version script.
217 2002-11-30 Alan Modra <amodra@bigpond.net.au>
219 * configure.host: Correct dynamic-linker for powerpc64 hosts.
221 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
222 * Makefile.in: Regenerate.
224 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
225 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
226 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
227 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
228 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
229 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
230 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
231 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
232 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
233 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
234 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
235 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
236 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
238 2002-11-27 David O'Brien <obrien@FreeBSD.org>
240 * configure.host: Fix generic FreeBSD configuration entry.
242 2002-11-27 H.J. Lu <hjl@gnu.org>
244 * ld.texinfo: Add the missing `;' to sample version scripts.
246 2002-11-20 Alan Modra <amodra@bigpond.net.au>
248 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
250 2002-11-14 Egor Duda <deo@logos-m.ru>
252 * ldmain.c (main): Make runtime relocs disabled by default. Remove
253 assignment which has no effect.
254 * pe-dll.h (pe_create_import_fixup): Change prototype.
255 * pe-dll.c (make_runtime_pseudo_reloc): New function.
256 (pe_create_runtime_relocator_reference): Ditto.
257 (pe_create_import_fixup): Handle relocations with non-zero addends.
258 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
259 --disable-runtime-pseudo-reloc.
260 (make_import_fixup): Handle relocations with non-zero addends. Create
261 an external reference to _pei386_runtime_relocator symbol if at least
262 one pseudo reloc was created.
263 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
264 --disable-runtime-pseudo-reloc options.
266 2002-11-12 Earl Chew <earl_chew@agilent.com>
268 * ldlang.c (lang_add_section): Discard debugging sections that have
269 been marked SEC_EXCLUDE.
271 2002-11-12 Nick Clifton <nickc@redhat.com>
273 * configure.in (ALL_LINGUAS): Add da.
274 * configure: Regenerate.
275 * po/da.po: New Danish translation.
277 2002-11-12 Alan Modra <amodra@bigpond.net.au>
279 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
280 (LDEMUL_BEFORE_ALLOCATION): Define.
281 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
283 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
285 2002-11-11 Christopher Faylor <cgf@redhat.com>
287 * configure.tgt (LIB_PATH): Default to searching w32api directory under
290 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
292 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
293 of restricted auto-export libs.
295 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
297 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
298 creative library naming instances like, e.g., libstdc++-2.a.
300 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
302 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
303 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
305 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
307 * deffilep.y (def_lex): Handle '@' as first character of an ID.
308 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
309 (make_one): Don't prefix decorated fastcall symbols with '_'.
310 (pe_process_import_defs): Likewise.
311 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
312 symbols to cdecl names or vise-versa.
314 2002-10-13 Eric Kohl <ekohl@rz-online.de>
316 * pe-dll.c (process_def_file): Handle fastcall symbols when
317 generating undecorated aliases. Don't prefix decorated fastcall
319 (fill_exported_offsets): Don't prefix decorated fastcall symbols
322 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
324 * emultempl/aix.em: Use include <> for generated headers.
325 * emultempl/beos.em: Likewise.
326 * emultempl/elf32.em: Likewise.
327 * emultempl/pe.em: Likewise.
328 * ldctor.c: Likewise.
330 * ldfile.c: Likewise.
331 * ldlang.c: Likewise.
334 * ldmain.c: Likewise.
335 * ldmisc.c: Likewise.
336 * ldwrite.c: Likewise.
337 * lexsup.c: Likewise.
339 * pe-dll.c: Likewise.
341 2002-10-23 Jakub Jelinek <jakub@redhat.com>
343 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
344 sections into .rel{,a}.dyn.
346 2002-10-23 Nick Clifton <nickc@redhat.com>
348 * lexsup.c (OPTION_NO_OMAGIC): Define.
349 (ld_options): Add "no-omagic" option.
350 (parse_args): Parse --no-omagic.
351 * ld.texinfo: Document --no-omagic.
352 * NEWS: Mention new option.
354 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
356 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
357 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
359 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
361 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
362 emulation name. Set LIB_PATH only for native tools, and
363 search the ABI-specific versions of NATIVE_LIB_DIRS before the
364 .../lib variants, not instead of them. Mostly copied from...
365 * emulparams/elf32ppc.sh: ... here. Fixed typo.
366 * emulparams/elf64bmip-defs.sh: Backed out.
367 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
368 * emulparams/elf64btsmip.sh: Likewise.
369 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
370 TEXT_DYNAMIC): Removed.
372 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
374 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
375 (GENERATE_SHLIB_SCRIPT): Set to yes.
376 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
377 * emulparams/elf32bmipn32.sh: here.
378 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
379 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
380 * emulparams/elf64bmip-defs.sh: New file. Extend
381 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
382 * emulparams/elf64bmip.sh: Bring in definitions from
384 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
386 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
387 * emulparams/elf64btsmip.sh: Bring in definitions from
389 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
390 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
392 2002-10-16 Jakub Jelinek <jakub@redhat.com>
394 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
395 (s390-*-linux*): Add elf64_s390 emulation if want64.
396 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
397 genscript.sh changes.
398 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
399 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
401 2002-10-15 Alan Modra <amodra@bigpond.net.au>
403 * ldlang.c (load_symbols): Revert last change.
405 2002-10-14 Alan Modra <amodra@bigpond.net.au>
407 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
409 (lang_reasonable_defaults): Don't compare against false.
410 (size_input_section): Likewise.
411 (lang_size_sections_1): Likewise.
412 (lang_do_assignments): Likewise.
413 (lang_add_output): Likewise.
415 * Makefile.am: Run "make dep-am".
416 * Makefile.in: Regenerate.
417 * ldver.c: #include "bfdver.h".
419 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
421 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
423 * scripttempl/elfm68hc12.sc: Likewise.
425 2002-10-11 Alan Modra <amodra@bigpond.net.au>
427 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
429 * ldgram.y (memory_spec): Provide empty action.
430 (section <NAME>): Likewise.
432 2002-10-10 Jakub Jelinek <jakub@redhat.com>
434 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
435 they have OUTPUT_FORMAT not matching actual output format.
436 * ldlang.c (lang_get_output_target): New function.
437 (open_output): Use it.
438 * ldlang.h (lang_get_output_target): New prototype.
440 2002-10-10 Alan Modra <amodra@bigpond.net.au>
442 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
443 when orphan is .rel, .rela when orphan is .rela.
444 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
445 first. Remove outsecname var.
447 2002-10-09 Richard Shann <richard.shann@superh.com>
448 Stephen Clarke <stephen.clarke@superh.com>
450 * Makefile.am: Add eshelf32_linux.o and
451 eshlelf32_linux.o, new emulations for sh64 Linux.
452 * Makefile.in: Regenerate.
453 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
454 * emulparams/shelf32_linux.sh: New file.
455 * emulparams/shlelf32_linux.sh: New file.
457 2002-10-08 H.J. Lu <hjl@gnu.org>
459 * ldlang.c (lang_file_exist): Removed.
460 (new_afile): Revert the last change.
461 * ldlang.h (lang_file_exist): Removed.
462 * lexsup.c (parse_args): Revert the last change.
464 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
466 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
468 (make_one): Create _nm_<symbol> for data only.
470 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
472 * ldlang.c (lang_file_exist): New function.
473 (new_afile): Abort if the filename to be added matches the linker
475 * ldlang.h: Add prototype for lang_file_exist.
476 * lexsup.c (parse_args): Abort if the output filename matches
477 one of the input filenames.
479 2002-10-02 Alan Modra <amodra@bigpond.net.au>
481 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
483 2002-09-30 Alan Modra <amodra@bigpond.net.au>
485 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
486 * scripttempl/elfm68hc11.sc: Likewise.
487 * scripttempl/elfm68hc12.sc: Likewise.
489 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
490 reloc sections just before .rel.plt/.rela.plt.
491 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
492 Only put loadable reloc sections in hold_rel.
494 2002-09-29 H.J. Lu <hjl@gnu.org>
496 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
498 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
500 From "Anita Kulkarni" <AnitaK@kpit.com>
501 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
504 2002-09-25 Alan Modra <amodra@bigpond.net.au>
506 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
508 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
509 SEGMENT_SIZE alignment.
510 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
511 (SEGMENT_SIZE): Define.
513 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
514 (fold_binary): Correct abs - non-abs case.
515 (fold_trinary): New. Split out from exp_fold_tree.
517 2002-09-24 Alan Modra <amodra@bigpond.net.au>
519 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
520 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
521 for start of .data, instead align up to 256M boundary.
522 * scripttempl/aix.sc: Likewise.
524 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
526 * scripttempl/i386go32.sc: Handle bss unique sections.
528 2002-09-21 Alan Modra <amodra@bigpond.net.au>
530 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
532 2002-09-17 Stan Cox <scox@redhat.com>
534 * emulparams/elf32bmipn32-defs.sh: New file.
535 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
536 * emulparams/elf32btsmipn32.sh: Likewise.
537 * emulparams/elf64bmip.sh: Likewise.
538 * emulparams/elf64btsmip.sh: Likewise.
540 2002-09-16 Bruno Haible <bruno@clisp.org>
542 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
544 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
547 2002-09-11 Nick Clifton <nickc@redhat.com>
549 * NEWS: New TI port supports both C4x and C3x series of DSPs.
551 * po/tr.po: Updated Turkish translation.
553 2002-09-06 Jeffrey A Law (law@redhat.com)
555 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
557 2002-09-02 Nick Clifton <nickc@redhat.com>
559 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
561 * emulparams/v850.sh (TEMPLATE_NAME): Define.
563 2002-08-30 Nick Clifton <nickc@redhat.com>
565 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
566 used. Change INSN to start at 0x01000000 and extend for
567 256K (ignoring holes). Start the STACK on a word aligned
569 (.rodata): Start it at the READONLY_START_ADDR.
571 2002-08-30 Alan Modra <amodra@bigpond.net.au>
573 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
575 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
577 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
578 added makefile targets for this file.
579 * Makefile.in: Regenerate.
580 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
581 * NEWS: Mention new port.
583 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
585 * emulparams/tic3xcoff.sh: New file.
586 * emulparams/tic4xcoff.sh: New file.
587 * scripttempl/tic3xcoff.sc: New file.
588 * scripttempl/tic4xcoff.sc: New file.
590 2002-08-28 Alan Modra <amodra@bigpond.net.au>
592 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
593 strtoul and strtoull with bfd_scan_vma.
594 (gld${EMULATION_NAME}_read_file): Likewise.
596 2002-08-28 Alan Modra <amodra@bigpond.net.au>
598 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
600 2002-08-27 Egor Duda <deo@logos-m.ru>
602 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
603 Add symbols for application to access them.
605 2002-08-27 Nick Clifton <nickc@redhat.com>
607 * emultempl/armelf.em: Revert this patch, it is not needed.
609 2002-08-22 Adam Nemet <anemet@lnxw.com>
611 2002-08-20 Dan Kegel <dank@kegel.com>
613 * configure.in: added --with-lib-path argument to ld's configure
615 * ld/NEWS: Document new switch.
616 * ld/README: Mention new switch.
617 * configure: Regenerate.
618 * Makefile.in: Regenerate.
621 2001-04-25 Christopher Faylor <cgf@cygnus.com>
623 * Makefile.in (LIB_PATH): Make configurable.
624 (GENSCRIPTS): Set LIB_PATH in environment.
625 * configure.in: Substitute LIB_PATH.
627 2002-08-22 Adam Nemet <anemet@lnxw.com>
629 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
630 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
631 depending on the type of the function.
632 (arm_elf_convert_thumb_symbol_to_address): New function.
634 2002-08-22 Graeme Peterson <gp@qnx.com>
636 * Makefile.am: Add esh{l}elf_nto.o files.
637 * Makefile.in: Regenerate.
638 * configure.tgt: Add support for sh-**-nto* targets.
639 * emulparams/shelf_nto.sh: New file.
640 * emulparams/shlelf_nto.sh: New file.
642 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
644 * ldlang.c (offsetof): Define if not defined.
646 2002-08-14 H.J. Lu <hjl@gnu.org>
648 * configure.tgt: Always enable 64bit emulations for 32bit
651 2002-08-13 Alan Modra <amodra@bigpond.net.au>
653 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
654 (MAXPAGESIZE): Set to 1.
656 * ld.h (ALIGN_N): Delete.
657 * ldexp.h (align_n): Declare.
658 * ldexp.c (align_n): New function.
659 (fold_binary): Use align_n instead of ALIGN_N.
660 (exp_fold_tree): Likewise.
661 * ldlang.c (lang_size_sections_1): Likewise.
662 (lang_one_common): Likewise.
663 * ld.texinfo (ALIGN): Remove power of 2 restriction.
665 2002-07-31 Graeme Peterson <gp@qnx.com>
667 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
668 * Makefile.am: Add eelf32{l}ppcnto.o files.
669 * Makefile.in: Regenerate.
670 * emulparams/elf32lppcnto.sh: New file.
671 * emulparams/elf32ppcnto.sh: New file.
673 2002-08-07 H.J. Lu <hjl@gnu.org>
675 * ld.texinfo: Document --no-undefined-version.
677 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
678 `script.' fields to 0.
680 * ldmain.c (main): Initialize the allow_undefined_version to
683 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
684 (ld_options): Add --no-undefined-version.
685 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
687 2002-08-07 Nick Clifton <nickc@redhat.com>
689 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
690 an interworking bfd if there are input bfds. (107501)
692 2002-08-06 Alan Modra <amodra@bigpond.net.au>
694 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
697 2002-08-01 Nick Clifton <nickc@redhat.com>
699 * emulparams/armelf.sh: Revert previous delta.
700 * scripttempl/elf.sc: Revert previous delta.
702 2002-07-31 H.J. Lu <hjl@gnu.org>
704 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
707 2002-07-31 H.J. Lu <hjl@gnu.org>
709 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
710 64bit BFD is selected.
712 2002-07-31 H.J. Lu <hjl@gnu.org>
714 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
715 if 64bit BFD is selected.
717 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
719 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
720 link_info.common_skip_ar_aymbols.
721 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
723 * ldmain.c (main): Initialize new field
724 link_info.common_skip_ar_aymbols.
726 2002-07-31 Adam Nemet <anemet@lnxw.com>
728 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
730 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
733 2002-07-31 Nick Clifton <nickc@redhat.com>
735 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
736 of the PDP-11 and 2.11BSD a.out support.
738 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
740 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
742 * Makefile.in: Regenerate.
743 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
744 n32 ABI emulations for these 64 bit targets.
745 * emulparams/elf32bmipn32.sh: Expand comment.
746 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
748 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
750 2002-07-30 Graeme Peterson <gp@qnx.com>
752 * configure.tgt: Add support for arm-*-nto target.
753 * Makefile.am: Add earmnto.o file.
754 * Makefile.in: Regenerate.
755 * NEWS: Mention port of ARM support to QNX.
756 * emulparams/armnto.sh: New file.
758 2002-07-30 Jakub Jelinek <jakub@redhat.com>
760 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
761 for relocatable link.
762 (lang_size_sections_1): Don't make .tbss zero size for relocatable
765 2002-07-26 Bernd Schmidt <bernds@redhat.com>
767 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
770 2002-07-25 Nick Clifton <nickc@redhat.com>
772 * po/sv.po: Updated Swedish translation.
773 * po/es.po: Updated Spanish translation.
774 * po/fr.po: Updated French translation.
776 2002-07-24 Nick Clifton <nickc@redhat.com>
778 * po/sv.po: Updated Swedish translation.
779 * po/es.po: Updated Spanish translation.
781 2002-07-23 Nick Clifton <nickc@redhat.com>
783 * po/fr.po: Updated French translation.
785 2002-07-20 Alan Modra <amodra@bigpond.net.au>
787 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
788 bomb on /DISCARD/ input section.
789 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
790 * emultempl/mmo.em (mmo_place_orphan): Likewise.
792 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
794 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
797 2002-07-16 Denis Chertykov <denisc@overta.ru>
798 Nick Clifton <nickc@redhat.com>
799 Frank Ch. Eigler <fche@redhat.com>
800 John Healy <jhealy@redhat.com>
802 * configure.tgt: Add support for ip2k-elf.
803 * Makefile.am: Add support for ip2k-elf.
804 * Makefile.in: Regenerate.
805 * emulparams/elf32ip2k.sh: New file.
806 * scripttempl/ip2k.sc: New file
807 * NEWS: Mention support for new port.
809 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
811 * NEWS: Add 'Changes in 2.13'.
813 2002-07-14 H.J. Lu <hjl@gnu.org>
815 * ld.texinfo: Document a .symver takes precedence over a
818 2002-07-12 Alan Modra <amodra@bigpond.net.au>
820 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
821 (COMMONPAGESIZE): Define.
823 2002-07-09 Alan Modra <amodra@bigpond.net.au>
825 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
827 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
829 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
830 powerpc-*-openbsd* and sparc64-*-openbsd*.
831 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
832 * Makefile.in: Regenerate.
833 * emulparams/hppaobsd.sh: New file.
835 2002-07-05 Alan Modra <amodra@bigpond.net.au>
837 * ldlang.c (print_wild_statement): Fix output formatting.
839 2002-07-04 Alan Modra <amodra@bigpond.net.au>
841 * ldlang.c: (strip_excluded_output_sections): New function.
842 (lang_process): Call it.
843 (lang_size_sections_1): Revert 2002-06-10 change.
845 2002-07-03 Alan Modra <amodra@bigpond.net.au>
847 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
849 * Makefile.in: Regenerate.
851 2002-07-02 Alan Modra <amodra@bigpond.net.au>
853 * ldfile.c (ldfile_try_open_bfd): Formatting.
855 * ldmisc.c (demangle): Move so that it doesn't intrude between
856 vfinfo comment and body. Add comment.
858 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
860 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
862 2002-07-01 Alan Modra <amodra@bigpond.net.au>
864 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
865 * ldlang.c (entry_sym): Likewise.
866 (ldlang_undef_chain_list_type): Likewise.
867 (lang_finish): Adjust references to entry_symbol.
868 (lang_add_entry): Likewise.
869 (lang_gc_sections): Use link_info.gc_sym_list.
870 (lang_process): Set link_info.gc_sym_list.
871 * ldlex.l: Include bfdlink.h.
872 * ldmain.c (main): Init link_info.gc_sym_list.
873 * emultempl/aix.em: Adjust references to entry_symbol.
874 * emultempl/armcoff.em: Likewise.
875 * emultempl/armelf.em: Likewise.
876 * emultempl/pe.em: Likewise.
877 * emultempl/ppc64elf.em (ppc_after_open): New function.
878 (LDEMUL_AFTER_OPEN): Define.
879 * emulparams/elf64ppc.sh: KEEP .opd sections.
881 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
883 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
884 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
885 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
886 (EEPROM_START_ADDR): Define.
887 (EEPROM_MEMORY): Define.
888 * emulparams/m68hc12elf.sh: Likewise.
889 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
890 section to put soft registers in .page0.
891 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
893 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
895 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
896 section. Add ${RELOCATING-0}.
898 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
900 * emulparams/shelf.sh (STACK_ADDR): Don't define.
901 (OTHER_SECTIONS): Define.
902 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
903 (OTHER_SECTIONS): Undef.
905 2002-06-26 Alan Modra <amodra@bigpond.net.au>
907 * ldmisc.c (demangle): Restore dots stripped from sym name.
909 2002-06-25 H.J. Lu <hjl@gnu.org>
911 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
912 * Makefile.in: Regenerated.
914 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
916 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
917 the size of attached object files, to allow make the object files
918 available via FTP or HTTP and to mention that the mail will be
919 sent to a mailing list.
921 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
923 * ld/configure.host (romp): Drop support.
925 2002-06-18 Chris Demetriou <cgd@broadcom.com>
927 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
928 section flags for SEC_DATA, rather than for SEC_CODE being unset.
930 2002-06-18 Chris Demetriou <cgd@broadcom.com>
932 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
933 format specifier used to print BFD name.
935 2002-06-18 Dave Brolley <brolley@redhat.com>
937 From Catherine Moore, Michael Meissner, Jim Blandy:
938 * emulparams/elf32frv.sh: New file.
939 * configure.tgt: Support frv-*-*.
940 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
941 (eelf32frv.c): New target.
943 2002-06-17 Tom Rix <trix@redhat.com>
945 * emultempl/elf32.em: gld*_get_script: Check for
946 GENERATE_COMBRELOC_SCRIPT.
947 * scripttempl/elfd10v.sc : Fix STACK and INSN.
948 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
950 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
952 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
954 2002-06-12 H.J. Lu <hjl@gnu.org>
956 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
957 false if xvec doesn't match.
959 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
961 * ldlang.c (lang_size_sections_1): Skip removed output sections.
963 2002-06-08 Alan Modra <amodra@bigpond.net.au>
965 * ldexp.c: Replace CONST with const.
966 * ldfile.c: Likewise.
967 * ldfile.h: Likewise.
970 * pe-dll.h: Likewise.
972 2002-06-07 Alan Modra <amodra@bigpond.net.au>
974 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
976 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
978 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
979 to -1 == implicit enable.
980 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
981 initialize link_info.pei386_auto_import to -1 == implicit
983 (gld_${EMULATION_NAME}_parse_args): When processing
984 --enable-auto-import and --disable-auto-import options, use
985 '1' and '0' instead of 'true' and 'false'.
986 (pe_find_data_imports): Only issue message about auto-import
987 when the feature is implicitly enabled. Downgrade message to
988 informational instead of warning.
990 2002-06-07 Alan Modra <amodra@bigpond.net.au>
992 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
994 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
996 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
997 HOSTING_CRT0 and HOSTING_LIBS.
999 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1001 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1003 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1005 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1006 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1008 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1010 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1011 SEC_EXCLUDE sections when doing a relocatable link.
1013 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1015 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1016 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1017 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1018 (eshlelf64_nbsd.c): New rules.
1019 * Makefile.in: Regenerate.
1020 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1021 (sh64-*-netbsd*): New targets.
1022 * emulparams/shelf32_nbsd.sh: New file.
1023 * emulparams/shelf64_nbsd.sh: New file.
1024 * emulparams/shlelf32_nbsd.sh: New file.
1025 * emulparams/shlelf64_nbsd.sh: New file.
1027 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1029 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1031 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1033 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1034 C++ constructors/destructors, loosely based on the m68hc11 port.
1036 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1038 * Makefile.in: Regenerate.
1039 * aclocal.m4: Regenerate.
1040 * config.in: Regenerate.
1041 * configure: Regenerate.
1043 2002-05-31 Graeme Peterson <gp@qnx.com>
1045 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1046 (ei386nto.c): Add rule.
1047 * Makefile.in: Regenerate.
1048 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1049 * emulparams/i386nto.sh: New file.
1051 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1053 * NEWS: Add entry for VAX ELF support.
1055 2002-05-29 Matt Thomas <matt@3am-software.com>
1056 Jason Thorpe <thorpej@wasabisystems.com>
1058 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1060 (evaxnbsd.c): New rules.
1061 * Makefile.in: Regenerate.
1062 * configure.tgt (vax-*-netbsdelf*)
1064 (vax-*-netbsd*): New targets.
1065 * emulparams/elf32vax.sh: New file.
1066 * emulparams/vaxnbsd.sh: New file.
1068 2002-05-29 Adam Nemet <anemet@lnxw.com>
1070 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1071 bfd_for_interwork, instead add glue sections to each input bfd.
1072 (bfd_for_interwork): New global.
1073 (arm_elf_set_bfd_for_interworking): New function.
1074 (arm_elf_before_allocation): Use it.
1076 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1078 * Makefile.am: Add DLX make target.
1079 * configure.tgt: Add DLX configuration.
1080 * Makefile.in: Regenerate.
1081 * emulparams/elf32_dlx.sh: New file
1082 * scripttempl/dlx.sc: New file
1084 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1086 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1087 * Makefile.in: Regenerate.
1088 * emulparams/elf_chaos.sh: Use elf_chaos script.
1089 * scripttempl/elf_chaos.sc: New file.
1091 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1093 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1094 addresses and regions from here...
1095 (lang_get_regions): ...to this new function.
1096 (lang_leave_output_section_statement): Use lang_get_regions.
1097 (lang_leave_overlay): Likewise.
1098 * mri.c (mri_draw_tree): Pass null as last argument to
1099 lang_leave_output_section_statement.
1100 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1101 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1102 * emultempl/pe.em (gld*_place_orphan): Likewise.
1104 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1106 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1108 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1110 * ldemul.c: Fix formatting.
1111 * ldfile.c: Likewise.
1112 * pe-dll.c: Likewise.
1113 * pe-dll.h: Likewise.
1115 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1117 * ldlang.c (lang_process): Formatting, grammar.
1119 * ldlex.l: Use #include "" instead of <> for local header files.
1121 2002-05-24 TAMURA Kent <kent@netbsd.org>
1123 * configure.tgt: Add a target for i386-netbsdpe.
1125 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1127 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1128 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1129 output section if necessary. Handle .tbss.
1130 (lang_size_sections): Clear _raw_size for .tbss section
1131 (it allocates space in PT_TLS segment only).
1132 * ldwrite.c (build_link_order): Build link order for .tbss too.
1134 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1136 * configure.in: Correct spelling of AC_PREREQ.
1138 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1140 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1142 (autofilter_objlist): Add crtbegin.o, crtend.o.
1144 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1146 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1147 (longopts): Add new option --exclude-libs.
1148 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1149 (gld_${EMULATION_NAME}_parse_args): Use it.
1150 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1151 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1152 from whole archives.
1153 (pe_dll_add_excludes): Set excludes->type.
1154 (auto_export): Add new variable libname and set to archive basename if
1155 abfd. Use it when filtering default and user-specified libarary
1156 excludes. Let string "ALL" mean all libs when filtering user-specified
1158 * ld.texinfo: Document --exclude-libs.
1160 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1162 * ldemul.c (ldemul_new_vers_pattern): New function.
1163 * ldemul.h (ldemul_new_vers_pattern): Declare.
1164 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1165 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1166 * emultempl/ppc64elf.em (dotsyms): New static var.
1167 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1168 (LDEMUL_NEW_VERS_PATTERN): Define.
1169 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1170 (PARSE_AND_LIST_LONGOPTS): Likewise.
1171 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1172 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1174 * emultempl/armcoff.em: Likewise.
1175 * emultempl/armelf_oabi.em: Likewise.
1176 * emultempl/beos.em: Likewise.
1177 * emultempl/elf32.em: Likewise.
1178 * emultempl/generic.em: Likewise.
1179 * emultempl/gld960.em: Likewise.
1180 * emultempl/gld960c.em: Likewise.
1181 * emultempl/linux.em: Likewise.
1182 * emultempl/lnk960.em: Likewise.
1183 * emultempl/m68kcoff.em: Likewise.
1184 * emultempl/mipsecoff.em: Likewise.
1185 * emultempl/pe.em: Likewise.
1186 * emultempl/sunos.em: Likewise.
1187 * emultempl/ticoff.em: Likewise.
1188 * emultempl/vanilla.em: Likewise.
1190 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1192 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1193 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1194 (LIB_SEARCH_DIRS): No need to use "tr".
1195 (COMPILE_IN): Only set for native targets.
1196 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1197 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1198 * configure.tgt (powerpc*): Set tdir_*.
1199 (powerpcle*): Correct targ_extra_emuls.
1200 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1201 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1203 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1205 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1206 calling lang_add_entry.
1208 2002-05-21 H.J. Lu (hjl@gnu.org)
1210 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1212 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1214 * ld.texinfo: Updated for --allow-multiple-definition and
1217 * ldmain.c (main): Initialize the allow_multiple_definition
1220 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1221 (ld_options): Add --allow-multiple-definition.
1222 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1224 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1226 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1227 (earmelfb_nbsd.c): New rule.
1228 * Makefile.in: Regenerate.
1229 * configure.tgt (armeb-*-netbsdelf*): New target.
1230 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1231 (arm-*-netbsd*): Likewise.
1232 * emulparams/armelfb_nbsd.sh: New file.
1234 2002-05-18 Tom Rix <trix@redhat.com>
1236 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1239 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1241 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1242 * Makefile.in: Regenerate.
1243 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1245 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1247 * emulparams/avr1.sh: New file.
1248 * emulparams/avr2.sh: New file.
1249 * emulparams/avr3.sh: New file.
1250 * emulparams/avr4.sh: New file.
1251 * emulparams/avr5.sh: New file.
1252 * scripttempl/avr.sc: New file.
1254 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1256 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1257 (lang_place_orphans): Abort if just_syms_flag.
1259 2002-05-10 Tom Rix <trix@redhat.com>
1261 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1262 architecture and machine information in the output bfd.
1263 (gld*_before_parse): Remove old arch and machine code.
1264 (choose_target): Rename to gld*_choose_target.
1265 (rtld): Change type to int.
1266 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1267 objects in XCOFF archives.
1268 * ldfile.h: Update copyright date.
1270 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1272 * ldmain.c (main): Enable -z combreloc by default.
1274 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1276 * Makefile.am: Honour DESTDIR.
1277 * Makefile.in: Regenerate.
1279 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1281 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1282 (lang_enter_overlay): Remove the last two parameters.
1283 (lang_leave_overlay): Take them here instead.
1284 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1285 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1286 than lang_enter_overlay.
1287 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1288 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1289 (lang_size_sections_1): Evaluate it.
1290 (lang_leave_output_section_statement): Rework LMA lookup.
1291 (overlay_lma, overlay_nocrossrefs): Remove.
1292 (lang_enter_overlay): Remove LMA and crossref arguments.
1293 (lang_enter_overlay_section): Don't set the LMA here.
1294 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1295 assignment to the last section's update_dot_tree. Unconditionally
1296 use the load and run-time regions specified in the OVERLAY statement.
1297 Likewise the first section's LMA. Only set the other sections' LMAs
1298 when no load region is given.
1300 2002-05-06 Nick Clifton <nickc@redhat.com>
1302 * po/sv.po: New translation.
1304 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1306 * emultempl/hppaelf.em (build_section_lists): New function.
1307 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1308 and build_section_lists.
1310 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1312 * ld.h: Fix formatting.
1313 * ldexp.c: Likewise.
1314 * ldfile.c: Likewise.
1315 * ldlang.c: Likewise.
1316 * ldmain.c: Likewise.
1317 * lexsup.c: Likewise.
1318 * pe-dll.c: Likewise.
1320 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1322 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1323 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1324 (build_section_lists): Do output_section tests here.
1326 2002-04-30 Tom Rix <trix@redhat.com>
1328 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1330 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1332 Long branch stubs, multiple stub sections.
1333 * emultempl/ppc64elf.em: Include ldctor.h.
1334 (stub_file): New var.
1335 (group_size): New var.
1336 (ppc_create_output_section_statements): New function.
1337 (struct hook_stub_info): New.
1338 (hook_in_stub): New function.
1339 (ppc_add_stub_section): New function.
1340 (ppc_layout_sections_again): New function.
1341 (build_section_lists): New function.
1342 (gld${EMULATION_NAME}_finish): Rewrite.
1343 (real_func): New var.
1344 (ppc_for_each_input_file_wrapper): New function.
1345 (ppc_lang_for_each_input_file): New function.
1346 (lang_for_each_input_file): Define.
1347 (PARSE_AND_LIST_PROLOGUE): Define.
1348 (PARSE_AND_LIST_LONGOPTS): Define.
1349 (PARSE_AND_LIST_OPTIONS): Define.
1350 (PARSE_AND_LIST_ARGS_CASES): Define.
1351 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1353 2002-04-30 Tom Rix <trix@redhat.com>
1355 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1356 -blibpath, -bnolibpath support.
1358 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1360 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1361 (eelf32ppcwindiss.c): New target.
1362 * Makefile.in: Regenerated.
1363 * configure.tgt: Add support for powerpc-*-windiss.
1364 * emulparams/elf32ppcwindiss.sh: New file.
1366 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1368 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1369 * ldexp.c (exp_print_token): Add "infix_p" argument.
1370 (exp_print_tree): Update accordingly.
1372 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1374 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1375 * Makefile.in: Regenerate.
1376 * mpw-elfmips.c: Delete.
1377 * mpw-eppcmac.c: Delete.
1378 * mpw-esh.c: Delete.
1379 * mpw-idtmips.c: Delete.
1381 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1383 * emulparams/shelf32.sh (MACHINE): Now sh5.
1385 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1387 * ldgram.y: Fix syntax warning.
1389 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1391 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1392 to prevent "-n" from being taken as an abbreviation for
1393 "--no-pipeline-knowledge".
1395 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1397 * ldlang.c (lang_size_sections_1): Don't complain about
1398 SEC_NEVER_LOAD sections having no memory region specified.
1400 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1402 2002-04-07 matthew green <mrg@redhat.com>
1404 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1406 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1408 * dep-in.sed: Cope with absolute paths.
1409 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1411 * Makefile.in: Regenerate.
1413 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1415 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1417 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1419 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1420 is smaller than maximum, round dot up to common page boundary.
1422 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1424 * configure.host: Set up for generic hosts first, then tweak as
1425 necessary in more specific targets.
1426 (HOSTING_LIBS): Include libgcc_eh.a if found.
1428 2002-03-23 Andreas Jaeger <aj@suse.de>
1430 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1432 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1434 * Makefile.am: Run "make dep-am".
1435 * Makefile.in: Regenerate.
1437 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1439 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1441 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1443 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1444 add the symbol to the linker hash table immediately.
1445 (lang_place_undefineds): Split symbol creation out..
1446 (insert_undefined): ..to here.
1448 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1450 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1451 the contents of the buffer returned from basename function will are
1452 getting overwritten while still being used.
1454 2002-03-18 Jan Hubicka <jh@suse.cz>
1455 Andreas Jaeger <aj@suse.de>
1456 Andreas Schwab <schwab@suse.de>
1458 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1459 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1460 set libraries to default to lib64 paths.
1462 2002-03-18 Tom Rix <trix@redhat.com>
1464 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1465 * configure.tgt : Same.
1466 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1467 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1468 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1469 emulation parameters for better -b32, -b64 support.
1470 * emulparms/aixrs6.sh : Same.
1471 * emulparms/ppcmacos.sh : Same.
1472 * emultempl/aix.em (choose_target) : Use new emulation parameters
1473 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1474 * Makefile.in : Regenerate.
1476 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1478 * po/fr.po: Updated version.
1480 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1482 * ldmain.c (main): Move .text readonly flag fudges from here..
1483 * ldlang.c (lang_process): ..to here.
1485 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1487 * ldlang.c (lang_check): Remove the word size check added in last
1488 change. Treat emitrelocations case as for relocatable links.
1490 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1492 * po/fr.po: Updated version.
1494 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1496 * ldlang.c (lang_check): Do relocatable link checks first, so that
1497 warn_mismatch can't override. Check compatible and word size too.
1499 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1501 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1503 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1505 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1508 2002-03-04 H.J. Lu <hjl@gnu.org>
1510 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1511 .fini_array in the data segment.
1513 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1515 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1517 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1519 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1520 .init_array, and .fini_array.
1522 2002-02-20 Andreas Schwab <schwab@suse.de>
1524 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1525 .IA64_unwind* in a relocatable link.
1527 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1529 * NEWS: Mark 2.12 branch.
1531 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1533 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1534 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1536 2002-02-18 Tom Rix <trix@redhat.com>
1538 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1539 (gld*_before_allocation): Same.
1540 (gld*_create_output_section_statements): Generate
1541 __rtinit if run time linking. Add librtl.a to the link.
1542 (gld*_read_file): Clean.
1544 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1546 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1548 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1550 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1551 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1552 and eelf64alpha_fbsd.
1553 * Makefile.in: Regenerate.
1554 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1555 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1556 use a FreeBSD-specific emulation rather than the psABI one.
1557 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1558 for all FreeBSD ELF systems.
1559 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1561 * emulparams/elf32ppc_fbsd.sh: Likewise.
1562 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1563 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1564 * emulparams/elf64alpha_fbsd.sh: Likewise.
1565 * emulparams/elf_i386_fbsd.sh: Likewise.
1566 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1568 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1570 * po/tr.po: Updated version.
1572 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1574 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1577 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1579 * emultempl/mmo.em (mmo_after_open): Don't call
1580 _bfd_mmix_check_all_relocs when producing ELF output.
1582 2002-02-15 Richard Henderson <rth@redhat.com>
1584 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1585 definition. Emit a unop+nop pair.
1587 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1589 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1590 for presence of .MMIX.reg_contents.linker_allocated before early
1593 * NEWS: Mention support for MMIX.
1595 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1597 Support arbitrary length fill patterns.
1598 * ld.texinfo (Output Section Fill): Describe fill expressions.
1599 (FILL): Refer to the above.
1600 * ldexp.h (etree_value_type): Add "str" field.
1601 (union etree_union): Add "str" to "value" struct.
1602 (exp_bigintop): Declare.
1603 (exp_get_fill): Declare.
1604 * ldexp.c: Include "safe-ctype.h".
1605 (exp_intop): Set value.str to NULL.
1606 (exp_bigintop): New function.
1607 (new_rel): Pass in "str", and set new.str from it.
1608 (new_rel_from_section): Set new.str to NULL.
1609 (fold_name): Adjust calls to new_rel.
1610 (exp_fold_tree): Likewise.
1611 (exp_get_fill): New function.
1612 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1613 (INT): Returns a "bigint". Adjust all code handling INTs.
1614 (fill_opt): Returns a "fill".
1615 (fill_exp): Split out of fill_opt, use for FILL.
1616 * ldlang.h (struct _fill_type): New.
1617 (fill_type): Move typedef to ldexp.h.
1618 (lang_output_section_statement_type): "fill" is now a pointer.
1619 (lang_fill_statement_type): Likewise.
1620 (lang_padding_statement_type): Likewise.
1621 (lang_add_fill): Now takes a "fill_type *" param.
1622 (lang_leave_output_section_statement): Likewise.
1623 (lang_do_assignments): Likewise.
1624 (lang_size_sections): Likewise.
1625 (lang_leave_overlay_section): Likewise.
1626 (lang_leave_overlay): Likewise.
1627 * ldlang.c: Include ldgram.h after ldexp.h.
1628 (lang_output_section_statement_lookup): Adjust for fill_type change.
1629 (print_fill_statement): Likewise.
1630 (print_padding_statement): Likewise.
1631 (insert_pad): Now takes a "fill_type *" arg.
1632 (size_input_section): Likewise.
1633 (lang_size_sections_1): Likewise.
1634 (lang_size_sections): Likewise.
1635 (lang_do_assignments): Likewise.
1636 (lang_add_fill): Likewise.
1637 (lang_leave_output_section_statement): Likewise.
1638 (lang_leave_overlay_section): Likewise.
1639 (lang_leave_overlay): Likewise.
1640 Adjust all callers of the above function.
1641 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1642 starting with "0X" as well as "0x". Return bigint.str for hex
1643 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1644 Always use base 16 for numbers starting with "$".
1645 * ldmain.c: Include ldgram.h after ldexp.h.
1646 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1647 of bfd_fill_link_order.
1648 * pe-dll.c: Adjust lang_do_assignments calls.
1649 * emultempl/elf32.em: Likewise.
1650 * emultempl/hppaelf.em: Likewise.
1651 * emultempl/ppc64elf.em: Likewise.
1652 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1653 lang_add_assignment call.
1654 * emultempl/pe.em: Likewise.
1656 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1658 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1659 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1660 the pattern in question is not a regexp.
1661 * ldlang.c: Likewise.
1662 * ldlang.h: Likewise.
1663 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1665 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1667 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1668 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1669 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1670 * ldexp.c (exp_data_seg): New variable.
1671 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1672 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1673 (exp_fold_tree): Handle DATA_SEGMENT_END.
1674 Pass allocation_done when recursing instead of hardcoding
1675 lang_allocating_phase_enum.
1676 * ldexp.h (exp_data_seg): New.
1677 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1678 (lang_size_sections): New.
1679 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1680 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1681 if COMMONPAGESIZE is defined.
1682 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1683 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1684 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1685 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1686 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1689 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1691 * Makefile.in: Regenerate.
1693 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1695 * lexsup.c: Remove strtoul declaration.
1697 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1699 * ldmain.c: Add prototype for main ().
1700 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1701 * emultempl/lnk960.em (lnk960_choose_target): Function should
1704 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1706 * ldlang.c (entry_section): New initialised variable.
1707 (lang_finish): Use it.
1708 * ldlang.h (entry_section): Declare.
1709 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1710 entry_section to ".opd".
1712 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1714 * ld.texinfo (Options): Add back in -nostdlib documentation,
1715 which had been inadvertently removed.
1717 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1719 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1720 register section vma to a sane value after emitting error. Make
1721 fatal conditions cause program exit when emitting message.
1723 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1725 * configure.tgt: Add or32-*-rtems target.
1727 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1729 Contribute sh64-elf.
1730 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1731 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1732 in OTHER_RELOCATABLE_SECTIONS.
1733 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1734 * emulparams/shelf32.sh (STACK_ADDR): Define.
1735 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1736 (OTHER_SECTIONS): this. Removed stack settings.
1737 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1738 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1739 2001-03-12 DJ Delorie <dj@redhat.com>
1740 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1741 relaxing if any shmedia or mixed sections are found.
1742 2001-03-07 DJ Delorie <dj@redhat.com>
1743 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1744 einfo. Gracefully decline to output to non-elf formats.
1745 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1746 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1747 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1748 * emulparams/shelf32.sh: Ditto.
1749 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1750 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1752 2001-01-10 Ben Elliston <bje@redhat.com>
1753 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1754 non-portable shell constructs. From Hans-Peter Nilsson.
1755 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1756 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1757 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1758 dependencies to the shell script include chain.
1759 * Makefile.in: Regenerate.
1760 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1761 * emultempl/sh64elf.em: Update and tweak comments.
1762 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1763 make a .cranges section SEC_IN_MEMORY.
1764 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1765 * emultempl/sh64elf.em
1766 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1767 .cranges section found to be necessary; continue and set stored
1768 section contents flags for sections with non-mixed contents.
1769 Use a struct sh64_section_data container and sh64_elf_section_data
1770 to store contents-type flags.
1771 Remove unused update of "isec".
1772 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1773 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1774 access contents-type flags. Assert that the associated container
1775 is initialized. Use that container, not elf_gp_size, to hold size
1776 of linker-generated cranges contents.
1777 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1778 * emultempl/sh64elf.em
1779 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1780 there's already a .cranges section. When section flag difference
1781 is found, don't NULL-check cranges a second time. Tweak comments.
1782 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1783 merging, not max size, as size of ld-generated .cranges contents.
1784 Don't set ELF section flags in output section. When checking for
1785 needed .cranges descriptors, don't use a variable; compare
1786 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1788 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1789 * emultempl/sh64elf.em: New file.
1790 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1791 * Makefile.in: Regenerate.
1792 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1793 (OTHER_RELOCATING_SECTIONS): Ditto.
1794 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1795 * emulparams/shlelf32.sh: Stub out all settings except
1796 OUTPUT_FORMAT. Source shelf32.sh.
1797 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1798 OTHER_RELOCATING_SECTIONS.
1799 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1800 * emulparams/shlelf64.sh: Stub out all settings except
1801 OUTPUT_FORMAT. Source shelf64.sh.
1802 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1803 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1805 (DATA_START_SYMBOLS): Define, provide ___data.
1806 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1807 for consecutive .data section.
1808 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1809 section after .data section.
1810 * emulparams/shlelf64.sh: Ditto.
1811 * emulparams/shelf32.sh: Ditto.
1812 (ALIGNMENT): Define to 8.
1813 * emulparams/shelf32.sh: Ditto.
1814 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1815 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1816 built-in linker scripts.
1817 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1818 * emulparams/shlelf64.sh: New.
1819 * emulparams/shelf64.sh: New.
1820 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1822 * Makefile.am: Add support for shlelf64 and shelf64.
1823 * Makefile.in: Regenerate.
1824 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1825 * configure.tgt (sh64-*-elf*): Add shelf as default.
1826 Add shlelf to targ_extra_emuls.
1827 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1828 * emulparams/shelf32.sh: New file.
1829 * emulparams/shlelf32.sh: New file.
1830 * Makefile.am: Add support for shlelf32 and shelf32.
1831 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1832 * Makefile.in: Regenerate.
1834 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1836 * ldlang.c (lang_reset_memory_regions): Rename from
1837 reset_memory_regions. Change all callers. Make public.
1838 * ldlang.h (lang_reset_memory_regions): Prototype.
1839 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1840 lang_reset_memory_regions before lang_size_sections.
1841 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1842 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1844 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1846 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1847 arithmetic when checking for too many global registers.
1849 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1851 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1852 (ehppanbsd.c): New rule.
1853 * Makefile.in: Regenerate.
1854 * configure.tgt (hppa*-*-netbsd*): New target.
1855 * emulparams/hppalinux.sh: Add comment to check other files
1856 that source this file it is modified, and list which
1858 * emulparams/hppanbsd.sh: New file.
1860 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1862 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1865 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1867 Support on-demand global register allocation from
1868 R_MMIX_BASE_PLUS_OFFSET relocs.
1869 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1870 mmix_set_reg_section_vma. Call
1871 _bfd_mmix_finalize_linker_allocated_gregs.
1872 (mmix_before_allocation): New function.
1873 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1874 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1875 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1876 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1877 before .MMIX.reg_contents.
1878 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1879 (mmo_after_open): New function.
1880 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1881 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1882 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1884 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1886 * emulparams/or32.sh: New file.
1887 * emulparams/or32elf.sh: New file.
1888 * scripttempl/or32.sc: New file.
1889 * configure.tgt : Add support for or32.
1890 * configure: Regenerate
1891 * Makefile.am: Add support for or32.
1892 * Makefile.in: Regenerate.
1893 * NEWS: Mention support for or32.
1894 * po/ld.pot: Regenerate.
1896 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1897 Mitch Lichtenberg <mpl@broadcom.com>
1899 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1900 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1901 reloc creation (ld --embedded-relocs).
1903 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1905 * configure: Regenerated.
1907 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1909 * Makefile.am (install): Depend on install-info.
1910 * Makefile.in: Regenerate.
1912 2002-01-26 Christian Rose <menthos@menthos.com>
1914 * ldmain.c (main): Use full sentences to ease translation.
1916 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1918 * po/fr.po: Updated version.
1920 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1922 * po/es.po: Updated version.
1924 2002-01-25 Andreas Jaeger <aj@suse.de>
1926 * ldlex.l (yy_input): Correct error check.
1928 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1930 * ldmisc.c (demangle): Put back dots when string not demangled.
1932 2002-01-22 Richard Henderson <rth@redhat.com>
1934 * emulparams/elf64alpha.sh (NOP): Use unop.
1936 2002-01-21 Andreas Jaeger <aj@suse.de>
1938 * ldlex.l: Use fread instead of read.
1940 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1942 * configure.tgt (ia64-*-netbsd*): New target.
1944 2002-01-21 H.J. Lu <hjl@gnu.org>
1946 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1948 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1950 2002-01-18 Andreas Jaeger <aj@suse.de>
1952 * ldver.c (ldversion): Update year.
1954 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1956 * po/ld.pot: Regenerate.
1958 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1960 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1961 * Makefile.in: Regenerate.
1962 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1963 * emultempl/ppc64elf.em: New file.
1965 2002-01-15 DJ Delorie <dj@redhat.com>
1967 * scripttempl/pe.sc: Add support for constructor priorities.
1969 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1971 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1972 * emulparams/avr23xx.sh: Likewise.
1973 * emulparams/avr4433.sh: Likewise.
1974 * emulparams/avr44x4.sh: Likewise.
1975 * emulparams/avr85xx.sh: Likewise.
1976 * emulparams/avrmega103.sh: Likewise.
1977 * emulparams/avrmega161.sh: Likewise.
1978 * emulparams/avrmega603.sh: Likewise.
1979 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1981 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1983 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1984 archive is excluded.
1986 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1988 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1989 (eshelf_nbsd.c): New rule.
1990 (eshlelf_nbsd.c): New rule.
1991 * Makefile.in: Regenerate.
1992 * configure.tgt (sh*le-*-netbsdelf*): New target.
1993 (sh*-*-netbsdelf*): New target.
1994 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1995 * ld/emulparams/shelf_nbsd.sh: New emulation.
1996 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1998 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2000 * po/es.po: New file: Spanish translation.
2001 * configure.in (ALL_LINGUAS): Add es.
2002 * configure: Regenerate.
2004 2002-01-06 John Marshall <jmarshall@acm.org>
2006 * ld.texinfo: Note that --emit-relocs is currently only
2007 implemented for ELF.
2009 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2011 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2012 of bfd_section_list_remove and bfd_section_list_insert macros.
2013 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2014 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2016 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2018 * configure.tgt (x86_64-*-netbsd*): New target.
2020 2001-12-21 Tom Rix <trix@redhat.com>
2022 (gld*_create_output_section_statements): New function.
2023 For -binitfini support.
2024 * emultempl/aix.em (gld*_before_parse): Fix comment.
2025 * emultempl/aix.em (gld*_parse_args): Fix comment.
2027 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2029 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2031 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2033 * configure.tgt (arm-*-netbsdelf*): Add target.
2034 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2035 * emulparams/armelf_nbsd.sh: Added.
2036 * Makefile.am: Add rules for earmelf_nbsd.
2037 * Makefile.in: Regenerate.
2039 2001-12-19 Andreas Jaeger <aj@suse.de>,
2040 Susanne Oberhauser <froh@suse.de>
2042 * configure.host: Add rules for x86_64-*linux-gnu. Change
2043 s390x-linux entry to use gcc to report configuration, replace gcc
2044 with $CC in s390-linux
2046 2001-12-19 Andreas Jaeger <aj@suse.de>
2048 * ld.texinfo (VERSION): Fix markup.
2050 2001-12-18 matthew green <mrg@eterna.com.au>
2052 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2053 (m68kelfnbsd.c): New rule.
2054 * Makefile.in: Regenerate.
2055 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2056 (m68*-*-netbsd*4k*): .. this.
2057 (m68*-*-netbsdelf*): New target.
2058 (m68*-*-netbsd*): Also include ELF support.
2059 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2060 * emulparams/m68kelfnbsd.sh: New emulation.
2062 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2064 * ldgram.y (vers_node): Support anonymous version tags.
2065 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2066 tag is not defined together with non-anonymous versions.
2067 * ld.texinfo: Document it.
2069 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2071 * po/tr.po: New file: Turkish translation.
2072 * configure.in (ALL_LINGUAS): Add tr.
2073 * configure: Regenerate.
2075 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2077 * Makefile.am: Add rules for eelf64alpha_nbsd.
2078 * Makefile.in: Regenerate.
2079 * configure.tgt (alpha*-*-netbsd*): Set
2080 targ_emul to elf64alpha_nbsd.
2081 * emulparams/elf64alpha_nbsd.sh: Added.
2083 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2085 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2086 section_tail when fiddling with section list.
2087 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2088 broken into separate strings to make translation easier.
2089 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2090 fiddling with section list.
2091 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2093 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2095 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2097 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2099 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2101 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2103 * emultempl/elf32.em (finish): Supply output_bfd
2104 to bfd_elf*_discard_info.
2105 (OPTION_EH_FRAME_HDR): Define.
2106 (longopts): Add --eh-frame-hdr.
2107 (parse_args): Handle it.
2108 (list_options): Add --eh-frame-hdr to help.
2109 * emultempl/hppaelf.em (finish): Supply output_bfd
2110 to bfd_elf*_discard_info.
2111 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2113 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2115 * lexsup.c (parse_args): Don't pass shortopts to second call to
2116 getopt functions. Restore optind rather than decrementing before
2117 second call. Remove errind as it now duplicates last_optind.
2119 2001-12-11 Christopher Faylor <cgf@redhat.com>
2121 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2123 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2124 Richard Henderson <rth@redhat.com>
2126 * Makefile.am: Add support for xstormy16.
2127 * configure.tgt: Add support for xstormy16.
2128 * Makefile.in: Regenerate.
2129 * emulparams/elf32xstormy16.sh: New file.
2130 * scripttempl/xstormy16.sc: New file.
2132 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2134 * Makefile.in (LIB_PATH): Make configurable.
2135 (GENSCRIPTS): Set LIB_PATH in environment.
2136 * configure.in: Substitute LIB_PATH.
2137 * configure: Regenerate.
2138 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2139 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2141 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2143 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2144 describing the -N option so that it is easier to translate into
2147 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2149 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2150 statements describing a single option with a single, newline
2151 escaped fprintf. This allows better translation into other
2154 * ldmain.c (add_archive_element): Combine multiple strings
2155 into a single string to permit better translation into other
2158 2001-12-05 Tom Rix <trix@redhat.com>
2160 * Makefile.am: Remove eaixppc64.
2161 * Makefile.in: Regenerate.
2163 2001-12-04 Tom Rix <trix@redhat.com>
2165 * emultempl/aix.em (choose_target): Change default target to
2166 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2168 (gld*_read_file): Fix typo.
2169 (change_symbol_mode): Add prototype.
2172 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2173 * emulparams/aixrs6.sh : Same.
2174 * emulparams/ppcmacos.sh : Same.
2175 * emulparams/aixppc64.sh : Delete file.
2176 * emultempl/aix.em : Formatting changes.
2178 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2180 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2181 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2183 (OTHER_END_SYMBOLS): Fix formatting.
2184 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2185 (OTHER_END_SYMBOLS): Fix formatting.
2187 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2189 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2191 2001-12-02 Tom Rix <trix@redhat.com>
2193 * configure.tgt : Remove eaixppc64 emulations.
2194 * Makefile.in : Remove eaixppc64.c
2195 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2196 (ldemul_default_target): Same.
2197 * emultempl/gld960.em (gld960_choose_target): Same.
2198 * emultempl/gld960c.em (gld960_choose_target): Same.
2199 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2200 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2201 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2202 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2203 * emultempl/aix.em (choose_target): New function. Handle emulation of
2206 2001-11-27 H.J. Lu <hjl@gnu.org>
2208 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2209 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2210 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2211 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2212 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2213 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2214 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2215 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2217 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2220 (REL_SDATA): Likewise.
2221 (REL_SBSS): Likewise.
2222 (REL_SDATA2): Likewise.
2223 (REL_SBSS2): Likewise.
2224 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2227 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2229 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2231 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2233 2001-11-22 H.J. Lu <hjl@gnu.org>
2235 * Makefile.in: Regenerated with automake based on automake
2236 1.4-8 in RedHat 7.1.
2238 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2240 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2241 (config.status): Delete rule.
2242 Add extra dependencies to cover sourced emulparams files.
2243 * Makefile.in: Regenerate.
2245 * scripttempl/elf.sc: Order <section>, <section>.* and
2246 corresponding linkonce sections as seen in input files.
2247 Formatting fixes. Zero vma of all sections if not relocating.
2248 (STACK): Define and insert if STACK_ADDR defined.
2249 (OTHER_RELOCATING_SECTIONS): Delete.
2250 (OTHER_END_SYMBOLS): Define.
2251 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2252 (OTHER_READWRITE_SECTIONS): Likewise.
2253 (OTHER_GOT_SECTIONS): Likewise.
2254 (OTHER_SDATA_SECTIONS): Likewise.
2255 (OTHER_BSS_SECTIONS): Likewise.
2256 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2257 (OTHER_READWRITE_SECTIONS): Likewise.
2258 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2259 (OTHER_READWRITE_SECTIONS): Likewise
2261 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2262 (STACK_ADDR): Define.
2263 * emulparams/armelf_oabi.sh: As for armelf.sh.
2264 * emulparams/elf32mcore.sh: As for armelf.sh.
2265 * emulparams/h8300elf.sh: As for armelf.sh.
2266 * emulparams/mn10200.sh: As for armelf.sh.
2267 * emulparams/shelf.sh: As for armelf.sh.
2269 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2270 (OTHER_END_SYMBOLS): Define.
2271 * emulparams/m32relf.sh: As for elf32fr30.sh.
2272 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2273 * emulparams/h8300self.sh: As for elf32fr30.sh.
2275 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2276 defines with RELOCATING test.
2277 (OTHER_SDATA_SECTIONS): Likewise.
2278 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2279 (OTHER_END_SYMBOLS): ..this.
2280 * emulparams/crislinux.sh: As for criself.sh.
2282 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2284 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2285 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2286 normal and linkonce sections as seen in input files.
2287 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2288 (TEXT_DYNAMIC): Likewise.
2289 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2290 (OTHER_SDATA_SECTIONS): Likewise.
2291 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2292 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2293 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2294 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2295 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2296 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2297 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2298 sections as seen in input files.
2299 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2300 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2302 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2303 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2304 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2305 (OTHER_SECTIONS): Instead, use this..
2306 (OTHER_END_SYMBOLS): ..and this.
2308 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2309 * emulparams/elf32bsmip.sh: Likewise.
2310 * emulparams/elf32btsmip.sh: Likewise.
2311 * emulparams/elf32ebmip.sh: Likewise.
2312 * emulparams/elf32lmip.sh: Likewise.
2313 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2314 * emulparams/elf32lsmip.sh: Likewise.
2315 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2316 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2317 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2318 * emulparams/elf64btsmip.sh: Likewise.
2319 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2320 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2321 * emulparams/elf32ppclinux.sh: Likewise.
2322 * emulparams/elf32ppcsim.sh: Likewise.
2323 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2324 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2325 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2326 * emulparams/h8300self.sh: Likewise.
2327 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2328 * emulparams/sh.sh: Comment.
2329 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2330 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2331 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2333 2001-11-21 David Heine <dlheine@tensilica.com>
2334 Alan Modra <amodra@bigpond.net.au>
2336 * ldlang.c (map_input_to_output_sections): Replace "break"
2337 accidentally removed with 2001-08-03 change.
2338 (lang_gc_sections_1): Likewise.
2340 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2342 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2344 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2346 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2347 of false when calling lang_size_sections.
2348 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2350 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2352 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2353 function when LDEMUL_FINISH isn't set to the same name. Don't
2354 call ${LDEMUL_FINISH}.
2355 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2356 * emultempl/armelf.em (arm_elf_finish): Call
2357 gld${EMULATION_NAME}_finish.
2358 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2359 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2360 hppaelf_layout_sections_again if necessary.
2361 (need_laying_out): New var.
2362 (hppaelf_layaout_sections_again): Rename to
2363 hppaelf_layout_sections_again. Clear need_laying_out.
2364 (PARSE_AND_LIST_OPTIONS): Format text.
2366 2001-11-14 H.J. Lu <hjl@gnu.org>
2368 * emultempl/armelf.em (arm_elf_finish): Renamed from
2369 gld${EMULATION_NAME}_finish.
2370 (LDEMUL_FINISH): Set to arm_elf_finish.
2372 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2374 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2375 (struct ld_emulation_xfer_struct): Use it.
2377 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2379 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2380 additional symbols referenced by newer crt0.o files from HP.
2382 2001-11-12 Anthony Green <green@redhat.com>
2384 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2386 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2388 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2389 * Makefile.in: Regenerate.
2391 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2393 * ld.texinfo: Use @command for commands, @option for options.
2394 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2396 * Makefile.in: Rebuild.
2398 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2400 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2401 Add support for targets.
2403 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2405 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2406 * configure: Regernate.
2407 * po/fr.po: New file.
2408 * po/sv.po: New file.
2410 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2412 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2413 as little endian default and to support big endian.
2415 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2417 * ld.texinfo (Options): Document new option, -nostdlib.
2418 * lexsup.c (OPTION_NOSTDLIB): New definition.
2419 (ld_options): Add entry for "nostdlib".
2420 (parse_args): Handle OPTIONS_NOSTDLIB.
2421 * ldfile.c (ldfile_add_library_path): Don't add directories
2422 to the search path if they weren't specified on the command line
2423 and -nostdlib was specified.
2424 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2426 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2428 * lexsup.c (parse_args): Prevent infinite parsing loop when
2429 "-rpath.a" is specified on the command line.
2430 Replace calls to fprintf with calls to einfo.
2432 2001-10-31 John Marshall <jmarshall@acm.org>
2434 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2435 appear only once across all the linker scripts involved in a link
2436 invocation no longer applies. Make the documentation reflect
2439 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2441 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2443 (sh-*-linux*): Added targ_extra_libpath.
2445 2001-10-31 David Heine <dlheine@tensilica.com>
2447 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2448 for padding statements.
2450 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2452 * configure.tgt (mmix-*-*): New target.
2453 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2454 Add dependencies to match.
2455 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2456 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2457 scripttempl/mmo.sc: New files.
2458 * gen-doc.texi: @set MMIX.
2459 * ld.texinfo: Ditto.
2460 [MMIX] Add MMIX node.
2461 * Makefile.in: Regenerate.
2463 2001-10-29 Kazu Hirata <kazu@hxi.com>
2465 * ldlang.c: Fix a comment typo.
2467 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2469 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2470 entries, and match *-*-linux*.
2472 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2474 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2475 with ldlex_script, ldlex_popstate.
2476 (ifile_p1): Likewise.
2477 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2479 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2480 to 1. Don't BEGIN(SCRIPT).
2481 (lex_redirect): Similarly.
2482 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2484 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2486 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2487 __EH_FRAME_END__ and accept eh frames into data section.
2488 Add ctor and dtor sections.
2490 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2492 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2493 (auto-export): Fix indentation.
2495 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2497 * pe-dll.c (autofilter_objectlist): Add startup objects
2499 (auto-export): Constify char * p.
2500 Extract file basename and use strcmp rather than ststr
2503 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2505 * ldmain.c (get_emulation): Improve comment about the handling
2508 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2510 * po/POTFILES.in: Regenerate.
2512 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2514 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2515 -z nocopyreloc and -z nocombreloc usage strings.
2517 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2519 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2522 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2524 * scripttempl/armaout.sc: Place .bss section after end of aligned
2525 data section to match behaviour of aout code in constructrion of
2528 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2530 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2531 startup files for mingw32 dlls to list.
2533 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2535 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2537 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2539 * configure.tgt (targ): Add arm9e-*-elf.
2541 2001-10-05 H.J. Lu <hjl@gnu.org>
2543 * genscripts.sh: Fix a typo in the last change.
2545 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2547 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2548 -z nocombreloc in usage.
2550 2001-10-03 Jim Blandy <jimb@redhat.com>
2552 * genscripts.sh: Include a comment at the top of each generated
2553 script, explaining its purpose.
2555 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2557 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2558 * NEWS: Mention -z nocopyreloc.
2559 * ld.texinfo (Options): Describe nocopyreloc.
2561 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2563 * configure: Regenerate.
2565 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2567 * ldver.h (ld_program_version): Remove declaration.
2568 * lexsup.c (parse_args): Move printing of copyright message..
2569 * ldver.c (ldversion): .. to here.
2570 Use BFD_VERSION_STRING in place of BFD_VERSION.
2571 (ld_program_version): Remove.
2572 * Makefile.am (Makefile): Depend on bfd/configure.in.
2574 * Makefile.in: Regenerate.
2576 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2578 * Makefile.am: Update dependencies with "make dep-am".
2579 * Makefile.in: Regenerate.
2581 2001-09-29 John Reiser <jreiser@BitWagon.com>
2583 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2584 * lexsup.c: Add --no-define-common commandline option.
2585 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2586 * ldlex.l: Likewise.
2587 * ld.h: Add command_line.inhibit_common_definition.
2588 * ldmain.c (main): Initialize.
2589 * ld.texinfo: Document.
2591 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2593 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2595 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2597 * ldmisc.c (USE_STDARG): Remove.
2598 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2603 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2604 declarations. Update copyright.
2606 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2608 * pe-dll.c: Remove obsoleted declaration of
2609 pe_get_data_import_dll_name.
2610 (pe_create_import_fixup): Fix thinko.
2612 * ld.texinfo(enable-auto-import): Clarify the explanation.
2614 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2616 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2617 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2618 DLL_SUPPORT controlled code.
2620 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2622 * emultempl/pe.em(pe_data_import_dll): Make static.
2623 (pe_get_data_import_dll_name): New accessor function.
2624 * pe-dll.c(pe_create_import_fixup): call
2625 pe_get_data_import_dll_name() from pe.em, instead of
2626 directly accessing pe_data_import_dll variable from pe.em.
2628 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2630 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2631 (def_file_add_directive): Use ISSPACE instead of isspace.
2632 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2633 isdigit/isxdigit/isalpha/isalnum.
2634 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2635 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2636 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2637 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2639 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2640 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2642 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2643 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2644 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2645 (ctor_prio): Use ISDIGIT instead of isdigit.
2646 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2647 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2648 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2650 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2651 (stricpy): Use TOLOWER instead of isupper/tolower.
2652 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2653 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2654 (lex_warn_invalid): Use ISPRINT instead of isprint.
2655 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2656 (main): For gettext, also set the LC_CTYPE locate facet.
2657 (add_keepsyms_file): Use ISSPACE instead of isspace.
2658 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2659 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2660 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2661 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2662 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2663 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2664 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2665 (quoteput): Use ISSPACE instead of isspace.
2666 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2669 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2671 * deffilep.y (def_stash_module): Constify "name" param.
2673 * pe-dll.c: Replace CONST with const throughout.
2674 (quick_symbol): Constify "n1", "n2", "n3" params.
2675 (make_singleton_name_thunk): Constify "import" param. Make
2676 "buffer_len" a size_t.
2677 (make_import_fixup_entry): Constify "name", "fixup_name",
2678 "dll_symname" params.
2679 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2680 (pe_get32): Likewise.
2681 (pe_implied_import_dll): Likewise.
2683 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2684 (sort_by_section_name): Likewise.
2686 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2687 (make_import_fixup): Cast printf arg, rel->address to long rather
2689 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2691 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2693 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2694 defines BufferSize. Increase buffer size by one.
2696 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2698 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2700 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2702 * configure.tgt: Add arm-openbsd target.
2704 2001-09-12 H.J. Lu <hjl@gnu.org>
2706 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2708 (ALL_64_EMULATIONS): Here.
2709 * Makefile.in: Regenerated.
2711 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2713 * emultempl/pe.em(make_import_fixup): change signature to
2714 take asection as well as arelec; we need this for proper
2715 error reporting. Only call pe_create_import_fixup() if
2716 there is no attempt to add a constant addend to the reloc;
2717 otherwise, report error condition.
2718 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2719 since final argument is a pointer to make_import_fixup().
2720 Change call to cb() to match make_import_fixup() signature.
2721 (make_import_fixup_mark): make buffer_len unsigned.
2722 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2724 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2726 * ld.texinfo: add verbose documentation for auto-import
2727 direct-addressing workaround, to compliment the terse
2730 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2732 * scripttempl/v850.sc: Add gcc_except_table sections.
2734 2001-09-11 Jeffrey A Law (law@cygnus.com)
2736 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2737 * emulparams/h8300self.sh: Similarly.
2739 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2741 * ld.texinfo (Options, --stack): Correct default value for stack
2744 2001-09-05 Tom Rix <trix@redhat.com>
2746 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2748 2001-09-03 Andreas Jaeger <aj@suse.de>
2750 * emultempl/beos.em: Declare prototypes for comparions functions,
2753 2001-09-02 Andreas Jaeger <aj@suse.de>
2755 * emultempl/aix.em: Add missing prototype.
2756 * emultempl/lnk960.em: Likewise.
2757 * emultempl/vanilla.em: Likewise.
2758 * emultempl/armcoff.em: Likewise.
2759 * emultempl/armelf_oabi.em: Likewise.
2760 * emultempl/beos.em: Likewise.
2761 * emultempl/gld960c.em: Likewise.
2762 * emultempl/gld960.em: Likewise.
2764 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2765 for prototype declaration.
2767 2001-08-31 Eric Christopher <echristo@redhat.com>
2768 Jason Eckhardt <jle@redhat.com>
2770 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2772 2001-08-31 Andreas Jaeger <aj@suse.de>
2774 * emultempl/pe.em: Add missing prototypes.
2775 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2776 pe_find_data_imports.
2777 (pr_sym): Add unused attribute.
2779 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2781 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2782 default from coff to elf.
2784 2001-08-29 Jeff Law <law@redhat.com>
2786 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2788 * emulparams/h8300self.sh: Similarly.
2790 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2792 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2794 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2795 * configure.tgt (h8300-*-elf*): New case.
2796 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2797 * emulparams/h8300self.sh: New file.
2798 * Makefile.in: Regenerated.
2800 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2802 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2805 2001-08-27 Linus Nordberg <linus@swox.com>
2806 Alan Modra <amodra@bigpond.net.au>
2808 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2809 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2811 * Makefile.in: Regenerate.
2812 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2813 entries to correct alphabetical position.
2814 * emulparams/elf64ppc.sh: New.
2815 * emulparams/elf64lppc.sh: New.
2817 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2819 * ldmain.c (main): Declare BSIZE as static.
2821 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2823 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2824 into .rel.dyn resp. .rela.dyn if combreloc.
2825 (get_script): If .x linker script is equal to .xn, only put it
2826 once into the binary.
2827 Add .xc and .xsc scripts.
2828 (parse_args): Handle -z combreloc and -z nocombreloc.
2829 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2830 For .xc and .xsc scripts put all .rel* or .rela* input sections
2831 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2832 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2834 Strip trailing whitespace from script.
2835 Generate .xc and .xsc scripts if requested.
2836 * ldmain.c (main): Initialize link_info.combreloc and
2837 link_info.spare_dynamic_tags.
2838 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2839 (ld_options): Add --spare-dynamic-tags option.
2840 (parse_args): Likewise.
2841 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2842 * ldint.texinfo: Document .xc and .xsc linker scripts.
2843 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2845 2001-08-22 H.J. Lu <hjl@gnu.org>
2847 * emulparams/elf32fr30.sh: Add a newline.
2849 2001-08-21 Andreas Jaeger <aj@suse.de>
2851 * deffilep.y: Add missing prototypes.
2852 * pe-dll.c: Likewise.
2854 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2856 * ldlang.c (insert_pad): Fix typos in last patch.
2858 * ldlang.c: When traversing lang_statement_union_type lists,
2859 consistently use "header.next" rather than "next".
2860 * mpw-eppcmac.c: Likewise.
2861 * emultempl/beos.em: Likewise.
2862 * emultempl/hppaelf.em: Likewise.
2863 * emultempl/pe.em: Likewise.
2864 * ldlang.h (union lang_statement_union): Remove "next" field.
2866 * ldlang.c (insert_pad): Use offsetof macro.
2867 (lang_size_sections): Always neuter padding statements.
2868 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2870 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2871 passed to lang_size_sections.
2872 (pe_exe_fill_sections): Likewise.
2873 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2874 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2876 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2878 * emultempl/aix.em: Formatting fixes.
2880 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2882 * ldlang.c (insert_pad): Make use of an existing pad statement if
2883 available. Move code calculating alignment, adjusting section
2884 alignment power, and adjusting dot to ..
2885 (size_input_section): .. here. Remove unused relax param.
2886 (lang_size_sections): Change boolean `relax' param to boolean *.
2887 Adjust call to size_input_section. Make use of insert_pad to
2888 place pad after the assignment statement. If relaxing, zap
2890 (reset_memory_regions): Reset output_bfd section sizes too.
2891 (relax_again): Move to..
2892 (lang_process): ..here. Adjust call to lang_size_sections, and
2893 remove duplicated code.
2894 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2896 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2898 * ld.texinfo: Document that fill values now use the four least
2900 * emulparams/elf32fr30.sh (NOP): Update.
2901 * emulparams/elf32mcore.sh: Likewise.
2902 * emulparams/elf64_s390.sh: Likewise.
2903 * emulparams/elf_i386.sh: Likewise.
2904 * emulparams/elf_i386_be.sh: Likewise.
2905 * emulparams/elf_i386_chaos.sh: Likewise.
2906 * emulparams/elf_i386_ldso.sh: Likewise.
2907 * emulparams/elf_s390.sh: Likewise.
2908 * emulparams/elf_x86_64.sh: Likewise.
2909 * emulparams/i386moss.sh: Likewise.
2910 * emulparams/i386nw.sh: Likewise.
2911 * emulparams/m68kelf.sh: Likewise.
2912 * scripttempl/elf.sc: Update NOP comment.
2913 * scripttempl/elfi370.sc: Likewise.
2914 * scripttempl/elfm68hc11.sc: Likewise.
2915 * scripttempl/elfm68hc12.sc: Likewise.
2916 * scripttempl/nw.sc: Likewise.
2918 2001-08-15 Tom Rix <trix@redhat.com>
2920 * ldgram.y (saved_script_handle): Initialize to NULL.
2921 * ldmain.c (main): Change check on saved_script_handle.
2923 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2925 * emultempl/elf32.em: Formatting fixes.
2926 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2927 looking at sec->owner.
2928 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2929 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2930 unused code, and reorganize orphan section placement code.
2932 * ldlang.c (wild_doit): Rename to lang_add_section.
2933 * ldlang.h: Here too.
2934 * mpw-elfmips.c: And here.
2935 * emultempl/beos.em: And here.
2936 * emultempl/elf32.em: And here.
2937 * emultempl/hppaelf.em: And here.
2938 * emultempl/pe.em: And here.
2940 2001-08-13 Richard Henderson <rth@redhat.com>
2942 * emultempl/needrelax.em: New file.
2943 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2944 * Makefile.am (eelf64_ia64.c): Depend on it.
2945 * Makefile.in: Rebuild.
2947 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2949 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2950 output_section is set non-NULL.
2952 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2953 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2954 needlessly create an output_section_statement. Treat a correctly
2955 named output_section_statement with NULL bfd_section as compatible.
2957 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2959 * emultempl/generic.em: Support EXTRA_EM_FILE.
2960 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2961 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2962 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2963 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2964 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2965 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2966 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2967 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2968 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2969 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2971 2001-08-12 Richard Henderson <rth@redhat.com>
2973 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2974 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2975 scripttempl/v850.sc: Keep .jcr data.
2977 2001-08-12 H.J. Lu <hjl@gnu.org>
2978 Andrew Haley <aph@cambridge.redhat.com>
2979 Nick Clifton <nickc@redhat.com>
2981 * ldgram.y (had_script): Change name to saved_script_handle.
2982 Change type to file handle.
2983 * ld.h (had_script): Rename and retype.
2984 * ldfile.c (ldfile_open_command_file): Save the file handle
2985 used in saved_script_handle.
2986 * lexsup.c (parse_args): Do not allow -c option to alter
2987 saved_script_handle.
2988 * ldmain.c (main): Print out the linker script used if
2989 --verbose is given. Check saved_script_handle to obtain the
2990 external linker script used, or if NULL, dump the builtin
2992 * ld.texinfo: Document that --verbose now dumps the linker
2993 script used, regardless of whether it was an internal or an
2996 2001-08-10 Andreas Jaeger <aj@suse.de>
2998 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3000 * configure: Regenerate.
3002 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3004 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3006 * scripttempl/elf.sc: Move non-text .dynamic section before
3007 .plt/.got/.sdata* group.
3008 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3009 (OTHER_SDATA_SECTIONS): Add.
3010 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3012 * emulparams/crislinux.sh: Likewise.
3013 * emulparams/elf32b4300.sh: Likewise.
3014 * emulparams/elf32bmip.sh: Likewise.
3015 * emulparams/elf32bmipn32.sh: Likewise.
3016 * emulparams/elf32bsmip.sh: Likewise.
3017 * emulparams/elf32btsmip.sh: Likewise.
3018 * emulparams/elf32ebmip.sh: Likewise.
3019 * emulparams/elf32elmip.sh: Likewise.
3020 * emulparams/elf32l4300.sh: Likewise.
3021 * emulparams/elf32lmip.sh: Likewise.
3022 * emulparams/elf32lsmip.sh: Likewise.
3023 * emulparams/elf32ltsmip.sh: Likewise.
3024 * emulparams/elf64bmip.sh: Likewise.
3025 * emulparams/elf64btsmip.sh: Likewise.
3026 * emulparams/elf64ltsmip.sh: Likewise.
3028 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3030 * genscripts.sh: Source the emulparams script before each output
3031 script is generated so that variables like `RELOCATING' may affect
3032 variables defined in the emulparams script.
3034 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3036 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3039 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3040 ie. iterate over wild_statement.section_list.
3041 (gld${EMULATION_NAME}_place_orphan): Likewise.
3043 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3045 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3046 .fini[0-4] sections used by _exit
3047 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3048 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3049 * scripttempl/elfm68hc11.sc: Likewise.
3051 2001-08-03 H.J. Lu <hjl@gnu.org>
3053 * emultempl/beos.em (init): Add the missing initialization.
3055 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3057 * ld.texinfo (Input Section Basics): Clarify ordering of output
3059 * ldlang.c (callback_t): Add wildcard_list param.
3060 (walk_wild_section): Remove "section" param. Rewrite for
3061 lang_wild_statement_type change. Remove unique_section_p test.
3062 (walk_wild_file): Remove "section" param.
3063 (walk_wild): Remove "section" and "file" params.
3064 (lang_gc_wild): Likewise.
3065 (wild): Likewise. Modify for lang_wild_statement_type change.
3066 (wild_sort): Likewise. Add "sec" param.
3067 (gc_section_callback): Likewise.
3068 (output_section_callback): Likewise. Do unique_section_p test.
3069 (map_input_to_output_sections): Modify call to wild.
3070 (lang_gc_sections_1): Likewise.
3071 (print_wild_statement): Modify for lang_wild_statement_type
3073 (lang_add_wild): Replace filename, filenames_sorted param with
3074 filespec. Replace section_name, sections_sorted,
3075 exclude_filename_list with section_list.
3076 * ldlang.h (lang_add_wild): Here too.
3077 (lang_wild_statement_type): Replace section_name, sections_sorted,
3078 and exclude_filename_list with section_list.
3079 * ldgram.y (current_file): Delete.
3080 (%union): Add wildcard_list.
3081 (file_NAME_list): Set type to wildcard_list. Build a linked list
3082 rather than calling lang_add_wild for each entry.
3083 (input_section_spec_no_keep): Call lang_add_wild here instead.
3084 * ld.h (struct wildcard_list): Declare.
3085 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3087 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3089 * ldmain.c (main): initialize link_info.pei386_auto_import
3090 * pe-dll.c: new tables for auto-export filtering
3091 (auto_export): change API, pass abfd for contextual filtering.
3092 Loop thru tables of excluded symbols instead of comparing
3095 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3097 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3098 static variable current_sec (static struct sec *). Add
3099 forward declaration for add_bfd_to_link.
3100 (process_def_file): Don't export undefined symbols. Do not
3101 export symbols starting with "_imp__". Call auto_export()
3103 (pe_walk_relocs_of_symbol): New function.
3104 (generate_reloc): add optional extra debugging
3105 (pe_dll_generate_def_file): eliminate extraneous initial blank
3107 (make_one): enlarge symtab to make room for __nm__ symbols
3108 (DATA auto-import support).
3109 (make_singleton_name_thunk): New function.
3110 (make_import_fixup_mark): New function.
3111 (make_import_fixup_entry): New function.
3112 (pe_create_import_fixup): New function.
3113 (add_bfd_to_link): Specify that 'name' argument is a CONST
3115 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3116 declare new functions pe_walk_relocs_of_symbol and
3117 pe_create_import_fixup.
3118 * emultempl/pe.em: add new options --enable-auto-import,
3119 --disable-auto-import, and --enable-extra-pe-debug.
3120 (make_import_fixup): New function.
3121 (pe_find_data_imports): New function.
3122 (pr_sym): New function.
3123 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3124 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3127 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3129 * ld.texinfo: add additional documentation for
3130 --export-all-symbols. Document --out-implib,
3131 --enable-auto-image-base, --disable-auto-image-base,
3132 --dll-search-prefix, --enable-auto-import, and
3133 --disable-auto-import.
3134 * ldint.texinfo: Add detailed documentation on auto-import
3137 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3139 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3142 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3144 * Makefile.am: Update dependencies with "make dep-am".
3145 * Makefile.in: Regenerate
3147 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3149 * ldcref.c (check_section_sym_xref): New function.
3150 (check_nocrossrefs): Call it.
3151 (check_nocrossref): Interate over h->refs here instead of..
3152 (check_refs): ..here. Pass in the symbol name, section, and bfd
3153 rather than hash_entry pointers.
3154 (struct check_refs_info): Keep symbol name rather than hash entry.
3156 (check_reloc_refs): Tweak for above changes in check_refs_info.
3157 Only report references to section syms when symname is NULL to
3158 prevent duplicate messages for the same reloc.
3160 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3162 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3163 available. Do not print NULL trees.
3164 (exp_print_token): Print unknown tokens with values > 126 as
3165 decimal values not ASCII characters.
3167 * ldlang.c (lang_leave_overlay): If a region is specified assign
3168 it to all sections inside the overlay unless they have been
3169 assigned to the own, non-default, memory region.
3171 * README: Add header for consistency with other README files.
3173 2001-07-14 H.J. Lu <hjl@gnu.org>
3175 * emultempl/elf32.em (output_prev_sec_find): Never return
3176 bfd_abs_section_ptr, bfd_com_section_ptr nor
3177 bfd_und_section_ptr.
3179 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3181 * Makefile.am (em32relf.c): Change dependency from generic.em to
3183 * Makefile.in: Regenerate.
3185 2001-07-14 matthew green <mrg@eterna.com.au>
3187 * configure.tgt (i386-*-netbsdelf*): New target.
3188 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3190 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3192 * emultempl/elf32.em (output_prev_sec_find): New.
3193 (place_orphan): Use it.
3195 2001-07-11 H.J. Lu <hjl@gnu.org>
3197 * ldmain.c (main): Fix typos in the last change.
3199 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3201 * ldmain.c (main): Disallow -F and -f without -shared.
3203 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3205 * emultempl/pe.em (after_open): Check for the output_bfd not
3206 having any coff_data structure allocated to it.
3208 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3210 * emultempl/elf32.em: Do not assuming that contents of the buffer
3211 returned from basename function will remain unchanged accross other
3214 2001-07-03 H.J. Lu <hjl@gnu.org>
3216 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3217 2001-07-03. It creates dynamic entries even for static binaries.
3219 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3221 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3222 (DYNAMIC): Use it to reserve few dynamic entries for
3225 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3227 * emulparams/hppa64linux.sh: New file.
3228 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3229 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3230 (ehppa64linux.c): Add rule to make it.
3232 * Makefile.in: Regenerate.
3234 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3236 * ld.texinfo (Options, -r): Mention restrictions when using
3237 different object formats.
3239 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3241 * ldlang.c (lang_check): Emit fatal error if relocatable link
3242 between different object flavours with relocations in input.
3244 2001-06-19 H.J. Lu <hjl@gnu.org>
3246 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3247 (--version-script): Mention the language support.
3249 2001-06-19 H.J. Lu <hjl@gnu.org>
3251 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3253 2001-06-18 H.J. Lu <hjl@gnu.org>
3255 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3256 (diststuff): Add $(MANS).
3257 * Makefile.in: Regenerated.
3261 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3263 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3264 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3265 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3266 * ld.h (args_type): Remove member export_dynamic. All users
3267 changed to use struct bfd_link_info member.
3269 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3270 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3271 * Makefile.in: Regenerate.
3273 2001-06-18 H.J. Lu <hjl@gnu.org>
3275 * ldlang.c (init_os): Add the newline to the einfo call.
3276 (lang_check): Likewise.
3277 (lang_do_version_exports_section): Likewise.
3279 2001-06-15 H.J. Lu <hjl@gnu.org>
3281 * lexsup.c (parse_args); Save optind to report unrecognized
3284 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3286 * ldlang.c (lang_check): Emit fatal error if relocatable link
3287 between different object flavours.
3289 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3290 Set new link_info member export_dynamic.
3291 * ldmain.c (main): Initialize new link_info member export_dynamic.
3293 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3295 * ldlang.c (walk_wild): Only call walk_wild_file if
3296 lookup_name returns something.
3297 (lookup_name): If load_symbols fails, return NULL.
3298 (load_symbols): Change to a boolean function.
3299 (open_input_bfds): If load_symbols fails then do not make the
3302 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3304 * ldlang.c (record_bfd_errors): Remove.
3306 * emultempl/aix.em: Fix copyright dates.
3308 2001-06-07 Andreas Jaeger <aj@suse.de>
3310 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3311 (TEXT_START_ADDR): Likewise.
3313 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3315 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3317 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3319 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3321 2001-05-31 H.J. Lu <hjl@gnu.org>
3323 * ldlang.c (open_input_bfds): Don't change the bfd error
3324 handler whilst loading symbols.
3326 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3328 * configure.tgt: Remove i370-mvs architecture, it is not currently
3331 2001-05-25 H.J. Lu <hjl@gnu.org>
3333 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3334 like emulparams/aixppc.sh.
3336 2001-05-25 H.J. Lu <hjl@gnu.org>
3338 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3339 setting of output_filename after bfd_scan_arch.
3340 * emultempl/pe.em: Likewise.
3342 2001-05-25 H.J. Lu <hjl@gnu.org>
3344 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3345 like emulparams/aixppc.sh.
3347 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3348 instead of ${srcdir}/emultempl/stringify.sed.
3350 2001-05-25 Timothy Wall <twall@oculustech.com>
3352 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3355 2001-05-25 Alan Modra <amodra@one.net.au>
3357 * configure.host: Replace linuxoldld with linux*oldld.
3358 * configure.tgt: Likewise.
3360 2001-05-24 H.J. Lu <hjl@gnu.org>
3362 * emultempl/stringify.sed: Removed again.
3364 2001-05-24 H.J. Lu <hjl@gnu.org>
3366 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3367 (gld${EMULATION_NAME}_before_parse): Initialize
3368 ldfile_output_architecture, ldfile_output_machine and
3369 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3370 * emultempl/beos.em: Likewise.
3371 * emultempl/elf32.em: Likewise.
3372 * emultempl/linux.em: Likewise.
3373 * emultempl/mipsecoff.em: Likewise.
3374 * emultempl/pe.em: Likewise.
3375 * emultempl/sunos.em: Likewise.
3377 2001-05-24 Tom Rix <trix@redhat.com>
3379 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3380 udate import file format.
3381 (change_symbol_mode) New, same
3382 (is_syscall) New, same
3383 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3384 * emulparams/aixppc64.sh : same
3385 * emulparams/aixrs6.sh : same
3386 * emulparams/ppcmacos.sh : same
3387 * emultempl/aix.em : use strtoull to parse options
3388 * Makefile.am : add eaixppc64 emulation for xcoff64
3389 * Makefile.in : same
3390 * configure.tgt : same
3392 * scripttempl/aix.sc : default text section offset to 0x10000000
3393 default data section offset to 0x20000000
3394 add .sv3264 and .sv64 pseudo sections
3395 loader and debug sections use the currect section offset.
3397 * emultempl/aix.em : Add xcoff64 support
3398 Add -binitfini support
3399 (gld${EMULATION_NAME}_before_parse) -binitfini
3400 (gld${EMULATION_NAME}_parse_args) same
3401 (gld${EMULATION_NAME}_before_allocation) format change for special
3404 * emulparams/aixppc64.sh : New file for xcoff64 support
3406 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3408 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3409 variable to avoid non-portable shell construct.
3411 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3413 * ldmain.c (get_emulation): Add -mips5 command line argument.
3415 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3417 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3418 (ELF_INTERPRETER_NAME): Define it.
3419 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3421 * configure.tgt (targ_emul, targ_extra_emuls)
3422 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3423 as primary, elf_i386 as extra.
3424 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3425 (eelf_i386_ldso.c): New rule.
3426 * Makefile.in: Rebuilt.
3428 2001-05-22 Nick Clifton <nickc@redhat.com>
3430 * lexsup.c (ld_options): Allow -I to be an alias for
3431 --dynamic-linker. This is for Solaris compatability.
3432 * ld.texinfo: Document that -I can be used.
3435 2001-05-16 Alan Modra <amodra@one.net.au>
3437 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3438 whether an input section is the first one assigned to an output
3440 Assorted formatting fixes.
3442 2001-05-14 DJ Delorie <dj@delorie.com>
3444 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3445 * Makefile.in: Ditto.
3447 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3449 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3450 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3452 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3454 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3456 * ldlang.c (lang_process): Call bfd_merge_sections.
3458 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3460 * ldgram.y: Fix typo.
3462 2001-05-03 H.J. Lu <hjl@gnu.org>
3464 * emultempl/elf32.em: Include "libiberty.h".
3465 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3466 basename of the bfd filename.
3467 (gld${EMULATION_NAME}_stat_needed): Likewise.
3468 (gld${EMULATION_NAME}_try_needed): Likewise.
3469 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3471 2001-05-02 H.J. Lu <hjl@gnu.org>
3473 * emultempl/pe.em: Include <ctype.h>.
3475 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3477 * emulparams/elf32openrisc.sh: New file.
3479 * Makefile.am: Add OpenRISC target.
3480 * Makefile.in: Regenerated.
3482 * configure.tgt: Add openrisc-*-* mapping.
3484 2001-05-02 Nick Clifton <nickc@redhat.com>
3486 * emultempl/aix.em: Replace buystring with xstrdup.
3487 * emultempl/beos.em: Replace buystring with xstrdup.
3489 2001-05-02 H.J. Lu <hjl@gnu.org>
3491 * ldfile.c: Include "libiberty.h".
3492 * ldlex.l: Likewise.
3494 * ldmisc.c (buystring): Removed.
3495 * ldmisc.h: Likewise.
3497 * ldfile.c: Replace buystring with xstrdup.
3498 * ldlang.c: Likewise.
3499 * ldlex.l: Likewise.
3500 * ldmain.c: Likewise.
3501 * ldmisc.c: Likewise.
3502 * lexsup.c: Likewise.
3503 * mpw-eppcmac.c: Likewise.
3505 2001-04-30 Andreas Jaeger <aj@suse.de>
3507 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3509 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3511 * ldlang.c (load_symbols): Give emulation a chance
3512 to process unrecognized file before fatal error is
3513 reported, not after.
3515 2001-04-27 Sean McNeil <sean@mcneil.com>
3517 * configure.tgt: Add arm-vxworks target.
3518 * scripttempl/armcoff.sc: Support .text or .data as a section name
3522 2001-04-13 J.T. Conklin <jtc@redback.com>
3524 * ld.texinfo: Document --fatal-warnings.
3527 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3528 warnings have been turned into errors.
3529 * lexsup.c (OPTION_WARN_FATAL): Define.
3530 (ld_options): Entry for --fatal-warnings.
3531 (parse_args): Handle OPTION_WARN_FATAL.
3532 * ld.h (ld_config_type): Add fatal_warnings field.
3534 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3536 * ldmain.c (main): Default to discard_sec_merge.
3537 * lexsup.c (OPTION_DISCARD_NONE): Define.
3538 (ld_options): Add --discard-none.
3539 (parse_args): Handle OPTION_DISCARD_NONE.
3540 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3541 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3542 all its input sections match.
3544 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3546 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3547 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3548 (eelf32ltsmip.c): New target.
3549 (eelf64btsmip.c): Likewise.
3550 (eelf64ltsmip.c): Likewise.
3551 * Makefile.in: Regenerated.
3553 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3555 (mips*-*-linux-gnu*): Likewise.
3557 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3559 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3561 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3564 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3566 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3567 correct value of __Stext here.
3568 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3571 * emulparams/crislinux.sh: Remove FIXME.
3573 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3575 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3576 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3578 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3580 * configure.tgt (cris-*-*): Change default emulation to criself.
3581 (cris-*-*aout*): New rule.
3583 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3585 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3586 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3588 2001-03-26 Andreas Jaeger <aj@suse.de>
3590 * ld.texinfo (Overview): Fix syntax in texi code.
3592 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3594 * ld.texinfo: Put @c man indications to generate the ld man page.
3595 When generating man, define all the variables. Define SEEALSO
3596 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3597 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3598 (ld.1): Generate from ld.texinfo.
3599 * Makefile.in: Regenerate.
3601 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3603 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3604 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3606 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3608 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3609 is an absolute path look only for this file and not along the path.
3611 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3613 * emultempl/elf32.em (OPTION_GROUP): New macro.
3614 Add new option Bgroup to longopts.
3615 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3616 (gld*_list_options): Add -Bgroup and -z defs.
3617 * ld.1: Document -Bgroup and -z defs.
3618 * ld.texinfo: Likewise.
3620 2001-03-07 Michael Meissner <meissner@redhat.com>
3622 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3623 with sections created by -fdata-sections.
3624 (.dynbss,.bss): Ditto.
3626 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3628 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3629 after_allocation_default, not gld..._before_allocation.
3631 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3633 * configure.in (BFD_VERSION): New.
3634 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3635 * configure: Regenerate.
3636 * Makefile.am: Run "make dep-am"
3637 * Makefile.in: Regenerate.
3639 2001-02-26 Timothy Wall <twall@cygnus.com>
3641 * emulparams/elf64_aix.sh: Add additional read-only sections;
3642 uncomment lines which are now required.
3644 2001-02-26 H.J. Lu <hjl@gnu.org>
3646 * ldlang.c (open_input_bfds): Set the bfd error handler so
3647 that problems can be caught whilst loading symbols.
3648 (record_bfd_errors): New function: Report BFD errors and mark
3649 the executable output as being invalid.
3651 2001-02-22 Timothy Wall <twall@cygnus.com>
3653 * configure.host: Add configuration for ia64-*-aix*.
3654 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3655 Add dependencies for eelf64_aix.c.
3656 * Makefile.in: Regenerate.
3657 * configure.tgt: Add ia64-*-aix* mapping.
3658 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3660 2001-02-20 H.J. Lu <hjl@gnu.org>
3662 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3663 false if we found the file.
3665 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3667 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3668 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3670 2001-02-18 lars brinkhoff <lars@nocrew.org>
3672 * Makefile.am: Add PDP-11 target.
3673 * configure.tgt: Likewise.
3674 * emulparams/pdp11.sh: New file.
3676 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3678 * configure.host: Add a generic FreeBSD configuration entry such that
3679 all [modern] FreeBSD systems on all platforms will look the same.
3681 2001-02-14 H.J. Lu <hjl@gnu.org>
3683 * configure.tgt: Remove mention of earmelf_linux26.
3685 2001-02-13 Richard Henderson <rth@redhat.com>
3687 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3689 2001-02-13 H.J. Lu <hjl@gnu.org>
3691 * ldexp.h (node_type): Add etree_provided.
3692 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3693 type to etree_provided if defined by PROVIDE. Allow updating
3695 (exp_print_tree): Handle etree_provided.
3696 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3699 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3701 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3702 .IA_64.unwind.* pattern to unwind table section and
3703 .IA_64.unwind_info* pattern to unwind info section.
3705 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3707 * Makefile.am: Add linux target for S/390.
3708 * Makefile.in: Likewise.
3709 * configure.host: Likewise.
3710 * configure.tgt: Likewise.
3711 * emulparams/elf64_s390.sh: New file.
3712 * emulparams/elf_s390.sh: New file.
3714 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3716 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3718 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3720 2001-02-06 Philip Blundell <philb@gnu.org>
3722 * Makefile.am: Remove mention of earmelf_linux26.
3723 * Makefile.in: Regenerate.
3725 2001-02-04 Philip Blundell <philb@gnu.org>
3727 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3728 * emulparams/armelf_linux26.sh: Delete.
3729 * configure.tgt: Remove mention of armelf_linux26 emulation.
3731 2001-02-01 Nick Clifton <nickc@redhat.com>
3733 * ld.1: Replace occurances of -oformat with --oformat.
3735 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3737 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3738 load_base is specified.
3740 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3742 * emultempl/elf32.em: Correct spelling in comments and listed
3745 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3747 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3748 default for the first section of a group of overlay sections.
3750 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3752 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3753 * Makefile.in: Regenerate.
3754 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3755 Check for null tool_dir.
3757 2001-01-16 Jim Wilson <wilson@redhat.com>
3759 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3760 and IA_64.unwind.info.
3762 2001-01-16 H.J. Lu <hjl@gnu.org>
3764 * ldlang.c (lang_check): Merge the private data only if the
3765 input file has contents.
3767 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3769 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3771 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3772 enabling search for libmilli. On a relocatable link, make .text
3774 (LDEMUL_AFTER_PARSE): Define.
3775 (hppaelf_finish): Correct spelling of relocatable in comments.
3777 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3778 rummage through the script for sections on the unique list.
3779 Correct length of strncmp for ".note".
3780 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3782 * ldlang.c (unique_section_list): New var.
3783 (unique_section_p): New function.
3784 (walk_wild_section): Don't match sections on unique_section_list.
3785 (lang_add_unique): New function.
3786 Correct spelling of relocatable in comments.
3788 * ldlang.h (struct unique_sections): Declare.
3789 (unique_section_list): Declare.
3790 (unique_section_p): Declare.
3791 (lang_add_unique): Declare.
3793 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3794 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3796 * ld.texinfo (--unique): Update.
3798 2001-01-13 Nick Clifton <nickc@redhat.com>
3800 * lexsup.c (parse_args): Remove spurious white space.
3802 2001-01-12 Nick Clifton <nickc@redhat.com>
3804 * lexsup.c (parse_args): Update copyright date.
3806 2001-01-12 Philip Blundell <pb@futuretv.com>
3808 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3810 2001-01-10 Kazu Hirata <kazu@hxi.com>
3812 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3813 * scripttempl/h8300h.sc: Fix formatting.
3814 * scripttempl/h8300s.sc: Likewise.
3815 * scripttempl/h8500.sc: Likewise.
3816 * scripttempl/h8500b.sc: Likewise.
3817 * scripttempl/h8500c.sc: Likewise.
3818 * scripttempl/h8500m.sc: Likewise.
3819 * scripttempl/h8500s.sc: Likewise.
3821 2000-01-07 David O'Brien <obrien@BSDi.com>
3823 * emultempl/elf32.em: Only perform Linux ld hints processing when
3826 2001-01-07 Philip Blundell <philb@gnu.org>
3828 * ld.texinfo (Bug Reporting): Update email address for reports.
3830 2000-12-31 Nick Clifton <nickc@redhat.com>
3832 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3833 options by checking for a return value of '?' not -1.
3835 2000-12-28 Nick Clifton <nickc@redhat.com>
3837 * lexsup.c (struct ld_option): Add new enum value:
3839 (ld_options[]): Change -omagic, -output and -oformat options
3840 to be EXACTLY_TWO_DASHES.
3841 (OUTPUT_COUNT): Use ARRAY_SIZE.
3842 (parse_args): Change parameter 'argc' to unsigned.
3843 Place EXACTLY_TWO_DASHES options into new really_longopts
3845 If getopt_long_only fails, try calling getopt_long using the
3846 really_longopts array.
3847 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3850 * ldlex.h: Fix prototype of parse_args.
3852 * ld.texinfo: Document that long options starting with 'o'
3853 must be preceeded by two dashes. Change example of a single
3854 dashed long option from -oformat to -trace-symbol.
3856 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3858 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3859 (longopts[]): New --no-default-excludes option.
3860 (gld_${EMULATION_NAME}_list_options): Document.
3861 (gld_${EMULATION_NAME}_parse_args): Handle.
3863 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3865 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3866 whitespace, it breaks the K&R C preprocessor.
3868 2000-12-11 DJ Delorie <dj@redhat.com>
3870 * ld.texinfo: Add notes about --whole-archive and gcc.
3872 2000-11-18 Fred Fish <fnf@be.com>
3874 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3875 (ld_options): Entry for --allow-shlib-undefined.
3876 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3877 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3879 * ld.texinfo: Document new command line switch.
3881 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3883 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3884 .fixup is actually read/write.
3885 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3886 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3887 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3889 2000-12-11 Jan Hubicka <jh@suse.cz>
3891 * NEWS: Add note about x86_64 architecture.
3893 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3895 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3896 Set DWARF2 sections to a VMA of zero.
3898 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3900 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3902 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3903 (sparc*-*-rtems*): Switched from a.out to ELF.
3905 2000-11-30 Jan Hubicka <jh@suse.cz>
3907 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3908 (eelf_x86_64.c): New.
3909 * Makefile.in: Regenerate.
3910 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3911 * emulparams/elf_x86_64.sh: New.
3913 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3915 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3916 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3918 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3919 merging non-a.out sections into CONSTRUCTING.
3921 2000-11-28 Nick Clifton <nickc@redhat.com>
3923 * ld.1 (COPYING): Mention that the GNU Free Documentation
3924 License is present in the sources, but not the output, and
3925 also available from the GNU website.
3926 (GNU Free Documentation License): Comment out this section.
3928 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3930 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3933 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3935 * ld.1: Remove old date so it does not give the impression the manpage
3938 2000-11-24 Nick Clifton <nickc@redhat.com>
3940 * configure.tgt (xscale-coff): Add target.
3941 (xscale-elf): Add target.
3943 2000-11-24 Fred Fish <fnf@be.com>
3945 * ldmain.c (main): Remove redundant init of config.make_executable
3948 2000-11-15 Richard Henderson <rth@redhat.com>
3950 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3952 2000-11-14 Kazu Hirata <kazu@hxi.com>
3954 * scripttempl/h8300.sc: Fix formatting.
3955 * scripttempl/h8300h.sc: Likewise.
3956 * scripttempl/h8300s.sc: Likewise.
3958 2000-11-14 Denis Chertykov <denisc@overta.ru>
3960 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3962 2000-11-09 Philip Blundell <pb@futuretv.com>
3964 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3965 around orphan sections whose names can be represented in C.
3967 2000-11-07 Jim Wilson <wilson@redhat.com>
3969 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3970 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3972 2000-11-06 Nick Clifton <nickc@redhat.com>
3974 * ld.texinfo: Add GNU Free Documentation License.
3975 * ldint.texinfo: Add GNU Free Documentation License.
3976 * ld.1: Add GNU Free Documentation License.
3978 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3980 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3981 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3983 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3984 Move 2000-11-02 Makefile.in changes to this file.
3985 * Makefile.in: Regenerate.
3987 2000-11-03 Nick Clifton <nickc@redhat.com>
3989 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3990 constructors and destructors.
3991 * scripttempl/h8300h.sc: Ditto.
3992 * scripttempl/h8300s.sc: Ditto.
3993 * scripttempl/h8500.sc: Ditto.
3994 * scripttempl/h8500b.sc: Ditto.
3995 * scripttempl/h8500c.sc: Ditto.
3996 * scripttempl/h8500m.sc: Ditto.
3997 * scripttempl/h8500s.sc: Ditto.
3998 * scripttempl/v850.sc: Ditto.
3999 * scripttempl/w65.sc: Ditto.
4000 * scripttempl/z8000.sc: Ditto.
4002 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4004 * Makefile.in (e_i386_chaos.c): New rule.
4005 (ALL_EMULATIONS): Added e_i386_chaos.o.
4006 * emulparams/elf_i386_chaos.sh: New file.
4007 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4009 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4011 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4012 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4013 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4014 library path suffix.
4015 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4017 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4019 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4020 for consecutive sections.
4022 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4024 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4026 * ld.texinfo: Added notes about this new option.
4028 2000-10-16 Nick Clifton <nickc@redhat.com>
4030 * emultempl/pe.em (_after_open): Add tests of return values from
4031 bfd functions. Emit appropriate error messages if necessary.
4033 2000-10-13 Nick Clifton <nickc@redhat.com>
4035 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4036 local variables - they are not used, but leave in the call to
4037 bfd_canonicalize_symtab.
4038 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4039 pe_dll_search_prefix.
4041 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4043 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4044 (longopts): New --dll-search-prefix option.
4045 (gld_${EMULATION_NAME}_list_options): Document.
4046 (gld_${EMULATION_NAME}_parse_args): Handle.
4047 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4048 dynamically, search for a dll named '<prefix><basename>.dll'
4049 in preference to 'lib<basename>.dll' if --dll-search-prefix
4052 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4054 * ldlang.c (section_already_linked): Set kept_section instead of
4057 2000-10-10 Kazu Hirata <kazu@hxi.com>
4059 * deffile.h: Fix formatting.
4060 * lexsup.c: Likewise.
4063 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4065 * pe-dll.c (make_one): Do not generate code thunk for DATA
4067 (process_def_file): deduce DATA flag for auto-export sumbols.
4069 2000-10-09 Kazu Hirata <kazu@hxi.com>
4071 * ld.h: Fix formatting.
4072 * ldcref.c: Likewise.
4073 * ldctor.h: Likewise.
4074 * ldemul.c: Likewise.
4075 * ldemul.h: Likewise.
4076 * ldexp.c: Likewise.
4077 * ldexp.h: Likewise.
4078 * ldfile.c: Likewise.
4079 * ldfile.h: Likewise.
4080 * ldlang.c: Likewise.
4081 * ldlang.h: Likewise.
4082 * ldmain.c: Likewise.
4083 * pe-dll.c: Likewise.
4085 * pe-dll.c: Revert some formatting fixes.
4087 2000-10-08 Kazu Hirata <kazu@hxi.com>
4089 * pe-dll.c: Fix formatting.
4091 2000-10-05 Kazu Hirata <kazu@hxi.com>
4093 * ldlang.c: Fix formatting.
4095 2000-10-03 DJ Delorie <dj@redhat.com>
4097 * pe-dll.c (fill_edata): initialize entire block
4098 (make_one): fill in correct section.
4100 2000-10-03 Kazu Hirata <kazu@hxi.com>
4102 * ldexp.c: Fix formatting.
4104 2000-10-02 DJ Delorie <dj@redhat.com>
4106 * emultempl/pe.em (gld_*_after_open): detect case where there two
4107 import libraries for same dll; rename one to ensure proper link
4110 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4112 (generate_edata): fix typo
4114 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4116 * scripttempl/crisaout.sc (ENTRY): Now __start.
4117 (.text): Add default setting for __start.
4118 Remove CONSTRUCTORS handling.
4119 (/DISCARD/): Add .gnu.warning.*.
4120 * emulparams/crislinux.sh (ENTRY): Now __start.
4121 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4122 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4123 (ENTRY): Now __start.
4124 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4125 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4127 2000-09-29 Kazu Hirata <kazu@hxi.com>
4129 * deffile.h: Fix formatting.
4131 * ldcref.c: Likewise.
4132 * ldctor.c: Likewise.
4133 * ldctor.h: Likewise.
4134 * ldemul.c: Likewise.
4135 * ldemul.h: Likewise.
4136 * ldexp.c: Likewise.
4137 * ldexp.h: Likewise.
4138 * ldfile.c: Likewise.
4139 * ldfile.h: Likewise.
4140 * ldlang.c: Likewise.
4141 * ldlang.h: Likewise.
4142 * lexsup.c: Likewise.
4144 * pe-dll.c: Likewise.
4146 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4148 * pe-dll.c (process_def_file): Uninitialized data wasn't
4149 exported with --export-all-symbols switch.
4151 2000-09-28 DJ Delorie <dj@redhat.com>
4153 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4154 noname work properly.
4156 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4158 * ld.texinfo (HPPA ELF32): New section.
4160 * emultempl/hppaelf.em (group_size): New.
4161 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4162 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4163 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4164 options to prevent abbreviations matching.
4165 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4166 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4168 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4170 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4171 on the m68*-*-elf target. Make it support COFF input objects.
4173 2000-09-21 Kazu Hirata <kazu@hxi.com>
4175 * ldmain.c: Fix formatting.
4176 * ldmisc.c: Likewise.
4177 * ldver.c: Likewise.
4178 * ldwrite.c: Likewise.
4180 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4182 * ldwrite.c (clone_section): Silence gcc warnings.
4184 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4186 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4187 out of memory failure.
4189 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4190 (clone_section): Handle out of memory failures. Rename var to
4191 avoid c++ reserved word.
4193 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4195 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4196 stub_name param to stub_sec_name.
4197 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4199 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4201 * emultempl/m68kelf.em: New file.
4202 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4203 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4204 * Makefile.in: Regenerate.
4206 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4208 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4211 2000-09-13 Nick Clifton <nickc@redhat.com>
4213 * ldmain.c (multiple_definition): Disable relaxation if
4214 multiple symbol definitions are encountered - otherwise the
4215 linker could abort with an assertion failure.
4217 2000-09-10 Nick Clifton <nickc@redhat.com>
4219 * mri.c: Fix formatting.
4221 2000-09-07 H.J. Lu <hjl@gnu.org>
4223 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4224 * configure: Rebuild.
4226 2000-09-07 H.J. Lu <hjl@gnu.org>
4228 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4229 * Makefile.in: Rebuild.
4231 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4233 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4234 broken list handling. Create __start_SECNAME and __stop_SECNAME
4235 when no place-holder. Add some comments. Test both SEC_CODE and
4236 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4237 Handle case where no output section statement created.
4239 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4241 * configure.tgt (sh-*-linux*): Added.
4242 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4243 * Makefile.in: Rebuilt.
4244 * emulparams/shelf_linux.sh: New file.
4245 * emulparams/shlelf_linux.sh: New file.
4247 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4249 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4250 try shuffling sections when the orphan happens to be the place
4251 holder. Keep count of unique section names generated so we speed
4252 the search for a new name.
4254 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4256 * configure: Rebuilt with new libtool.m4.
4258 2000-09-05 Nick Clifton <nickc@redhat.com>
4260 * Makefile.in: Regenerate.
4261 * aclocal.m4: Regenerate.
4262 * configure: Regenerate.
4263 * config.in: Regenerate.
4264 * po/ld.pot: Regenerate.
4266 * ldint.texinfo: Remove CVS revision marker - it foils local
4269 * emultempl/ticoff.em: Remove extraneous comma.
4271 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4273 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4274 to stub section flags.
4275 (hppa_for_each_input_file_wrapper): New.
4276 (hppa_lang_for_each_input_file): New.
4277 (lang_for_each_input_file): Define to call above.
4278 (multi_subspace): New.
4279 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4280 (PARSE_AND_LIST_PROLOGUE): Define.
4281 (PARSE_AND_LIST_LONGOPTS): Define.
4282 (PARSE_AND_LIST_OPTIONS): Define.
4283 (PARSE_AND_LIST_ARGS_CASES): Define.
4284 (hppaelf_finish): Call elf32_hppa_set_gp.
4285 (hppaelf_set_output_arch): Remove.
4286 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4288 * emulparams/hppalinux.sh (ELFSIZE): Define.
4290 (OTHER_READONLY_SECTIONS): Define.
4292 (GENERATE_SHLIB_SCRIPT): Define.
4294 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4295 to const throughout. Change `void *' to `PTR' throughout.
4296 (lang_memory_default): Function is local to file, add `static'.
4298 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4299 (ehppalinux.c): Likewise.
4300 (earmelf.c): Likewise.
4301 (earmelf_linux.c): Likewise.
4302 (earmelf_linux26.c): Likewise.
4303 * Makefile.in: Regenerate.
4305 * ld.h (ld_config_type): Add unique_orphan_sections.
4306 * lexsup.c (OPTION_UNIQUE): Define.
4307 (ld_options): Add "--unique".
4308 (parse_args): Handle it.
4309 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4310 search for an existing output section if unique_orphan_sections is
4311 set. Make use of bfd_get_unique_section_name rather than
4312 duplicating code here.
4313 * ld.texinfo: Describe --unique.
4315 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4316 optional arg to split-by-file.
4317 (parse_args): Handle them.
4318 * ld.texinfo: Update description of these options.
4319 * ldwrite.c (clone_section): Pass in the section name. Replace
4320 local code with bfd_get_unique_section_name.
4321 (split_sections): Tidy code and comments. Use a list traversal
4322 more appropriate to the list construction. Handle cooked section
4323 sizes. Split when split_by_reloc reached rather than exceeded.
4324 Track section size and split when split_by_file reached. Fix
4325 link_order_tail (even though it's not used).
4326 (ldwrite): Modify condition for calling split_sections to suit
4327 changed split_by_reloc and split_by_file.
4328 * ldmain.c (main): Init config.split_by_reloc and
4329 config.split_by_file to -1.
4330 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4331 Change split_by_file to bfd_size_type.
4333 2000-09-02 Nick Clifton <nickc@redhat.com>
4335 * configure.in: Increase version number to 2.10.91.
4336 * NEWS: Mention new ability to support removal of duplicate DWARF2
4338 * configure: Regenerate.
4339 * aclocal.m4: Regenerate.
4340 * config.in: Regenerate.
4342 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4344 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4346 * scripttempl/elf32avr.sc: Ditto.
4347 * scripttempl/elfd10v.sc: Ditto.
4348 * scripttempl/elfd30v.sc: Ditto.
4349 * scripttempl/elfi370.sc: Ditto.
4350 * scripttempl/elfm68hc11.sc: Ditto.
4351 * scripttempl/elfm68hc12.sc: Ditto.
4352 * scripttempl/elfi386beos.sc: Ditto.
4353 * scripttempl/v850.sc: Ditto.
4355 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4357 * acinclude.m4: Include libtool and gettext macros from the
4359 * aclocal.m4, configure: Rebuilt.
4361 2000-08-25 Nick Clifton <nickc@redhat.com>
4363 * ldlang.c (open_output): When choosing the target for a
4364 particular endianness, do nothing if the target is not
4367 2000-08-25 H.J. Lu <hjl@gnu.org>
4369 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4370 check -rpath nor LD_RUN_PATH for cross link.
4371 * ld.texinfo: Document the change.
4373 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4375 * NEWS: Mention support for CRIS.
4377 2000-08-23 H.J. Lu <hjl@gnu.org>
4379 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4380 the current runpath list from bfd_elf_get_runpath_list ()
4383 2000-08-22 H.J. Lu <hjl@gnu.org>
4385 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4386 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4387 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4388 trace_file_tries is non-zero.
4389 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4390 if trace_file_tries is non-zero.
4392 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4395 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4397 * NEWS: Mention i860 support.
4399 2000-08-14 Andreas Schwab <schwab@suse.de>
4401 * scripttempl/elf.sc: Fix last change to use correct comment
4404 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4406 * scripttempl/elf.sc: Add a comment giving the correspondence
4407 between sections, per-datum sections, and linkonce sections. Make
4408 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4411 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4413 * emulparams/elf32_i860.sh: New file.
4414 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4415 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4416 (eelf32_i860.c): New rule.
4417 * Makefile.in: Regenerate.
4419 2000-08-10 Nick Clifton <nickc@cygnus.com>
4421 * emulparams/mipspe.sh (ENTRY): Add definition.
4423 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4425 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4428 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4430 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4431 the final size of .bss section.
4432 * scripttempl/elfm68hc12.sc: Likewise.
4434 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4436 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4437 gld${EMULATION_NAME}_parse_args for consistency. Combine
4438 lastoptind and prevoptind vars, and keep track of last optind.
4439 (gld_${EMULATION_NAME}_list_options): Rename to
4440 gld${EMULATION_NAME}_list_options.
4442 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4444 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4445 (i586-sco-sysv5uw7.1.0).
4447 2000-07-27 H.J. Lu <hjl@gnu.org>
4449 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4450 (PARSE_AND_LIST_PROLOGUE): New.
4451 (PARSE_AND_LIST_LONGOPTS): Likewise.
4452 (PARSE_AND_LIST_OPTIONS): Likewise.
4453 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4454 (PARSE_AND_LIST_EPILOGUE): Likewise.
4456 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4458 * emultempl/armelf.em: Elide functions common to elf32.em,
4459 ie. most of the file.
4460 (arm_elf_after_open): New. Do arm specific things then call
4461 gld${EMULATION_NAME}_after_open.
4462 (arm_elf_before_allocation): New. Call
4463 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4464 (PARSE_AND_LIST_PROLOGUE): Define.
4465 (PARSE_AND_LIST_SHORTOPTS): Define.
4466 (PARSE_AND_LIST_LONGOPTS): Define.
4467 (PARSE_AND_LIST_OPTIONS): Define.
4468 (PARSE_AND_LIST_ARGS_CASES): Define.
4469 (LDEMUL_AFTER_OPEN): Define.
4470 (LDEMUL_BEFORE_ALLOCATION): Define.
4471 (LDEMUL_BEFORE_PARSE): Define.
4472 (LDEMUL_FINISH): Define.
4474 * emultempl/hppaelf.em: Similarly zap most of this file.
4475 (hppaelf_add_stub_section): Prototype.
4476 (hppaelf_layaout_sections_again): Prototype.
4477 (hook_in_stub): Prototype.
4478 (LDEMUL_SET_OUTPUT_ARCH): Define.
4479 (LDEMUL_FINISH): Define.
4480 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4482 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4483 (EXTRA_EM_FILE): New.
4484 * emulparams/armelf_linux.sh: Likewise.
4485 * emulparams/armelf_linux26.sh: Likewise.
4486 * emulparams/hppalinux.sh: Likewise.
4487 * emulparams/hppaelf.sh: Likewise.
4490 * emultempl/elf32.em: Fix formatting.
4491 (EXTRA_EM_FILE): Source it.
4492 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4493 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4494 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4495 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4496 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4497 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4498 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4499 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4500 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4501 allow functions in this file to be overridden.
4502 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4504 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4506 * emultempl/elf32.em: Reorganize file.
4508 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4510 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4511 specific option to fit 64-bit executable in the lower
4512 31-bit address range. This is done by changing start
4513 address of .interp (the very first section of executable)
4514 and then setting EF_ALPHA_32BIT elf header flag.
4516 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4518 * emultempl/m68kcoff.em: New file.
4519 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4520 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4522 * Makefile.in: Regenerate.
4524 2000-07-20 H.J. Lu <hjl@gnu.org>
4526 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4527 and "disable-new-dtags" to stop getopt from treating -d/-e as
4528 abbreviations for these options.
4530 2000-07-20 H.J. Lu <hjl@gnu.org>
4532 * ld.texinfo: Add documentation for --disable-new-dtags and
4535 * ldmain.c (main): Initialize link_info.new_dtags to false.
4537 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4538 --disable-new-dtags and --enable-new-dtags.
4539 (gld_${EMULATION_NAME}_list_options): Likewise.
4541 2000-07-05 Kenneth Block <krblock@computer.org>
4543 * lexsup.c: Add optional style to demangle switch
4544 * ld.texinfo: Document optional style to demangle switch.
4546 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4548 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4550 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4551 Regenerate dependencies.
4552 * Makefile.in: Rebuild.
4553 * configure.tgt (cris-*-*): New target.
4554 * emulparams/crisaout.sh, emulparams/criself.sh,
4555 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4556 * po/POTFILES.in, po/ld.pot: Regenerate.
4558 2000-07-20 H.J. Lu <hjl@gnu.org>
4560 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4561 Print out ignored -z options.
4563 2000-07-19 H.J. Lu <hjl@gnu.org>
4565 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4566 (PARSE_AND_LIST_PROLOGUE): New.
4567 (PARSE_AND_LIST_LONGOPTS): Likewise.
4568 (PARSE_AND_LIST_OPTIONS): Likewise.
4569 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4571 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4573 * lexsup.c (ld_options): Comment out 'z'.
4574 (parse_args): Likewise.
4576 * emultempl/elf32.em: Include "elf/common.h".
4577 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4579 (gld_${EMULATION_NAME}_list_options): Likewise.
4581 * ld.texinfo: Add documentation for the recognized -z options.
4583 2000-07-19 H.J. Lu <hjl@gnu.org>
4585 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4586 bfd_elf_set_dt_needed_soname ().
4588 2000-07-18 DJ Delorie <dj@cygnus.com>
4590 * pe-dll.c (pe_dll_id_target): check object target name also
4592 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4594 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4595 ${INIT_END} if relocating.
4596 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4598 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4600 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4601 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4602 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4603 errors introduced by the old dynamic lib search order.
4605 2000-07-17 DJ Delorie <dj@cygnus.com>
4607 * pe-dll.c (process_def_file): auto-export data items also
4608 (pe_process_import_defs): also see if _imp_ form needed
4610 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4612 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4613 for dll import libraries
4615 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4617 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4618 gcc 2.95.2 and later.
4620 2000-07-11 Kazu Hirata <kazu@hxi.com>
4622 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4625 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4627 * ldemul.h (struct lang_input_statement_struct): Remove forward
4629 (struct search_dirs): Likewise.
4630 * ldfile.h (struct lang_input_statement_struct): Likewise.
4631 Protect file from multiple inclusion.
4632 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4633 declaration from macro to file scope.
4635 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4636 * ldgram.y: Likewise here.
4637 * ldlang.c: And here.
4638 * ldmain.c: And here.
4639 * mpw-elfmips.c: And here.
4640 * mpw-eppcmac.c: And here.
4641 * emultempl/aix.em: And here.
4642 * emultempl/armcoff.em: And here.
4643 * emultempl/armelf.em: And here.
4644 * emultempl/armelf_oabi.em: And here.
4645 * emultempl/beos.em: And here.
4646 * emultempl/elf32.em: And here.
4647 * emultempl/hppaelf.em: And here.
4648 * emultempl/linux.em: And here.
4649 * emultempl/lnk960.em: And here.
4650 * emultempl/pe.em: And here.
4651 * emultempl/sunos.em: And here.
4652 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4653 * mpw-idtmips.c: Ditto.
4654 * emultempl/generic.em: Ditto.
4655 * emultempl/gld960.em: Ditto.
4656 * emultempl/gld960c.em: Ditto.
4657 * emultempl/mipsecoff.em: Ditto.
4658 * emultempl/ticoff.em: Ditto.
4659 * emultempl/vanilla.em: Ditto.
4661 * pe-dll.c: Include ldfile.h
4662 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4664 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4665 arguments to bfd_elf32_size_dynamic_sections call.
4666 (gldelf32ebmip_place_orphan): Add missing arguments to
4667 lang_leave_output_section_statement call.
4669 2000-07-10 H.J. Lu <hjl@gnu.org>
4671 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4673 (strhash): Likewise.
4674 (compute_dll_image_base): Likewise.
4675 (pe_undef_found_sym): Likewise.
4676 (pe_undef_cdecl_match): Likewise.
4677 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4678 argument "arch" with ATTRIBUTE_UNUSED.
4680 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4682 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4684 From Ryan Bradetich <rbradetich@uswest.net>
4685 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4687 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4689 Changes to create multiple linker stubs, positioned immediately
4690 before the section where they are required.
4691 * emultempl/hppaelf.em: Include elf32-hppa.h.
4692 (stub_sec, file_chain): Delete.
4693 (hppaelf_create_output_section_statements): Don't make a stub
4695 (hook_stub_info): New struct.
4696 (hook_in_stub): New function.
4697 (hppaelf_add_stub_section): New function.
4698 (hppaelf_finish): Do nothing for relocateable links. Modify the
4699 call to elf32_hppa_size_stubs. Move code for updating section
4701 (hppaelf_layaout_sections_again): ..to here, a new function.
4703 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4704 broken list handling. Pass in a pointer to the list.
4705 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4707 (hppaelf_before_parse): Prototype.
4708 (hppaelf_set_output_arch): Prototype.
4709 (hppaelf_create_output_section_statements): Prototype.
4710 (hppaelf_delete_padding_statements): Prototype.
4711 (hppaelf_finish): Prototype.
4714 * emultempl/hppaelf.em: Include ctype.h.
4715 (struct orphan_save): New.
4716 (gld${EMULATION_NAME}_place_orphan): New.
4717 (output_rel_find): New.
4718 (hppaelf_get_script): Update from elf32.em.
4719 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4720 Change emulation_name field to "${EMULATION_NAME}". Add
4721 gld${EMULATION_NAME}_place_orphan.
4723 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4724 ehppalinux.o, sort it. Regenerate dependencies.
4725 (ehppalinux.c): Depend on hppaelf.em
4726 * Makefile.in: Regenerate.
4728 * configure.tgt: targ_emul=hppalinux for hppa*linux
4730 * emulparams/hppalinux.sh: New.
4731 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4733 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4735 * lexsup.c (parse_args): Copy section name.
4737 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4739 * emultempl/pe.em: institute the following search order for
4740 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4741 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4742 static lib (libfoo.a) if none of the above are found.
4744 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4746 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4747 (longopts): New --{enable,disable}-auto-image-base options.
4748 (gld_${EMULATION_NAME}_list_options): Document.
4749 (gld_${EMULATION_NAME}_parse): Handle.
4750 (strhash): New static function.
4751 (compute_dll_image_base): New static function.
4752 (gld_${EMULATION_NAME}_set_symbols): Use.
4754 2000-07-05 DJ Delorie <dj@redhat.com>
4758 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4760 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4761 * emulparams/elf32btsmip.sh: New file.
4762 * Makefile.am: Add traditional mips target.
4763 * Makefile.in: Rebuild.
4765 2000-07-01 H.J. Lu <hjl@gnu.org>
4767 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4768 automake to use YLWRAP.
4769 * Makefile.in: Rebuild.
4771 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4773 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4774 (CLEANFILES): Add DEPA.
4775 * Makefile.in: Regenerate.
4777 2000-06-30 Timothy Wall <twall@ppc>
4779 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4780 the page in the upper octet of the address.
4782 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4784 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4786 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4788 * NEWS: arm-elf does --gc-sections too.
4790 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4792 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4794 * Makefile.in: Regenerate.
4796 2000-06-21 H.J. Lu <hjl@gnu.org>
4798 * Makefile.am: Rebuild dependency.
4799 * Makefile.in: Rebuild.
4801 2000-06-20 H.J. Lu <hjl@gnu.org>
4803 * Makefile.am: Rebuild dependency.
4804 * Makefile.in: Rebuild.
4806 2000-06-20 Timothy Wall <twall@cygnus.com>
4808 * scripttempl/tic54xcoff.sc: New.
4809 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4810 * gen-doc.texi: Add flag for TI COFF.
4811 * ld.texinfo: Add documentation for TI COFF handling switches.
4812 * emultempl/ticoff.em: New. TI COFF handling.
4813 * configure.tgt: Add tic54x target.
4814 * Makefile.am: Add tic54x target.
4815 * Makefile.in: Ditto.
4817 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4819 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4820 checking for backslashes.
4822 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4824 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4826 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4828 * NEWS: Update list of targets supporting --gc-sections.
4830 * scripttempl/elf.sc: KEEP .eh_frame contents.
4831 * scripttempl/elfd30v.sc: Same here.
4833 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4835 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4837 * Makefile.in: Rebuild.
4838 * configure.tgt: Recognize m68hc12 and m68hc11.
4839 * scripttempl/elfm68hc12.sc: New file.
4840 * emulparams/m68hc12elfb: New emulation.
4841 * emulparams/m68hc12elf: New emulation.
4842 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4843 (includes a memory.x script to define the ROM and RAM banks).
4844 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4845 New configuration files for support of Motorola 68hc11
4847 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4849 * ldmain.c (main): Only change SEC_READONLY for final link.
4851 2000-06-13 H.J. Lu <hjl@gnu.org>
4853 * configure: Regenerate.
4855 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4857 * configure.in (VERSION): Update to show this is the CVS mainline.
4859 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4861 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4862 input objects to be ECOFF.
4863 (check_sections): einfo takes %B, not %P, to print a BFD name.
4865 2000-06-05 Michael Matz <matz@ifh.de>
4867 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4870 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4872 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4874 * emulparams/avr1200.sh (STACK): Define as 0.
4875 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4876 * emulparams/avr4433.sh (STACK): Likewise.
4877 * emulparams/avr44x4.sh (STACK): Likewise.
4878 * emulparams/avr85xx.sh (STACK): Likewise.
4879 * emulparams/avrmega103.sh (STACK): Likewise.
4880 * emulparams/avrmega161.sh (STACK): Likewise.
4881 * emulparams/avrmega603.sh (STACK): Likewise.
4882 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4883 (__stack): Define from ${STACK} for main().
4885 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4887 * Makefile.am: Update dependencies with "make dep-am"
4888 * Makefile.in: Regenerate.
4890 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4892 * ldmain.c: Include filenames.h.
4893 (set_scripts_dir): Support backslashes in program name.
4895 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4897 * ldmain.c (main): When deciding if ".text" section should be
4898 read-only, don't forget to reset SEC_READONLY because it
4899 could be already set.
4901 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4903 * ld.1: Add documentation for new command line option:
4904 --section-start <sectionname>=<sectionorg>
4905 This is a generic version of -Ttext etc. which accepts
4906 any section name as a parameter instead of just text/data/
4908 * ld.texinfo: More docs.
4910 * lexsup.c: (parse_args): Recognize new command line option.
4911 (ld_options): Add new option.
4913 2000-05-18 H.J. Lu <hjl@gnu.org>
4915 * lexsup.c (parse_args): `i' == `r', not `q'.
4917 2000-05-18 Jeffrey A Law (law@cygnus.com)
4919 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4921 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4922 Rick Gorton <gorton@scrugs.lkg.dec.com>
4924 Add support for '-q' == '--emit-relocs' switch.
4925 * ldmain.c (main): Default to false.
4926 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4927 * NEWS: Describe the emitrelocations switch.
4928 * ld.texinfo: Describe the emitrelocations switch.
4930 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4932 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4933 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4934 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4937 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4939 * lexsup.c (parse_args): Update the year in the copyright notice.
4941 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4943 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4944 Replace defines with those from intl/libgettext.h to quieten gcc
4947 2000-05-10 H.J. Lu <hjl@gnu.org>
4949 * ldlang.c (open_input_bfds): Don't load the same file within
4950 a group again if the whole archive has been loaded already.
4952 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4954 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4955 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4958 2000-05-01 Jim Wilson <wilson@cygnus.com>
4960 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4962 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4963 host "ia64-*-linux-gnu*".
4965 2000-04-29 Andreas Jaeger <aj@suse.de>
4967 * ld.h: Correctly check GCC version.
4969 2000-04-25 Jeffrey A Law (law@cygnus.com)
4971 * Makefile.am: Add PA64 support. Add missing dependencies for
4973 * Makefile.in: Rebuilt.
4974 * configure.tgt: Add PA64 support (currently disabled).
4976 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4978 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4979 (output_rel_find): New function.
4980 (hold_section, hold_use): Delete.
4981 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4982 hold_interp): Make local to place_orphan.
4983 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4984 rather than place_section to find possible previous use of orphan.
4985 Similarly find the place-holder output sections. Use returned
4986 value from lang_enter_output_section_statement rather than calling
4987 lang_output_section_statement_lookup.
4988 * emultempl/armelf.em: Same here.
4989 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4991 * ldlang.c (lang_enter_output_section_statement): Return output
4993 * ldlang.h (lang_enter_output_section_statement): Change
4996 * ldlang.h (lang_output_section_statement): Export it.
4997 * ldlang.c (lang_output_section_statement): Ditto.
4999 2000-04-24 Nick Clifton <nickc@cygnus.com>
5001 * ld.texinfo (Output Section Data): Add note that section data
5002 commands cannot appear outside of section directives.
5004 2000-04-2 Matthew Green <mrg@cygnus.com>
5006 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5008 2000-04-21 Richard Henderson <rth@cygnus.com>
5009 David Mosberger <davidm@hpl.hp.com>
5011 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5012 (eelf64_ia64.c): New rule.
5013 * Makefile.in: Rebuild.
5014 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5015 * emulparams/elf64_ia64.sh: New file.
5017 2000-04-21 Richard Henderson <rth@cygnus.com>
5019 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5021 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5023 * dep-in.sed: Match space at start of file name, not at end.
5025 2000-04-18 H.J. Lu <hjl@gnu.org>
5027 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5028 lang_leave_output_section_statement () after calling
5029 lang_enter_output_section_statement ().
5030 * emultempl/armelf.em: Likewise.
5032 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5034 * emultempl/elf32.em (struct orphan_save): Add section field.
5035 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5036 better order, and place first orphan section as we did before the
5037 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5038 Don't call make_bfd_section here, let wild_doit do the job for us.
5039 Don't build a statement list when we'll only throw it away.
5040 * emultempl/armelf.em: Ditto.
5041 * emultempl/pe.em: Similarly.
5043 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5045 * scripttempl/elfppc.sc: Remove.
5046 * emulparams/elf32ppc.sh: Use elf.sc.
5047 * emulparams/elf32lppc.sh: Use elf.sc.
5048 * emulparams/elf32ppclinux.sh: Use elf.sc.
5049 * emulparams/elf32ppcsim.sh: New file.
5050 * emulparams/elf32lppcsim.sh: New file.
5051 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5052 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5053 * Makefile.in: Regenerate.
5054 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5056 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5058 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5059 ~SEC_ALLOC sections too. Init start address of debug sections.
5060 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5061 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5062 Also set all relocateable section start addresses.
5064 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5066 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5067 Add new BSS_PLT variable for when .plt need not be contained in
5068 the file. Move _etext so that it is also after .fini, and provide
5069 both etext and _etext with a leading underscore. Mark the start
5072 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5074 * emultempl/elf32.em (struct orphan_save): New.
5075 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5076 hold_interp): Make them struct orphan_save.
5077 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5078 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5079 the end of the relevant section list. Also add associated section
5080 statements to the end of any previous orphan statements.
5081 * emultempl/armelf.em: Similarly.
5082 * emultempl/pe.em: Similarly.
5084 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5086 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5088 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5090 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5091 --enable-build-warnings option.
5092 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5093 * Makefile.in, configure: Re-generate.
5095 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5097 * po/ld.pot: Regenerate.
5099 * lexsup.c (help): Restore translated part of bug string.
5101 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5102 (DEP): Quote when passing vars to sub-make. Add warning message
5104 (DEP1): Rewrite for "gcc -MM".
5105 (CLEANFILES): Add DEP2.
5106 Update dependencies.
5107 * Makefile.in: Regenerate.
5109 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5111 * ld.h: #include "bin-bugs.h"
5112 * lexsup.c (help): Use REPORT_BUGS_TO.
5114 2000-03-27 Denis Chertykov <denisc@overta.ru>
5116 * configure.tgt (avr-*-*): New target support.
5117 * Makefile.am: Likewise.
5118 * scripttempl/elf32avr.sc: New script file.
5119 * emulparams/avr1200.sh: New file.
5120 * emulparams/avr23xx.sh: New file.
5121 * emulparams/avr4433.sh New file.
5122 * emulparams/avr44x4.sh New file.
5123 * emulparams/avr85xx.sh New file.
5124 * emulparams/avrmega103.sh New file.
5125 * emulparams/avrmega161.sh New file.
5126 * emulparams/avrmega603.sh New file.
5127 * Makefile.in: Regenerate.
5129 2000-03-09 Andreas Jaeger <aj@suse.de>
5131 * Makefile.am (check-DEJAGNU): Also unset LANG.
5132 * Makefile.in: Rebuild.
5134 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5136 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5139 2000-03-02 H.J. Lu <hjl@gnu.org>
5141 * emulparams/elf32mcore.sh: Include "getopt.h".
5143 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5145 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5147 2000-03-01 H.J. Lu <hjl@gnu.org>
5149 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5150 * emulparams/shpe.sh: Likewise.
5152 2000-03-01 Nick Clifton <nickc@cygnus.com>
5154 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5155 to unused parameters.
5157 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5158 functions only used by DLL code.
5159 (_place_orphan): Initialise 'dollar'.
5161 2000-03-01 H.J. Lu <hjl@gnu.org>
5163 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5164 indicate if the undefined symbol is a fatal error or not.
5165 Don't delete the output file if "fatal" is false.
5167 2000-02-29 H.J. Lu <hjl@gnu.org>
5169 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5170 Set LC_COLLATE and LC_ALL to null and export them. It is for
5171 sort which expects the C locale.
5172 Add $(LIBS) to all $(HOSTING_LIBS).
5173 * Makefile.in: Rebuild.
5175 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5177 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5178 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5179 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5180 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5181 find_potential_libraries.
5183 2000-02-28 Jim Blandy <jimb@redhat.com>
5185 * ldgram.y (exclude_name_list): Don't require a comma to separate
5186 list entries; the lexer considers commas to be valid part of a
5187 filename, so in something like `foo, bar' the comma is considered
5188 part of the first filename, `foo,'.
5189 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5191 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5193 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5194 host "i[3456]86-*-freebsdelf*".
5196 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5198 * scripttempl/i386go32.sc: Move misplaced semicolons.
5200 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5202 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5203 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5204 (eelf64hppa.c, ehppaelf.c): Remove targets.
5205 * Makefile.in: Rebuild.
5207 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5209 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5210 GNU/Linux/sparc, but keep the default as 32.
5212 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5213 it default if sparcv9 or sparc64.
5215 2000-02-24 Nick Clifton <nickc@cygnus.com>
5217 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5218 * Makefile.in: Regenerate.
5219 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5221 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5222 find_potential_libraries.
5223 * ldemul.c (ldemul_find_potential_libraries): New function.
5225 * ldfile.c (ldfile_open_file_search): Allow function to be
5227 (ldfile_open_file): Call ldemul_find_potential_libraries.
5228 * ldfile.h: Add prototype for ldfile_open_file_search.
5230 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5232 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5233 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5235 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5236 (gld_X_find_potential_libraries): New function. Search for
5237 libraries called "*.lib".
5239 * scripttempl/pe.sc: Add .pdata section.
5241 2000-02-23 Richard Henderson <rth@cygnus.com>
5243 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5244 Add and use memory regions.
5246 2000-02-23 Linas Vepstas (linas@linas.org)
5248 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5250 * Makefile.am: Add support for Linux/IBM 370.
5251 * configure.tgt: Likewise.
5253 * Makefile.in: Regenerate.
5255 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5257 * ldlang.c (print_input_section, print_data_statement,
5258 print_reloc_statement, print_padding_statement, insert_pad,
5259 size_input_section, lang_check_section_addresses,
5260 lang_size_sections, lang_do_assignments, lang_set_startof,
5261 lang_one_common): Change `opb' to unsigned.
5262 (lang_do_assignments): Also change `size' to unsigned.
5264 2000-02-16 Richard Henderson <rth@cygnus.com>
5266 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5268 2000-02-16 Timothy Wall <twall@cygnus.com>
5270 * mri.c (mri_draw_tree): Add default LMA region argument to call
5271 to lang_leave_output_section_statement.
5272 * ldlang.h: Update prototypes with LMA region arguments.
5273 * ldlang.c (lang_size_sections): Encapsulate region bounds
5274 checking in os_check_region call.
5275 (os_check_region): New function.
5276 (lang_output_section_statement_lookup): Initialize lma_region.
5277 (lang_leave_output_section_statement): Add LMA region argument.
5278 (lang_leave_overlay): Ditto.
5279 * ldgram.y: Handle LMA region syntax.
5280 * ld.texinfo (Output Section Description): Describe LMA region usage.
5281 * emultempl/armelf.em (gld$place_orphan): Add default value for
5282 lma region in call to lang_leave_output_section_statement.
5283 * emultempl/elf32.em (gld$place_orphan): Add default value for
5284 lma region in call to lang_leave_output_section_statement.
5285 * emultempl/pe.em (gld$place_orphan): Add default value for
5286 lma region in call to lang_leave_output_section_statement.
5289 2000-02-04 Timothy Wall <twall@redhat.com>
5291 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5292 octets when calculating section end addresses.
5294 2000-02-04 Timothy Wall <twall@redhat.com>
5296 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5298 2000-02-03 Timothy Wall <twall@redhat.com>
5300 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5302 * ldlang.c (print_input_section, print_data_statement,
5303 print_reloc_statement, print_padding_statement): Print target
5304 address values and section sizes as bytes, not octets.
5305 (insert_pad) Calculate padding size in octets, and adjust "dot"
5307 (size_input_section) Always adjust "dot" by bytes, not octets.
5308 (lang_check_section_addresses, lang_do_assignments) Adjust
5309 "dot" by bytes, not octets. Use the larger of the directive size
5310 or octets_per_byte for the number of octets actually allocated in
5312 (lang_set_startof) Make sure STARTOF returns a target address.
5313 (lang_one_common) Record size changes in octets.
5314 (lang_abs_symbol_at_end_of) Section end symbol's value is
5315 recorded in target bytes.
5316 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5317 to be clear about behavior when an octet is smaller than one byte.
5319 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5321 * ldcref.c (output_cref): Don't pass message strings to printf
5325 * ldmisc.c (vfinfo): Same here.
5328 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5330 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5331 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5332 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5333 Add missing NULL initialisers, and comments.
5335 2000-01-21 Nick Clifton <nickc@cygnus.com>
5337 * ldlang.c (lang_size_sections): Fix typo in comment.
5339 2000-01-18 H.J. Lu <hjl@gnu.org>
5341 * ldlang.c (lang_size_sections): Also update the current
5342 address of a region if the SEC_NEVER_LOAD bit is not set.
5344 2000-01-10 Philip Blundell <pb@futuretv.com>
5346 * configure.tgt (arm*-*-conix*): New target.
5348 2000-01-07 Nick Clifton <nickc@cygnus.com>
5350 * ld.texinfo (Options): Remind users to preceed linker command
5351 line switches with -Wl, (or whatever is appropriate) if it is
5352 being invoked by a comnpiler driver program.
5353 Fix description of the behaviour of the -n command line switch.
5355 2000-01-05 Catherine Moore <clm@cygnus.com>
5357 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5359 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5360 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5361 (exclude_name_list): New.
5362 ldlang.c (walk_wild_section): Support list of excluded files.
5363 (print_wild_statement): Likewise.
5364 (lang_add_wild): Likewise.
5365 * ldlang.h (lang_wild_statement_type): Likewise.
5366 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5368 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5370 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5371 (process_def_file): Use.
5372 (pe_dll_compat_implib): New variable.
5375 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5376 pe_dll_compat_implib.
5378 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5379 compat-implib options.
5380 (gld_${EMULATION_NAME}_list_options): List new options.
5381 (gld_${EMULATION_NAME}_parse_args): Handle.
5383 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5386 * deffilep.y (opt_name): Allow "." in name.
5388 For older changes see ChangeLog-9899
5394 version-control: never