1 2002-12-23 Alan Modra <amodra@bigpond.net.au>
3 * ldmain.c (main): Init "strip_discarded".
4 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
5 (OPTION_NO_STRIP_DISCARDED): Define.
6 (ld_options): Add "strip-discarded" and "no-strip-discarded".
7 (parse_args): Handle them.
9 2002-12-23 Nick Clifton <nickc@redhat.com>
11 * ld.h (struct args_type): Add new field
12 'accept_unknown_input_architecture'.
13 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
15 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
16 bfd_arch_get_compatible.
17 * ldfile.c (ldfile_try_open_bfd): Likewise.
18 * lexsup.c (ld_options): Add new command line switch
19 --accept-unknown-input-architecture and its inverse.
20 (parse_args): Handle --accept-unknown-input-architecture.
21 * ld.texinfo: Document new linker option.
22 * NEWS: Mention new linker option.
24 2002-12-20 Alan Modra <amodra@bigpond.net.au>
26 * ldmain.c (main): Re-order link_info initialization. Init all
29 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
31 * ld.texinfo: Clarify and extend the documentation
32 in the Machine Dependent, WIN32 section.
34 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
36 * ld.texinfo: Add win32 machine depending section.
37 * gen-doc.texi: Enable win32 machine depending section.
39 * configure.host: Add win32 library search path.
41 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
43 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
44 import when auto-import is disabled.
46 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
48 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
49 account for trailing '\0'.
51 2002-12-17 Nick Clifton <nickc@redhat.com>
53 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
54 so that it is not confused with -c.
56 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
57 Charles Wilson <cwilson@ece.gatech.edu>
59 * configure.in: Add check for realpath function.
60 * configure: Regenerate.
61 * config.in: Regenerate.
62 * aclocal.m4: Regenerate.
63 * deffile.h: Add .data field to def_file_import
65 * pe-dll.c (pe_proces_import_defs): Use .data field of
66 def_file_import structure to initialize flag_data field of
67 def_file_export structure.
68 (pe_implied_import_dll): New variables exp_funcbase and
69 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
70 not filename (which may be a symlink). Scan the sections and
71 initialize [data|bss]_[start|end]. When scanning the export
72 table, skip _nm_ symbols, and mark any symbols whose rva indicates
73 that it is in the .bss or .data sections as data.
74 * sysdep.h: Include limits.h and sys/param.h, and define
75 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
76 exists, NULL otherwise.
77 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
78 pe_process_import_defs before pe_find_data_imports, so that
79 auto-import will check the virtual implib as well as "real"
81 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
82 symlinks to their target; check that the target's extension is
83 .dll before calling pe_implied_import_dll(), not the filename
84 itself (which may be a symlink).
86 2002-12-10 Alan Modra <amodra@bigpond.net.au>
88 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
89 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
92 2002-12-08 Alan Modra <amodra@bigpond.net.au>
94 * ldlang.h: Formatting.
96 2002-12-07 Alan Modra <amodra@bigpond.net.au>
98 * ldlang.c (init_os): Ensure sections mentioned in load_base
101 2002-12-05 Alan Modra <amodra@bigpond.net.au>
103 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
104 load_base for orphans that follow a section with load_base set.
106 2002-12-01 H.J. Lu <hjl@gnu.org>
108 * ld.texinfo: Remove the extra `;' in sample version script.
110 2002-11-30 Alan Modra <amodra@bigpond.net.au>
112 * configure.host: Correct dynamic-linker for powerpc64 hosts.
114 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
115 * Makefile.in: Regenerate.
117 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
118 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
119 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
120 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
121 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
122 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
123 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
124 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
125 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
126 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
127 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
128 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
129 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
131 2002-11-27 David O'Brien <obrien@FreeBSD.org>
133 * configure.host: Fix generic FreeBSD configuration entry.
135 2002-11-27 H.J. Lu <hjl@gnu.org>
137 * ld.texinfo: Add the missing `;' to sample version scripts.
139 2002-11-20 Alan Modra <amodra@bigpond.net.au>
141 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
143 2002-11-14 Egor Duda <deo@logos-m.ru>
145 * ldmain.c (main): Make runtime relocs disabled by default. Remove
146 assignment which has no effect.
147 * pe-dll.h (pe_create_import_fixup): Change prototype.
148 * pe-dll.c (make_runtime_pseudo_reloc): New function.
149 (pe_create_runtime_relocator_reference): Ditto.
150 (pe_create_import_fixup): Handle relocations with non-zero addends.
151 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
152 --disable-runtime-pseudo-reloc.
153 (make_import_fixup): Handle relocations with non-zero addends. Create
154 an external reference to _pei386_runtime_relocator symbol if at least
155 one pseudo reloc was created.
156 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
157 --disable-runtime-pseudo-reloc options.
159 2002-11-12 Earl Chew <earl_chew@agilent.com>
161 * ldlang.c (lang_add_section): Discard debugging sections that have
162 been marked SEC_EXCLUDE.
164 2002-11-12 Nick Clifton <nickc@redhat.com>
166 * configure.in (ALL_LINGUAS): Add da.
167 * configure: Regenerate.
168 * po/da.po: New Danish translation.
170 2002-11-12 Alan Modra <amodra@bigpond.net.au>
172 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
173 (LDEMUL_BEFORE_ALLOCATION): Define.
174 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
176 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
178 2002-11-11 Christopher Faylor <cgf@redhat.com>
180 * configure.tgt (LIB_PATH): Default to searching w32api directory under
183 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
185 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
186 of restricted auto-export libs.
188 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
190 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
191 creative library naming instances like, e.g., libstdc++-2.a.
193 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
195 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
196 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
198 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
200 * deffilep.y (def_lex): Handle '@' as first character of an ID.
201 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
202 (make_one): Don't prefix decorated fastcall symbols with '_'.
203 (pe_process_import_defs): Likewise.
204 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
205 symbols to cdecl names or vise-versa.
207 2002-10-13 Eric Kohl <ekohl@rz-online.de>
209 * pe-dll.c (process_def_file): Handle fastcall symbols when
210 generating undecorated aliases. Don't prefix decorated fastcall
212 (fill_exported_offsets): Don't prefix decorated fastcall symbols
215 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
217 * emultempl/aix.em: Use include <> for generated headers.
218 * emultempl/beos.em: Likewise.
219 * emultempl/elf32.em: Likewise.
220 * emultempl/pe.em: Likewise.
221 * ldctor.c: Likewise.
223 * ldfile.c: Likewise.
224 * ldlang.c: Likewise.
227 * ldmain.c: Likewise.
228 * ldmisc.c: Likewise.
229 * ldwrite.c: Likewise.
230 * lexsup.c: Likewise.
232 * pe-dll.c: Likewise.
234 2002-10-23 Jakub Jelinek <jakub@redhat.com>
236 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
237 sections into .rel{,a}.dyn.
239 2002-10-23 Nick Clifton <nickc@redhat.com>
241 * lexsup.c (OPTION_NO_OMAGIC): Define.
242 (ld_options): Add "no-omagic" option.
243 (parse_args): Parse --no-omagic.
244 * ld.texinfo: Document --no-omagic.
245 * NEWS: Mention new option.
247 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
249 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
250 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
252 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
254 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
255 emulation name. Set LIB_PATH only for native tools, and
256 search the ABI-specific versions of NATIVE_LIB_DIRS before the
257 .../lib variants, not instead of them. Mostly copied from...
258 * emulparams/elf32ppc.sh: ... here. Fixed typo.
259 * emulparams/elf64bmip-defs.sh: Backed out.
260 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
261 * emulparams/elf64btsmip.sh: Likewise.
262 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
263 TEXT_DYNAMIC): Removed.
265 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
267 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
268 (GENERATE_SHLIB_SCRIPT): Set to yes.
269 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
270 * emulparams/elf32bmipn32.sh: here.
271 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
272 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
273 * emulparams/elf64bmip-defs.sh: New file. Extend
274 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
275 * emulparams/elf64bmip.sh: Bring in definitions from
277 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
279 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
280 * emulparams/elf64btsmip.sh: Bring in definitions from
282 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
283 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
285 2002-10-16 Jakub Jelinek <jakub@redhat.com>
287 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
288 (s390-*-linux*): Add elf64_s390 emulation if want64.
289 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
290 genscript.sh changes.
291 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
292 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
294 2002-10-15 Alan Modra <amodra@bigpond.net.au>
296 * ldlang.c (load_symbols): Revert last change.
298 2002-10-14 Alan Modra <amodra@bigpond.net.au>
300 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
302 (lang_reasonable_defaults): Don't compare against false.
303 (size_input_section): Likewise.
304 (lang_size_sections_1): Likewise.
305 (lang_do_assignments): Likewise.
306 (lang_add_output): Likewise.
308 * Makefile.am: Run "make dep-am".
309 * Makefile.in: Regenerate.
310 * ldver.c: #include "bfdver.h".
312 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
314 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
316 * scripttempl/elfm68hc12.sc: Likewise.
318 2002-10-11 Alan Modra <amodra@bigpond.net.au>
320 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
322 * ldgram.y (memory_spec): Provide empty action.
323 (section <NAME>): Likewise.
325 2002-10-10 Jakub Jelinek <jakub@redhat.com>
327 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
328 they have OUTPUT_FORMAT not matching actual output format.
329 * ldlang.c (lang_get_output_target): New function.
330 (open_output): Use it.
331 * ldlang.h (lang_get_output_target): New prototype.
333 2002-10-10 Alan Modra <amodra@bigpond.net.au>
335 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
336 when orphan is .rel, .rela when orphan is .rela.
337 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
338 first. Remove outsecname var.
340 2002-10-09 Richard Shann <richard.shann@superh.com>
341 Stephen Clarke <stephen.clarke@superh.com>
343 * Makefile.am: Add eshelf32_linux.o and
344 eshlelf32_linux.o, new emulations for sh64 Linux.
345 * Makefile.in: Regenerate.
346 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
347 * emulparams/shelf32_linux.sh: New file.
348 * emulparams/shlelf32_linux.sh: New file.
350 2002-10-08 H.J. Lu <hjl@gnu.org>
352 * ldlang.c (lang_file_exist): Removed.
353 (new_afile): Revert the last change.
354 * ldlang.h (lang_file_exist): Removed.
355 * lexsup.c (parse_args): Revert the last change.
357 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
359 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
361 (make_one): Create _nm_<symbol> for data only.
363 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
365 * ldlang.c (lang_file_exist): New function.
366 (new_afile): Abort if the filename to be added matches the linker
368 * ldlang.h: Add prototype for lang_file_exist.
369 * lexsup.c (parse_args): Abort if the output filename matches
370 one of the input filenames.
372 2002-10-02 Alan Modra <amodra@bigpond.net.au>
374 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
376 2002-09-30 Alan Modra <amodra@bigpond.net.au>
378 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
379 * scripttempl/elfm68hc11.sc: Likewise.
380 * scripttempl/elfm68hc12.sc: Likewise.
382 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
383 reloc sections just before .rel.plt/.rela.plt.
384 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
385 Only put loadable reloc sections in hold_rel.
387 2002-09-29 H.J. Lu <hjl@gnu.org>
389 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
391 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
393 From "Anita Kulkarni" <AnitaK@kpit.com>
394 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
397 2002-09-25 Alan Modra <amodra@bigpond.net.au>
399 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
401 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
402 SEGMENT_SIZE alignment.
403 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
404 (SEGMENT_SIZE): Define.
406 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
407 (fold_binary): Correct abs - non-abs case.
408 (fold_trinary): New. Split out from exp_fold_tree.
410 2002-09-24 Alan Modra <amodra@bigpond.net.au>
412 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
413 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
414 for start of .data, instead align up to 256M boundary.
415 * scripttempl/aix.sc: Likewise.
417 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
419 * scripttempl/i386go32.sc: Handle bss unique sections.
421 2002-09-21 Alan Modra <amodra@bigpond.net.au>
423 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
425 2002-09-17 Stan Cox <scox@redhat.com>
427 * emulparams/elf32bmipn32-defs.sh: New file.
428 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
429 * emulparams/elf32btsmipn32.sh: Likewise.
430 * emulparams/elf64bmip.sh: Likewise.
431 * emulparams/elf64btsmip.sh: Likewise.
433 2002-09-16 Bruno Haible <bruno@clisp.org>
435 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
437 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
440 2002-09-11 Nick Clifton <nickc@redhat.com>
442 * NEWS: New TI port supports both C4x and C3x series of DSPs.
444 * po/tr.po: Updated Turkish translation.
446 2002-09-06 Jeffrey A Law (law@redhat.com)
448 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
450 2002-09-02 Nick Clifton <nickc@redhat.com>
452 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
454 * emulparams/v850.sh (TEMPLATE_NAME): Define.
456 2002-08-30 Nick Clifton <nickc@redhat.com>
458 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
459 used. Change INSN to start at 0x01000000 and extend for
460 256K (ignoring holes). Start the STACK on a word aligned
462 (.rodata): Start it at the READONLY_START_ADDR.
464 2002-08-30 Alan Modra <amodra@bigpond.net.au>
466 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
468 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
470 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
471 added makefile targets for this file.
472 * Makefile.in: Regenerate.
473 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
474 * NEWS: Mention new port.
476 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
478 * emulparams/tic3xcoff.sh: New file.
479 * emulparams/tic4xcoff.sh: New file.
480 * scripttempl/tic3xcoff.sc: New file.
481 * scripttempl/tic4xcoff.sc: New file.
483 2002-08-28 Alan Modra <amodra@bigpond.net.au>
485 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
486 strtoul and strtoull with bfd_scan_vma.
487 (gld${EMULATION_NAME}_read_file): Likewise.
489 2002-08-28 Alan Modra <amodra@bigpond.net.au>
491 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
493 2002-08-27 Egor Duda <deo@logos-m.ru>
495 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
496 Add symbols for application to access them.
498 2002-08-27 Nick Clifton <nickc@redhat.com>
500 * emultempl/armelf.em: Revert this patch, it is not needed.
502 2002-08-22 Adam Nemet <anemet@lnxw.com>
504 2002-08-20 Dan Kegel <dank@kegel.com>
506 * configure.in: added --with-lib-path argument to ld's configure
508 * ld/NEWS: Document new switch.
509 * ld/README: Mention new switch.
510 * configure: Regenerate.
511 * Makefile.in: Regenerate.
514 2001-04-25 Christopher Faylor <cgf@cygnus.com>
516 * Makefile.in (LIB_PATH): Make configurable.
517 (GENSCRIPTS): Set LIB_PATH in environment.
518 * configure.in: Substitute LIB_PATH.
520 2002-08-22 Adam Nemet <anemet@lnxw.com>
522 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
523 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
524 depending on the type of the function.
525 (arm_elf_convert_thumb_symbol_to_address): New function.
527 2002-08-22 Graeme Peterson <gp@qnx.com>
529 * Makefile.am: Add esh{l}elf_nto.o files.
530 * Makefile.in: Regenerate.
531 * configure.tgt: Add support for sh-**-nto* targets.
532 * emulparams/shelf_nto.sh: New file.
533 * emulparams/shlelf_nto.sh: New file.
535 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
537 * ldlang.c (offsetof): Define if not defined.
539 2002-08-14 H.J. Lu <hjl@gnu.org>
541 * configure.tgt: Always enable 64bit emulations for 32bit
544 2002-08-13 Alan Modra <amodra@bigpond.net.au>
546 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
547 (MAXPAGESIZE): Set to 1.
549 * ld.h (ALIGN_N): Delete.
550 * ldexp.h (align_n): Declare.
551 * ldexp.c (align_n): New function.
552 (fold_binary): Use align_n instead of ALIGN_N.
553 (exp_fold_tree): Likewise.
554 * ldlang.c (lang_size_sections_1): Likewise.
555 (lang_one_common): Likewise.
556 * ld.texinfo (ALIGN): Remove power of 2 restriction.
558 2002-07-31 Graeme Peterson <gp@qnx.com>
560 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
561 * Makefile.am: Add eelf32{l}ppcnto.o files.
562 * Makefile.in: Regenerate.
563 * emulparams/elf32lppcnto.sh: New file.
564 * emulparams/elf32ppcnto.sh: New file.
566 2002-08-07 H.J. Lu <hjl@gnu.org>
568 * ld.texinfo: Document --no-undefined-version.
570 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
571 `script.' fields to 0.
573 * ldmain.c (main): Initialize the allow_undefined_version to
576 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
577 (ld_options): Add --no-undefined-version.
578 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
580 2002-08-07 Nick Clifton <nickc@redhat.com>
582 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
583 an interworking bfd if there are input bfds. (107501)
585 2002-08-06 Alan Modra <amodra@bigpond.net.au>
587 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
590 2002-08-01 Nick Clifton <nickc@redhat.com>
592 * emulparams/armelf.sh: Revert previous delta.
593 * scripttempl/elf.sc: Revert previous delta.
595 2002-07-31 H.J. Lu <hjl@gnu.org>
597 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
600 2002-07-31 H.J. Lu <hjl@gnu.org>
602 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
603 64bit BFD is selected.
605 2002-07-31 H.J. Lu <hjl@gnu.org>
607 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
608 if 64bit BFD is selected.
610 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
612 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
613 link_info.common_skip_ar_aymbols.
614 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
616 * ldmain.c (main): Initialize new field
617 link_info.common_skip_ar_aymbols.
619 2002-07-31 Adam Nemet <anemet@lnxw.com>
621 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
623 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
626 2002-07-31 Nick Clifton <nickc@redhat.com>
628 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
629 of the PDP-11 and 2.11BSD a.out support.
631 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
633 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
635 * Makefile.in: Regenerate.
636 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
637 n32 ABI emulations for these 64 bit targets.
638 * emulparams/elf32bmipn32.sh: Expand comment.
639 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
641 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
643 2002-07-30 Graeme Peterson <gp@qnx.com>
645 * configure.tgt: Add support for arm-*-nto target.
646 * Makefile.am: Add earmnto.o file.
647 * Makefile.in: Regenerate.
648 * NEWS: Mention port of ARM support to QNX.
649 * emulparams/armnto.sh: New file.
651 2002-07-30 Jakub Jelinek <jakub@redhat.com>
653 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
654 for relocatable link.
655 (lang_size_sections_1): Don't make .tbss zero size for relocatable
658 2002-07-26 Bernd Schmidt <bernds@redhat.com>
660 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
663 2002-07-25 Nick Clifton <nickc@redhat.com>
665 * po/sv.po: Updated Swedish translation.
666 * po/es.po: Updated Spanish translation.
667 * po/fr.po: Updated French translation.
669 2002-07-24 Nick Clifton <nickc@redhat.com>
671 * po/sv.po: Updated Swedish translation.
672 * po/es.po: Updated Spanish translation.
674 2002-07-23 Nick Clifton <nickc@redhat.com>
676 * po/fr.po: Updated French translation.
678 2002-07-20 Alan Modra <amodra@bigpond.net.au>
680 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
681 bomb on /DISCARD/ input section.
682 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
683 * emultempl/mmo.em (mmo_place_orphan): Likewise.
685 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
687 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
690 2002-07-16 Denis Chertykov <denisc@overta.ru>
691 Nick Clifton <nickc@redhat.com>
692 Frank Ch. Eigler <fche@redhat.com>
693 John Healy <jhealy@redhat.com>
695 * configure.tgt: Add support for ip2k-elf.
696 * Makefile.am: Add support for ip2k-elf.
697 * Makefile.in: Regenerate.
698 * emulparams/elf32ip2k.sh: New file.
699 * scripttempl/ip2k.sc: New file
700 * NEWS: Mention support for new port.
702 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
704 * NEWS: Add 'Changes in 2.13'.
706 2002-07-14 H.J. Lu <hjl@gnu.org>
708 * ld.texinfo: Document a .symver takes precedence over a
711 2002-07-12 Alan Modra <amodra@bigpond.net.au>
713 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
714 (COMMONPAGESIZE): Define.
716 2002-07-09 Alan Modra <amodra@bigpond.net.au>
718 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
720 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
722 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
723 powerpc-*-openbsd* and sparc64-*-openbsd*.
724 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
725 * Makefile.in: Regenerate.
726 * emulparams/hppaobsd.sh: New file.
728 2002-07-05 Alan Modra <amodra@bigpond.net.au>
730 * ldlang.c (print_wild_statement): Fix output formatting.
732 2002-07-04 Alan Modra <amodra@bigpond.net.au>
734 * ldlang.c: (strip_excluded_output_sections): New function.
735 (lang_process): Call it.
736 (lang_size_sections_1): Revert 2002-06-10 change.
738 2002-07-03 Alan Modra <amodra@bigpond.net.au>
740 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
742 * Makefile.in: Regenerate.
744 2002-07-02 Alan Modra <amodra@bigpond.net.au>
746 * ldfile.c (ldfile_try_open_bfd): Formatting.
748 * ldmisc.c (demangle): Move so that it doesn't intrude between
749 vfinfo comment and body. Add comment.
751 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
753 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
755 2002-07-01 Alan Modra <amodra@bigpond.net.au>
757 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
758 * ldlang.c (entry_sym): Likewise.
759 (ldlang_undef_chain_list_type): Likewise.
760 (lang_finish): Adjust references to entry_symbol.
761 (lang_add_entry): Likewise.
762 (lang_gc_sections): Use link_info.gc_sym_list.
763 (lang_process): Set link_info.gc_sym_list.
764 * ldlex.l: Include bfdlink.h.
765 * ldmain.c (main): Init link_info.gc_sym_list.
766 * emultempl/aix.em: Adjust references to entry_symbol.
767 * emultempl/armcoff.em: Likewise.
768 * emultempl/armelf.em: Likewise.
769 * emultempl/pe.em: Likewise.
770 * emultempl/ppc64elf.em (ppc_after_open): New function.
771 (LDEMUL_AFTER_OPEN): Define.
772 * emulparams/elf64ppc.sh: KEEP .opd sections.
774 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
776 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
777 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
778 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
779 (EEPROM_START_ADDR): Define.
780 (EEPROM_MEMORY): Define.
781 * emulparams/m68hc12elf.sh: Likewise.
782 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
783 section to put soft registers in .page0.
784 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
786 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
788 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
789 section. Add ${RELOCATING-0}.
791 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
793 * emulparams/shelf.sh (STACK_ADDR): Don't define.
794 (OTHER_SECTIONS): Define.
795 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
796 (OTHER_SECTIONS): Undef.
798 2002-06-26 Alan Modra <amodra@bigpond.net.au>
800 * ldmisc.c (demangle): Restore dots stripped from sym name.
802 2002-06-25 H.J. Lu <hjl@gnu.org>
804 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
805 * Makefile.in: Regenerated.
807 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
809 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
810 the size of attached object files, to allow make the object files
811 available via FTP or HTTP and to mention that the mail will be
812 sent to a mailing list.
814 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
816 * ld/configure.host (romp): Drop support.
818 2002-06-18 Chris Demetriou <cgd@broadcom.com>
820 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
821 section flags for SEC_DATA, rather than for SEC_CODE being unset.
823 2002-06-18 Chris Demetriou <cgd@broadcom.com>
825 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
826 format specifier used to print BFD name.
828 2002-06-18 Dave Brolley <brolley@redhat.com>
830 From Catherine Moore, Michael Meissner, Jim Blandy:
831 * emulparams/elf32frv.sh: New file.
832 * configure.tgt: Support frv-*-*.
833 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
834 (eelf32frv.c): New target.
836 2002-06-17 Tom Rix <trix@redhat.com>
838 * emultempl/elf32.em: gld*_get_script: Check for
839 GENERATE_COMBRELOC_SCRIPT.
840 * scripttempl/elfd10v.sc : Fix STACK and INSN.
841 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
843 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
845 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
847 2002-06-12 H.J. Lu <hjl@gnu.org>
849 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
850 false if xvec doesn't match.
852 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
854 * ldlang.c (lang_size_sections_1): Skip removed output sections.
856 2002-06-08 Alan Modra <amodra@bigpond.net.au>
858 * ldexp.c: Replace CONST with const.
859 * ldfile.c: Likewise.
860 * ldfile.h: Likewise.
863 * pe-dll.h: Likewise.
865 2002-06-07 Alan Modra <amodra@bigpond.net.au>
867 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
869 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
871 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
872 to -1 == implicit enable.
873 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
874 initialize link_info.pei386_auto_import to -1 == implicit
876 (gld_${EMULATION_NAME}_parse_args): When processing
877 --enable-auto-import and --disable-auto-import options, use
878 '1' and '0' instead of 'true' and 'false'.
879 (pe_find_data_imports): Only issue message about auto-import
880 when the feature is implicitly enabled. Downgrade message to
881 informational instead of warning.
883 2002-06-07 Alan Modra <amodra@bigpond.net.au>
885 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
887 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
889 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
890 HOSTING_CRT0 and HOSTING_LIBS.
892 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
894 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
896 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
898 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
899 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
901 2002-06-05 Alan Modra <amodra@bigpond.net.au>
903 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
904 SEC_EXCLUDE sections when doing a relocatable link.
906 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
908 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
909 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
910 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
911 (eshlelf64_nbsd.c): New rules.
912 * Makefile.in: Regenerate.
913 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
914 (sh64-*-netbsd*): New targets.
915 * emulparams/shelf32_nbsd.sh: New file.
916 * emulparams/shelf64_nbsd.sh: New file.
917 * emulparams/shlelf32_nbsd.sh: New file.
918 * emulparams/shlelf64_nbsd.sh: New file.
920 2002-06-04 Alan Modra <amodra@bigpond.net.au>
922 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
924 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
926 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
927 C++ constructors/destructors, loosely based on the m68hc11 port.
929 2002-05-31 Alan Modra <amodra@bigpond.net.au>
931 * Makefile.in: Regenerate.
932 * aclocal.m4: Regenerate.
933 * config.in: Regenerate.
934 * configure: Regenerate.
936 2002-05-31 Graeme Peterson <gp@qnx.com>
938 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
939 (ei386nto.c): Add rule.
940 * Makefile.in: Regenerate.
941 * configure.tgt: Add i[3456]86-*-nto-qnx*.
942 * emulparams/i386nto.sh: New file.
944 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
946 * NEWS: Add entry for VAX ELF support.
948 2002-05-29 Matt Thomas <matt@3am-software.com>
949 Jason Thorpe <thorpej@wasabisystems.com>
951 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
953 (evaxnbsd.c): New rules.
954 * Makefile.in: Regenerate.
955 * configure.tgt (vax-*-netbsdelf*)
957 (vax-*-netbsd*): New targets.
958 * emulparams/elf32vax.sh: New file.
959 * emulparams/vaxnbsd.sh: New file.
961 2002-05-29 Adam Nemet <anemet@lnxw.com>
963 * emultempl/armelf.em (arm_elf_after_open): Don't determine
964 bfd_for_interwork, instead add glue sections to each input bfd.
965 (bfd_for_interwork): New global.
966 (arm_elf_set_bfd_for_interworking): New function.
967 (arm_elf_before_allocation): Use it.
969 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
971 * Makefile.am: Add DLX make target.
972 * configure.tgt: Add DLX configuration.
973 * Makefile.in: Regenerate.
974 * emulparams/elf32_dlx.sh: New file
975 * scripttempl/dlx.sc: New file
977 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
979 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
980 * Makefile.in: Regenerate.
981 * emulparams/elf_chaos.sh: Use elf_chaos script.
982 * scripttempl/elf_chaos.sc: New file.
984 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
986 * ldlang.c (lang_size_sections_1): Move check for conflicting load
987 addresses and regions from here...
988 (lang_get_regions): ...to this new function.
989 (lang_leave_output_section_statement): Use lang_get_regions.
990 (lang_leave_overlay): Likewise.
991 * mri.c (mri_draw_tree): Pass null as last argument to
992 lang_leave_output_section_statement.
993 * emultempl/elf32.em (gld*_place_orphan): Likewise.
994 * emultempl/mmo.em (mmo_place_orphan): Likewise.
995 * emultempl/pe.em (gld*_place_orphan): Likewise.
997 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
999 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1001 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1003 * ldemul.c: Fix formatting.
1004 * ldfile.c: Likewise.
1005 * pe-dll.c: Likewise.
1006 * pe-dll.h: Likewise.
1008 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1010 * ldlang.c (lang_process): Formatting, grammar.
1012 * ldlex.l: Use #include "" instead of <> for local header files.
1014 2002-05-24 TAMURA Kent <kent@netbsd.org>
1016 * configure.tgt: Add a target for i386-netbsdpe.
1018 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1020 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1021 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1022 output section if necessary. Handle .tbss.
1023 (lang_size_sections): Clear _raw_size for .tbss section
1024 (it allocates space in PT_TLS segment only).
1025 * ldwrite.c (build_link_order): Build link order for .tbss too.
1027 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1029 * configure.in: Correct spelling of AC_PREREQ.
1031 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1033 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1035 (autofilter_objlist): Add crtbegin.o, crtend.o.
1037 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1039 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1040 (longopts): Add new option --exclude-libs.
1041 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1042 (gld_${EMULATION_NAME}_parse_args): Use it.
1043 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1044 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1045 from whole archives.
1046 (pe_dll_add_excludes): Set excludes->type.
1047 (auto_export): Add new variable libname and set to archive basename if
1048 abfd. Use it when filtering default and user-specified libarary
1049 excludes. Let string "ALL" mean all libs when filtering user-specified
1051 * ld.texinfo: Document --exclude-libs.
1053 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1055 * ldemul.c (ldemul_new_vers_pattern): New function.
1056 * ldemul.h (ldemul_new_vers_pattern): Declare.
1057 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1058 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1059 * emultempl/ppc64elf.em (dotsyms): New static var.
1060 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1061 (LDEMUL_NEW_VERS_PATTERN): Define.
1062 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1063 (PARSE_AND_LIST_LONGOPTS): Likewise.
1064 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1065 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1067 * emultempl/armcoff.em: Likewise.
1068 * emultempl/armelf_oabi.em: Likewise.
1069 * emultempl/beos.em: Likewise.
1070 * emultempl/elf32.em: Likewise.
1071 * emultempl/generic.em: Likewise.
1072 * emultempl/gld960.em: Likewise.
1073 * emultempl/gld960c.em: Likewise.
1074 * emultempl/linux.em: Likewise.
1075 * emultempl/lnk960.em: Likewise.
1076 * emultempl/m68kcoff.em: Likewise.
1077 * emultempl/mipsecoff.em: Likewise.
1078 * emultempl/pe.em: Likewise.
1079 * emultempl/sunos.em: Likewise.
1080 * emultempl/ticoff.em: Likewise.
1081 * emultempl/vanilla.em: Likewise.
1083 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1085 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1086 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1087 (LIB_SEARCH_DIRS): No need to use "tr".
1088 (COMPILE_IN): Only set for native targets.
1089 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1090 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1091 * configure.tgt (powerpc*): Set tdir_*.
1092 (powerpcle*): Correct targ_extra_emuls.
1093 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1094 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1096 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1098 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1099 calling lang_add_entry.
1101 2002-05-21 H.J. Lu (hjl@gnu.org)
1103 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1105 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1107 * ld.texinfo: Updated for --allow-multiple-definition and
1110 * ldmain.c (main): Initialize the allow_multiple_definition
1113 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1114 (ld_options): Add --allow-multiple-definition.
1115 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1117 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1119 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1120 (earmelfb_nbsd.c): New rule.
1121 * Makefile.in: Regenerate.
1122 * configure.tgt (armeb-*-netbsdelf*): New target.
1123 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1124 (arm-*-netbsd*): Likewise.
1125 * emulparams/armelfb_nbsd.sh: New file.
1127 2002-05-18 Tom Rix <trix@redhat.com>
1129 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1132 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1134 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1135 * Makefile.in: Regenerate.
1136 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1138 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1140 * emulparams/avr1.sh: New file.
1141 * emulparams/avr2.sh: New file.
1142 * emulparams/avr3.sh: New file.
1143 * emulparams/avr4.sh: New file.
1144 * emulparams/avr5.sh: New file.
1145 * scripttempl/avr.sc: New file.
1147 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1149 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1150 (lang_place_orphans): Abort if just_syms_flag.
1152 2002-05-10 Tom Rix <trix@redhat.com>
1154 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1155 architecture and machine information in the output bfd.
1156 (gld*_before_parse): Remove old arch and machine code.
1157 (choose_target): Rename to gld*_choose_target.
1158 (rtld): Change type to int.
1159 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1160 objects in XCOFF archives.
1161 * ldfile.h: Update copyright date.
1163 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1165 * ldmain.c (main): Enable -z combreloc by default.
1167 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1169 * Makefile.am: Honour DESTDIR.
1170 * Makefile.in: Regenerate.
1172 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1174 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1175 (lang_enter_overlay): Remove the last two parameters.
1176 (lang_leave_overlay): Take them here instead.
1177 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1178 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1179 than lang_enter_overlay.
1180 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1181 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1182 (lang_size_sections_1): Evaluate it.
1183 (lang_leave_output_section_statement): Rework LMA lookup.
1184 (overlay_lma, overlay_nocrossrefs): Remove.
1185 (lang_enter_overlay): Remove LMA and crossref arguments.
1186 (lang_enter_overlay_section): Don't set the LMA here.
1187 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1188 assignment to the last section's update_dot_tree. Unconditionally
1189 use the load and run-time regions specified in the OVERLAY statement.
1190 Likewise the first section's LMA. Only set the other sections' LMAs
1191 when no load region is given.
1193 2002-05-06 Nick Clifton <nickc@redhat.com>
1195 * po/sv.po: New translation.
1197 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1199 * emultempl/hppaelf.em (build_section_lists): New function.
1200 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1201 and build_section_lists.
1203 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1205 * ld.h: Fix formatting.
1206 * ldexp.c: Likewise.
1207 * ldfile.c: Likewise.
1208 * ldlang.c: Likewise.
1209 * ldmain.c: Likewise.
1210 * lexsup.c: Likewise.
1211 * pe-dll.c: Likewise.
1213 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1215 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1216 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1217 (build_section_lists): Do output_section tests here.
1219 2002-04-30 Tom Rix <trix@redhat.com>
1221 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1223 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1225 Long branch stubs, multiple stub sections.
1226 * emultempl/ppc64elf.em: Include ldctor.h.
1227 (stub_file): New var.
1228 (group_size): New var.
1229 (ppc_create_output_section_statements): New function.
1230 (struct hook_stub_info): New.
1231 (hook_in_stub): New function.
1232 (ppc_add_stub_section): New function.
1233 (ppc_layout_sections_again): New function.
1234 (build_section_lists): New function.
1235 (gld${EMULATION_NAME}_finish): Rewrite.
1236 (real_func): New var.
1237 (ppc_for_each_input_file_wrapper): New function.
1238 (ppc_lang_for_each_input_file): New function.
1239 (lang_for_each_input_file): Define.
1240 (PARSE_AND_LIST_PROLOGUE): Define.
1241 (PARSE_AND_LIST_LONGOPTS): Define.
1242 (PARSE_AND_LIST_OPTIONS): Define.
1243 (PARSE_AND_LIST_ARGS_CASES): Define.
1244 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1246 2002-04-30 Tom Rix <trix@redhat.com>
1248 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1249 -blibpath, -bnolibpath support.
1251 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1253 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1254 (eelf32ppcwindiss.c): New target.
1255 * Makefile.in: Regenerated.
1256 * configure.tgt: Add support for powerpc-*-windiss.
1257 * emulparams/elf32ppcwindiss.sh: New file.
1259 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1261 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1262 * ldexp.c (exp_print_token): Add "infix_p" argument.
1263 (exp_print_tree): Update accordingly.
1265 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1267 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1268 * Makefile.in: Regenerate.
1269 * mpw-elfmips.c: Delete.
1270 * mpw-eppcmac.c: Delete.
1271 * mpw-esh.c: Delete.
1272 * mpw-idtmips.c: Delete.
1274 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1276 * emulparams/shelf32.sh (MACHINE): Now sh5.
1278 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1280 * ldgram.y: Fix syntax warning.
1282 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1284 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1285 to prevent "-n" from being taken as an abbreviation for
1286 "--no-pipeline-knowledge".
1288 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1290 * ldlang.c (lang_size_sections_1): Don't complain about
1291 SEC_NEVER_LOAD sections having no memory region specified.
1293 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1295 2002-04-07 matthew green <mrg@redhat.com>
1297 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1299 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1301 * dep-in.sed: Cope with absolute paths.
1302 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1304 * Makefile.in: Regenerate.
1306 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1308 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1310 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1312 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1313 is smaller than maximum, round dot up to common page boundary.
1315 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1317 * configure.host: Set up for generic hosts first, then tweak as
1318 necessary in more specific targets.
1319 (HOSTING_LIBS): Include libgcc_eh.a if found.
1321 2002-03-23 Andreas Jaeger <aj@suse.de>
1323 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1325 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1327 * Makefile.am: Run "make dep-am".
1328 * Makefile.in: Regenerate.
1330 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1332 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1334 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1336 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1337 add the symbol to the linker hash table immediately.
1338 (lang_place_undefineds): Split symbol creation out..
1339 (insert_undefined): ..to here.
1341 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1343 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1344 the contents of the buffer returned from basename function will are
1345 getting overwritten while still being used.
1347 2002-03-18 Jan Hubicka <jh@suse.cz>
1348 Andreas Jaeger <aj@suse.de>
1349 Andreas Schwab <schwab@suse.de>
1351 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1352 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1353 set libraries to default to lib64 paths.
1355 2002-03-18 Tom Rix <trix@redhat.com>
1357 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1358 * configure.tgt : Same.
1359 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1360 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1361 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1362 emulation parameters for better -b32, -b64 support.
1363 * emulparms/aixrs6.sh : Same.
1364 * emulparms/ppcmacos.sh : Same.
1365 * emultempl/aix.em (choose_target) : Use new emulation parameters
1366 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1367 * Makefile.in : Regenerate.
1369 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1371 * po/fr.po: Updated version.
1373 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1375 * ldmain.c (main): Move .text readonly flag fudges from here..
1376 * ldlang.c (lang_process): ..to here.
1378 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1380 * ldlang.c (lang_check): Remove the word size check added in last
1381 change. Treat emitrelocations case as for relocatable links.
1383 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1385 * po/fr.po: Updated version.
1387 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1389 * ldlang.c (lang_check): Do relocatable link checks first, so that
1390 warn_mismatch can't override. Check compatible and word size too.
1392 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1394 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1396 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1398 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1401 2002-03-04 H.J. Lu <hjl@gnu.org>
1403 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1404 .fini_array in the data segment.
1406 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1408 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1410 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1412 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1413 .init_array, and .fini_array.
1415 2002-02-20 Andreas Schwab <schwab@suse.de>
1417 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1418 .IA64_unwind* in a relocatable link.
1420 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1422 * NEWS: Mark 2.12 branch.
1424 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1426 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1427 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1429 2002-02-18 Tom Rix <trix@redhat.com>
1431 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1432 (gld*_before_allocation): Same.
1433 (gld*_create_output_section_statements): Generate
1434 __rtinit if run time linking. Add librtl.a to the link.
1435 (gld*_read_file): Clean.
1437 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1439 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1441 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1443 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1444 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1445 and eelf64alpha_fbsd.
1446 * Makefile.in: Regenerate.
1447 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1448 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1449 use a FreeBSD-specific emulation rather than the psABI one.
1450 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1451 for all FreeBSD ELF systems.
1452 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1454 * emulparams/elf32ppc_fbsd.sh: Likewise.
1455 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1456 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1457 * emulparams/elf64alpha_fbsd.sh: Likewise.
1458 * emulparams/elf_i386_fbsd.sh: Likewise.
1459 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1461 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1463 * po/tr.po: Updated version.
1465 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1467 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1470 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1472 * emultempl/mmo.em (mmo_after_open): Don't call
1473 _bfd_mmix_check_all_relocs when producing ELF output.
1475 2002-02-15 Richard Henderson <rth@redhat.com>
1477 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1478 definition. Emit a unop+nop pair.
1480 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1482 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1483 for presence of .MMIX.reg_contents.linker_allocated before early
1486 * NEWS: Mention support for MMIX.
1488 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1490 Support arbitrary length fill patterns.
1491 * ld.texinfo (Output Section Fill): Describe fill expressions.
1492 (FILL): Refer to the above.
1493 * ldexp.h (etree_value_type): Add "str" field.
1494 (union etree_union): Add "str" to "value" struct.
1495 (exp_bigintop): Declare.
1496 (exp_get_fill): Declare.
1497 * ldexp.c: Include "safe-ctype.h".
1498 (exp_intop): Set value.str to NULL.
1499 (exp_bigintop): New function.
1500 (new_rel): Pass in "str", and set new.str from it.
1501 (new_rel_from_section): Set new.str to NULL.
1502 (fold_name): Adjust calls to new_rel.
1503 (exp_fold_tree): Likewise.
1504 (exp_get_fill): New function.
1505 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1506 (INT): Returns a "bigint". Adjust all code handling INTs.
1507 (fill_opt): Returns a "fill".
1508 (fill_exp): Split out of fill_opt, use for FILL.
1509 * ldlang.h (struct _fill_type): New.
1510 (fill_type): Move typedef to ldexp.h.
1511 (lang_output_section_statement_type): "fill" is now a pointer.
1512 (lang_fill_statement_type): Likewise.
1513 (lang_padding_statement_type): Likewise.
1514 (lang_add_fill): Now takes a "fill_type *" param.
1515 (lang_leave_output_section_statement): Likewise.
1516 (lang_do_assignments): Likewise.
1517 (lang_size_sections): Likewise.
1518 (lang_leave_overlay_section): Likewise.
1519 (lang_leave_overlay): Likewise.
1520 * ldlang.c: Include ldgram.h after ldexp.h.
1521 (lang_output_section_statement_lookup): Adjust for fill_type change.
1522 (print_fill_statement): Likewise.
1523 (print_padding_statement): Likewise.
1524 (insert_pad): Now takes a "fill_type *" arg.
1525 (size_input_section): Likewise.
1526 (lang_size_sections_1): Likewise.
1527 (lang_size_sections): Likewise.
1528 (lang_do_assignments): Likewise.
1529 (lang_add_fill): Likewise.
1530 (lang_leave_output_section_statement): Likewise.
1531 (lang_leave_overlay_section): Likewise.
1532 (lang_leave_overlay): Likewise.
1533 Adjust all callers of the above function.
1534 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1535 starting with "0X" as well as "0x". Return bigint.str for hex
1536 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1537 Always use base 16 for numbers starting with "$".
1538 * ldmain.c: Include ldgram.h after ldexp.h.
1539 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1540 of bfd_fill_link_order.
1541 * pe-dll.c: Adjust lang_do_assignments calls.
1542 * emultempl/elf32.em: Likewise.
1543 * emultempl/hppaelf.em: Likewise.
1544 * emultempl/ppc64elf.em: Likewise.
1545 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1546 lang_add_assignment call.
1547 * emultempl/pe.em: Likewise.
1549 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1551 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1552 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1553 the pattern in question is not a regexp.
1554 * ldlang.c: Likewise.
1555 * ldlang.h: Likewise.
1556 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1558 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1560 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1561 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1562 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1563 * ldexp.c (exp_data_seg): New variable.
1564 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1565 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1566 (exp_fold_tree): Handle DATA_SEGMENT_END.
1567 Pass allocation_done when recursing instead of hardcoding
1568 lang_allocating_phase_enum.
1569 * ldexp.h (exp_data_seg): New.
1570 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1571 (lang_size_sections): New.
1572 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1573 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1574 if COMMONPAGESIZE is defined.
1575 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1576 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1577 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1578 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1579 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1582 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1584 * Makefile.in: Regenerate.
1586 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1588 * lexsup.c: Remove strtoul declaration.
1590 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1592 * ldmain.c: Add prototype for main ().
1593 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1594 * emultempl/lnk960.em (lnk960_choose_target): Function should
1597 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1599 * ldlang.c (entry_section): New initialised variable.
1600 (lang_finish): Use it.
1601 * ldlang.h (entry_section): Declare.
1602 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1603 entry_section to ".opd".
1605 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1607 * ld.texinfo (Options): Add back in -nostdlib documentation,
1608 which had been inadvertently removed.
1610 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1612 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1613 register section vma to a sane value after emitting error. Make
1614 fatal conditions cause program exit when emitting message.
1616 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1618 * configure.tgt: Add or32-*-rtems target.
1620 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1622 Contribute sh64-elf.
1623 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1624 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1625 in OTHER_RELOCATABLE_SECTIONS.
1626 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1627 * emulparams/shelf32.sh (STACK_ADDR): Define.
1628 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1629 (OTHER_SECTIONS): this. Removed stack settings.
1630 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1631 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1632 2001-03-12 DJ Delorie <dj@redhat.com>
1633 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1634 relaxing if any shmedia or mixed sections are found.
1635 2001-03-07 DJ Delorie <dj@redhat.com>
1636 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1637 einfo. Gracefully decline to output to non-elf formats.
1638 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1639 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1640 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1641 * emulparams/shelf32.sh: Ditto.
1642 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1643 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1645 2001-01-10 Ben Elliston <bje@redhat.com>
1646 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1647 non-portable shell constructs. From Hans-Peter Nilsson.
1648 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1649 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1650 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1651 dependencies to the shell script include chain.
1652 * Makefile.in: Regenerate.
1653 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1654 * emultempl/sh64elf.em: Update and tweak comments.
1655 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1656 make a .cranges section SEC_IN_MEMORY.
1657 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1658 * emultempl/sh64elf.em
1659 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1660 .cranges section found to be necessary; continue and set stored
1661 section contents flags for sections with non-mixed contents.
1662 Use a struct sh64_section_data container and sh64_elf_section_data
1663 to store contents-type flags.
1664 Remove unused update of "isec".
1665 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1666 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1667 access contents-type flags. Assert that the associated container
1668 is initialized. Use that container, not elf_gp_size, to hold size
1669 of linker-generated cranges contents.
1670 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1671 * emultempl/sh64elf.em
1672 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1673 there's already a .cranges section. When section flag difference
1674 is found, don't NULL-check cranges a second time. Tweak comments.
1675 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1676 merging, not max size, as size of ld-generated .cranges contents.
1677 Don't set ELF section flags in output section. When checking for
1678 needed .cranges descriptors, don't use a variable; compare
1679 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1681 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1682 * emultempl/sh64elf.em: New file.
1683 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1684 * Makefile.in: Regenerate.
1685 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1686 (OTHER_RELOCATING_SECTIONS): Ditto.
1687 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1688 * emulparams/shlelf32.sh: Stub out all settings except
1689 OUTPUT_FORMAT. Source shelf32.sh.
1690 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1691 OTHER_RELOCATING_SECTIONS.
1692 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1693 * emulparams/shlelf64.sh: Stub out all settings except
1694 OUTPUT_FORMAT. Source shelf64.sh.
1695 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1696 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1698 (DATA_START_SYMBOLS): Define, provide ___data.
1699 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1700 for consecutive .data section.
1701 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1702 section after .data section.
1703 * emulparams/shlelf64.sh: Ditto.
1704 * emulparams/shelf32.sh: Ditto.
1705 (ALIGNMENT): Define to 8.
1706 * emulparams/shelf32.sh: Ditto.
1707 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1708 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1709 built-in linker scripts.
1710 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1711 * emulparams/shlelf64.sh: New.
1712 * emulparams/shelf64.sh: New.
1713 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1715 * Makefile.am: Add support for shlelf64 and shelf64.
1716 * Makefile.in: Regenerate.
1717 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1718 * configure.tgt (sh64-*-elf*): Add shelf as default.
1719 Add shlelf to targ_extra_emuls.
1720 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1721 * emulparams/shelf32.sh: New file.
1722 * emulparams/shlelf32.sh: New file.
1723 * Makefile.am: Add support for shlelf32 and shelf32.
1724 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1725 * Makefile.in: Regenerate.
1727 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1729 * ldlang.c (lang_reset_memory_regions): Rename from
1730 reset_memory_regions. Change all callers. Make public.
1731 * ldlang.h (lang_reset_memory_regions): Prototype.
1732 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1733 lang_reset_memory_regions before lang_size_sections.
1734 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1735 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1737 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1739 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1740 arithmetic when checking for too many global registers.
1742 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1744 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1745 (ehppanbsd.c): New rule.
1746 * Makefile.in: Regenerate.
1747 * configure.tgt (hppa*-*-netbsd*): New target.
1748 * emulparams/hppalinux.sh: Add comment to check other files
1749 that source this file it is modified, and list which
1751 * emulparams/hppanbsd.sh: New file.
1753 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1755 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1758 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1760 Support on-demand global register allocation from
1761 R_MMIX_BASE_PLUS_OFFSET relocs.
1762 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1763 mmix_set_reg_section_vma. Call
1764 _bfd_mmix_finalize_linker_allocated_gregs.
1765 (mmix_before_allocation): New function.
1766 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1767 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1768 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1769 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1770 before .MMIX.reg_contents.
1771 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1772 (mmo_after_open): New function.
1773 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1774 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1775 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1777 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1779 * emulparams/or32.sh: New file.
1780 * emulparams/or32elf.sh: New file.
1781 * scripttempl/or32.sc: New file.
1782 * configure.tgt : Add support for or32.
1783 * configure: Regenerate
1784 * Makefile.am: Add support for or32.
1785 * Makefile.in: Regenerate.
1786 * NEWS: Mention support for or32.
1787 * po/ld.pot: Regenerate.
1789 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1790 Mitch Lichtenberg <mpl@broadcom.com>
1792 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1793 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1794 reloc creation (ld --embedded-relocs).
1796 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1798 * configure: Regenerated.
1800 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1802 * Makefile.am (install): Depend on install-info.
1803 * Makefile.in: Regenerate.
1805 2002-01-26 Christian Rose <menthos@menthos.com>
1807 * ldmain.c (main): Use full sentences to ease translation.
1809 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1811 * po/fr.po: Updated version.
1813 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1815 * po/es.po: Updated version.
1817 2002-01-25 Andreas Jaeger <aj@suse.de>
1819 * ldlex.l (yy_input): Correct error check.
1821 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1823 * ldmisc.c (demangle): Put back dots when string not demangled.
1825 2002-01-22 Richard Henderson <rth@redhat.com>
1827 * emulparams/elf64alpha.sh (NOP): Use unop.
1829 2002-01-21 Andreas Jaeger <aj@suse.de>
1831 * ldlex.l: Use fread instead of read.
1833 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1835 * configure.tgt (ia64-*-netbsd*): New target.
1837 2002-01-21 H.J. Lu <hjl@gnu.org>
1839 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1841 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1843 2002-01-18 Andreas Jaeger <aj@suse.de>
1845 * ldver.c (ldversion): Update year.
1847 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1849 * po/ld.pot: Regenerate.
1851 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1853 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1854 * Makefile.in: Regenerate.
1855 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1856 * emultempl/ppc64elf.em: New file.
1858 2002-01-15 DJ Delorie <dj@redhat.com>
1860 * scripttempl/pe.sc: Add support for constructor priorities.
1862 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1864 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1865 * emulparams/avr23xx.sh: Likewise.
1866 * emulparams/avr4433.sh: Likewise.
1867 * emulparams/avr44x4.sh: Likewise.
1868 * emulparams/avr85xx.sh: Likewise.
1869 * emulparams/avrmega103.sh: Likewise.
1870 * emulparams/avrmega161.sh: Likewise.
1871 * emulparams/avrmega603.sh: Likewise.
1872 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1874 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1876 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1877 archive is excluded.
1879 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1881 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1882 (eshelf_nbsd.c): New rule.
1883 (eshlelf_nbsd.c): New rule.
1884 * Makefile.in: Regenerate.
1885 * configure.tgt (sh*le-*-netbsdelf*): New target.
1886 (sh*-*-netbsdelf*): New target.
1887 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1888 * ld/emulparams/shelf_nbsd.sh: New emulation.
1889 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1891 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1893 * po/es.po: New file: Spanish translation.
1894 * configure.in (ALL_LINGUAS): Add es.
1895 * configure: Regenerate.
1897 2002-01-06 John Marshall <jmarshall@acm.org>
1899 * ld.texinfo: Note that --emit-relocs is currently only
1900 implemented for ELF.
1902 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1904 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1905 of bfd_section_list_remove and bfd_section_list_insert macros.
1906 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1907 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1909 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1911 * configure.tgt (x86_64-*-netbsd*): New target.
1913 2001-12-21 Tom Rix <trix@redhat.com>
1915 (gld*_create_output_section_statements): New function.
1916 For -binitfini support.
1917 * emultempl/aix.em (gld*_before_parse): Fix comment.
1918 * emultempl/aix.em (gld*_parse_args): Fix comment.
1920 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1922 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1924 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1926 * configure.tgt (arm-*-netbsdelf*): Add target.
1927 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1928 * emulparams/armelf_nbsd.sh: Added.
1929 * Makefile.am: Add rules for earmelf_nbsd.
1930 * Makefile.in: Regenerate.
1932 2001-12-19 Andreas Jaeger <aj@suse.de>,
1933 Susanne Oberhauser <froh@suse.de>
1935 * configure.host: Add rules for x86_64-*linux-gnu. Change
1936 s390x-linux entry to use gcc to report configuration, replace gcc
1937 with $CC in s390-linux
1939 2001-12-19 Andreas Jaeger <aj@suse.de>
1941 * ld.texinfo (VERSION): Fix markup.
1943 2001-12-18 matthew green <mrg@eterna.com.au>
1945 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1946 (m68kelfnbsd.c): New rule.
1947 * Makefile.in: Regenerate.
1948 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1949 (m68*-*-netbsd*4k*): .. this.
1950 (m68*-*-netbsdelf*): New target.
1951 (m68*-*-netbsd*): Also include ELF support.
1952 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1953 * emulparams/m68kelfnbsd.sh: New emulation.
1955 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1957 * ldgram.y (vers_node): Support anonymous version tags.
1958 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1959 tag is not defined together with non-anonymous versions.
1960 * ld.texinfo: Document it.
1962 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1964 * po/tr.po: New file: Turkish translation.
1965 * configure.in (ALL_LINGUAS): Add tr.
1966 * configure: Regenerate.
1968 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1970 * Makefile.am: Add rules for eelf64alpha_nbsd.
1971 * Makefile.in: Regenerate.
1972 * configure.tgt (alpha*-*-netbsd*): Set
1973 targ_emul to elf64alpha_nbsd.
1974 * emulparams/elf64alpha_nbsd.sh: Added.
1976 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1978 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1979 section_tail when fiddling with section list.
1980 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1981 broken into separate strings to make translation easier.
1982 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1983 fiddling with section list.
1984 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1986 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1988 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1990 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1992 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1994 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1996 * emultempl/elf32.em (finish): Supply output_bfd
1997 to bfd_elf*_discard_info.
1998 (OPTION_EH_FRAME_HDR): Define.
1999 (longopts): Add --eh-frame-hdr.
2000 (parse_args): Handle it.
2001 (list_options): Add --eh-frame-hdr to help.
2002 * emultempl/hppaelf.em (finish): Supply output_bfd
2003 to bfd_elf*_discard_info.
2004 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2006 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2008 * lexsup.c (parse_args): Don't pass shortopts to second call to
2009 getopt functions. Restore optind rather than decrementing before
2010 second call. Remove errind as it now duplicates last_optind.
2012 2001-12-11 Christopher Faylor <cgf@redhat.com>
2014 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2016 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2017 Richard Henderson <rth@redhat.com>
2019 * Makefile.am: Add support for xstormy16.
2020 * configure.tgt: Add support for xstormy16.
2021 * Makefile.in: Regenerate.
2022 * emulparams/elf32xstormy16.sh: New file.
2023 * scripttempl/xstormy16.sc: New file.
2025 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2027 * Makefile.in (LIB_PATH): Make configurable.
2028 (GENSCRIPTS): Set LIB_PATH in environment.
2029 * configure.in: Substitute LIB_PATH.
2030 * configure: Regenerate.
2031 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2032 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2034 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2036 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2037 describing the -N option so that it is easier to translate into
2040 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2042 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2043 statements describing a single option with a single, newline
2044 escaped fprintf. This allows better translation into other
2047 * ldmain.c (add_archive_element): Combine multiple strings
2048 into a single string to permit better translation into other
2051 2001-12-05 Tom Rix <trix@redhat.com>
2053 * Makefile.am: Remove eaixppc64.
2054 * Makefile.in: Regenerate.
2056 2001-12-04 Tom Rix <trix@redhat.com>
2058 * emultempl/aix.em (choose_target): Change default target to
2059 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2061 (gld*_read_file): Fix typo.
2062 (change_symbol_mode): Add prototype.
2065 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2066 * emulparams/aixrs6.sh : Same.
2067 * emulparams/ppcmacos.sh : Same.
2068 * emulparams/aixppc64.sh : Delete file.
2069 * emultempl/aix.em : Formatting changes.
2071 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2073 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2074 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2076 (OTHER_END_SYMBOLS): Fix formatting.
2077 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2078 (OTHER_END_SYMBOLS): Fix formatting.
2080 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2082 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2084 2001-12-02 Tom Rix <trix@redhat.com>
2086 * configure.tgt : Remove eaixppc64 emulations.
2087 * Makefile.in : Remove eaixppc64.c
2088 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2089 (ldemul_default_target): Same.
2090 * emultempl/gld960.em (gld960_choose_target): Same.
2091 * emultempl/gld960c.em (gld960_choose_target): Same.
2092 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2093 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2094 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2095 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2096 * emultempl/aix.em (choose_target): New function. Handle emulation of
2099 2001-11-27 H.J. Lu <hjl@gnu.org>
2101 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2102 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2103 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2104 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2105 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2106 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2107 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2108 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2110 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2113 (REL_SDATA): Likewise.
2114 (REL_SBSS): Likewise.
2115 (REL_SDATA2): Likewise.
2116 (REL_SBSS2): Likewise.
2117 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2120 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2122 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2124 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2126 2001-11-22 H.J. Lu <hjl@gnu.org>
2128 * Makefile.in: Regenerated with automake based on automake
2129 1.4-8 in RedHat 7.1.
2131 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2133 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2134 (config.status): Delete rule.
2135 Add extra dependencies to cover sourced emulparams files.
2136 * Makefile.in: Regenerate.
2138 * scripttempl/elf.sc: Order <section>, <section>.* and
2139 corresponding linkonce sections as seen in input files.
2140 Formatting fixes. Zero vma of all sections if not relocating.
2141 (STACK): Define and insert if STACK_ADDR defined.
2142 (OTHER_RELOCATING_SECTIONS): Delete.
2143 (OTHER_END_SYMBOLS): Define.
2144 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2145 (OTHER_READWRITE_SECTIONS): Likewise.
2146 (OTHER_GOT_SECTIONS): Likewise.
2147 (OTHER_SDATA_SECTIONS): Likewise.
2148 (OTHER_BSS_SECTIONS): Likewise.
2149 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2150 (OTHER_READWRITE_SECTIONS): Likewise.
2151 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2152 (OTHER_READWRITE_SECTIONS): Likewise
2154 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2155 (STACK_ADDR): Define.
2156 * emulparams/armelf_oabi.sh: As for armelf.sh.
2157 * emulparams/elf32mcore.sh: As for armelf.sh.
2158 * emulparams/h8300elf.sh: As for armelf.sh.
2159 * emulparams/mn10200.sh: As for armelf.sh.
2160 * emulparams/shelf.sh: As for armelf.sh.
2162 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2163 (OTHER_END_SYMBOLS): Define.
2164 * emulparams/m32relf.sh: As for elf32fr30.sh.
2165 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2166 * emulparams/h8300self.sh: As for elf32fr30.sh.
2168 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2169 defines with RELOCATING test.
2170 (OTHER_SDATA_SECTIONS): Likewise.
2171 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2172 (OTHER_END_SYMBOLS): ..this.
2173 * emulparams/crislinux.sh: As for criself.sh.
2175 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2177 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2178 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2179 normal and linkonce sections as seen in input files.
2180 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2181 (TEXT_DYNAMIC): Likewise.
2182 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2183 (OTHER_SDATA_SECTIONS): Likewise.
2184 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2185 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2186 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2187 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2188 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2189 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2190 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2191 sections as seen in input files.
2192 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2193 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2195 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2196 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2197 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2198 (OTHER_SECTIONS): Instead, use this..
2199 (OTHER_END_SYMBOLS): ..and this.
2201 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2202 * emulparams/elf32bsmip.sh: Likewise.
2203 * emulparams/elf32btsmip.sh: Likewise.
2204 * emulparams/elf32ebmip.sh: Likewise.
2205 * emulparams/elf32lmip.sh: Likewise.
2206 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2207 * emulparams/elf32lsmip.sh: Likewise.
2208 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2209 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2210 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2211 * emulparams/elf64btsmip.sh: Likewise.
2212 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2213 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2214 * emulparams/elf32ppclinux.sh: Likewise.
2215 * emulparams/elf32ppcsim.sh: Likewise.
2216 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2217 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2218 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2219 * emulparams/h8300self.sh: Likewise.
2220 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2221 * emulparams/sh.sh: Comment.
2222 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2223 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2224 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2226 2001-11-21 David Heine <dlheine@tensilica.com>
2227 Alan Modra <amodra@bigpond.net.au>
2229 * ldlang.c (map_input_to_output_sections): Replace "break"
2230 accidentally removed with 2001-08-03 change.
2231 (lang_gc_sections_1): Likewise.
2233 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2235 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2237 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2239 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2240 of false when calling lang_size_sections.
2241 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2243 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2245 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2246 function when LDEMUL_FINISH isn't set to the same name. Don't
2247 call ${LDEMUL_FINISH}.
2248 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2249 * emultempl/armelf.em (arm_elf_finish): Call
2250 gld${EMULATION_NAME}_finish.
2251 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2252 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2253 hppaelf_layout_sections_again if necessary.
2254 (need_laying_out): New var.
2255 (hppaelf_layaout_sections_again): Rename to
2256 hppaelf_layout_sections_again. Clear need_laying_out.
2257 (PARSE_AND_LIST_OPTIONS): Format text.
2259 2001-11-14 H.J. Lu <hjl@gnu.org>
2261 * emultempl/armelf.em (arm_elf_finish): Renamed from
2262 gld${EMULATION_NAME}_finish.
2263 (LDEMUL_FINISH): Set to arm_elf_finish.
2265 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2267 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2268 (struct ld_emulation_xfer_struct): Use it.
2270 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2272 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2273 additional symbols referenced by newer crt0.o files from HP.
2275 2001-11-12 Anthony Green <green@redhat.com>
2277 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2279 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2281 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2282 * Makefile.in: Regenerate.
2284 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2286 * ld.texinfo: Use @command for commands, @option for options.
2287 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2289 * Makefile.in: Rebuild.
2291 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2293 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2294 Add support for targets.
2296 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2298 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2299 * configure: Regernate.
2300 * po/fr.po: New file.
2301 * po/sv.po: New file.
2303 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2305 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2306 as little endian default and to support big endian.
2308 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2310 * ld.texinfo (Options): Document new option, -nostdlib.
2311 * lexsup.c (OPTION_NOSTDLIB): New definition.
2312 (ld_options): Add entry for "nostdlib".
2313 (parse_args): Handle OPTIONS_NOSTDLIB.
2314 * ldfile.c (ldfile_add_library_path): Don't add directories
2315 to the search path if they weren't specified on the command line
2316 and -nostdlib was specified.
2317 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2319 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2321 * lexsup.c (parse_args): Prevent infinite parsing loop when
2322 "-rpath.a" is specified on the command line.
2323 Replace calls to fprintf with calls to einfo.
2325 2001-10-31 John Marshall <jmarshall@acm.org>
2327 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2328 appear only once across all the linker scripts involved in a link
2329 invocation no longer applies. Make the documentation reflect
2332 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2334 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2336 (sh-*-linux*): Added targ_extra_libpath.
2338 2001-10-31 David Heine <dlheine@tensilica.com>
2340 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2341 for padding statements.
2343 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2345 * configure.tgt (mmix-*-*): New target.
2346 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2347 Add dependencies to match.
2348 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2349 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2350 scripttempl/mmo.sc: New files.
2351 * gen-doc.texi: @set MMIX.
2352 * ld.texinfo: Ditto.
2353 [MMIX] Add MMIX node.
2354 * Makefile.in: Regenerate.
2356 2001-10-29 Kazu Hirata <kazu@hxi.com>
2358 * ldlang.c: Fix a comment typo.
2360 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2362 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2363 entries, and match *-*-linux*.
2365 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2367 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2368 with ldlex_script, ldlex_popstate.
2369 (ifile_p1): Likewise.
2370 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2372 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2373 to 1. Don't BEGIN(SCRIPT).
2374 (lex_redirect): Similarly.
2375 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2377 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2379 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2380 __EH_FRAME_END__ and accept eh frames into data section.
2381 Add ctor and dtor sections.
2383 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2385 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2386 (auto-export): Fix indentation.
2388 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2390 * pe-dll.c (autofilter_objectlist): Add startup objects
2392 (auto-export): Constify char * p.
2393 Extract file basename and use strcmp rather than ststr
2396 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2398 * ldmain.c (get_emulation): Improve comment about the handling
2401 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2403 * po/POTFILES.in: Regenerate.
2405 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2407 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2408 -z nocopyreloc and -z nocombreloc usage strings.
2410 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2412 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2415 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2417 * scripttempl/armaout.sc: Place .bss section after end of aligned
2418 data section to match behaviour of aout code in constructrion of
2421 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2423 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2424 startup files for mingw32 dlls to list.
2426 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2428 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2430 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2432 * configure.tgt (targ): Add arm9e-*-elf.
2434 2001-10-05 H.J. Lu <hjl@gnu.org>
2436 * genscripts.sh: Fix a typo in the last change.
2438 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2440 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2441 -z nocombreloc in usage.
2443 2001-10-03 Jim Blandy <jimb@redhat.com>
2445 * genscripts.sh: Include a comment at the top of each generated
2446 script, explaining its purpose.
2448 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2450 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2451 * NEWS: Mention -z nocopyreloc.
2452 * ld.texinfo (Options): Describe nocopyreloc.
2454 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2456 * configure: Regenerate.
2458 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2460 * ldver.h (ld_program_version): Remove declaration.
2461 * lexsup.c (parse_args): Move printing of copyright message..
2462 * ldver.c (ldversion): .. to here.
2463 Use BFD_VERSION_STRING in place of BFD_VERSION.
2464 (ld_program_version): Remove.
2465 * Makefile.am (Makefile): Depend on bfd/configure.in.
2467 * Makefile.in: Regenerate.
2469 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2471 * Makefile.am: Update dependencies with "make dep-am".
2472 * Makefile.in: Regenerate.
2474 2001-09-29 John Reiser <jreiser@BitWagon.com>
2476 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2477 * lexsup.c: Add --no-define-common commandline option.
2478 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2479 * ldlex.l: Likewise.
2480 * ld.h: Add command_line.inhibit_common_definition.
2481 * ldmain.c (main): Initialize.
2482 * ld.texinfo: Document.
2484 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2486 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2488 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2490 * ldmisc.c (USE_STDARG): Remove.
2491 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2496 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2497 declarations. Update copyright.
2499 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2501 * pe-dll.c: Remove obsoleted declaration of
2502 pe_get_data_import_dll_name.
2503 (pe_create_import_fixup): Fix thinko.
2505 * ld.texinfo(enable-auto-import): Clarify the explanation.
2507 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2509 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2510 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2511 DLL_SUPPORT controlled code.
2513 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2515 * emultempl/pe.em(pe_data_import_dll): Make static.
2516 (pe_get_data_import_dll_name): New accessor function.
2517 * pe-dll.c(pe_create_import_fixup): call
2518 pe_get_data_import_dll_name() from pe.em, instead of
2519 directly accessing pe_data_import_dll variable from pe.em.
2521 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2523 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2524 (def_file_add_directive): Use ISSPACE instead of isspace.
2525 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2526 isdigit/isxdigit/isalpha/isalnum.
2527 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2528 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2529 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2530 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2532 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2533 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2535 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2536 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2537 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2538 (ctor_prio): Use ISDIGIT instead of isdigit.
2539 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2540 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2541 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2543 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2544 (stricpy): Use TOLOWER instead of isupper/tolower.
2545 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2546 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2547 (lex_warn_invalid): Use ISPRINT instead of isprint.
2548 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2549 (main): For gettext, also set the LC_CTYPE locate facet.
2550 (add_keepsyms_file): Use ISSPACE instead of isspace.
2551 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2552 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2553 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2554 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2555 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2556 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2557 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2558 (quoteput): Use ISSPACE instead of isspace.
2559 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2562 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2564 * deffilep.y (def_stash_module): Constify "name" param.
2566 * pe-dll.c: Replace CONST with const throughout.
2567 (quick_symbol): Constify "n1", "n2", "n3" params.
2568 (make_singleton_name_thunk): Constify "import" param. Make
2569 "buffer_len" a size_t.
2570 (make_import_fixup_entry): Constify "name", "fixup_name",
2571 "dll_symname" params.
2572 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2573 (pe_get32): Likewise.
2574 (pe_implied_import_dll): Likewise.
2576 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2577 (sort_by_section_name): Likewise.
2579 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2580 (make_import_fixup): Cast printf arg, rel->address to long rather
2582 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2584 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2586 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2587 defines BufferSize. Increase buffer size by one.
2589 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2591 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2593 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2595 * configure.tgt: Add arm-openbsd target.
2597 2001-09-12 H.J. Lu <hjl@gnu.org>
2599 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2601 (ALL_64_EMULATIONS): Here.
2602 * Makefile.in: Regenerated.
2604 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2606 * emultempl/pe.em(make_import_fixup): change signature to
2607 take asection as well as arelec; we need this for proper
2608 error reporting. Only call pe_create_import_fixup() if
2609 there is no attempt to add a constant addend to the reloc;
2610 otherwise, report error condition.
2611 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2612 since final argument is a pointer to make_import_fixup().
2613 Change call to cb() to match make_import_fixup() signature.
2614 (make_import_fixup_mark): make buffer_len unsigned.
2615 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2617 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2619 * ld.texinfo: add verbose documentation for auto-import
2620 direct-addressing workaround, to compliment the terse
2623 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2625 * scripttempl/v850.sc: Add gcc_except_table sections.
2627 2001-09-11 Jeffrey A Law (law@cygnus.com)
2629 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2630 * emulparams/h8300self.sh: Similarly.
2632 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2634 * ld.texinfo (Options, --stack): Correct default value for stack
2637 2001-09-05 Tom Rix <trix@redhat.com>
2639 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2641 2001-09-03 Andreas Jaeger <aj@suse.de>
2643 * emultempl/beos.em: Declare prototypes for comparions functions,
2646 2001-09-02 Andreas Jaeger <aj@suse.de>
2648 * emultempl/aix.em: Add missing prototype.
2649 * emultempl/lnk960.em: Likewise.
2650 * emultempl/vanilla.em: Likewise.
2651 * emultempl/armcoff.em: Likewise.
2652 * emultempl/armelf_oabi.em: Likewise.
2653 * emultempl/beos.em: Likewise.
2654 * emultempl/gld960c.em: Likewise.
2655 * emultempl/gld960.em: Likewise.
2657 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2658 for prototype declaration.
2660 2001-08-31 Eric Christopher <echristo@redhat.com>
2661 Jason Eckhardt <jle@redhat.com>
2663 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2665 2001-08-31 Andreas Jaeger <aj@suse.de>
2667 * emultempl/pe.em: Add missing prototypes.
2668 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2669 pe_find_data_imports.
2670 (pr_sym): Add unused attribute.
2672 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2674 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2675 default from coff to elf.
2677 2001-08-29 Jeff Law <law@redhat.com>
2679 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2681 * emulparams/h8300self.sh: Similarly.
2683 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2685 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2687 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2688 * configure.tgt (h8300-*-elf*): New case.
2689 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2690 * emulparams/h8300self.sh: New file.
2691 * Makefile.in: Regenerated.
2693 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2695 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2698 2001-08-27 Linus Nordberg <linus@swox.com>
2699 Alan Modra <amodra@bigpond.net.au>
2701 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2702 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2704 * Makefile.in: Regenerate.
2705 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2706 entries to correct alphabetical position.
2707 * emulparams/elf64ppc.sh: New.
2708 * emulparams/elf64lppc.sh: New.
2710 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2712 * ldmain.c (main): Declare BSIZE as static.
2714 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2716 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2717 into .rel.dyn resp. .rela.dyn if combreloc.
2718 (get_script): If .x linker script is equal to .xn, only put it
2719 once into the binary.
2720 Add .xc and .xsc scripts.
2721 (parse_args): Handle -z combreloc and -z nocombreloc.
2722 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2723 For .xc and .xsc scripts put all .rel* or .rela* input sections
2724 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2725 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2727 Strip trailing whitespace from script.
2728 Generate .xc and .xsc scripts if requested.
2729 * ldmain.c (main): Initialize link_info.combreloc and
2730 link_info.spare_dynamic_tags.
2731 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2732 (ld_options): Add --spare-dynamic-tags option.
2733 (parse_args): Likewise.
2734 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2735 * ldint.texinfo: Document .xc and .xsc linker scripts.
2736 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2738 2001-08-22 H.J. Lu <hjl@gnu.org>
2740 * emulparams/elf32fr30.sh: Add a newline.
2742 2001-08-21 Andreas Jaeger <aj@suse.de>
2744 * deffilep.y: Add missing prototypes.
2745 * pe-dll.c: Likewise.
2747 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2749 * ldlang.c (insert_pad): Fix typos in last patch.
2751 * ldlang.c: When traversing lang_statement_union_type lists,
2752 consistently use "header.next" rather than "next".
2753 * mpw-eppcmac.c: Likewise.
2754 * emultempl/beos.em: Likewise.
2755 * emultempl/hppaelf.em: Likewise.
2756 * emultempl/pe.em: Likewise.
2757 * ldlang.h (union lang_statement_union): Remove "next" field.
2759 * ldlang.c (insert_pad): Use offsetof macro.
2760 (lang_size_sections): Always neuter padding statements.
2761 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2763 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2764 passed to lang_size_sections.
2765 (pe_exe_fill_sections): Likewise.
2766 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2767 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2769 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2771 * emultempl/aix.em: Formatting fixes.
2773 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2775 * ldlang.c (insert_pad): Make use of an existing pad statement if
2776 available. Move code calculating alignment, adjusting section
2777 alignment power, and adjusting dot to ..
2778 (size_input_section): .. here. Remove unused relax param.
2779 (lang_size_sections): Change boolean `relax' param to boolean *.
2780 Adjust call to size_input_section. Make use of insert_pad to
2781 place pad after the assignment statement. If relaxing, zap
2783 (reset_memory_regions): Reset output_bfd section sizes too.
2784 (relax_again): Move to..
2785 (lang_process): ..here. Adjust call to lang_size_sections, and
2786 remove duplicated code.
2787 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2789 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2791 * ld.texinfo: Document that fill values now use the four least
2793 * emulparams/elf32fr30.sh (NOP): Update.
2794 * emulparams/elf32mcore.sh: Likewise.
2795 * emulparams/elf64_s390.sh: Likewise.
2796 * emulparams/elf_i386.sh: Likewise.
2797 * emulparams/elf_i386_be.sh: Likewise.
2798 * emulparams/elf_i386_chaos.sh: Likewise.
2799 * emulparams/elf_i386_ldso.sh: Likewise.
2800 * emulparams/elf_s390.sh: Likewise.
2801 * emulparams/elf_x86_64.sh: Likewise.
2802 * emulparams/i386moss.sh: Likewise.
2803 * emulparams/i386nw.sh: Likewise.
2804 * emulparams/m68kelf.sh: Likewise.
2805 * scripttempl/elf.sc: Update NOP comment.
2806 * scripttempl/elfi370.sc: Likewise.
2807 * scripttempl/elfm68hc11.sc: Likewise.
2808 * scripttempl/elfm68hc12.sc: Likewise.
2809 * scripttempl/nw.sc: Likewise.
2811 2001-08-15 Tom Rix <trix@redhat.com>
2813 * ldgram.y (saved_script_handle): Initialize to NULL.
2814 * ldmain.c (main): Change check on saved_script_handle.
2816 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2818 * emultempl/elf32.em: Formatting fixes.
2819 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2820 looking at sec->owner.
2821 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2822 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2823 unused code, and reorganize orphan section placement code.
2825 * ldlang.c (wild_doit): Rename to lang_add_section.
2826 * ldlang.h: Here too.
2827 * mpw-elfmips.c: And here.
2828 * emultempl/beos.em: And here.
2829 * emultempl/elf32.em: And here.
2830 * emultempl/hppaelf.em: And here.
2831 * emultempl/pe.em: And here.
2833 2001-08-13 Richard Henderson <rth@redhat.com>
2835 * emultempl/needrelax.em: New file.
2836 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2837 * Makefile.am (eelf64_ia64.c): Depend on it.
2838 * Makefile.in: Rebuild.
2840 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2842 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2843 output_section is set non-NULL.
2845 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2846 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2847 needlessly create an output_section_statement. Treat a correctly
2848 named output_section_statement with NULL bfd_section as compatible.
2850 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2852 * emultempl/generic.em: Support EXTRA_EM_FILE.
2853 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2854 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2855 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2856 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2857 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2858 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2859 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2860 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2861 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2862 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2864 2001-08-12 Richard Henderson <rth@redhat.com>
2866 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2867 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2868 scripttempl/v850.sc: Keep .jcr data.
2870 2001-08-12 H.J. Lu <hjl@gnu.org>
2871 Andrew Haley <aph@cambridge.redhat.com>
2872 Nick Clifton <nickc@redhat.com>
2874 * ldgram.y (had_script): Change name to saved_script_handle.
2875 Change type to file handle.
2876 * ld.h (had_script): Rename and retype.
2877 * ldfile.c (ldfile_open_command_file): Save the file handle
2878 used in saved_script_handle.
2879 * lexsup.c (parse_args): Do not allow -c option to alter
2880 saved_script_handle.
2881 * ldmain.c (main): Print out the linker script used if
2882 --verbose is given. Check saved_script_handle to obtain the
2883 external linker script used, or if NULL, dump the builtin
2885 * ld.texinfo: Document that --verbose now dumps the linker
2886 script used, regardless of whether it was an internal or an
2889 2001-08-10 Andreas Jaeger <aj@suse.de>
2891 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2893 * configure: Regenerate.
2895 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2897 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2899 * scripttempl/elf.sc: Move non-text .dynamic section before
2900 .plt/.got/.sdata* group.
2901 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2902 (OTHER_SDATA_SECTIONS): Add.
2903 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2905 * emulparams/crislinux.sh: Likewise.
2906 * emulparams/elf32b4300.sh: Likewise.
2907 * emulparams/elf32bmip.sh: Likewise.
2908 * emulparams/elf32bmipn32.sh: Likewise.
2909 * emulparams/elf32bsmip.sh: Likewise.
2910 * emulparams/elf32btsmip.sh: Likewise.
2911 * emulparams/elf32ebmip.sh: Likewise.
2912 * emulparams/elf32elmip.sh: Likewise.
2913 * emulparams/elf32l4300.sh: Likewise.
2914 * emulparams/elf32lmip.sh: Likewise.
2915 * emulparams/elf32lsmip.sh: Likewise.
2916 * emulparams/elf32ltsmip.sh: Likewise.
2917 * emulparams/elf64bmip.sh: Likewise.
2918 * emulparams/elf64btsmip.sh: Likewise.
2919 * emulparams/elf64ltsmip.sh: Likewise.
2921 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2923 * genscripts.sh: Source the emulparams script before each output
2924 script is generated so that variables like `RELOCATING' may affect
2925 variables defined in the emulparams script.
2927 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2929 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2932 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2933 ie. iterate over wild_statement.section_list.
2934 (gld${EMULATION_NAME}_place_orphan): Likewise.
2936 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2938 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2939 .fini[0-4] sections used by _exit
2940 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2941 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2942 * scripttempl/elfm68hc11.sc: Likewise.
2944 2001-08-03 H.J. Lu <hjl@gnu.org>
2946 * emultempl/beos.em (init): Add the missing initialization.
2948 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2950 * ld.texinfo (Input Section Basics): Clarify ordering of output
2952 * ldlang.c (callback_t): Add wildcard_list param.
2953 (walk_wild_section): Remove "section" param. Rewrite for
2954 lang_wild_statement_type change. Remove unique_section_p test.
2955 (walk_wild_file): Remove "section" param.
2956 (walk_wild): Remove "section" and "file" params.
2957 (lang_gc_wild): Likewise.
2958 (wild): Likewise. Modify for lang_wild_statement_type change.
2959 (wild_sort): Likewise. Add "sec" param.
2960 (gc_section_callback): Likewise.
2961 (output_section_callback): Likewise. Do unique_section_p test.
2962 (map_input_to_output_sections): Modify call to wild.
2963 (lang_gc_sections_1): Likewise.
2964 (print_wild_statement): Modify for lang_wild_statement_type
2966 (lang_add_wild): Replace filename, filenames_sorted param with
2967 filespec. Replace section_name, sections_sorted,
2968 exclude_filename_list with section_list.
2969 * ldlang.h (lang_add_wild): Here too.
2970 (lang_wild_statement_type): Replace section_name, sections_sorted,
2971 and exclude_filename_list with section_list.
2972 * ldgram.y (current_file): Delete.
2973 (%union): Add wildcard_list.
2974 (file_NAME_list): Set type to wildcard_list. Build a linked list
2975 rather than calling lang_add_wild for each entry.
2976 (input_section_spec_no_keep): Call lang_add_wild here instead.
2977 * ld.h (struct wildcard_list): Declare.
2978 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2980 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2982 * ldmain.c (main): initialize link_info.pei386_auto_import
2983 * pe-dll.c: new tables for auto-export filtering
2984 (auto_export): change API, pass abfd for contextual filtering.
2985 Loop thru tables of excluded symbols instead of comparing
2988 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2990 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2991 static variable current_sec (static struct sec *). Add
2992 forward declaration for add_bfd_to_link.
2993 (process_def_file): Don't export undefined symbols. Do not
2994 export symbols starting with "_imp__". Call auto_export()
2996 (pe_walk_relocs_of_symbol): New function.
2997 (generate_reloc): add optional extra debugging
2998 (pe_dll_generate_def_file): eliminate extraneous initial blank
3000 (make_one): enlarge symtab to make room for __nm__ symbols
3001 (DATA auto-import support).
3002 (make_singleton_name_thunk): New function.
3003 (make_import_fixup_mark): New function.
3004 (make_import_fixup_entry): New function.
3005 (pe_create_import_fixup): New function.
3006 (add_bfd_to_link): Specify that 'name' argument is a CONST
3008 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3009 declare new functions pe_walk_relocs_of_symbol and
3010 pe_create_import_fixup.
3011 * emultempl/pe.em: add new options --enable-auto-import,
3012 --disable-auto-import, and --enable-extra-pe-debug.
3013 (make_import_fixup): New function.
3014 (pe_find_data_imports): New function.
3015 (pr_sym): New function.
3016 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3017 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3020 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3022 * ld.texinfo: add additional documentation for
3023 --export-all-symbols. Document --out-implib,
3024 --enable-auto-image-base, --disable-auto-image-base,
3025 --dll-search-prefix, --enable-auto-import, and
3026 --disable-auto-import.
3027 * ldint.texinfo: Add detailed documentation on auto-import
3030 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3032 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3035 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3037 * Makefile.am: Update dependencies with "make dep-am".
3038 * Makefile.in: Regenerate
3040 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3042 * ldcref.c (check_section_sym_xref): New function.
3043 (check_nocrossrefs): Call it.
3044 (check_nocrossref): Interate over h->refs here instead of..
3045 (check_refs): ..here. Pass in the symbol name, section, and bfd
3046 rather than hash_entry pointers.
3047 (struct check_refs_info): Keep symbol name rather than hash entry.
3049 (check_reloc_refs): Tweak for above changes in check_refs_info.
3050 Only report references to section syms when symname is NULL to
3051 prevent duplicate messages for the same reloc.
3053 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3055 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3056 available. Do not print NULL trees.
3057 (exp_print_token): Print unknown tokens with values > 126 as
3058 decimal values not ASCII characters.
3060 * ldlang.c (lang_leave_overlay): If a region is specified assign
3061 it to all sections inside the overlay unless they have been
3062 assigned to the own, non-default, memory region.
3064 * README: Add header for consistency with other README files.
3066 2001-07-14 H.J. Lu <hjl@gnu.org>
3068 * emultempl/elf32.em (output_prev_sec_find): Never return
3069 bfd_abs_section_ptr, bfd_com_section_ptr nor
3070 bfd_und_section_ptr.
3072 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3074 * Makefile.am (em32relf.c): Change dependency from generic.em to
3076 * Makefile.in: Regenerate.
3078 2001-07-14 matthew green <mrg@eterna.com.au>
3080 * configure.tgt (i386-*-netbsdelf*): New target.
3081 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3083 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3085 * emultempl/elf32.em (output_prev_sec_find): New.
3086 (place_orphan): Use it.
3088 2001-07-11 H.J. Lu <hjl@gnu.org>
3090 * ldmain.c (main): Fix typos in the last change.
3092 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3094 * ldmain.c (main): Disallow -F and -f without -shared.
3096 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3098 * emultempl/pe.em (after_open): Check for the output_bfd not
3099 having any coff_data structure allocated to it.
3101 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3103 * emultempl/elf32.em: Do not assuming that contents of the buffer
3104 returned from basename function will remain unchanged accross other
3107 2001-07-03 H.J. Lu <hjl@gnu.org>
3109 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3110 2001-07-03. It creates dynamic entries even for static binaries.
3112 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3114 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3115 (DYNAMIC): Use it to reserve few dynamic entries for
3118 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3120 * emulparams/hppa64linux.sh: New file.
3121 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3122 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3123 (ehppa64linux.c): Add rule to make it.
3125 * Makefile.in: Regenerate.
3127 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3129 * ld.texinfo (Options, -r): Mention restrictions when using
3130 different object formats.
3132 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3134 * ldlang.c (lang_check): Emit fatal error if relocatable link
3135 between different object flavours with relocations in input.
3137 2001-06-19 H.J. Lu <hjl@gnu.org>
3139 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3140 (--version-script): Mention the language support.
3142 2001-06-19 H.J. Lu <hjl@gnu.org>
3144 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3146 2001-06-18 H.J. Lu <hjl@gnu.org>
3148 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3149 (diststuff): Add $(MANS).
3150 * Makefile.in: Regenerated.
3154 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3156 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3157 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3158 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3159 * ld.h (args_type): Remove member export_dynamic. All users
3160 changed to use struct bfd_link_info member.
3162 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3163 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3164 * Makefile.in: Regenerate.
3166 2001-06-18 H.J. Lu <hjl@gnu.org>
3168 * ldlang.c (init_os): Add the newline to the einfo call.
3169 (lang_check): Likewise.
3170 (lang_do_version_exports_section): Likewise.
3172 2001-06-15 H.J. Lu <hjl@gnu.org>
3174 * lexsup.c (parse_args); Save optind to report unrecognized
3177 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3179 * ldlang.c (lang_check): Emit fatal error if relocatable link
3180 between different object flavours.
3182 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3183 Set new link_info member export_dynamic.
3184 * ldmain.c (main): Initialize new link_info member export_dynamic.
3186 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3188 * ldlang.c (walk_wild): Only call walk_wild_file if
3189 lookup_name returns something.
3190 (lookup_name): If load_symbols fails, return NULL.
3191 (load_symbols): Change to a boolean function.
3192 (open_input_bfds): If load_symbols fails then do not make the
3195 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3197 * ldlang.c (record_bfd_errors): Remove.
3199 * emultempl/aix.em: Fix copyright dates.
3201 2001-06-07 Andreas Jaeger <aj@suse.de>
3203 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3204 (TEXT_START_ADDR): Likewise.
3206 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3208 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3210 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3212 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3214 2001-05-31 H.J. Lu <hjl@gnu.org>
3216 * ldlang.c (open_input_bfds): Don't change the bfd error
3217 handler whilst loading symbols.
3219 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3221 * configure.tgt: Remove i370-mvs architecture, it is not currently
3224 2001-05-25 H.J. Lu <hjl@gnu.org>
3226 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3227 like emulparams/aixppc.sh.
3229 2001-05-25 H.J. Lu <hjl@gnu.org>
3231 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3232 setting of output_filename after bfd_scan_arch.
3233 * emultempl/pe.em: Likewise.
3235 2001-05-25 H.J. Lu <hjl@gnu.org>
3237 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3238 like emulparams/aixppc.sh.
3240 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3241 instead of ${srcdir}/emultempl/stringify.sed.
3243 2001-05-25 Timothy Wall <twall@oculustech.com>
3245 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3248 2001-05-25 Alan Modra <amodra@one.net.au>
3250 * configure.host: Replace linuxoldld with linux*oldld.
3251 * configure.tgt: Likewise.
3253 2001-05-24 H.J. Lu <hjl@gnu.org>
3255 * emultempl/stringify.sed: Removed again.
3257 2001-05-24 H.J. Lu <hjl@gnu.org>
3259 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3260 (gld${EMULATION_NAME}_before_parse): Initialize
3261 ldfile_output_architecture, ldfile_output_machine and
3262 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3263 * emultempl/beos.em: Likewise.
3264 * emultempl/elf32.em: Likewise.
3265 * emultempl/linux.em: Likewise.
3266 * emultempl/mipsecoff.em: Likewise.
3267 * emultempl/pe.em: Likewise.
3268 * emultempl/sunos.em: Likewise.
3270 2001-05-24 Tom Rix <trix@redhat.com>
3272 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3273 udate import file format.
3274 (change_symbol_mode) New, same
3275 (is_syscall) New, same
3276 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3277 * emulparams/aixppc64.sh : same
3278 * emulparams/aixrs6.sh : same
3279 * emulparams/ppcmacos.sh : same
3280 * emultempl/aix.em : use strtoull to parse options
3281 * Makefile.am : add eaixppc64 emulation for xcoff64
3282 * Makefile.in : same
3283 * configure.tgt : same
3285 * scripttempl/aix.sc : default text section offset to 0x10000000
3286 default data section offset to 0x20000000
3287 add .sv3264 and .sv64 pseudo sections
3288 loader and debug sections use the currect section offset.
3290 * emultempl/aix.em : Add xcoff64 support
3291 Add -binitfini support
3292 (gld${EMULATION_NAME}_before_parse) -binitfini
3293 (gld${EMULATION_NAME}_parse_args) same
3294 (gld${EMULATION_NAME}_before_allocation) format change for special
3297 * emulparams/aixppc64.sh : New file for xcoff64 support
3299 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3301 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3302 variable to avoid non-portable shell construct.
3304 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3306 * ldmain.c (get_emulation): Add -mips5 command line argument.
3308 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3310 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3311 (ELF_INTERPRETER_NAME): Define it.
3312 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3314 * configure.tgt (targ_emul, targ_extra_emuls)
3315 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3316 as primary, elf_i386 as extra.
3317 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3318 (eelf_i386_ldso.c): New rule.
3319 * Makefile.in: Rebuilt.
3321 2001-05-22 Nick Clifton <nickc@redhat.com>
3323 * lexsup.c (ld_options): Allow -I to be an alias for
3324 --dynamic-linker. This is for Solaris compatability.
3325 * ld.texinfo: Document that -I can be used.
3328 2001-05-16 Alan Modra <amodra@one.net.au>
3330 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3331 whether an input section is the first one assigned to an output
3333 Assorted formatting fixes.
3335 2001-05-14 DJ Delorie <dj@delorie.com>
3337 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3338 * Makefile.in: Ditto.
3340 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3342 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3343 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3345 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3347 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3349 * ldlang.c (lang_process): Call bfd_merge_sections.
3351 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3353 * ldgram.y: Fix typo.
3355 2001-05-03 H.J. Lu <hjl@gnu.org>
3357 * emultempl/elf32.em: Include "libiberty.h".
3358 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3359 basename of the bfd filename.
3360 (gld${EMULATION_NAME}_stat_needed): Likewise.
3361 (gld${EMULATION_NAME}_try_needed): Likewise.
3362 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3364 2001-05-02 H.J. Lu <hjl@gnu.org>
3366 * emultempl/pe.em: Include <ctype.h>.
3368 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3370 * emulparams/elf32openrisc.sh: New file.
3372 * Makefile.am: Add OpenRISC target.
3373 * Makefile.in: Regenerated.
3375 * configure.tgt: Add openrisc-*-* mapping.
3377 2001-05-02 Nick Clifton <nickc@redhat.com>
3379 * emultempl/aix.em: Replace buystring with xstrdup.
3380 * emultempl/beos.em: Replace buystring with xstrdup.
3382 2001-05-02 H.J. Lu <hjl@gnu.org>
3384 * ldfile.c: Include "libiberty.h".
3385 * ldlex.l: Likewise.
3387 * ldmisc.c (buystring): Removed.
3388 * ldmisc.h: Likewise.
3390 * ldfile.c: Replace buystring with xstrdup.
3391 * ldlang.c: Likewise.
3392 * ldlex.l: Likewise.
3393 * ldmain.c: Likewise.
3394 * ldmisc.c: Likewise.
3395 * lexsup.c: Likewise.
3396 * mpw-eppcmac.c: Likewise.
3398 2001-04-30 Andreas Jaeger <aj@suse.de>
3400 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3402 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3404 * ldlang.c (load_symbols): Give emulation a chance
3405 to process unrecognized file before fatal error is
3406 reported, not after.
3408 2001-04-27 Sean McNeil <sean@mcneil.com>
3410 * configure.tgt: Add arm-vxworks target.
3411 * scripttempl/armcoff.sc: Support .text or .data as a section name
3415 2001-04-13 J.T. Conklin <jtc@redback.com>
3417 * ld.texinfo: Document --fatal-warnings.
3420 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3421 warnings have been turned into errors.
3422 * lexsup.c (OPTION_WARN_FATAL): Define.
3423 (ld_options): Entry for --fatal-warnings.
3424 (parse_args): Handle OPTION_WARN_FATAL.
3425 * ld.h (ld_config_type): Add fatal_warnings field.
3427 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3429 * ldmain.c (main): Default to discard_sec_merge.
3430 * lexsup.c (OPTION_DISCARD_NONE): Define.
3431 (ld_options): Add --discard-none.
3432 (parse_args): Handle OPTION_DISCARD_NONE.
3433 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3434 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3435 all its input sections match.
3437 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3439 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3440 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3441 (eelf32ltsmip.c): New target.
3442 (eelf64btsmip.c): Likewise.
3443 (eelf64ltsmip.c): Likewise.
3444 * Makefile.in: Regenerated.
3446 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3448 (mips*-*-linux-gnu*): Likewise.
3450 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3452 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3454 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3457 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3459 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3460 correct value of __Stext here.
3461 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3464 * emulparams/crislinux.sh: Remove FIXME.
3466 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3468 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3469 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3471 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3473 * configure.tgt (cris-*-*): Change default emulation to criself.
3474 (cris-*-*aout*): New rule.
3476 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3478 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3479 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3481 2001-03-26 Andreas Jaeger <aj@suse.de>
3483 * ld.texinfo (Overview): Fix syntax in texi code.
3485 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3487 * ld.texinfo: Put @c man indications to generate the ld man page.
3488 When generating man, define all the variables. Define SEEALSO
3489 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3490 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3491 (ld.1): Generate from ld.texinfo.
3492 * Makefile.in: Regenerate.
3494 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3496 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3497 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3499 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3501 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3502 is an absolute path look only for this file and not along the path.
3504 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3506 * emultempl/elf32.em (OPTION_GROUP): New macro.
3507 Add new option Bgroup to longopts.
3508 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3509 (gld*_list_options): Add -Bgroup and -z defs.
3510 * ld.1: Document -Bgroup and -z defs.
3511 * ld.texinfo: Likewise.
3513 2001-03-07 Michael Meissner <meissner@redhat.com>
3515 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3516 with sections created by -fdata-sections.
3517 (.dynbss,.bss): Ditto.
3519 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3521 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3522 after_allocation_default, not gld..._before_allocation.
3524 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3526 * configure.in (BFD_VERSION): New.
3527 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3528 * configure: Regenerate.
3529 * Makefile.am: Run "make dep-am"
3530 * Makefile.in: Regenerate.
3532 2001-02-26 Timothy Wall <twall@cygnus.com>
3534 * emulparams/elf64_aix.sh: Add additional read-only sections;
3535 uncomment lines which are now required.
3537 2001-02-26 H.J. Lu <hjl@gnu.org>
3539 * ldlang.c (open_input_bfds): Set the bfd error handler so
3540 that problems can be caught whilst loading symbols.
3541 (record_bfd_errors): New function: Report BFD errors and mark
3542 the executable output as being invalid.
3544 2001-02-22 Timothy Wall <twall@cygnus.com>
3546 * configure.host: Add configuration for ia64-*-aix*.
3547 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3548 Add dependencies for eelf64_aix.c.
3549 * Makefile.in: Regenerate.
3550 * configure.tgt: Add ia64-*-aix* mapping.
3551 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3553 2001-02-20 H.J. Lu <hjl@gnu.org>
3555 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3556 false if we found the file.
3558 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3560 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3561 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3563 2001-02-18 lars brinkhoff <lars@nocrew.org>
3565 * Makefile.am: Add PDP-11 target.
3566 * configure.tgt: Likewise.
3567 * emulparams/pdp11.sh: New file.
3569 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3571 * configure.host: Add a generic FreeBSD configuration entry such that
3572 all [modern] FreeBSD systems on all platforms will look the same.
3574 2001-02-14 H.J. Lu <hjl@gnu.org>
3576 * configure.tgt: Remove mention of earmelf_linux26.
3578 2001-02-13 Richard Henderson <rth@redhat.com>
3580 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3582 2001-02-13 H.J. Lu <hjl@gnu.org>
3584 * ldexp.h (node_type): Add etree_provided.
3585 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3586 type to etree_provided if defined by PROVIDE. Allow updating
3588 (exp_print_tree): Handle etree_provided.
3589 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3592 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3594 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3595 .IA_64.unwind.* pattern to unwind table section and
3596 .IA_64.unwind_info* pattern to unwind info section.
3598 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3600 * Makefile.am: Add linux target for S/390.
3601 * Makefile.in: Likewise.
3602 * configure.host: Likewise.
3603 * configure.tgt: Likewise.
3604 * emulparams/elf64_s390.sh: New file.
3605 * emulparams/elf_s390.sh: New file.
3607 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3609 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3611 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3613 2001-02-06 Philip Blundell <philb@gnu.org>
3615 * Makefile.am: Remove mention of earmelf_linux26.
3616 * Makefile.in: Regenerate.
3618 2001-02-04 Philip Blundell <philb@gnu.org>
3620 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3621 * emulparams/armelf_linux26.sh: Delete.
3622 * configure.tgt: Remove mention of armelf_linux26 emulation.
3624 2001-02-01 Nick Clifton <nickc@redhat.com>
3626 * ld.1: Replace occurances of -oformat with --oformat.
3628 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3630 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3631 load_base is specified.
3633 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3635 * emultempl/elf32.em: Correct spelling in comments and listed
3638 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3640 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3641 default for the first section of a group of overlay sections.
3643 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3645 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3646 * Makefile.in: Regenerate.
3647 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3648 Check for null tool_dir.
3650 2001-01-16 Jim Wilson <wilson@redhat.com>
3652 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3653 and IA_64.unwind.info.
3655 2001-01-16 H.J. Lu <hjl@gnu.org>
3657 * ldlang.c (lang_check): Merge the private data only if the
3658 input file has contents.
3660 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3662 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3664 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3665 enabling search for libmilli. On a relocatable link, make .text
3667 (LDEMUL_AFTER_PARSE): Define.
3668 (hppaelf_finish): Correct spelling of relocatable in comments.
3670 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3671 rummage through the script for sections on the unique list.
3672 Correct length of strncmp for ".note".
3673 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3675 * ldlang.c (unique_section_list): New var.
3676 (unique_section_p): New function.
3677 (walk_wild_section): Don't match sections on unique_section_list.
3678 (lang_add_unique): New function.
3679 Correct spelling of relocatable in comments.
3681 * ldlang.h (struct unique_sections): Declare.
3682 (unique_section_list): Declare.
3683 (unique_section_p): Declare.
3684 (lang_add_unique): Declare.
3686 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3687 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3689 * ld.texinfo (--unique): Update.
3691 2001-01-13 Nick Clifton <nickc@redhat.com>
3693 * lexsup.c (parse_args): Remove spurious white space.
3695 2001-01-12 Nick Clifton <nickc@redhat.com>
3697 * lexsup.c (parse_args): Update copyright date.
3699 2001-01-12 Philip Blundell <pb@futuretv.com>
3701 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3703 2001-01-10 Kazu Hirata <kazu@hxi.com>
3705 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3706 * scripttempl/h8300h.sc: Fix formatting.
3707 * scripttempl/h8300s.sc: Likewise.
3708 * scripttempl/h8500.sc: Likewise.
3709 * scripttempl/h8500b.sc: Likewise.
3710 * scripttempl/h8500c.sc: Likewise.
3711 * scripttempl/h8500m.sc: Likewise.
3712 * scripttempl/h8500s.sc: Likewise.
3714 2000-01-07 David O'Brien <obrien@BSDi.com>
3716 * emultempl/elf32.em: Only perform Linux ld hints processing when
3719 2001-01-07 Philip Blundell <philb@gnu.org>
3721 * ld.texinfo (Bug Reporting): Update email address for reports.
3723 2000-12-31 Nick Clifton <nickc@redhat.com>
3725 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3726 options by checking for a return value of '?' not -1.
3728 2000-12-28 Nick Clifton <nickc@redhat.com>
3730 * lexsup.c (struct ld_option): Add new enum value:
3732 (ld_options[]): Change -omagic, -output and -oformat options
3733 to be EXACTLY_TWO_DASHES.
3734 (OUTPUT_COUNT): Use ARRAY_SIZE.
3735 (parse_args): Change parameter 'argc' to unsigned.
3736 Place EXACTLY_TWO_DASHES options into new really_longopts
3738 If getopt_long_only fails, try calling getopt_long using the
3739 really_longopts array.
3740 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3743 * ldlex.h: Fix prototype of parse_args.
3745 * ld.texinfo: Document that long options starting with 'o'
3746 must be preceeded by two dashes. Change example of a single
3747 dashed long option from -oformat to -trace-symbol.
3749 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3751 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3752 (longopts[]): New --no-default-excludes option.
3753 (gld_${EMULATION_NAME}_list_options): Document.
3754 (gld_${EMULATION_NAME}_parse_args): Handle.
3756 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3758 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3759 whitespace, it breaks the K&R C preprocessor.
3761 2000-12-11 DJ Delorie <dj@redhat.com>
3763 * ld.texinfo: Add notes about --whole-archive and gcc.
3765 2000-11-18 Fred Fish <fnf@be.com>
3767 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3768 (ld_options): Entry for --allow-shlib-undefined.
3769 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3770 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3772 * ld.texinfo: Document new command line switch.
3774 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3776 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3777 .fixup is actually read/write.
3778 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3779 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3780 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3782 2000-12-11 Jan Hubicka <jh@suse.cz>
3784 * NEWS: Add note about x86_64 architecture.
3786 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3788 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3789 Set DWARF2 sections to a VMA of zero.
3791 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3793 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3795 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3796 (sparc*-*-rtems*): Switched from a.out to ELF.
3798 2000-11-30 Jan Hubicka <jh@suse.cz>
3800 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3801 (eelf_x86_64.c): New.
3802 * Makefile.in: Regenerate.
3803 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3804 * emulparams/elf_x86_64.sh: New.
3806 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3808 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3809 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3811 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3812 merging non-a.out sections into CONSTRUCTING.
3814 2000-11-28 Nick Clifton <nickc@redhat.com>
3816 * ld.1 (COPYING): Mention that the GNU Free Documentation
3817 License is present in the sources, but not the output, and
3818 also available from the GNU website.
3819 (GNU Free Documentation License): Comment out this section.
3821 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3823 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3826 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3828 * ld.1: Remove old date so it does not give the impression the manpage
3831 2000-11-24 Nick Clifton <nickc@redhat.com>
3833 * configure.tgt (xscale-coff): Add target.
3834 (xscale-elf): Add target.
3836 2000-11-24 Fred Fish <fnf@be.com>
3838 * ldmain.c (main): Remove redundant init of config.make_executable
3841 2000-11-15 Richard Henderson <rth@redhat.com>
3843 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3845 2000-11-14 Kazu Hirata <kazu@hxi.com>
3847 * scripttempl/h8300.sc: Fix formatting.
3848 * scripttempl/h8300h.sc: Likewise.
3849 * scripttempl/h8300s.sc: Likewise.
3851 2000-11-14 Denis Chertykov <denisc@overta.ru>
3853 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3855 2000-11-09 Philip Blundell <pb@futuretv.com>
3857 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3858 around orphan sections whose names can be represented in C.
3860 2000-11-07 Jim Wilson <wilson@redhat.com>
3862 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3863 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3865 2000-11-06 Nick Clifton <nickc@redhat.com>
3867 * ld.texinfo: Add GNU Free Documentation License.
3868 * ldint.texinfo: Add GNU Free Documentation License.
3869 * ld.1: Add GNU Free Documentation License.
3871 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3873 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3874 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3876 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3877 Move 2000-11-02 Makefile.in changes to this file.
3878 * Makefile.in: Regenerate.
3880 2000-11-03 Nick Clifton <nickc@redhat.com>
3882 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3883 constructors and destructors.
3884 * scripttempl/h8300h.sc: Ditto.
3885 * scripttempl/h8300s.sc: Ditto.
3886 * scripttempl/h8500.sc: Ditto.
3887 * scripttempl/h8500b.sc: Ditto.
3888 * scripttempl/h8500c.sc: Ditto.
3889 * scripttempl/h8500m.sc: Ditto.
3890 * scripttempl/h8500s.sc: Ditto.
3891 * scripttempl/v850.sc: Ditto.
3892 * scripttempl/w65.sc: Ditto.
3893 * scripttempl/z8000.sc: Ditto.
3895 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3897 * Makefile.in (e_i386_chaos.c): New rule.
3898 (ALL_EMULATIONS): Added e_i386_chaos.o.
3899 * emulparams/elf_i386_chaos.sh: New file.
3900 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3902 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3904 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3905 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3906 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3907 library path suffix.
3908 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3910 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3912 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3913 for consecutive sections.
3915 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3917 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3919 * ld.texinfo: Added notes about this new option.
3921 2000-10-16 Nick Clifton <nickc@redhat.com>
3923 * emultempl/pe.em (_after_open): Add tests of return values from
3924 bfd functions. Emit appropriate error messages if necessary.
3926 2000-10-13 Nick Clifton <nickc@redhat.com>
3928 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3929 local variables - they are not used, but leave in the call to
3930 bfd_canonicalize_symtab.
3931 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3932 pe_dll_search_prefix.
3934 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3936 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3937 (longopts): New --dll-search-prefix option.
3938 (gld_${EMULATION_NAME}_list_options): Document.
3939 (gld_${EMULATION_NAME}_parse_args): Handle.
3940 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3941 dynamically, search for a dll named '<prefix><basename>.dll'
3942 in preference to 'lib<basename>.dll' if --dll-search-prefix
3945 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3947 * ldlang.c (section_already_linked): Set kept_section instead of
3950 2000-10-10 Kazu Hirata <kazu@hxi.com>
3952 * deffile.h: Fix formatting.
3953 * lexsup.c: Likewise.
3956 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3958 * pe-dll.c (make_one): Do not generate code thunk for DATA
3960 (process_def_file): deduce DATA flag for auto-export sumbols.
3962 2000-10-09 Kazu Hirata <kazu@hxi.com>
3964 * ld.h: Fix formatting.
3965 * ldcref.c: Likewise.
3966 * ldctor.h: Likewise.
3967 * ldemul.c: Likewise.
3968 * ldemul.h: Likewise.
3969 * ldexp.c: Likewise.
3970 * ldexp.h: Likewise.
3971 * ldfile.c: Likewise.
3972 * ldfile.h: Likewise.
3973 * ldlang.c: Likewise.
3974 * ldlang.h: Likewise.
3975 * ldmain.c: Likewise.
3976 * pe-dll.c: Likewise.
3978 * pe-dll.c: Revert some formatting fixes.
3980 2000-10-08 Kazu Hirata <kazu@hxi.com>
3982 * pe-dll.c: Fix formatting.
3984 2000-10-05 Kazu Hirata <kazu@hxi.com>
3986 * ldlang.c: Fix formatting.
3988 2000-10-03 DJ Delorie <dj@redhat.com>
3990 * pe-dll.c (fill_edata): initialize entire block
3991 (make_one): fill in correct section.
3993 2000-10-03 Kazu Hirata <kazu@hxi.com>
3995 * ldexp.c: Fix formatting.
3997 2000-10-02 DJ Delorie <dj@redhat.com>
3999 * emultempl/pe.em (gld_*_after_open): detect case where there two
4000 import libraries for same dll; rename one to ensure proper link
4003 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4005 (generate_edata): fix typo
4007 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4009 * scripttempl/crisaout.sc (ENTRY): Now __start.
4010 (.text): Add default setting for __start.
4011 Remove CONSTRUCTORS handling.
4012 (/DISCARD/): Add .gnu.warning.*.
4013 * emulparams/crislinux.sh (ENTRY): Now __start.
4014 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4015 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4016 (ENTRY): Now __start.
4017 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4018 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4020 2000-09-29 Kazu Hirata <kazu@hxi.com>
4022 * deffile.h: Fix formatting.
4024 * ldcref.c: Likewise.
4025 * ldctor.c: Likewise.
4026 * ldctor.h: Likewise.
4027 * ldemul.c: Likewise.
4028 * ldemul.h: Likewise.
4029 * ldexp.c: Likewise.
4030 * ldexp.h: Likewise.
4031 * ldfile.c: Likewise.
4032 * ldfile.h: Likewise.
4033 * ldlang.c: Likewise.
4034 * ldlang.h: Likewise.
4035 * lexsup.c: Likewise.
4037 * pe-dll.c: Likewise.
4039 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4041 * pe-dll.c (process_def_file): Uninitialized data wasn't
4042 exported with --export-all-symbols switch.
4044 2000-09-28 DJ Delorie <dj@redhat.com>
4046 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4047 noname work properly.
4049 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4051 * ld.texinfo (HPPA ELF32): New section.
4053 * emultempl/hppaelf.em (group_size): New.
4054 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4055 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4056 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4057 options to prevent abbreviations matching.
4058 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4059 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4061 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4063 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4064 on the m68*-*-elf target. Make it support COFF input objects.
4066 2000-09-21 Kazu Hirata <kazu@hxi.com>
4068 * ldmain.c: Fix formatting.
4069 * ldmisc.c: Likewise.
4070 * ldver.c: Likewise.
4071 * ldwrite.c: Likewise.
4073 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4075 * ldwrite.c (clone_section): Silence gcc warnings.
4077 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4079 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4080 out of memory failure.
4082 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4083 (clone_section): Handle out of memory failures. Rename var to
4084 avoid c++ reserved word.
4086 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4088 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4089 stub_name param to stub_sec_name.
4090 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4092 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4094 * emultempl/m68kelf.em: New file.
4095 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4096 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4097 * Makefile.in: Regenerate.
4099 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4101 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4104 2000-09-13 Nick Clifton <nickc@redhat.com>
4106 * ldmain.c (multiple_definition): Disable relaxation if
4107 multiple symbol definitions are encountered - otherwise the
4108 linker could abort with an assertion failure.
4110 2000-09-10 Nick Clifton <nickc@redhat.com>
4112 * mri.c: Fix formatting.
4114 2000-09-07 H.J. Lu <hjl@gnu.org>
4116 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4117 * configure: Rebuild.
4119 2000-09-07 H.J. Lu <hjl@gnu.org>
4121 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4122 * Makefile.in: Rebuild.
4124 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4126 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4127 broken list handling. Create __start_SECNAME and __stop_SECNAME
4128 when no place-holder. Add some comments. Test both SEC_CODE and
4129 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4130 Handle case where no output section statement created.
4132 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4134 * configure.tgt (sh-*-linux*): Added.
4135 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4136 * Makefile.in: Rebuilt.
4137 * emulparams/shelf_linux.sh: New file.
4138 * emulparams/shlelf_linux.sh: New file.
4140 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4142 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4143 try shuffling sections when the orphan happens to be the place
4144 holder. Keep count of unique section names generated so we speed
4145 the search for a new name.
4147 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4149 * configure: Rebuilt with new libtool.m4.
4151 2000-09-05 Nick Clifton <nickc@redhat.com>
4153 * Makefile.in: Regenerate.
4154 * aclocal.m4: Regenerate.
4155 * configure: Regenerate.
4156 * config.in: Regenerate.
4157 * po/ld.pot: Regenerate.
4159 * ldint.texinfo: Remove CVS revision marker - it foils local
4162 * emultempl/ticoff.em: Remove extraneous comma.
4164 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4166 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4167 to stub section flags.
4168 (hppa_for_each_input_file_wrapper): New.
4169 (hppa_lang_for_each_input_file): New.
4170 (lang_for_each_input_file): Define to call above.
4171 (multi_subspace): New.
4172 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4173 (PARSE_AND_LIST_PROLOGUE): Define.
4174 (PARSE_AND_LIST_LONGOPTS): Define.
4175 (PARSE_AND_LIST_OPTIONS): Define.
4176 (PARSE_AND_LIST_ARGS_CASES): Define.
4177 (hppaelf_finish): Call elf32_hppa_set_gp.
4178 (hppaelf_set_output_arch): Remove.
4179 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4181 * emulparams/hppalinux.sh (ELFSIZE): Define.
4183 (OTHER_READONLY_SECTIONS): Define.
4185 (GENERATE_SHLIB_SCRIPT): Define.
4187 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4188 to const throughout. Change `void *' to `PTR' throughout.
4189 (lang_memory_default): Function is local to file, add `static'.
4191 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4192 (ehppalinux.c): Likewise.
4193 (earmelf.c): Likewise.
4194 (earmelf_linux.c): Likewise.
4195 (earmelf_linux26.c): Likewise.
4196 * Makefile.in: Regenerate.
4198 * ld.h (ld_config_type): Add unique_orphan_sections.
4199 * lexsup.c (OPTION_UNIQUE): Define.
4200 (ld_options): Add "--unique".
4201 (parse_args): Handle it.
4202 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4203 search for an existing output section if unique_orphan_sections is
4204 set. Make use of bfd_get_unique_section_name rather than
4205 duplicating code here.
4206 * ld.texinfo: Describe --unique.
4208 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4209 optional arg to split-by-file.
4210 (parse_args): Handle them.
4211 * ld.texinfo: Update description of these options.
4212 * ldwrite.c (clone_section): Pass in the section name. Replace
4213 local code with bfd_get_unique_section_name.
4214 (split_sections): Tidy code and comments. Use a list traversal
4215 more appropriate to the list construction. Handle cooked section
4216 sizes. Split when split_by_reloc reached rather than exceeded.
4217 Track section size and split when split_by_file reached. Fix
4218 link_order_tail (even though it's not used).
4219 (ldwrite): Modify condition for calling split_sections to suit
4220 changed split_by_reloc and split_by_file.
4221 * ldmain.c (main): Init config.split_by_reloc and
4222 config.split_by_file to -1.
4223 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4224 Change split_by_file to bfd_size_type.
4226 2000-09-02 Nick Clifton <nickc@redhat.com>
4228 * configure.in: Increase version number to 2.10.91.
4229 * NEWS: Mention new ability to support removal of duplicate DWARF2
4231 * configure: Regenerate.
4232 * aclocal.m4: Regenerate.
4233 * config.in: Regenerate.
4235 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4237 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4239 * scripttempl/elf32avr.sc: Ditto.
4240 * scripttempl/elfd10v.sc: Ditto.
4241 * scripttempl/elfd30v.sc: Ditto.
4242 * scripttempl/elfi370.sc: Ditto.
4243 * scripttempl/elfm68hc11.sc: Ditto.
4244 * scripttempl/elfm68hc12.sc: Ditto.
4245 * scripttempl/elfi386beos.sc: Ditto.
4246 * scripttempl/v850.sc: Ditto.
4248 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4250 * acinclude.m4: Include libtool and gettext macros from the
4252 * aclocal.m4, configure: Rebuilt.
4254 2000-08-25 Nick Clifton <nickc@redhat.com>
4256 * ldlang.c (open_output): When choosing the target for a
4257 particular endianness, do nothing if the target is not
4260 2000-08-25 H.J. Lu <hjl@gnu.org>
4262 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4263 check -rpath nor LD_RUN_PATH for cross link.
4264 * ld.texinfo: Document the change.
4266 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4268 * NEWS: Mention support for CRIS.
4270 2000-08-23 H.J. Lu <hjl@gnu.org>
4272 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4273 the current runpath list from bfd_elf_get_runpath_list ()
4276 2000-08-22 H.J. Lu <hjl@gnu.org>
4278 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4279 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4280 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4281 trace_file_tries is non-zero.
4282 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4283 if trace_file_tries is non-zero.
4285 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4288 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4290 * NEWS: Mention i860 support.
4292 2000-08-14 Andreas Schwab <schwab@suse.de>
4294 * scripttempl/elf.sc: Fix last change to use correct comment
4297 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4299 * scripttempl/elf.sc: Add a comment giving the correspondence
4300 between sections, per-datum sections, and linkonce sections. Make
4301 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4304 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4306 * emulparams/elf32_i860.sh: New file.
4307 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4308 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4309 (eelf32_i860.c): New rule.
4310 * Makefile.in: Regenerate.
4312 2000-08-10 Nick Clifton <nickc@cygnus.com>
4314 * emulparams/mipspe.sh (ENTRY): Add definition.
4316 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4318 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4321 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4323 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4324 the final size of .bss section.
4325 * scripttempl/elfm68hc12.sc: Likewise.
4327 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4329 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4330 gld${EMULATION_NAME}_parse_args for consistency. Combine
4331 lastoptind and prevoptind vars, and keep track of last optind.
4332 (gld_${EMULATION_NAME}_list_options): Rename to
4333 gld${EMULATION_NAME}_list_options.
4335 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4337 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4338 (i586-sco-sysv5uw7.1.0).
4340 2000-07-27 H.J. Lu <hjl@gnu.org>
4342 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4343 (PARSE_AND_LIST_PROLOGUE): New.
4344 (PARSE_AND_LIST_LONGOPTS): Likewise.
4345 (PARSE_AND_LIST_OPTIONS): Likewise.
4346 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4347 (PARSE_AND_LIST_EPILOGUE): Likewise.
4349 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4351 * emultempl/armelf.em: Elide functions common to elf32.em,
4352 ie. most of the file.
4353 (arm_elf_after_open): New. Do arm specific things then call
4354 gld${EMULATION_NAME}_after_open.
4355 (arm_elf_before_allocation): New. Call
4356 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4357 (PARSE_AND_LIST_PROLOGUE): Define.
4358 (PARSE_AND_LIST_SHORTOPTS): Define.
4359 (PARSE_AND_LIST_LONGOPTS): Define.
4360 (PARSE_AND_LIST_OPTIONS): Define.
4361 (PARSE_AND_LIST_ARGS_CASES): Define.
4362 (LDEMUL_AFTER_OPEN): Define.
4363 (LDEMUL_BEFORE_ALLOCATION): Define.
4364 (LDEMUL_BEFORE_PARSE): Define.
4365 (LDEMUL_FINISH): Define.
4367 * emultempl/hppaelf.em: Similarly zap most of this file.
4368 (hppaelf_add_stub_section): Prototype.
4369 (hppaelf_layaout_sections_again): Prototype.
4370 (hook_in_stub): Prototype.
4371 (LDEMUL_SET_OUTPUT_ARCH): Define.
4372 (LDEMUL_FINISH): Define.
4373 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4375 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4376 (EXTRA_EM_FILE): New.
4377 * emulparams/armelf_linux.sh: Likewise.
4378 * emulparams/armelf_linux26.sh: Likewise.
4379 * emulparams/hppalinux.sh: Likewise.
4380 * emulparams/hppaelf.sh: Likewise.
4383 * emultempl/elf32.em: Fix formatting.
4384 (EXTRA_EM_FILE): Source it.
4385 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4386 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4387 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4388 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4389 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4390 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4391 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4392 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4393 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4394 allow functions in this file to be overridden.
4395 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4397 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4399 * emultempl/elf32.em: Reorganize file.
4401 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4403 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4404 specific option to fit 64-bit executable in the lower
4405 31-bit address range. This is done by changing start
4406 address of .interp (the very first section of executable)
4407 and then setting EF_ALPHA_32BIT elf header flag.
4409 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4411 * emultempl/m68kcoff.em: New file.
4412 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4413 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4415 * Makefile.in: Regenerate.
4417 2000-07-20 H.J. Lu <hjl@gnu.org>
4419 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4420 and "disable-new-dtags" to stop getopt from treating -d/-e as
4421 abbreviations for these options.
4423 2000-07-20 H.J. Lu <hjl@gnu.org>
4425 * ld.texinfo: Add documentation for --disable-new-dtags and
4428 * ldmain.c (main): Initialize link_info.new_dtags to false.
4430 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4431 --disable-new-dtags and --enable-new-dtags.
4432 (gld_${EMULATION_NAME}_list_options): Likewise.
4434 2000-07-05 Kenneth Block <krblock@computer.org>
4436 * lexsup.c: Add optional style to demangle switch
4437 * ld.texinfo: Document optional style to demangle switch.
4439 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4441 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4443 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4444 Regenerate dependencies.
4445 * Makefile.in: Rebuild.
4446 * configure.tgt (cris-*-*): New target.
4447 * emulparams/crisaout.sh, emulparams/criself.sh,
4448 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4449 * po/POTFILES.in, po/ld.pot: Regenerate.
4451 2000-07-20 H.J. Lu <hjl@gnu.org>
4453 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4454 Print out ignored -z options.
4456 2000-07-19 H.J. Lu <hjl@gnu.org>
4458 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4459 (PARSE_AND_LIST_PROLOGUE): New.
4460 (PARSE_AND_LIST_LONGOPTS): Likewise.
4461 (PARSE_AND_LIST_OPTIONS): Likewise.
4462 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4464 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4466 * lexsup.c (ld_options): Comment out 'z'.
4467 (parse_args): Likewise.
4469 * emultempl/elf32.em: Include "elf/common.h".
4470 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4472 (gld_${EMULATION_NAME}_list_options): Likewise.
4474 * ld.texinfo: Add documentation for the recognized -z options.
4476 2000-07-19 H.J. Lu <hjl@gnu.org>
4478 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4479 bfd_elf_set_dt_needed_soname ().
4481 2000-07-18 DJ Delorie <dj@cygnus.com>
4483 * pe-dll.c (pe_dll_id_target): check object target name also
4485 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4487 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4488 ${INIT_END} if relocating.
4489 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4491 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4493 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4494 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4495 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4496 errors introduced by the old dynamic lib search order.
4498 2000-07-17 DJ Delorie <dj@cygnus.com>
4500 * pe-dll.c (process_def_file): auto-export data items also
4501 (pe_process_import_defs): also see if _imp_ form needed
4503 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4505 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4506 for dll import libraries
4508 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4510 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4511 gcc 2.95.2 and later.
4513 2000-07-11 Kazu Hirata <kazu@hxi.com>
4515 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4518 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4520 * ldemul.h (struct lang_input_statement_struct): Remove forward
4522 (struct search_dirs): Likewise.
4523 * ldfile.h (struct lang_input_statement_struct): Likewise.
4524 Protect file from multiple inclusion.
4525 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4526 declaration from macro to file scope.
4528 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4529 * ldgram.y: Likewise here.
4530 * ldlang.c: And here.
4531 * ldmain.c: And here.
4532 * mpw-elfmips.c: And here.
4533 * mpw-eppcmac.c: And here.
4534 * emultempl/aix.em: And here.
4535 * emultempl/armcoff.em: And here.
4536 * emultempl/armelf.em: And here.
4537 * emultempl/armelf_oabi.em: And here.
4538 * emultempl/beos.em: And here.
4539 * emultempl/elf32.em: And here.
4540 * emultempl/hppaelf.em: And here.
4541 * emultempl/linux.em: And here.
4542 * emultempl/lnk960.em: And here.
4543 * emultempl/pe.em: And here.
4544 * emultempl/sunos.em: And here.
4545 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4546 * mpw-idtmips.c: Ditto.
4547 * emultempl/generic.em: Ditto.
4548 * emultempl/gld960.em: Ditto.
4549 * emultempl/gld960c.em: Ditto.
4550 * emultempl/mipsecoff.em: Ditto.
4551 * emultempl/ticoff.em: Ditto.
4552 * emultempl/vanilla.em: Ditto.
4554 * pe-dll.c: Include ldfile.h
4555 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4557 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4558 arguments to bfd_elf32_size_dynamic_sections call.
4559 (gldelf32ebmip_place_orphan): Add missing arguments to
4560 lang_leave_output_section_statement call.
4562 2000-07-10 H.J. Lu <hjl@gnu.org>
4564 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4566 (strhash): Likewise.
4567 (compute_dll_image_base): Likewise.
4568 (pe_undef_found_sym): Likewise.
4569 (pe_undef_cdecl_match): Likewise.
4570 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4571 argument "arch" with ATTRIBUTE_UNUSED.
4573 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4575 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4577 From Ryan Bradetich <rbradetich@uswest.net>
4578 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4580 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4582 Changes to create multiple linker stubs, positioned immediately
4583 before the section where they are required.
4584 * emultempl/hppaelf.em: Include elf32-hppa.h.
4585 (stub_sec, file_chain): Delete.
4586 (hppaelf_create_output_section_statements): Don't make a stub
4588 (hook_stub_info): New struct.
4589 (hook_in_stub): New function.
4590 (hppaelf_add_stub_section): New function.
4591 (hppaelf_finish): Do nothing for relocateable links. Modify the
4592 call to elf32_hppa_size_stubs. Move code for updating section
4594 (hppaelf_layaout_sections_again): ..to here, a new function.
4596 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4597 broken list handling. Pass in a pointer to the list.
4598 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4600 (hppaelf_before_parse): Prototype.
4601 (hppaelf_set_output_arch): Prototype.
4602 (hppaelf_create_output_section_statements): Prototype.
4603 (hppaelf_delete_padding_statements): Prototype.
4604 (hppaelf_finish): Prototype.
4607 * emultempl/hppaelf.em: Include ctype.h.
4608 (struct orphan_save): New.
4609 (gld${EMULATION_NAME}_place_orphan): New.
4610 (output_rel_find): New.
4611 (hppaelf_get_script): Update from elf32.em.
4612 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4613 Change emulation_name field to "${EMULATION_NAME}". Add
4614 gld${EMULATION_NAME}_place_orphan.
4616 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4617 ehppalinux.o, sort it. Regenerate dependencies.
4618 (ehppalinux.c): Depend on hppaelf.em
4619 * Makefile.in: Regenerate.
4621 * configure.tgt: targ_emul=hppalinux for hppa*linux
4623 * emulparams/hppalinux.sh: New.
4624 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4626 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4628 * lexsup.c (parse_args): Copy section name.
4630 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4632 * emultempl/pe.em: institute the following search order for
4633 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4634 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4635 static lib (libfoo.a) if none of the above are found.
4637 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4639 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4640 (longopts): New --{enable,disable}-auto-image-base options.
4641 (gld_${EMULATION_NAME}_list_options): Document.
4642 (gld_${EMULATION_NAME}_parse): Handle.
4643 (strhash): New static function.
4644 (compute_dll_image_base): New static function.
4645 (gld_${EMULATION_NAME}_set_symbols): Use.
4647 2000-07-05 DJ Delorie <dj@redhat.com>
4651 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4653 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4654 * emulparams/elf32btsmip.sh: New file.
4655 * Makefile.am: Add traditional mips target.
4656 * Makefile.in: Rebuild.
4658 2000-07-01 H.J. Lu <hjl@gnu.org>
4660 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4661 automake to use YLWRAP.
4662 * Makefile.in: Rebuild.
4664 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4666 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4667 (CLEANFILES): Add DEPA.
4668 * Makefile.in: Regenerate.
4670 2000-06-30 Timothy Wall <twall@ppc>
4672 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4673 the page in the upper octet of the address.
4675 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4677 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4679 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4681 * NEWS: arm-elf does --gc-sections too.
4683 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4685 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4687 * Makefile.in: Regenerate.
4689 2000-06-21 H.J. Lu <hjl@gnu.org>
4691 * Makefile.am: Rebuild dependency.
4692 * Makefile.in: Rebuild.
4694 2000-06-20 H.J. Lu <hjl@gnu.org>
4696 * Makefile.am: Rebuild dependency.
4697 * Makefile.in: Rebuild.
4699 2000-06-20 Timothy Wall <twall@cygnus.com>
4701 * scripttempl/tic54xcoff.sc: New.
4702 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4703 * gen-doc.texi: Add flag for TI COFF.
4704 * ld.texinfo: Add documentation for TI COFF handling switches.
4705 * emultempl/ticoff.em: New. TI COFF handling.
4706 * configure.tgt: Add tic54x target.
4707 * Makefile.am: Add tic54x target.
4708 * Makefile.in: Ditto.
4710 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4712 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4713 checking for backslashes.
4715 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4717 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4719 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4721 * NEWS: Update list of targets supporting --gc-sections.
4723 * scripttempl/elf.sc: KEEP .eh_frame contents.
4724 * scripttempl/elfd30v.sc: Same here.
4726 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4728 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4730 * Makefile.in: Rebuild.
4731 * configure.tgt: Recognize m68hc12 and m68hc11.
4732 * scripttempl/elfm68hc12.sc: New file.
4733 * emulparams/m68hc12elfb: New emulation.
4734 * emulparams/m68hc12elf: New emulation.
4735 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4736 (includes a memory.x script to define the ROM and RAM banks).
4737 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4738 New configuration files for support of Motorola 68hc11
4740 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4742 * ldmain.c (main): Only change SEC_READONLY for final link.
4744 2000-06-13 H.J. Lu <hjl@gnu.org>
4746 * configure: Regenerate.
4748 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4750 * configure.in (VERSION): Update to show this is the CVS mainline.
4752 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4754 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4755 input objects to be ECOFF.
4756 (check_sections): einfo takes %B, not %P, to print a BFD name.
4758 2000-06-05 Michael Matz <matz@ifh.de>
4760 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4763 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4765 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4767 * emulparams/avr1200.sh (STACK): Define as 0.
4768 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4769 * emulparams/avr4433.sh (STACK): Likewise.
4770 * emulparams/avr44x4.sh (STACK): Likewise.
4771 * emulparams/avr85xx.sh (STACK): Likewise.
4772 * emulparams/avrmega103.sh (STACK): Likewise.
4773 * emulparams/avrmega161.sh (STACK): Likewise.
4774 * emulparams/avrmega603.sh (STACK): Likewise.
4775 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4776 (__stack): Define from ${STACK} for main().
4778 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4780 * Makefile.am: Update dependencies with "make dep-am"
4781 * Makefile.in: Regenerate.
4783 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4785 * ldmain.c: Include filenames.h.
4786 (set_scripts_dir): Support backslashes in program name.
4788 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4790 * ldmain.c (main): When deciding if ".text" section should be
4791 read-only, don't forget to reset SEC_READONLY because it
4792 could be already set.
4794 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4796 * ld.1: Add documentation for new command line option:
4797 --section-start <sectionname>=<sectionorg>
4798 This is a generic version of -Ttext etc. which accepts
4799 any section name as a parameter instead of just text/data/
4801 * ld.texinfo: More docs.
4803 * lexsup.c: (parse_args): Recognize new command line option.
4804 (ld_options): Add new option.
4806 2000-05-18 H.J. Lu <hjl@gnu.org>
4808 * lexsup.c (parse_args): `i' == `r', not `q'.
4810 2000-05-18 Jeffrey A Law (law@cygnus.com)
4812 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4814 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4815 Rick Gorton <gorton@scrugs.lkg.dec.com>
4817 Add support for '-q' == '--emit-relocs' switch.
4818 * ldmain.c (main): Default to false.
4819 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4820 * NEWS: Describe the emitrelocations switch.
4821 * ld.texinfo: Describe the emitrelocations switch.
4823 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4825 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4826 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4827 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4830 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4832 * lexsup.c (parse_args): Update the year in the copyright notice.
4834 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4836 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4837 Replace defines with those from intl/libgettext.h to quieten gcc
4840 2000-05-10 H.J. Lu <hjl@gnu.org>
4842 * ldlang.c (open_input_bfds): Don't load the same file within
4843 a group again if the whole archive has been loaded already.
4845 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4847 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4848 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4851 2000-05-01 Jim Wilson <wilson@cygnus.com>
4853 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4855 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4856 host "ia64-*-linux-gnu*".
4858 2000-04-29 Andreas Jaeger <aj@suse.de>
4860 * ld.h: Correctly check GCC version.
4862 2000-04-25 Jeffrey A Law (law@cygnus.com)
4864 * Makefile.am: Add PA64 support. Add missing dependencies for
4866 * Makefile.in: Rebuilt.
4867 * configure.tgt: Add PA64 support (currently disabled).
4869 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4871 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4872 (output_rel_find): New function.
4873 (hold_section, hold_use): Delete.
4874 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4875 hold_interp): Make local to place_orphan.
4876 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4877 rather than place_section to find possible previous use of orphan.
4878 Similarly find the place-holder output sections. Use returned
4879 value from lang_enter_output_section_statement rather than calling
4880 lang_output_section_statement_lookup.
4881 * emultempl/armelf.em: Same here.
4882 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4884 * ldlang.c (lang_enter_output_section_statement): Return output
4886 * ldlang.h (lang_enter_output_section_statement): Change
4889 * ldlang.h (lang_output_section_statement): Export it.
4890 * ldlang.c (lang_output_section_statement): Ditto.
4892 2000-04-24 Nick Clifton <nickc@cygnus.com>
4894 * ld.texinfo (Output Section Data): Add note that section data
4895 commands cannot appear outside of section directives.
4897 2000-04-2 Matthew Green <mrg@cygnus.com>
4899 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4901 2000-04-21 Richard Henderson <rth@cygnus.com>
4902 David Mosberger <davidm@hpl.hp.com>
4904 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4905 (eelf64_ia64.c): New rule.
4906 * Makefile.in: Rebuild.
4907 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4908 * emulparams/elf64_ia64.sh: New file.
4910 2000-04-21 Richard Henderson <rth@cygnus.com>
4912 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4914 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4916 * dep-in.sed: Match space at start of file name, not at end.
4918 2000-04-18 H.J. Lu <hjl@gnu.org>
4920 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4921 lang_leave_output_section_statement () after calling
4922 lang_enter_output_section_statement ().
4923 * emultempl/armelf.em: Likewise.
4925 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4927 * emultempl/elf32.em (struct orphan_save): Add section field.
4928 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4929 better order, and place first orphan section as we did before the
4930 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4931 Don't call make_bfd_section here, let wild_doit do the job for us.
4932 Don't build a statement list when we'll only throw it away.
4933 * emultempl/armelf.em: Ditto.
4934 * emultempl/pe.em: Similarly.
4936 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4938 * scripttempl/elfppc.sc: Remove.
4939 * emulparams/elf32ppc.sh: Use elf.sc.
4940 * emulparams/elf32lppc.sh: Use elf.sc.
4941 * emulparams/elf32ppclinux.sh: Use elf.sc.
4942 * emulparams/elf32ppcsim.sh: New file.
4943 * emulparams/elf32lppcsim.sh: New file.
4944 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4945 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4946 * Makefile.in: Regenerate.
4947 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4949 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4951 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4952 ~SEC_ALLOC sections too. Init start address of debug sections.
4953 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4954 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4955 Also set all relocateable section start addresses.
4957 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4959 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4960 Add new BSS_PLT variable for when .plt need not be contained in
4961 the file. Move _etext so that it is also after .fini, and provide
4962 both etext and _etext with a leading underscore. Mark the start
4965 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4967 * emultempl/elf32.em (struct orphan_save): New.
4968 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4969 hold_interp): Make them struct orphan_save.
4970 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4971 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4972 the end of the relevant section list. Also add associated section
4973 statements to the end of any previous orphan statements.
4974 * emultempl/armelf.em: Similarly.
4975 * emultempl/pe.em: Similarly.
4977 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4979 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4981 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4983 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4984 --enable-build-warnings option.
4985 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4986 * Makefile.in, configure: Re-generate.
4988 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4990 * po/ld.pot: Regenerate.
4992 * lexsup.c (help): Restore translated part of bug string.
4994 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4995 (DEP): Quote when passing vars to sub-make. Add warning message
4997 (DEP1): Rewrite for "gcc -MM".
4998 (CLEANFILES): Add DEP2.
4999 Update dependencies.
5000 * Makefile.in: Regenerate.
5002 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5004 * ld.h: #include "bin-bugs.h"
5005 * lexsup.c (help): Use REPORT_BUGS_TO.
5007 2000-03-27 Denis Chertykov <denisc@overta.ru>
5009 * configure.tgt (avr-*-*): New target support.
5010 * Makefile.am: Likewise.
5011 * scripttempl/elf32avr.sc: New script file.
5012 * emulparams/avr1200.sh: New file.
5013 * emulparams/avr23xx.sh: New file.
5014 * emulparams/avr4433.sh New file.
5015 * emulparams/avr44x4.sh New file.
5016 * emulparams/avr85xx.sh New file.
5017 * emulparams/avrmega103.sh New file.
5018 * emulparams/avrmega161.sh New file.
5019 * emulparams/avrmega603.sh New file.
5020 * Makefile.in: Regenerate.
5022 2000-03-09 Andreas Jaeger <aj@suse.de>
5024 * Makefile.am (check-DEJAGNU): Also unset LANG.
5025 * Makefile.in: Rebuild.
5027 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5029 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5032 2000-03-02 H.J. Lu <hjl@gnu.org>
5034 * emulparams/elf32mcore.sh: Include "getopt.h".
5036 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5038 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5040 2000-03-01 H.J. Lu <hjl@gnu.org>
5042 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5043 * emulparams/shpe.sh: Likewise.
5045 2000-03-01 Nick Clifton <nickc@cygnus.com>
5047 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5048 to unused parameters.
5050 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5051 functions only used by DLL code.
5052 (_place_orphan): Initialise 'dollar'.
5054 2000-03-01 H.J. Lu <hjl@gnu.org>
5056 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5057 indicate if the undefined symbol is a fatal error or not.
5058 Don't delete the output file if "fatal" is false.
5060 2000-02-29 H.J. Lu <hjl@gnu.org>
5062 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5063 Set LC_COLLATE and LC_ALL to null and export them. It is for
5064 sort which expects the C locale.
5065 Add $(LIBS) to all $(HOSTING_LIBS).
5066 * Makefile.in: Rebuild.
5068 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5070 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5071 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5072 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5073 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5074 find_potential_libraries.
5076 2000-02-28 Jim Blandy <jimb@redhat.com>
5078 * ldgram.y (exclude_name_list): Don't require a comma to separate
5079 list entries; the lexer considers commas to be valid part of a
5080 filename, so in something like `foo, bar' the comma is considered
5081 part of the first filename, `foo,'.
5082 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5084 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5086 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5087 host "i[3456]86-*-freebsdelf*".
5089 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5091 * scripttempl/i386go32.sc: Move misplaced semicolons.
5093 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5095 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5096 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5097 (eelf64hppa.c, ehppaelf.c): Remove targets.
5098 * Makefile.in: Rebuild.
5100 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5102 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5103 GNU/Linux/sparc, but keep the default as 32.
5105 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5106 it default if sparcv9 or sparc64.
5108 2000-02-24 Nick Clifton <nickc@cygnus.com>
5110 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5111 * Makefile.in: Regenerate.
5112 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5114 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5115 find_potential_libraries.
5116 * ldemul.c (ldemul_find_potential_libraries): New function.
5118 * ldfile.c (ldfile_open_file_search): Allow function to be
5120 (ldfile_open_file): Call ldemul_find_potential_libraries.
5121 * ldfile.h: Add prototype for ldfile_open_file_search.
5123 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5125 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5126 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5128 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5129 (gld_X_find_potential_libraries): New function. Search for
5130 libraries called "*.lib".
5132 * scripttempl/pe.sc: Add .pdata section.
5134 2000-02-23 Richard Henderson <rth@cygnus.com>
5136 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5137 Add and use memory regions.
5139 2000-02-23 Linas Vepstas (linas@linas.org)
5141 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5143 * Makefile.am: Add support for Linux/IBM 370.
5144 * configure.tgt: Likewise.
5146 * Makefile.in: Regenerate.
5148 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5150 * ldlang.c (print_input_section, print_data_statement,
5151 print_reloc_statement, print_padding_statement, insert_pad,
5152 size_input_section, lang_check_section_addresses,
5153 lang_size_sections, lang_do_assignments, lang_set_startof,
5154 lang_one_common): Change `opb' to unsigned.
5155 (lang_do_assignments): Also change `size' to unsigned.
5157 2000-02-16 Richard Henderson <rth@cygnus.com>
5159 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5161 2000-02-16 Timothy Wall <twall@cygnus.com>
5163 * mri.c (mri_draw_tree): Add default LMA region argument to call
5164 to lang_leave_output_section_statement.
5165 * ldlang.h: Update prototypes with LMA region arguments.
5166 * ldlang.c (lang_size_sections): Encapsulate region bounds
5167 checking in os_check_region call.
5168 (os_check_region): New function.
5169 (lang_output_section_statement_lookup): Initialize lma_region.
5170 (lang_leave_output_section_statement): Add LMA region argument.
5171 (lang_leave_overlay): Ditto.
5172 * ldgram.y: Handle LMA region syntax.
5173 * ld.texinfo (Output Section Description): Describe LMA region usage.
5174 * emultempl/armelf.em (gld$place_orphan): Add default value for
5175 lma region in call to lang_leave_output_section_statement.
5176 * emultempl/elf32.em (gld$place_orphan): Add default value for
5177 lma region in call to lang_leave_output_section_statement.
5178 * emultempl/pe.em (gld$place_orphan): Add default value for
5179 lma region in call to lang_leave_output_section_statement.
5182 2000-02-04 Timothy Wall <twall@redhat.com>
5184 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5185 octets when calculating section end addresses.
5187 2000-02-04 Timothy Wall <twall@redhat.com>
5189 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5191 2000-02-03 Timothy Wall <twall@redhat.com>
5193 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5195 * ldlang.c (print_input_section, print_data_statement,
5196 print_reloc_statement, print_padding_statement): Print target
5197 address values and section sizes as bytes, not octets.
5198 (insert_pad) Calculate padding size in octets, and adjust "dot"
5200 (size_input_section) Always adjust "dot" by bytes, not octets.
5201 (lang_check_section_addresses, lang_do_assignments) Adjust
5202 "dot" by bytes, not octets. Use the larger of the directive size
5203 or octets_per_byte for the number of octets actually allocated in
5205 (lang_set_startof) Make sure STARTOF returns a target address.
5206 (lang_one_common) Record size changes in octets.
5207 (lang_abs_symbol_at_end_of) Section end symbol's value is
5208 recorded in target bytes.
5209 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5210 to be clear about behavior when an octet is smaller than one byte.
5212 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5214 * ldcref.c (output_cref): Don't pass message strings to printf
5218 * ldmisc.c (vfinfo): Same here.
5221 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5223 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5224 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5225 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5226 Add missing NULL initialisers, and comments.
5228 2000-01-21 Nick Clifton <nickc@cygnus.com>
5230 * ldlang.c (lang_size_sections): Fix typo in comment.
5232 2000-01-18 H.J. Lu <hjl@gnu.org>
5234 * ldlang.c (lang_size_sections): Also update the current
5235 address of a region if the SEC_NEVER_LOAD bit is not set.
5237 2000-01-10 Philip Blundell <pb@futuretv.com>
5239 * configure.tgt (arm*-*-conix*): New target.
5241 2000-01-07 Nick Clifton <nickc@cygnus.com>
5243 * ld.texinfo (Options): Remind users to preceed linker command
5244 line switches with -Wl, (or whatever is appropriate) if it is
5245 being invoked by a comnpiler driver program.
5246 Fix description of the behaviour of the -n command line switch.
5248 2000-01-05 Catherine Moore <clm@cygnus.com>
5250 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5252 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5253 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5254 (exclude_name_list): New.
5255 ldlang.c (walk_wild_section): Support list of excluded files.
5256 (print_wild_statement): Likewise.
5257 (lang_add_wild): Likewise.
5258 * ldlang.h (lang_wild_statement_type): Likewise.
5259 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5261 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5263 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5264 (process_def_file): Use.
5265 (pe_dll_compat_implib): New variable.
5268 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5269 pe_dll_compat_implib.
5271 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5272 compat-implib options.
5273 (gld_${EMULATION_NAME}_list_options): List new options.
5274 (gld_${EMULATION_NAME}_parse_args): Handle.
5276 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5279 * deffilep.y (opt_name): Allow "." in name.
5281 For older changes see ChangeLog-9899
5287 version-control: never