1 2002-12-23 Nick Clifton <nickc@redhat.com>
3 * ld.h (struct args_type): Add new field
4 'accept_unknown_input_architecture'.
5 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
7 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
8 bfd_arch_get_compatible.
9 * ldfile.c (ldfile_try_open_bfd): Likewise.
10 * lexsup.c (ld_options): Add new command line switch
11 --accept-unknown-input-architecture and its inverse.
12 (parse_args): Handle --accept-unknown-input-architecture.
13 * ld.texinfo: Document new linker option.
14 * NEWS: Mention new linker option.
16 2002-12-20 Alan Modra <amodra@bigpond.net.au>
18 * ldmain.c (main): Re-order link_info initialization. Init all
21 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
23 * ld.texinfo: Clarify and extend the documentation
24 in the Machine Dependent, WIN32 section.
26 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
28 * ld.texinfo: Add win32 machine depending section.
29 * gen-doc.texi: Enable win32 machine depending section.
31 * configure.host: Add win32 library search path.
33 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
35 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
36 import when auto-import is disabled.
38 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
40 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
41 account for trailing '\0'.
43 2002-12-17 Nick Clifton <nickc@redhat.com>
45 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
46 so that it is not confused with -c.
48 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
49 Charles Wilson <cwilson@ece.gatech.edu>
51 * configure.in: Add check for realpath function.
52 * configure: Regenerate.
53 * config.in: Regenerate.
54 * aclocal.m4: Regenerate.
55 * deffile.h: Add .data field to def_file_import
57 * pe-dll.c (pe_proces_import_defs): Use .data field of
58 def_file_import structure to initialize flag_data field of
59 def_file_export structure.
60 (pe_implied_import_dll): New variables exp_funcbase and
61 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
62 not filename (which may be a symlink). Scan the sections and
63 initialize [data|bss]_[start|end]. When scanning the export
64 table, skip _nm_ symbols, and mark any symbols whose rva indicates
65 that it is in the .bss or .data sections as data.
66 * sysdep.h: Include limits.h and sys/param.h, and define
67 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
68 exists, NULL otherwise.
69 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
70 pe_process_import_defs before pe_find_data_imports, so that
71 auto-import will check the virtual implib as well as "real"
73 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
74 symlinks to their target; check that the target's extension is
75 .dll before calling pe_implied_import_dll(), not the filename
76 itself (which may be a symlink).
78 2002-12-10 Alan Modra <amodra@bigpond.net.au>
80 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
81 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
84 2002-12-08 Alan Modra <amodra@bigpond.net.au>
86 * ldlang.h: Formatting.
88 2002-12-07 Alan Modra <amodra@bigpond.net.au>
90 * ldlang.c (init_os): Ensure sections mentioned in load_base
93 2002-12-05 Alan Modra <amodra@bigpond.net.au>
95 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
96 load_base for orphans that follow a section with load_base set.
98 2002-12-01 H.J. Lu <hjl@gnu.org>
100 * ld.texinfo: Remove the extra `;' in sample version script.
102 2002-11-30 Alan Modra <amodra@bigpond.net.au>
104 * configure.host: Correct dynamic-linker for powerpc64 hosts.
106 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
107 * Makefile.in: Regenerate.
109 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
110 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
111 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
112 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
113 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
114 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
115 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
116 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
117 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
118 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
119 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
120 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
121 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
123 2002-11-27 David O'Brien <obrien@FreeBSD.org>
125 * configure.host: Fix generic FreeBSD configuration entry.
127 2002-11-27 H.J. Lu <hjl@gnu.org>
129 * ld.texinfo: Add the missing `;' to sample version scripts.
131 2002-11-20 Alan Modra <amodra@bigpond.net.au>
133 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
135 2002-11-14 Egor Duda <deo@logos-m.ru>
137 * ldmain.c (main): Make runtime relocs disabled by default. Remove
138 assignment which has no effect.
139 * pe-dll.h (pe_create_import_fixup): Change prototype.
140 * pe-dll.c (make_runtime_pseudo_reloc): New function.
141 (pe_create_runtime_relocator_reference): Ditto.
142 (pe_create_import_fixup): Handle relocations with non-zero addends.
143 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
144 --disable-runtime-pseudo-reloc.
145 (make_import_fixup): Handle relocations with non-zero addends. Create
146 an external reference to _pei386_runtime_relocator symbol if at least
147 one pseudo reloc was created.
148 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
149 --disable-runtime-pseudo-reloc options.
151 2002-11-12 Earl Chew <earl_chew@agilent.com>
153 * ldlang.c (lang_add_section): Discard debugging sections that have
154 been marked SEC_EXCLUDE.
156 2002-11-12 Nick Clifton <nickc@redhat.com>
158 * configure.in (ALL_LINGUAS): Add da.
159 * configure: Regenerate.
160 * po/da.po: New Danish translation.
162 2002-11-12 Alan Modra <amodra@bigpond.net.au>
164 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
165 (LDEMUL_BEFORE_ALLOCATION): Define.
166 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
168 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
170 2002-11-11 Christopher Faylor <cgf@redhat.com>
172 * configure.tgt (LIB_PATH): Default to searching w32api directory under
175 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
177 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
178 of restricted auto-export libs.
180 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
182 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
183 creative library naming instances like, e.g., libstdc++-2.a.
185 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
187 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
188 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
190 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
192 * deffilep.y (def_lex): Handle '@' as first character of an ID.
193 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
194 (make_one): Don't prefix decorated fastcall symbols with '_'.
195 (pe_process_import_defs): Likewise.
196 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
197 symbols to cdecl names or vise-versa.
199 2002-10-13 Eric Kohl <ekohl@rz-online.de>
201 * pe-dll.c (process_def_file): Handle fastcall symbols when
202 generating undecorated aliases. Don't prefix decorated fastcall
204 (fill_exported_offsets): Don't prefix decorated fastcall symbols
207 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
209 * emultempl/aix.em: Use include <> for generated headers.
210 * emultempl/beos.em: Likewise.
211 * emultempl/elf32.em: Likewise.
212 * emultempl/pe.em: Likewise.
213 * ldctor.c: Likewise.
215 * ldfile.c: Likewise.
216 * ldlang.c: Likewise.
219 * ldmain.c: Likewise.
220 * ldmisc.c: Likewise.
221 * ldwrite.c: Likewise.
222 * lexsup.c: Likewise.
224 * pe-dll.c: Likewise.
226 2002-10-23 Jakub Jelinek <jakub@redhat.com>
228 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
229 sections into .rel{,a}.dyn.
231 2002-10-23 Nick Clifton <nickc@redhat.com>
233 * lexsup.c (OPTION_NO_OMAGIC): Define.
234 (ld_options): Add "no-omagic" option.
235 (parse_args): Parse --no-omagic.
236 * ld.texinfo: Document --no-omagic.
237 * NEWS: Mention new option.
239 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
241 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
242 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
244 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
246 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
247 emulation name. Set LIB_PATH only for native tools, and
248 search the ABI-specific versions of NATIVE_LIB_DIRS before the
249 .../lib variants, not instead of them. Mostly copied from...
250 * emulparams/elf32ppc.sh: ... here. Fixed typo.
251 * emulparams/elf64bmip-defs.sh: Backed out.
252 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
253 * emulparams/elf64btsmip.sh: Likewise.
254 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
255 TEXT_DYNAMIC): Removed.
257 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
259 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
260 (GENERATE_SHLIB_SCRIPT): Set to yes.
261 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
262 * emulparams/elf32bmipn32.sh: here.
263 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
264 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
265 * emulparams/elf64bmip-defs.sh: New file. Extend
266 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
267 * emulparams/elf64bmip.sh: Bring in definitions from
269 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
271 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
272 * emulparams/elf64btsmip.sh: Bring in definitions from
274 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
275 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
277 2002-10-16 Jakub Jelinek <jakub@redhat.com>
279 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
280 (s390-*-linux*): Add elf64_s390 emulation if want64.
281 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
282 genscript.sh changes.
283 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
284 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
286 2002-10-15 Alan Modra <amodra@bigpond.net.au>
288 * ldlang.c (load_symbols): Revert last change.
290 2002-10-14 Alan Modra <amodra@bigpond.net.au>
292 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
294 (lang_reasonable_defaults): Don't compare against false.
295 (size_input_section): Likewise.
296 (lang_size_sections_1): Likewise.
297 (lang_do_assignments): Likewise.
298 (lang_add_output): Likewise.
300 * Makefile.am: Run "make dep-am".
301 * Makefile.in: Regenerate.
302 * ldver.c: #include "bfdver.h".
304 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
306 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
308 * scripttempl/elfm68hc12.sc: Likewise.
310 2002-10-11 Alan Modra <amodra@bigpond.net.au>
312 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
314 * ldgram.y (memory_spec): Provide empty action.
315 (section <NAME>): Likewise.
317 2002-10-10 Jakub Jelinek <jakub@redhat.com>
319 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
320 they have OUTPUT_FORMAT not matching actual output format.
321 * ldlang.c (lang_get_output_target): New function.
322 (open_output): Use it.
323 * ldlang.h (lang_get_output_target): New prototype.
325 2002-10-10 Alan Modra <amodra@bigpond.net.au>
327 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
328 when orphan is .rel, .rela when orphan is .rela.
329 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
330 first. Remove outsecname var.
332 2002-10-09 Richard Shann <richard.shann@superh.com>
333 Stephen Clarke <stephen.clarke@superh.com>
335 * Makefile.am: Add eshelf32_linux.o and
336 eshlelf32_linux.o, new emulations for sh64 Linux.
337 * Makefile.in: Regenerate.
338 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
339 * emulparams/shelf32_linux.sh: New file.
340 * emulparams/shlelf32_linux.sh: New file.
342 2002-10-08 H.J. Lu <hjl@gnu.org>
344 * ldlang.c (lang_file_exist): Removed.
345 (new_afile): Revert the last change.
346 * ldlang.h (lang_file_exist): Removed.
347 * lexsup.c (parse_args): Revert the last change.
349 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
351 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
353 (make_one): Create _nm_<symbol> for data only.
355 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
357 * ldlang.c (lang_file_exist): New function.
358 (new_afile): Abort if the filename to be added matches the linker
360 * ldlang.h: Add prototype for lang_file_exist.
361 * lexsup.c (parse_args): Abort if the output filename matches
362 one of the input filenames.
364 2002-10-02 Alan Modra <amodra@bigpond.net.au>
366 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
368 2002-09-30 Alan Modra <amodra@bigpond.net.au>
370 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
371 * scripttempl/elfm68hc11.sc: Likewise.
372 * scripttempl/elfm68hc12.sc: Likewise.
374 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
375 reloc sections just before .rel.plt/.rela.plt.
376 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
377 Only put loadable reloc sections in hold_rel.
379 2002-09-29 H.J. Lu <hjl@gnu.org>
381 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
383 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
385 From "Anita Kulkarni" <AnitaK@kpit.com>
386 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
389 2002-09-25 Alan Modra <amodra@bigpond.net.au>
391 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
393 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
394 SEGMENT_SIZE alignment.
395 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
396 (SEGMENT_SIZE): Define.
398 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
399 (fold_binary): Correct abs - non-abs case.
400 (fold_trinary): New. Split out from exp_fold_tree.
402 2002-09-24 Alan Modra <amodra@bigpond.net.au>
404 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
405 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
406 for start of .data, instead align up to 256M boundary.
407 * scripttempl/aix.sc: Likewise.
409 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
411 * scripttempl/i386go32.sc: Handle bss unique sections.
413 2002-09-21 Alan Modra <amodra@bigpond.net.au>
415 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
417 2002-09-17 Stan Cox <scox@redhat.com>
419 * emulparams/elf32bmipn32-defs.sh: New file.
420 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
421 * emulparams/elf32btsmipn32.sh: Likewise.
422 * emulparams/elf64bmip.sh: Likewise.
423 * emulparams/elf64btsmip.sh: Likewise.
425 2002-09-16 Bruno Haible <bruno@clisp.org>
427 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
429 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
432 2002-09-11 Nick Clifton <nickc@redhat.com>
434 * NEWS: New TI port supports both C4x and C3x series of DSPs.
436 * po/tr.po: Updated Turkish translation.
438 2002-09-06 Jeffrey A Law (law@redhat.com)
440 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
442 2002-09-02 Nick Clifton <nickc@redhat.com>
444 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
446 * emulparams/v850.sh (TEMPLATE_NAME): Define.
448 2002-08-30 Nick Clifton <nickc@redhat.com>
450 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
451 used. Change INSN to start at 0x01000000 and extend for
452 256K (ignoring holes). Start the STACK on a word aligned
454 (.rodata): Start it at the READONLY_START_ADDR.
456 2002-08-30 Alan Modra <amodra@bigpond.net.au>
458 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
460 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
462 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
463 added makefile targets for this file.
464 * Makefile.in: Regenerate.
465 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
466 * NEWS: Mention new port.
468 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
470 * emulparams/tic3xcoff.sh: New file.
471 * emulparams/tic4xcoff.sh: New file.
472 * scripttempl/tic3xcoff.sc: New file.
473 * scripttempl/tic4xcoff.sc: New file.
475 2002-08-28 Alan Modra <amodra@bigpond.net.au>
477 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
478 strtoul and strtoull with bfd_scan_vma.
479 (gld${EMULATION_NAME}_read_file): Likewise.
481 2002-08-28 Alan Modra <amodra@bigpond.net.au>
483 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
485 2002-08-27 Egor Duda <deo@logos-m.ru>
487 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
488 Add symbols for application to access them.
490 2002-08-27 Nick Clifton <nickc@redhat.com>
492 * emultempl/armelf.em: Revert this patch, it is not needed.
494 2002-08-22 Adam Nemet <anemet@lnxw.com>
496 2002-08-20 Dan Kegel <dank@kegel.com>
498 * configure.in: added --with-lib-path argument to ld's configure
500 * ld/NEWS: Document new switch.
501 * ld/README: Mention new switch.
502 * configure: Regenerate.
503 * Makefile.in: Regenerate.
506 2001-04-25 Christopher Faylor <cgf@cygnus.com>
508 * Makefile.in (LIB_PATH): Make configurable.
509 (GENSCRIPTS): Set LIB_PATH in environment.
510 * configure.in: Substitute LIB_PATH.
512 2002-08-22 Adam Nemet <anemet@lnxw.com>
514 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
515 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
516 depending on the type of the function.
517 (arm_elf_convert_thumb_symbol_to_address): New function.
519 2002-08-22 Graeme Peterson <gp@qnx.com>
521 * Makefile.am: Add esh{l}elf_nto.o files.
522 * Makefile.in: Regenerate.
523 * configure.tgt: Add support for sh-**-nto* targets.
524 * emulparams/shelf_nto.sh: New file.
525 * emulparams/shlelf_nto.sh: New file.
527 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
529 * ldlang.c (offsetof): Define if not defined.
531 2002-08-14 H.J. Lu <hjl@gnu.org>
533 * configure.tgt: Always enable 64bit emulations for 32bit
536 2002-08-13 Alan Modra <amodra@bigpond.net.au>
538 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
539 (MAXPAGESIZE): Set to 1.
541 * ld.h (ALIGN_N): Delete.
542 * ldexp.h (align_n): Declare.
543 * ldexp.c (align_n): New function.
544 (fold_binary): Use align_n instead of ALIGN_N.
545 (exp_fold_tree): Likewise.
546 * ldlang.c (lang_size_sections_1): Likewise.
547 (lang_one_common): Likewise.
548 * ld.texinfo (ALIGN): Remove power of 2 restriction.
550 2002-07-31 Graeme Peterson <gp@qnx.com>
552 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
553 * Makefile.am: Add eelf32{l}ppcnto.o files.
554 * Makefile.in: Regenerate.
555 * emulparams/elf32lppcnto.sh: New file.
556 * emulparams/elf32ppcnto.sh: New file.
558 2002-08-07 H.J. Lu <hjl@gnu.org>
560 * ld.texinfo: Document --no-undefined-version.
562 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
563 `script.' fields to 0.
565 * ldmain.c (main): Initialize the allow_undefined_version to
568 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
569 (ld_options): Add --no-undefined-version.
570 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
572 2002-08-07 Nick Clifton <nickc@redhat.com>
574 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
575 an interworking bfd if there are input bfds. (107501)
577 2002-08-06 Alan Modra <amodra@bigpond.net.au>
579 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
582 2002-08-01 Nick Clifton <nickc@redhat.com>
584 * emulparams/armelf.sh: Revert previous delta.
585 * scripttempl/elf.sc: Revert previous delta.
587 2002-07-31 H.J. Lu <hjl@gnu.org>
589 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
592 2002-07-31 H.J. Lu <hjl@gnu.org>
594 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
595 64bit BFD is selected.
597 2002-07-31 H.J. Lu <hjl@gnu.org>
599 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
600 if 64bit BFD is selected.
602 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
604 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
605 link_info.common_skip_ar_aymbols.
606 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
608 * ldmain.c (main): Initialize new field
609 link_info.common_skip_ar_aymbols.
611 2002-07-31 Adam Nemet <anemet@lnxw.com>
613 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
615 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
618 2002-07-31 Nick Clifton <nickc@redhat.com>
620 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
621 of the PDP-11 and 2.11BSD a.out support.
623 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
625 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
627 * Makefile.in: Regenerate.
628 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
629 n32 ABI emulations for these 64 bit targets.
630 * emulparams/elf32bmipn32.sh: Expand comment.
631 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
633 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
635 2002-07-30 Graeme Peterson <gp@qnx.com>
637 * configure.tgt: Add support for arm-*-nto target.
638 * Makefile.am: Add earmnto.o file.
639 * Makefile.in: Regenerate.
640 * NEWS: Mention port of ARM support to QNX.
641 * emulparams/armnto.sh: New file.
643 2002-07-30 Jakub Jelinek <jakub@redhat.com>
645 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
646 for relocatable link.
647 (lang_size_sections_1): Don't make .tbss zero size for relocatable
650 2002-07-26 Bernd Schmidt <bernds@redhat.com>
652 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
655 2002-07-25 Nick Clifton <nickc@redhat.com>
657 * po/sv.po: Updated Swedish translation.
658 * po/es.po: Updated Spanish translation.
659 * po/fr.po: Updated French translation.
661 2002-07-24 Nick Clifton <nickc@redhat.com>
663 * po/sv.po: Updated Swedish translation.
664 * po/es.po: Updated Spanish translation.
666 2002-07-23 Nick Clifton <nickc@redhat.com>
668 * po/fr.po: Updated French translation.
670 2002-07-20 Alan Modra <amodra@bigpond.net.au>
672 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
673 bomb on /DISCARD/ input section.
674 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
675 * emultempl/mmo.em (mmo_place_orphan): Likewise.
677 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
679 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
682 2002-07-16 Denis Chertykov <denisc@overta.ru>
683 Nick Clifton <nickc@redhat.com>
684 Frank Ch. Eigler <fche@redhat.com>
685 John Healy <jhealy@redhat.com>
687 * configure.tgt: Add support for ip2k-elf.
688 * Makefile.am: Add support for ip2k-elf.
689 * Makefile.in: Regenerate.
690 * emulparams/elf32ip2k.sh: New file.
691 * scripttempl/ip2k.sc: New file
692 * NEWS: Mention support for new port.
694 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
696 * NEWS: Add 'Changes in 2.13'.
698 2002-07-14 H.J. Lu <hjl@gnu.org>
700 * ld.texinfo: Document a .symver takes precedence over a
703 2002-07-12 Alan Modra <amodra@bigpond.net.au>
705 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
706 (COMMONPAGESIZE): Define.
708 2002-07-09 Alan Modra <amodra@bigpond.net.au>
710 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
712 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
714 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
715 powerpc-*-openbsd* and sparc64-*-openbsd*.
716 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
717 * Makefile.in: Regenerate.
718 * emulparams/hppaobsd.sh: New file.
720 2002-07-05 Alan Modra <amodra@bigpond.net.au>
722 * ldlang.c (print_wild_statement): Fix output formatting.
724 2002-07-04 Alan Modra <amodra@bigpond.net.au>
726 * ldlang.c: (strip_excluded_output_sections): New function.
727 (lang_process): Call it.
728 (lang_size_sections_1): Revert 2002-06-10 change.
730 2002-07-03 Alan Modra <amodra@bigpond.net.au>
732 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
734 * Makefile.in: Regenerate.
736 2002-07-02 Alan Modra <amodra@bigpond.net.au>
738 * ldfile.c (ldfile_try_open_bfd): Formatting.
740 * ldmisc.c (demangle): Move so that it doesn't intrude between
741 vfinfo comment and body. Add comment.
743 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
745 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
747 2002-07-01 Alan Modra <amodra@bigpond.net.au>
749 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
750 * ldlang.c (entry_sym): Likewise.
751 (ldlang_undef_chain_list_type): Likewise.
752 (lang_finish): Adjust references to entry_symbol.
753 (lang_add_entry): Likewise.
754 (lang_gc_sections): Use link_info.gc_sym_list.
755 (lang_process): Set link_info.gc_sym_list.
756 * ldlex.l: Include bfdlink.h.
757 * ldmain.c (main): Init link_info.gc_sym_list.
758 * emultempl/aix.em: Adjust references to entry_symbol.
759 * emultempl/armcoff.em: Likewise.
760 * emultempl/armelf.em: Likewise.
761 * emultempl/pe.em: Likewise.
762 * emultempl/ppc64elf.em (ppc_after_open): New function.
763 (LDEMUL_AFTER_OPEN): Define.
764 * emulparams/elf64ppc.sh: KEEP .opd sections.
766 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
768 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
769 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
770 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
771 (EEPROM_START_ADDR): Define.
772 (EEPROM_MEMORY): Define.
773 * emulparams/m68hc12elf.sh: Likewise.
774 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
775 section to put soft registers in .page0.
776 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
778 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
780 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
781 section. Add ${RELOCATING-0}.
783 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
785 * emulparams/shelf.sh (STACK_ADDR): Don't define.
786 (OTHER_SECTIONS): Define.
787 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
788 (OTHER_SECTIONS): Undef.
790 2002-06-26 Alan Modra <amodra@bigpond.net.au>
792 * ldmisc.c (demangle): Restore dots stripped from sym name.
794 2002-06-25 H.J. Lu <hjl@gnu.org>
796 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
797 * Makefile.in: Regenerated.
799 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
801 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
802 the size of attached object files, to allow make the object files
803 available via FTP or HTTP and to mention that the mail will be
804 sent to a mailing list.
806 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
808 * ld/configure.host (romp): Drop support.
810 2002-06-18 Chris Demetriou <cgd@broadcom.com>
812 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
813 section flags for SEC_DATA, rather than for SEC_CODE being unset.
815 2002-06-18 Chris Demetriou <cgd@broadcom.com>
817 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
818 format specifier used to print BFD name.
820 2002-06-18 Dave Brolley <brolley@redhat.com>
822 From Catherine Moore, Michael Meissner, Jim Blandy:
823 * emulparams/elf32frv.sh: New file.
824 * configure.tgt: Support frv-*-*.
825 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
826 (eelf32frv.c): New target.
828 2002-06-17 Tom Rix <trix@redhat.com>
830 * emultempl/elf32.em: gld*_get_script: Check for
831 GENERATE_COMBRELOC_SCRIPT.
832 * scripttempl/elfd10v.sc : Fix STACK and INSN.
833 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
835 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
837 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
839 2002-06-12 H.J. Lu <hjl@gnu.org>
841 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
842 false if xvec doesn't match.
844 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
846 * ldlang.c (lang_size_sections_1): Skip removed output sections.
848 2002-06-08 Alan Modra <amodra@bigpond.net.au>
850 * ldexp.c: Replace CONST with const.
851 * ldfile.c: Likewise.
852 * ldfile.h: Likewise.
855 * pe-dll.h: Likewise.
857 2002-06-07 Alan Modra <amodra@bigpond.net.au>
859 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
861 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
863 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
864 to -1 == implicit enable.
865 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
866 initialize link_info.pei386_auto_import to -1 == implicit
868 (gld_${EMULATION_NAME}_parse_args): When processing
869 --enable-auto-import and --disable-auto-import options, use
870 '1' and '0' instead of 'true' and 'false'.
871 (pe_find_data_imports): Only issue message about auto-import
872 when the feature is implicitly enabled. Downgrade message to
873 informational instead of warning.
875 2002-06-07 Alan Modra <amodra@bigpond.net.au>
877 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
879 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
881 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
882 HOSTING_CRT0 and HOSTING_LIBS.
884 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
886 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
888 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
890 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
891 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
893 2002-06-05 Alan Modra <amodra@bigpond.net.au>
895 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
896 SEC_EXCLUDE sections when doing a relocatable link.
898 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
900 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
901 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
902 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
903 (eshlelf64_nbsd.c): New rules.
904 * Makefile.in: Regenerate.
905 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
906 (sh64-*-netbsd*): New targets.
907 * emulparams/shelf32_nbsd.sh: New file.
908 * emulparams/shelf64_nbsd.sh: New file.
909 * emulparams/shlelf32_nbsd.sh: New file.
910 * emulparams/shlelf64_nbsd.sh: New file.
912 2002-06-04 Alan Modra <amodra@bigpond.net.au>
914 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
916 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
918 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
919 C++ constructors/destructors, loosely based on the m68hc11 port.
921 2002-05-31 Alan Modra <amodra@bigpond.net.au>
923 * Makefile.in: Regenerate.
924 * aclocal.m4: Regenerate.
925 * config.in: Regenerate.
926 * configure: Regenerate.
928 2002-05-31 Graeme Peterson <gp@qnx.com>
930 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
931 (ei386nto.c): Add rule.
932 * Makefile.in: Regenerate.
933 * configure.tgt: Add i[3456]86-*-nto-qnx*.
934 * emulparams/i386nto.sh: New file.
936 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
938 * NEWS: Add entry for VAX ELF support.
940 2002-05-29 Matt Thomas <matt@3am-software.com>
941 Jason Thorpe <thorpej@wasabisystems.com>
943 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
945 (evaxnbsd.c): New rules.
946 * Makefile.in: Regenerate.
947 * configure.tgt (vax-*-netbsdelf*)
949 (vax-*-netbsd*): New targets.
950 * emulparams/elf32vax.sh: New file.
951 * emulparams/vaxnbsd.sh: New file.
953 2002-05-29 Adam Nemet <anemet@lnxw.com>
955 * emultempl/armelf.em (arm_elf_after_open): Don't determine
956 bfd_for_interwork, instead add glue sections to each input bfd.
957 (bfd_for_interwork): New global.
958 (arm_elf_set_bfd_for_interworking): New function.
959 (arm_elf_before_allocation): Use it.
961 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
963 * Makefile.am: Add DLX make target.
964 * configure.tgt: Add DLX configuration.
965 * Makefile.in: Regenerate.
966 * emulparams/elf32_dlx.sh: New file
967 * scripttempl/dlx.sc: New file
969 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
971 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
972 * Makefile.in: Regenerate.
973 * emulparams/elf_chaos.sh: Use elf_chaos script.
974 * scripttempl/elf_chaos.sc: New file.
976 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
978 * ldlang.c (lang_size_sections_1): Move check for conflicting load
979 addresses and regions from here...
980 (lang_get_regions): ...to this new function.
981 (lang_leave_output_section_statement): Use lang_get_regions.
982 (lang_leave_overlay): Likewise.
983 * mri.c (mri_draw_tree): Pass null as last argument to
984 lang_leave_output_section_statement.
985 * emultempl/elf32.em (gld*_place_orphan): Likewise.
986 * emultempl/mmo.em (mmo_place_orphan): Likewise.
987 * emultempl/pe.em (gld*_place_orphan): Likewise.
989 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
991 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
993 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
995 * ldemul.c: Fix formatting.
996 * ldfile.c: Likewise.
997 * pe-dll.c: Likewise.
998 * pe-dll.h: Likewise.
1000 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1002 * ldlang.c (lang_process): Formatting, grammar.
1004 * ldlex.l: Use #include "" instead of <> for local header files.
1006 2002-05-24 TAMURA Kent <kent@netbsd.org>
1008 * configure.tgt: Add a target for i386-netbsdpe.
1010 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1012 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1013 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1014 output section if necessary. Handle .tbss.
1015 (lang_size_sections): Clear _raw_size for .tbss section
1016 (it allocates space in PT_TLS segment only).
1017 * ldwrite.c (build_link_order): Build link order for .tbss too.
1019 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1021 * configure.in: Correct spelling of AC_PREREQ.
1023 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1025 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1027 (autofilter_objlist): Add crtbegin.o, crtend.o.
1029 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1031 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1032 (longopts): Add new option --exclude-libs.
1033 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1034 (gld_${EMULATION_NAME}_parse_args): Use it.
1035 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1036 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1037 from whole archives.
1038 (pe_dll_add_excludes): Set excludes->type.
1039 (auto_export): Add new variable libname and set to archive basename if
1040 abfd. Use it when filtering default and user-specified libarary
1041 excludes. Let string "ALL" mean all libs when filtering user-specified
1043 * ld.texinfo: Document --exclude-libs.
1045 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1047 * ldemul.c (ldemul_new_vers_pattern): New function.
1048 * ldemul.h (ldemul_new_vers_pattern): Declare.
1049 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1050 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1051 * emultempl/ppc64elf.em (dotsyms): New static var.
1052 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1053 (LDEMUL_NEW_VERS_PATTERN): Define.
1054 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1055 (PARSE_AND_LIST_LONGOPTS): Likewise.
1056 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1057 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1059 * emultempl/armcoff.em: Likewise.
1060 * emultempl/armelf_oabi.em: Likewise.
1061 * emultempl/beos.em: Likewise.
1062 * emultempl/elf32.em: Likewise.
1063 * emultempl/generic.em: Likewise.
1064 * emultempl/gld960.em: Likewise.
1065 * emultempl/gld960c.em: Likewise.
1066 * emultempl/linux.em: Likewise.
1067 * emultempl/lnk960.em: Likewise.
1068 * emultempl/m68kcoff.em: Likewise.
1069 * emultempl/mipsecoff.em: Likewise.
1070 * emultempl/pe.em: Likewise.
1071 * emultempl/sunos.em: Likewise.
1072 * emultempl/ticoff.em: Likewise.
1073 * emultempl/vanilla.em: Likewise.
1075 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1077 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1078 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1079 (LIB_SEARCH_DIRS): No need to use "tr".
1080 (COMPILE_IN): Only set for native targets.
1081 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1082 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1083 * configure.tgt (powerpc*): Set tdir_*.
1084 (powerpcle*): Correct targ_extra_emuls.
1085 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1086 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1088 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1090 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1091 calling lang_add_entry.
1093 2002-05-21 H.J. Lu (hjl@gnu.org)
1095 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1097 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1099 * ld.texinfo: Updated for --allow-multiple-definition and
1102 * ldmain.c (main): Initialize the allow_multiple_definition
1105 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1106 (ld_options): Add --allow-multiple-definition.
1107 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1109 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1111 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1112 (earmelfb_nbsd.c): New rule.
1113 * Makefile.in: Regenerate.
1114 * configure.tgt (armeb-*-netbsdelf*): New target.
1115 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1116 (arm-*-netbsd*): Likewise.
1117 * emulparams/armelfb_nbsd.sh: New file.
1119 2002-05-18 Tom Rix <trix@redhat.com>
1121 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1124 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1126 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1127 * Makefile.in: Regenerate.
1128 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1130 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1132 * emulparams/avr1.sh: New file.
1133 * emulparams/avr2.sh: New file.
1134 * emulparams/avr3.sh: New file.
1135 * emulparams/avr4.sh: New file.
1136 * emulparams/avr5.sh: New file.
1137 * scripttempl/avr.sc: New file.
1139 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1141 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1142 (lang_place_orphans): Abort if just_syms_flag.
1144 2002-05-10 Tom Rix <trix@redhat.com>
1146 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1147 architecture and machine information in the output bfd.
1148 (gld*_before_parse): Remove old arch and machine code.
1149 (choose_target): Rename to gld*_choose_target.
1150 (rtld): Change type to int.
1151 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1152 objects in XCOFF archives.
1153 * ldfile.h: Update copyright date.
1155 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1157 * ldmain.c (main): Enable -z combreloc by default.
1159 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1161 * Makefile.am: Honour DESTDIR.
1162 * Makefile.in: Regenerate.
1164 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1166 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1167 (lang_enter_overlay): Remove the last two parameters.
1168 (lang_leave_overlay): Take them here instead.
1169 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1170 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1171 than lang_enter_overlay.
1172 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1173 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1174 (lang_size_sections_1): Evaluate it.
1175 (lang_leave_output_section_statement): Rework LMA lookup.
1176 (overlay_lma, overlay_nocrossrefs): Remove.
1177 (lang_enter_overlay): Remove LMA and crossref arguments.
1178 (lang_enter_overlay_section): Don't set the LMA here.
1179 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1180 assignment to the last section's update_dot_tree. Unconditionally
1181 use the load and run-time regions specified in the OVERLAY statement.
1182 Likewise the first section's LMA. Only set the other sections' LMAs
1183 when no load region is given.
1185 2002-05-06 Nick Clifton <nickc@redhat.com>
1187 * po/sv.po: New translation.
1189 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1191 * emultempl/hppaelf.em (build_section_lists): New function.
1192 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1193 and build_section_lists.
1195 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1197 * ld.h: Fix formatting.
1198 * ldexp.c: Likewise.
1199 * ldfile.c: Likewise.
1200 * ldlang.c: Likewise.
1201 * ldmain.c: Likewise.
1202 * lexsup.c: Likewise.
1203 * pe-dll.c: Likewise.
1205 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1207 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1208 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1209 (build_section_lists): Do output_section tests here.
1211 2002-04-30 Tom Rix <trix@redhat.com>
1213 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1215 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1217 Long branch stubs, multiple stub sections.
1218 * emultempl/ppc64elf.em: Include ldctor.h.
1219 (stub_file): New var.
1220 (group_size): New var.
1221 (ppc_create_output_section_statements): New function.
1222 (struct hook_stub_info): New.
1223 (hook_in_stub): New function.
1224 (ppc_add_stub_section): New function.
1225 (ppc_layout_sections_again): New function.
1226 (build_section_lists): New function.
1227 (gld${EMULATION_NAME}_finish): Rewrite.
1228 (real_func): New var.
1229 (ppc_for_each_input_file_wrapper): New function.
1230 (ppc_lang_for_each_input_file): New function.
1231 (lang_for_each_input_file): Define.
1232 (PARSE_AND_LIST_PROLOGUE): Define.
1233 (PARSE_AND_LIST_LONGOPTS): Define.
1234 (PARSE_AND_LIST_OPTIONS): Define.
1235 (PARSE_AND_LIST_ARGS_CASES): Define.
1236 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1238 2002-04-30 Tom Rix <trix@redhat.com>
1240 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1241 -blibpath, -bnolibpath support.
1243 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1245 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1246 (eelf32ppcwindiss.c): New target.
1247 * Makefile.in: Regenerated.
1248 * configure.tgt: Add support for powerpc-*-windiss.
1249 * emulparams/elf32ppcwindiss.sh: New file.
1251 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1253 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1254 * ldexp.c (exp_print_token): Add "infix_p" argument.
1255 (exp_print_tree): Update accordingly.
1257 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1259 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1260 * Makefile.in: Regenerate.
1261 * mpw-elfmips.c: Delete.
1262 * mpw-eppcmac.c: Delete.
1263 * mpw-esh.c: Delete.
1264 * mpw-idtmips.c: Delete.
1266 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1268 * emulparams/shelf32.sh (MACHINE): Now sh5.
1270 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1272 * ldgram.y: Fix syntax warning.
1274 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1276 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1277 to prevent "-n" from being taken as an abbreviation for
1278 "--no-pipeline-knowledge".
1280 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1282 * ldlang.c (lang_size_sections_1): Don't complain about
1283 SEC_NEVER_LOAD sections having no memory region specified.
1285 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1287 2002-04-07 matthew green <mrg@redhat.com>
1289 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1291 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1293 * dep-in.sed: Cope with absolute paths.
1294 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1296 * Makefile.in: Regenerate.
1298 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1300 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1302 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1304 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1305 is smaller than maximum, round dot up to common page boundary.
1307 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1309 * configure.host: Set up for generic hosts first, then tweak as
1310 necessary in more specific targets.
1311 (HOSTING_LIBS): Include libgcc_eh.a if found.
1313 2002-03-23 Andreas Jaeger <aj@suse.de>
1315 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1317 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1319 * Makefile.am: Run "make dep-am".
1320 * Makefile.in: Regenerate.
1322 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1324 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1326 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1328 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1329 add the symbol to the linker hash table immediately.
1330 (lang_place_undefineds): Split symbol creation out..
1331 (insert_undefined): ..to here.
1333 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1335 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1336 the contents of the buffer returned from basename function will are
1337 getting overwritten while still being used.
1339 2002-03-18 Jan Hubicka <jh@suse.cz>
1340 Andreas Jaeger <aj@suse.de>
1341 Andreas Schwab <schwab@suse.de>
1343 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1344 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1345 set libraries to default to lib64 paths.
1347 2002-03-18 Tom Rix <trix@redhat.com>
1349 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1350 * configure.tgt : Same.
1351 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1352 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1353 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1354 emulation parameters for better -b32, -b64 support.
1355 * emulparms/aixrs6.sh : Same.
1356 * emulparms/ppcmacos.sh : Same.
1357 * emultempl/aix.em (choose_target) : Use new emulation parameters
1358 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1359 * Makefile.in : Regenerate.
1361 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1363 * po/fr.po: Updated version.
1365 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1367 * ldmain.c (main): Move .text readonly flag fudges from here..
1368 * ldlang.c (lang_process): ..to here.
1370 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1372 * ldlang.c (lang_check): Remove the word size check added in last
1373 change. Treat emitrelocations case as for relocatable links.
1375 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1377 * po/fr.po: Updated version.
1379 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1381 * ldlang.c (lang_check): Do relocatable link checks first, so that
1382 warn_mismatch can't override. Check compatible and word size too.
1384 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1386 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1388 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1390 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1393 2002-03-04 H.J. Lu <hjl@gnu.org>
1395 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1396 .fini_array in the data segment.
1398 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1400 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1402 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1404 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1405 .init_array, and .fini_array.
1407 2002-02-20 Andreas Schwab <schwab@suse.de>
1409 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1410 .IA64_unwind* in a relocatable link.
1412 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1414 * NEWS: Mark 2.12 branch.
1416 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1418 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1419 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1421 2002-02-18 Tom Rix <trix@redhat.com>
1423 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1424 (gld*_before_allocation): Same.
1425 (gld*_create_output_section_statements): Generate
1426 __rtinit if run time linking. Add librtl.a to the link.
1427 (gld*_read_file): Clean.
1429 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1431 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1433 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1435 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1436 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1437 and eelf64alpha_fbsd.
1438 * Makefile.in: Regenerate.
1439 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1440 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1441 use a FreeBSD-specific emulation rather than the psABI one.
1442 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1443 for all FreeBSD ELF systems.
1444 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1446 * emulparams/elf32ppc_fbsd.sh: Likewise.
1447 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1448 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1449 * emulparams/elf64alpha_fbsd.sh: Likewise.
1450 * emulparams/elf_i386_fbsd.sh: Likewise.
1451 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1453 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1455 * po/tr.po: Updated version.
1457 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1459 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1462 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1464 * emultempl/mmo.em (mmo_after_open): Don't call
1465 _bfd_mmix_check_all_relocs when producing ELF output.
1467 2002-02-15 Richard Henderson <rth@redhat.com>
1469 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1470 definition. Emit a unop+nop pair.
1472 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1474 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1475 for presence of .MMIX.reg_contents.linker_allocated before early
1478 * NEWS: Mention support for MMIX.
1480 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1482 Support arbitrary length fill patterns.
1483 * ld.texinfo (Output Section Fill): Describe fill expressions.
1484 (FILL): Refer to the above.
1485 * ldexp.h (etree_value_type): Add "str" field.
1486 (union etree_union): Add "str" to "value" struct.
1487 (exp_bigintop): Declare.
1488 (exp_get_fill): Declare.
1489 * ldexp.c: Include "safe-ctype.h".
1490 (exp_intop): Set value.str to NULL.
1491 (exp_bigintop): New function.
1492 (new_rel): Pass in "str", and set new.str from it.
1493 (new_rel_from_section): Set new.str to NULL.
1494 (fold_name): Adjust calls to new_rel.
1495 (exp_fold_tree): Likewise.
1496 (exp_get_fill): New function.
1497 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1498 (INT): Returns a "bigint". Adjust all code handling INTs.
1499 (fill_opt): Returns a "fill".
1500 (fill_exp): Split out of fill_opt, use for FILL.
1501 * ldlang.h (struct _fill_type): New.
1502 (fill_type): Move typedef to ldexp.h.
1503 (lang_output_section_statement_type): "fill" is now a pointer.
1504 (lang_fill_statement_type): Likewise.
1505 (lang_padding_statement_type): Likewise.
1506 (lang_add_fill): Now takes a "fill_type *" param.
1507 (lang_leave_output_section_statement): Likewise.
1508 (lang_do_assignments): Likewise.
1509 (lang_size_sections): Likewise.
1510 (lang_leave_overlay_section): Likewise.
1511 (lang_leave_overlay): Likewise.
1512 * ldlang.c: Include ldgram.h after ldexp.h.
1513 (lang_output_section_statement_lookup): Adjust for fill_type change.
1514 (print_fill_statement): Likewise.
1515 (print_padding_statement): Likewise.
1516 (insert_pad): Now takes a "fill_type *" arg.
1517 (size_input_section): Likewise.
1518 (lang_size_sections_1): Likewise.
1519 (lang_size_sections): Likewise.
1520 (lang_do_assignments): Likewise.
1521 (lang_add_fill): Likewise.
1522 (lang_leave_output_section_statement): Likewise.
1523 (lang_leave_overlay_section): Likewise.
1524 (lang_leave_overlay): Likewise.
1525 Adjust all callers of the above function.
1526 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1527 starting with "0X" as well as "0x". Return bigint.str for hex
1528 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1529 Always use base 16 for numbers starting with "$".
1530 * ldmain.c: Include ldgram.h after ldexp.h.
1531 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1532 of bfd_fill_link_order.
1533 * pe-dll.c: Adjust lang_do_assignments calls.
1534 * emultempl/elf32.em: Likewise.
1535 * emultempl/hppaelf.em: Likewise.
1536 * emultempl/ppc64elf.em: Likewise.
1537 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1538 lang_add_assignment call.
1539 * emultempl/pe.em: Likewise.
1541 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1543 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1544 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1545 the pattern in question is not a regexp.
1546 * ldlang.c: Likewise.
1547 * ldlang.h: Likewise.
1548 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1550 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1552 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1553 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1554 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1555 * ldexp.c (exp_data_seg): New variable.
1556 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1557 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1558 (exp_fold_tree): Handle DATA_SEGMENT_END.
1559 Pass allocation_done when recursing instead of hardcoding
1560 lang_allocating_phase_enum.
1561 * ldexp.h (exp_data_seg): New.
1562 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1563 (lang_size_sections): New.
1564 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1565 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1566 if COMMONPAGESIZE is defined.
1567 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1568 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1569 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1570 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1571 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1574 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1576 * Makefile.in: Regenerate.
1578 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1580 * lexsup.c: Remove strtoul declaration.
1582 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1584 * ldmain.c: Add prototype for main ().
1585 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1586 * emultempl/lnk960.em (lnk960_choose_target): Function should
1589 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1591 * ldlang.c (entry_section): New initialised variable.
1592 (lang_finish): Use it.
1593 * ldlang.h (entry_section): Declare.
1594 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1595 entry_section to ".opd".
1597 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1599 * ld.texinfo (Options): Add back in -nostdlib documentation,
1600 which had been inadvertently removed.
1602 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1604 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1605 register section vma to a sane value after emitting error. Make
1606 fatal conditions cause program exit when emitting message.
1608 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1610 * configure.tgt: Add or32-*-rtems target.
1612 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1614 Contribute sh64-elf.
1615 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1616 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1617 in OTHER_RELOCATABLE_SECTIONS.
1618 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1619 * emulparams/shelf32.sh (STACK_ADDR): Define.
1620 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1621 (OTHER_SECTIONS): this. Removed stack settings.
1622 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1623 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1624 2001-03-12 DJ Delorie <dj@redhat.com>
1625 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1626 relaxing if any shmedia or mixed sections are found.
1627 2001-03-07 DJ Delorie <dj@redhat.com>
1628 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1629 einfo. Gracefully decline to output to non-elf formats.
1630 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1631 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1632 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1633 * emulparams/shelf32.sh: Ditto.
1634 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1635 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1637 2001-01-10 Ben Elliston <bje@redhat.com>
1638 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1639 non-portable shell constructs. From Hans-Peter Nilsson.
1640 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1641 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1642 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1643 dependencies to the shell script include chain.
1644 * Makefile.in: Regenerate.
1645 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1646 * emultempl/sh64elf.em: Update and tweak comments.
1647 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1648 make a .cranges section SEC_IN_MEMORY.
1649 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1650 * emultempl/sh64elf.em
1651 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1652 .cranges section found to be necessary; continue and set stored
1653 section contents flags for sections with non-mixed contents.
1654 Use a struct sh64_section_data container and sh64_elf_section_data
1655 to store contents-type flags.
1656 Remove unused update of "isec".
1657 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1658 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1659 access contents-type flags. Assert that the associated container
1660 is initialized. Use that container, not elf_gp_size, to hold size
1661 of linker-generated cranges contents.
1662 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1663 * emultempl/sh64elf.em
1664 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1665 there's already a .cranges section. When section flag difference
1666 is found, don't NULL-check cranges a second time. Tweak comments.
1667 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1668 merging, not max size, as size of ld-generated .cranges contents.
1669 Don't set ELF section flags in output section. When checking for
1670 needed .cranges descriptors, don't use a variable; compare
1671 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1673 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1674 * emultempl/sh64elf.em: New file.
1675 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1676 * Makefile.in: Regenerate.
1677 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1678 (OTHER_RELOCATING_SECTIONS): Ditto.
1679 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1680 * emulparams/shlelf32.sh: Stub out all settings except
1681 OUTPUT_FORMAT. Source shelf32.sh.
1682 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1683 OTHER_RELOCATING_SECTIONS.
1684 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1685 * emulparams/shlelf64.sh: Stub out all settings except
1686 OUTPUT_FORMAT. Source shelf64.sh.
1687 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1688 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1690 (DATA_START_SYMBOLS): Define, provide ___data.
1691 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1692 for consecutive .data section.
1693 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1694 section after .data section.
1695 * emulparams/shlelf64.sh: Ditto.
1696 * emulparams/shelf32.sh: Ditto.
1697 (ALIGNMENT): Define to 8.
1698 * emulparams/shelf32.sh: Ditto.
1699 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1700 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1701 built-in linker scripts.
1702 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1703 * emulparams/shlelf64.sh: New.
1704 * emulparams/shelf64.sh: New.
1705 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1707 * Makefile.am: Add support for shlelf64 and shelf64.
1708 * Makefile.in: Regenerate.
1709 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1710 * configure.tgt (sh64-*-elf*): Add shelf as default.
1711 Add shlelf to targ_extra_emuls.
1712 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1713 * emulparams/shelf32.sh: New file.
1714 * emulparams/shlelf32.sh: New file.
1715 * Makefile.am: Add support for shlelf32 and shelf32.
1716 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1717 * Makefile.in: Regenerate.
1719 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1721 * ldlang.c (lang_reset_memory_regions): Rename from
1722 reset_memory_regions. Change all callers. Make public.
1723 * ldlang.h (lang_reset_memory_regions): Prototype.
1724 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1725 lang_reset_memory_regions before lang_size_sections.
1726 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1727 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1729 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1731 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1732 arithmetic when checking for too many global registers.
1734 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1736 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1737 (ehppanbsd.c): New rule.
1738 * Makefile.in: Regenerate.
1739 * configure.tgt (hppa*-*-netbsd*): New target.
1740 * emulparams/hppalinux.sh: Add comment to check other files
1741 that source this file it is modified, and list which
1743 * emulparams/hppanbsd.sh: New file.
1745 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1747 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1750 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1752 Support on-demand global register allocation from
1753 R_MMIX_BASE_PLUS_OFFSET relocs.
1754 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1755 mmix_set_reg_section_vma. Call
1756 _bfd_mmix_finalize_linker_allocated_gregs.
1757 (mmix_before_allocation): New function.
1758 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1759 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1760 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1761 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1762 before .MMIX.reg_contents.
1763 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1764 (mmo_after_open): New function.
1765 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1766 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1767 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1769 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1771 * emulparams/or32.sh: New file.
1772 * emulparams/or32elf.sh: New file.
1773 * scripttempl/or32.sc: New file.
1774 * configure.tgt : Add support for or32.
1775 * configure: Regenerate
1776 * Makefile.am: Add support for or32.
1777 * Makefile.in: Regenerate.
1778 * NEWS: Mention support for or32.
1779 * po/ld.pot: Regenerate.
1781 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1782 Mitch Lichtenberg <mpl@broadcom.com>
1784 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1785 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1786 reloc creation (ld --embedded-relocs).
1788 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1790 * configure: Regenerated.
1792 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1794 * Makefile.am (install): Depend on install-info.
1795 * Makefile.in: Regenerate.
1797 2002-01-26 Christian Rose <menthos@menthos.com>
1799 * ldmain.c (main): Use full sentences to ease translation.
1801 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1803 * po/fr.po: Updated version.
1805 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1807 * po/es.po: Updated version.
1809 2002-01-25 Andreas Jaeger <aj@suse.de>
1811 * ldlex.l (yy_input): Correct error check.
1813 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1815 * ldmisc.c (demangle): Put back dots when string not demangled.
1817 2002-01-22 Richard Henderson <rth@redhat.com>
1819 * emulparams/elf64alpha.sh (NOP): Use unop.
1821 2002-01-21 Andreas Jaeger <aj@suse.de>
1823 * ldlex.l: Use fread instead of read.
1825 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1827 * configure.tgt (ia64-*-netbsd*): New target.
1829 2002-01-21 H.J. Lu <hjl@gnu.org>
1831 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1833 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1835 2002-01-18 Andreas Jaeger <aj@suse.de>
1837 * ldver.c (ldversion): Update year.
1839 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1841 * po/ld.pot: Regenerate.
1843 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1845 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1846 * Makefile.in: Regenerate.
1847 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1848 * emultempl/ppc64elf.em: New file.
1850 2002-01-15 DJ Delorie <dj@redhat.com>
1852 * scripttempl/pe.sc: Add support for constructor priorities.
1854 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1856 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1857 * emulparams/avr23xx.sh: Likewise.
1858 * emulparams/avr4433.sh: Likewise.
1859 * emulparams/avr44x4.sh: Likewise.
1860 * emulparams/avr85xx.sh: Likewise.
1861 * emulparams/avrmega103.sh: Likewise.
1862 * emulparams/avrmega161.sh: Likewise.
1863 * emulparams/avrmega603.sh: Likewise.
1864 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1866 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1868 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1869 archive is excluded.
1871 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1873 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1874 (eshelf_nbsd.c): New rule.
1875 (eshlelf_nbsd.c): New rule.
1876 * Makefile.in: Regenerate.
1877 * configure.tgt (sh*le-*-netbsdelf*): New target.
1878 (sh*-*-netbsdelf*): New target.
1879 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1880 * ld/emulparams/shelf_nbsd.sh: New emulation.
1881 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1883 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1885 * po/es.po: New file: Spanish translation.
1886 * configure.in (ALL_LINGUAS): Add es.
1887 * configure: Regenerate.
1889 2002-01-06 John Marshall <jmarshall@acm.org>
1891 * ld.texinfo: Note that --emit-relocs is currently only
1892 implemented for ELF.
1894 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1896 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1897 of bfd_section_list_remove and bfd_section_list_insert macros.
1898 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1899 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1901 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1903 * configure.tgt (x86_64-*-netbsd*): New target.
1905 2001-12-21 Tom Rix <trix@redhat.com>
1907 (gld*_create_output_section_statements): New function.
1908 For -binitfini support.
1909 * emultempl/aix.em (gld*_before_parse): Fix comment.
1910 * emultempl/aix.em (gld*_parse_args): Fix comment.
1912 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1914 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1916 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1918 * configure.tgt (arm-*-netbsdelf*): Add target.
1919 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1920 * emulparams/armelf_nbsd.sh: Added.
1921 * Makefile.am: Add rules for earmelf_nbsd.
1922 * Makefile.in: Regenerate.
1924 2001-12-19 Andreas Jaeger <aj@suse.de>,
1925 Susanne Oberhauser <froh@suse.de>
1927 * configure.host: Add rules for x86_64-*linux-gnu. Change
1928 s390x-linux entry to use gcc to report configuration, replace gcc
1929 with $CC in s390-linux
1931 2001-12-19 Andreas Jaeger <aj@suse.de>
1933 * ld.texinfo (VERSION): Fix markup.
1935 2001-12-18 matthew green <mrg@eterna.com.au>
1937 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1938 (m68kelfnbsd.c): New rule.
1939 * Makefile.in: Regenerate.
1940 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1941 (m68*-*-netbsd*4k*): .. this.
1942 (m68*-*-netbsdelf*): New target.
1943 (m68*-*-netbsd*): Also include ELF support.
1944 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1945 * emulparams/m68kelfnbsd.sh: New emulation.
1947 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1949 * ldgram.y (vers_node): Support anonymous version tags.
1950 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1951 tag is not defined together with non-anonymous versions.
1952 * ld.texinfo: Document it.
1954 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1956 * po/tr.po: New file: Turkish translation.
1957 * configure.in (ALL_LINGUAS): Add tr.
1958 * configure: Regenerate.
1960 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1962 * Makefile.am: Add rules for eelf64alpha_nbsd.
1963 * Makefile.in: Regenerate.
1964 * configure.tgt (alpha*-*-netbsd*): Set
1965 targ_emul to elf64alpha_nbsd.
1966 * emulparams/elf64alpha_nbsd.sh: Added.
1968 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1970 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1971 section_tail when fiddling with section list.
1972 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1973 broken into separate strings to make translation easier.
1974 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1975 fiddling with section list.
1976 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1978 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1980 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1982 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1984 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1986 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1988 * emultempl/elf32.em (finish): Supply output_bfd
1989 to bfd_elf*_discard_info.
1990 (OPTION_EH_FRAME_HDR): Define.
1991 (longopts): Add --eh-frame-hdr.
1992 (parse_args): Handle it.
1993 (list_options): Add --eh-frame-hdr to help.
1994 * emultempl/hppaelf.em (finish): Supply output_bfd
1995 to bfd_elf*_discard_info.
1996 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1998 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2000 * lexsup.c (parse_args): Don't pass shortopts to second call to
2001 getopt functions. Restore optind rather than decrementing before
2002 second call. Remove errind as it now duplicates last_optind.
2004 2001-12-11 Christopher Faylor <cgf@redhat.com>
2006 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2008 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2009 Richard Henderson <rth@redhat.com>
2011 * Makefile.am: Add support for xstormy16.
2012 * configure.tgt: Add support for xstormy16.
2013 * Makefile.in: Regenerate.
2014 * emulparams/elf32xstormy16.sh: New file.
2015 * scripttempl/xstormy16.sc: New file.
2017 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2019 * Makefile.in (LIB_PATH): Make configurable.
2020 (GENSCRIPTS): Set LIB_PATH in environment.
2021 * configure.in: Substitute LIB_PATH.
2022 * configure: Regenerate.
2023 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2024 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2026 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2028 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2029 describing the -N option so that it is easier to translate into
2032 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2034 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2035 statements describing a single option with a single, newline
2036 escaped fprintf. This allows better translation into other
2039 * ldmain.c (add_archive_element): Combine multiple strings
2040 into a single string to permit better translation into other
2043 2001-12-05 Tom Rix <trix@redhat.com>
2045 * Makefile.am: Remove eaixppc64.
2046 * Makefile.in: Regenerate.
2048 2001-12-04 Tom Rix <trix@redhat.com>
2050 * emultempl/aix.em (choose_target): Change default target to
2051 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2053 (gld*_read_file): Fix typo.
2054 (change_symbol_mode): Add prototype.
2057 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2058 * emulparams/aixrs6.sh : Same.
2059 * emulparams/ppcmacos.sh : Same.
2060 * emulparams/aixppc64.sh : Delete file.
2061 * emultempl/aix.em : Formatting changes.
2063 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2065 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2066 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2068 (OTHER_END_SYMBOLS): Fix formatting.
2069 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2070 (OTHER_END_SYMBOLS): Fix formatting.
2072 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2074 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2076 2001-12-02 Tom Rix <trix@redhat.com>
2078 * configure.tgt : Remove eaixppc64 emulations.
2079 * Makefile.in : Remove eaixppc64.c
2080 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2081 (ldemul_default_target): Same.
2082 * emultempl/gld960.em (gld960_choose_target): Same.
2083 * emultempl/gld960c.em (gld960_choose_target): Same.
2084 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2085 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2086 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2087 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2088 * emultempl/aix.em (choose_target): New function. Handle emulation of
2091 2001-11-27 H.J. Lu <hjl@gnu.org>
2093 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2094 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2095 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2096 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2097 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2098 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2099 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2100 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2102 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2105 (REL_SDATA): Likewise.
2106 (REL_SBSS): Likewise.
2107 (REL_SDATA2): Likewise.
2108 (REL_SBSS2): Likewise.
2109 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2112 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2114 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2116 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2118 2001-11-22 H.J. Lu <hjl@gnu.org>
2120 * Makefile.in: Regenerated with automake based on automake
2121 1.4-8 in RedHat 7.1.
2123 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2125 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2126 (config.status): Delete rule.
2127 Add extra dependencies to cover sourced emulparams files.
2128 * Makefile.in: Regenerate.
2130 * scripttempl/elf.sc: Order <section>, <section>.* and
2131 corresponding linkonce sections as seen in input files.
2132 Formatting fixes. Zero vma of all sections if not relocating.
2133 (STACK): Define and insert if STACK_ADDR defined.
2134 (OTHER_RELOCATING_SECTIONS): Delete.
2135 (OTHER_END_SYMBOLS): Define.
2136 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2137 (OTHER_READWRITE_SECTIONS): Likewise.
2138 (OTHER_GOT_SECTIONS): Likewise.
2139 (OTHER_SDATA_SECTIONS): Likewise.
2140 (OTHER_BSS_SECTIONS): Likewise.
2141 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2142 (OTHER_READWRITE_SECTIONS): Likewise.
2143 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2144 (OTHER_READWRITE_SECTIONS): Likewise
2146 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2147 (STACK_ADDR): Define.
2148 * emulparams/armelf_oabi.sh: As for armelf.sh.
2149 * emulparams/elf32mcore.sh: As for armelf.sh.
2150 * emulparams/h8300elf.sh: As for armelf.sh.
2151 * emulparams/mn10200.sh: As for armelf.sh.
2152 * emulparams/shelf.sh: As for armelf.sh.
2154 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2155 (OTHER_END_SYMBOLS): Define.
2156 * emulparams/m32relf.sh: As for elf32fr30.sh.
2157 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2158 * emulparams/h8300self.sh: As for elf32fr30.sh.
2160 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2161 defines with RELOCATING test.
2162 (OTHER_SDATA_SECTIONS): Likewise.
2163 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2164 (OTHER_END_SYMBOLS): ..this.
2165 * emulparams/crislinux.sh: As for criself.sh.
2167 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2169 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2170 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2171 normal and linkonce sections as seen in input files.
2172 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2173 (TEXT_DYNAMIC): Likewise.
2174 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2175 (OTHER_SDATA_SECTIONS): Likewise.
2176 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2177 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2178 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2179 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2180 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2181 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2182 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2183 sections as seen in input files.
2184 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2185 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2187 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2188 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2189 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2190 (OTHER_SECTIONS): Instead, use this..
2191 (OTHER_END_SYMBOLS): ..and this.
2193 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2194 * emulparams/elf32bsmip.sh: Likewise.
2195 * emulparams/elf32btsmip.sh: Likewise.
2196 * emulparams/elf32ebmip.sh: Likewise.
2197 * emulparams/elf32lmip.sh: Likewise.
2198 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2199 * emulparams/elf32lsmip.sh: Likewise.
2200 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2201 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2202 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2203 * emulparams/elf64btsmip.sh: Likewise.
2204 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2205 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2206 * emulparams/elf32ppclinux.sh: Likewise.
2207 * emulparams/elf32ppcsim.sh: Likewise.
2208 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2209 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2210 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2211 * emulparams/h8300self.sh: Likewise.
2212 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2213 * emulparams/sh.sh: Comment.
2214 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2215 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2216 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2218 2001-11-21 David Heine <dlheine@tensilica.com>
2219 Alan Modra <amodra@bigpond.net.au>
2221 * ldlang.c (map_input_to_output_sections): Replace "break"
2222 accidentally removed with 2001-08-03 change.
2223 (lang_gc_sections_1): Likewise.
2225 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2227 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2229 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2231 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2232 of false when calling lang_size_sections.
2233 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2235 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2237 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2238 function when LDEMUL_FINISH isn't set to the same name. Don't
2239 call ${LDEMUL_FINISH}.
2240 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2241 * emultempl/armelf.em (arm_elf_finish): Call
2242 gld${EMULATION_NAME}_finish.
2243 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2244 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2245 hppaelf_layout_sections_again if necessary.
2246 (need_laying_out): New var.
2247 (hppaelf_layaout_sections_again): Rename to
2248 hppaelf_layout_sections_again. Clear need_laying_out.
2249 (PARSE_AND_LIST_OPTIONS): Format text.
2251 2001-11-14 H.J. Lu <hjl@gnu.org>
2253 * emultempl/armelf.em (arm_elf_finish): Renamed from
2254 gld${EMULATION_NAME}_finish.
2255 (LDEMUL_FINISH): Set to arm_elf_finish.
2257 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2259 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2260 (struct ld_emulation_xfer_struct): Use it.
2262 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2264 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2265 additional symbols referenced by newer crt0.o files from HP.
2267 2001-11-12 Anthony Green <green@redhat.com>
2269 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2271 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2273 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2274 * Makefile.in: Regenerate.
2276 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2278 * ld.texinfo: Use @command for commands, @option for options.
2279 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2281 * Makefile.in: Rebuild.
2283 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2285 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2286 Add support for targets.
2288 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2290 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2291 * configure: Regernate.
2292 * po/fr.po: New file.
2293 * po/sv.po: New file.
2295 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2297 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2298 as little endian default and to support big endian.
2300 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2302 * ld.texinfo (Options): Document new option, -nostdlib.
2303 * lexsup.c (OPTION_NOSTDLIB): New definition.
2304 (ld_options): Add entry for "nostdlib".
2305 (parse_args): Handle OPTIONS_NOSTDLIB.
2306 * ldfile.c (ldfile_add_library_path): Don't add directories
2307 to the search path if they weren't specified on the command line
2308 and -nostdlib was specified.
2309 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2311 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2313 * lexsup.c (parse_args): Prevent infinite parsing loop when
2314 "-rpath.a" is specified on the command line.
2315 Replace calls to fprintf with calls to einfo.
2317 2001-10-31 John Marshall <jmarshall@acm.org>
2319 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2320 appear only once across all the linker scripts involved in a link
2321 invocation no longer applies. Make the documentation reflect
2324 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2326 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2328 (sh-*-linux*): Added targ_extra_libpath.
2330 2001-10-31 David Heine <dlheine@tensilica.com>
2332 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2333 for padding statements.
2335 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2337 * configure.tgt (mmix-*-*): New target.
2338 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2339 Add dependencies to match.
2340 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2341 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2342 scripttempl/mmo.sc: New files.
2343 * gen-doc.texi: @set MMIX.
2344 * ld.texinfo: Ditto.
2345 [MMIX] Add MMIX node.
2346 * Makefile.in: Regenerate.
2348 2001-10-29 Kazu Hirata <kazu@hxi.com>
2350 * ldlang.c: Fix a comment typo.
2352 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2354 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2355 entries, and match *-*-linux*.
2357 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2359 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2360 with ldlex_script, ldlex_popstate.
2361 (ifile_p1): Likewise.
2362 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2364 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2365 to 1. Don't BEGIN(SCRIPT).
2366 (lex_redirect): Similarly.
2367 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2369 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2371 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2372 __EH_FRAME_END__ and accept eh frames into data section.
2373 Add ctor and dtor sections.
2375 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2377 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2378 (auto-export): Fix indentation.
2380 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2382 * pe-dll.c (autofilter_objectlist): Add startup objects
2384 (auto-export): Constify char * p.
2385 Extract file basename and use strcmp rather than ststr
2388 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2390 * ldmain.c (get_emulation): Improve comment about the handling
2393 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2395 * po/POTFILES.in: Regenerate.
2397 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2399 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2400 -z nocopyreloc and -z nocombreloc usage strings.
2402 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2404 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2407 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2409 * scripttempl/armaout.sc: Place .bss section after end of aligned
2410 data section to match behaviour of aout code in constructrion of
2413 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2415 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2416 startup files for mingw32 dlls to list.
2418 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2420 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2422 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2424 * configure.tgt (targ): Add arm9e-*-elf.
2426 2001-10-05 H.J. Lu <hjl@gnu.org>
2428 * genscripts.sh: Fix a typo in the last change.
2430 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2432 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2433 -z nocombreloc in usage.
2435 2001-10-03 Jim Blandy <jimb@redhat.com>
2437 * genscripts.sh: Include a comment at the top of each generated
2438 script, explaining its purpose.
2440 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2442 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2443 * NEWS: Mention -z nocopyreloc.
2444 * ld.texinfo (Options): Describe nocopyreloc.
2446 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2448 * configure: Regenerate.
2450 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2452 * ldver.h (ld_program_version): Remove declaration.
2453 * lexsup.c (parse_args): Move printing of copyright message..
2454 * ldver.c (ldversion): .. to here.
2455 Use BFD_VERSION_STRING in place of BFD_VERSION.
2456 (ld_program_version): Remove.
2457 * Makefile.am (Makefile): Depend on bfd/configure.in.
2459 * Makefile.in: Regenerate.
2461 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2463 * Makefile.am: Update dependencies with "make dep-am".
2464 * Makefile.in: Regenerate.
2466 2001-09-29 John Reiser <jreiser@BitWagon.com>
2468 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2469 * lexsup.c: Add --no-define-common commandline option.
2470 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2471 * ldlex.l: Likewise.
2472 * ld.h: Add command_line.inhibit_common_definition.
2473 * ldmain.c (main): Initialize.
2474 * ld.texinfo: Document.
2476 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2478 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2480 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2482 * ldmisc.c (USE_STDARG): Remove.
2483 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2488 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2489 declarations. Update copyright.
2491 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2493 * pe-dll.c: Remove obsoleted declaration of
2494 pe_get_data_import_dll_name.
2495 (pe_create_import_fixup): Fix thinko.
2497 * ld.texinfo(enable-auto-import): Clarify the explanation.
2499 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2501 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2502 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2503 DLL_SUPPORT controlled code.
2505 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2507 * emultempl/pe.em(pe_data_import_dll): Make static.
2508 (pe_get_data_import_dll_name): New accessor function.
2509 * pe-dll.c(pe_create_import_fixup): call
2510 pe_get_data_import_dll_name() from pe.em, instead of
2511 directly accessing pe_data_import_dll variable from pe.em.
2513 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2515 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2516 (def_file_add_directive): Use ISSPACE instead of isspace.
2517 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2518 isdigit/isxdigit/isalpha/isalnum.
2519 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2520 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2521 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2522 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2524 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2525 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2527 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2528 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2529 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2530 (ctor_prio): Use ISDIGIT instead of isdigit.
2531 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2532 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2533 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2535 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2536 (stricpy): Use TOLOWER instead of isupper/tolower.
2537 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2538 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2539 (lex_warn_invalid): Use ISPRINT instead of isprint.
2540 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2541 (main): For gettext, also set the LC_CTYPE locate facet.
2542 (add_keepsyms_file): Use ISSPACE instead of isspace.
2543 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2544 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2545 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2546 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2547 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2548 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2549 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2550 (quoteput): Use ISSPACE instead of isspace.
2551 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2554 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2556 * deffilep.y (def_stash_module): Constify "name" param.
2558 * pe-dll.c: Replace CONST with const throughout.
2559 (quick_symbol): Constify "n1", "n2", "n3" params.
2560 (make_singleton_name_thunk): Constify "import" param. Make
2561 "buffer_len" a size_t.
2562 (make_import_fixup_entry): Constify "name", "fixup_name",
2563 "dll_symname" params.
2564 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2565 (pe_get32): Likewise.
2566 (pe_implied_import_dll): Likewise.
2568 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2569 (sort_by_section_name): Likewise.
2571 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2572 (make_import_fixup): Cast printf arg, rel->address to long rather
2574 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2576 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2578 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2579 defines BufferSize. Increase buffer size by one.
2581 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2583 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2585 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2587 * configure.tgt: Add arm-openbsd target.
2589 2001-09-12 H.J. Lu <hjl@gnu.org>
2591 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2593 (ALL_64_EMULATIONS): Here.
2594 * Makefile.in: Regenerated.
2596 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2598 * emultempl/pe.em(make_import_fixup): change signature to
2599 take asection as well as arelec; we need this for proper
2600 error reporting. Only call pe_create_import_fixup() if
2601 there is no attempt to add a constant addend to the reloc;
2602 otherwise, report error condition.
2603 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2604 since final argument is a pointer to make_import_fixup().
2605 Change call to cb() to match make_import_fixup() signature.
2606 (make_import_fixup_mark): make buffer_len unsigned.
2607 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2609 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2611 * ld.texinfo: add verbose documentation for auto-import
2612 direct-addressing workaround, to compliment the terse
2615 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2617 * scripttempl/v850.sc: Add gcc_except_table sections.
2619 2001-09-11 Jeffrey A Law (law@cygnus.com)
2621 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2622 * emulparams/h8300self.sh: Similarly.
2624 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2626 * ld.texinfo (Options, --stack): Correct default value for stack
2629 2001-09-05 Tom Rix <trix@redhat.com>
2631 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2633 2001-09-03 Andreas Jaeger <aj@suse.de>
2635 * emultempl/beos.em: Declare prototypes for comparions functions,
2638 2001-09-02 Andreas Jaeger <aj@suse.de>
2640 * emultempl/aix.em: Add missing prototype.
2641 * emultempl/lnk960.em: Likewise.
2642 * emultempl/vanilla.em: Likewise.
2643 * emultempl/armcoff.em: Likewise.
2644 * emultempl/armelf_oabi.em: Likewise.
2645 * emultempl/beos.em: Likewise.
2646 * emultempl/gld960c.em: Likewise.
2647 * emultempl/gld960.em: Likewise.
2649 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2650 for prototype declaration.
2652 2001-08-31 Eric Christopher <echristo@redhat.com>
2653 Jason Eckhardt <jle@redhat.com>
2655 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2657 2001-08-31 Andreas Jaeger <aj@suse.de>
2659 * emultempl/pe.em: Add missing prototypes.
2660 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2661 pe_find_data_imports.
2662 (pr_sym): Add unused attribute.
2664 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2666 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2667 default from coff to elf.
2669 2001-08-29 Jeff Law <law@redhat.com>
2671 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2673 * emulparams/h8300self.sh: Similarly.
2675 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2677 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2679 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2680 * configure.tgt (h8300-*-elf*): New case.
2681 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2682 * emulparams/h8300self.sh: New file.
2683 * Makefile.in: Regenerated.
2685 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2687 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2690 2001-08-27 Linus Nordberg <linus@swox.com>
2691 Alan Modra <amodra@bigpond.net.au>
2693 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2694 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2696 * Makefile.in: Regenerate.
2697 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2698 entries to correct alphabetical position.
2699 * emulparams/elf64ppc.sh: New.
2700 * emulparams/elf64lppc.sh: New.
2702 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2704 * ldmain.c (main): Declare BSIZE as static.
2706 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2708 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2709 into .rel.dyn resp. .rela.dyn if combreloc.
2710 (get_script): If .x linker script is equal to .xn, only put it
2711 once into the binary.
2712 Add .xc and .xsc scripts.
2713 (parse_args): Handle -z combreloc and -z nocombreloc.
2714 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2715 For .xc and .xsc scripts put all .rel* or .rela* input sections
2716 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2717 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2719 Strip trailing whitespace from script.
2720 Generate .xc and .xsc scripts if requested.
2721 * ldmain.c (main): Initialize link_info.combreloc and
2722 link_info.spare_dynamic_tags.
2723 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2724 (ld_options): Add --spare-dynamic-tags option.
2725 (parse_args): Likewise.
2726 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2727 * ldint.texinfo: Document .xc and .xsc linker scripts.
2728 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2730 2001-08-22 H.J. Lu <hjl@gnu.org>
2732 * emulparams/elf32fr30.sh: Add a newline.
2734 2001-08-21 Andreas Jaeger <aj@suse.de>
2736 * deffilep.y: Add missing prototypes.
2737 * pe-dll.c: Likewise.
2739 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2741 * ldlang.c (insert_pad): Fix typos in last patch.
2743 * ldlang.c: When traversing lang_statement_union_type lists,
2744 consistently use "header.next" rather than "next".
2745 * mpw-eppcmac.c: Likewise.
2746 * emultempl/beos.em: Likewise.
2747 * emultempl/hppaelf.em: Likewise.
2748 * emultempl/pe.em: Likewise.
2749 * ldlang.h (union lang_statement_union): Remove "next" field.
2751 * ldlang.c (insert_pad): Use offsetof macro.
2752 (lang_size_sections): Always neuter padding statements.
2753 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2755 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2756 passed to lang_size_sections.
2757 (pe_exe_fill_sections): Likewise.
2758 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2759 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2761 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2763 * emultempl/aix.em: Formatting fixes.
2765 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2767 * ldlang.c (insert_pad): Make use of an existing pad statement if
2768 available. Move code calculating alignment, adjusting section
2769 alignment power, and adjusting dot to ..
2770 (size_input_section): .. here. Remove unused relax param.
2771 (lang_size_sections): Change boolean `relax' param to boolean *.
2772 Adjust call to size_input_section. Make use of insert_pad to
2773 place pad after the assignment statement. If relaxing, zap
2775 (reset_memory_regions): Reset output_bfd section sizes too.
2776 (relax_again): Move to..
2777 (lang_process): ..here. Adjust call to lang_size_sections, and
2778 remove duplicated code.
2779 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2781 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2783 * ld.texinfo: Document that fill values now use the four least
2785 * emulparams/elf32fr30.sh (NOP): Update.
2786 * emulparams/elf32mcore.sh: Likewise.
2787 * emulparams/elf64_s390.sh: Likewise.
2788 * emulparams/elf_i386.sh: Likewise.
2789 * emulparams/elf_i386_be.sh: Likewise.
2790 * emulparams/elf_i386_chaos.sh: Likewise.
2791 * emulparams/elf_i386_ldso.sh: Likewise.
2792 * emulparams/elf_s390.sh: Likewise.
2793 * emulparams/elf_x86_64.sh: Likewise.
2794 * emulparams/i386moss.sh: Likewise.
2795 * emulparams/i386nw.sh: Likewise.
2796 * emulparams/m68kelf.sh: Likewise.
2797 * scripttempl/elf.sc: Update NOP comment.
2798 * scripttempl/elfi370.sc: Likewise.
2799 * scripttempl/elfm68hc11.sc: Likewise.
2800 * scripttempl/elfm68hc12.sc: Likewise.
2801 * scripttempl/nw.sc: Likewise.
2803 2001-08-15 Tom Rix <trix@redhat.com>
2805 * ldgram.y (saved_script_handle): Initialize to NULL.
2806 * ldmain.c (main): Change check on saved_script_handle.
2808 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2810 * emultempl/elf32.em: Formatting fixes.
2811 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2812 looking at sec->owner.
2813 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2814 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2815 unused code, and reorganize orphan section placement code.
2817 * ldlang.c (wild_doit): Rename to lang_add_section.
2818 * ldlang.h: Here too.
2819 * mpw-elfmips.c: And here.
2820 * emultempl/beos.em: And here.
2821 * emultempl/elf32.em: And here.
2822 * emultempl/hppaelf.em: And here.
2823 * emultempl/pe.em: And here.
2825 2001-08-13 Richard Henderson <rth@redhat.com>
2827 * emultempl/needrelax.em: New file.
2828 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2829 * Makefile.am (eelf64_ia64.c): Depend on it.
2830 * Makefile.in: Rebuild.
2832 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2834 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2835 output_section is set non-NULL.
2837 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2838 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2839 needlessly create an output_section_statement. Treat a correctly
2840 named output_section_statement with NULL bfd_section as compatible.
2842 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2844 * emultempl/generic.em: Support EXTRA_EM_FILE.
2845 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2846 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2847 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2848 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2849 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2850 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2851 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2852 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2853 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2854 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2856 2001-08-12 Richard Henderson <rth@redhat.com>
2858 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2859 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2860 scripttempl/v850.sc: Keep .jcr data.
2862 2001-08-12 H.J. Lu <hjl@gnu.org>
2863 Andrew Haley <aph@cambridge.redhat.com>
2864 Nick Clifton <nickc@redhat.com>
2866 * ldgram.y (had_script): Change name to saved_script_handle.
2867 Change type to file handle.
2868 * ld.h (had_script): Rename and retype.
2869 * ldfile.c (ldfile_open_command_file): Save the file handle
2870 used in saved_script_handle.
2871 * lexsup.c (parse_args): Do not allow -c option to alter
2872 saved_script_handle.
2873 * ldmain.c (main): Print out the linker script used if
2874 --verbose is given. Check saved_script_handle to obtain the
2875 external linker script used, or if NULL, dump the builtin
2877 * ld.texinfo: Document that --verbose now dumps the linker
2878 script used, regardless of whether it was an internal or an
2881 2001-08-10 Andreas Jaeger <aj@suse.de>
2883 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2885 * configure: Regenerate.
2887 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2889 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2891 * scripttempl/elf.sc: Move non-text .dynamic section before
2892 .plt/.got/.sdata* group.
2893 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2894 (OTHER_SDATA_SECTIONS): Add.
2895 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2897 * emulparams/crislinux.sh: Likewise.
2898 * emulparams/elf32b4300.sh: Likewise.
2899 * emulparams/elf32bmip.sh: Likewise.
2900 * emulparams/elf32bmipn32.sh: Likewise.
2901 * emulparams/elf32bsmip.sh: Likewise.
2902 * emulparams/elf32btsmip.sh: Likewise.
2903 * emulparams/elf32ebmip.sh: Likewise.
2904 * emulparams/elf32elmip.sh: Likewise.
2905 * emulparams/elf32l4300.sh: Likewise.
2906 * emulparams/elf32lmip.sh: Likewise.
2907 * emulparams/elf32lsmip.sh: Likewise.
2908 * emulparams/elf32ltsmip.sh: Likewise.
2909 * emulparams/elf64bmip.sh: Likewise.
2910 * emulparams/elf64btsmip.sh: Likewise.
2911 * emulparams/elf64ltsmip.sh: Likewise.
2913 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2915 * genscripts.sh: Source the emulparams script before each output
2916 script is generated so that variables like `RELOCATING' may affect
2917 variables defined in the emulparams script.
2919 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2921 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2924 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2925 ie. iterate over wild_statement.section_list.
2926 (gld${EMULATION_NAME}_place_orphan): Likewise.
2928 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2930 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2931 .fini[0-4] sections used by _exit
2932 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2933 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2934 * scripttempl/elfm68hc11.sc: Likewise.
2936 2001-08-03 H.J. Lu <hjl@gnu.org>
2938 * emultempl/beos.em (init): Add the missing initialization.
2940 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2942 * ld.texinfo (Input Section Basics): Clarify ordering of output
2944 * ldlang.c (callback_t): Add wildcard_list param.
2945 (walk_wild_section): Remove "section" param. Rewrite for
2946 lang_wild_statement_type change. Remove unique_section_p test.
2947 (walk_wild_file): Remove "section" param.
2948 (walk_wild): Remove "section" and "file" params.
2949 (lang_gc_wild): Likewise.
2950 (wild): Likewise. Modify for lang_wild_statement_type change.
2951 (wild_sort): Likewise. Add "sec" param.
2952 (gc_section_callback): Likewise.
2953 (output_section_callback): Likewise. Do unique_section_p test.
2954 (map_input_to_output_sections): Modify call to wild.
2955 (lang_gc_sections_1): Likewise.
2956 (print_wild_statement): Modify for lang_wild_statement_type
2958 (lang_add_wild): Replace filename, filenames_sorted param with
2959 filespec. Replace section_name, sections_sorted,
2960 exclude_filename_list with section_list.
2961 * ldlang.h (lang_add_wild): Here too.
2962 (lang_wild_statement_type): Replace section_name, sections_sorted,
2963 and exclude_filename_list with section_list.
2964 * ldgram.y (current_file): Delete.
2965 (%union): Add wildcard_list.
2966 (file_NAME_list): Set type to wildcard_list. Build a linked list
2967 rather than calling lang_add_wild for each entry.
2968 (input_section_spec_no_keep): Call lang_add_wild here instead.
2969 * ld.h (struct wildcard_list): Declare.
2970 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2972 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2974 * ldmain.c (main): initialize link_info.pei386_auto_import
2975 * pe-dll.c: new tables for auto-export filtering
2976 (auto_export): change API, pass abfd for contextual filtering.
2977 Loop thru tables of excluded symbols instead of comparing
2980 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2982 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2983 static variable current_sec (static struct sec *). Add
2984 forward declaration for add_bfd_to_link.
2985 (process_def_file): Don't export undefined symbols. Do not
2986 export symbols starting with "_imp__". Call auto_export()
2988 (pe_walk_relocs_of_symbol): New function.
2989 (generate_reloc): add optional extra debugging
2990 (pe_dll_generate_def_file): eliminate extraneous initial blank
2992 (make_one): enlarge symtab to make room for __nm__ symbols
2993 (DATA auto-import support).
2994 (make_singleton_name_thunk): New function.
2995 (make_import_fixup_mark): New function.
2996 (make_import_fixup_entry): New function.
2997 (pe_create_import_fixup): New function.
2998 (add_bfd_to_link): Specify that 'name' argument is a CONST
3000 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3001 declare new functions pe_walk_relocs_of_symbol and
3002 pe_create_import_fixup.
3003 * emultempl/pe.em: add new options --enable-auto-import,
3004 --disable-auto-import, and --enable-extra-pe-debug.
3005 (make_import_fixup): New function.
3006 (pe_find_data_imports): New function.
3007 (pr_sym): New function.
3008 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3009 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3012 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3014 * ld.texinfo: add additional documentation for
3015 --export-all-symbols. Document --out-implib,
3016 --enable-auto-image-base, --disable-auto-image-base,
3017 --dll-search-prefix, --enable-auto-import, and
3018 --disable-auto-import.
3019 * ldint.texinfo: Add detailed documentation on auto-import
3022 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3024 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3027 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3029 * Makefile.am: Update dependencies with "make dep-am".
3030 * Makefile.in: Regenerate
3032 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3034 * ldcref.c (check_section_sym_xref): New function.
3035 (check_nocrossrefs): Call it.
3036 (check_nocrossref): Interate over h->refs here instead of..
3037 (check_refs): ..here. Pass in the symbol name, section, and bfd
3038 rather than hash_entry pointers.
3039 (struct check_refs_info): Keep symbol name rather than hash entry.
3041 (check_reloc_refs): Tweak for above changes in check_refs_info.
3042 Only report references to section syms when symname is NULL to
3043 prevent duplicate messages for the same reloc.
3045 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3047 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3048 available. Do not print NULL trees.
3049 (exp_print_token): Print unknown tokens with values > 126 as
3050 decimal values not ASCII characters.
3052 * ldlang.c (lang_leave_overlay): If a region is specified assign
3053 it to all sections inside the overlay unless they have been
3054 assigned to the own, non-default, memory region.
3056 * README: Add header for consistency with other README files.
3058 2001-07-14 H.J. Lu <hjl@gnu.org>
3060 * emultempl/elf32.em (output_prev_sec_find): Never return
3061 bfd_abs_section_ptr, bfd_com_section_ptr nor
3062 bfd_und_section_ptr.
3064 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3066 * Makefile.am (em32relf.c): Change dependency from generic.em to
3068 * Makefile.in: Regenerate.
3070 2001-07-14 matthew green <mrg@eterna.com.au>
3072 * configure.tgt (i386-*-netbsdelf*): New target.
3073 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3075 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3077 * emultempl/elf32.em (output_prev_sec_find): New.
3078 (place_orphan): Use it.
3080 2001-07-11 H.J. Lu <hjl@gnu.org>
3082 * ldmain.c (main): Fix typos in the last change.
3084 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3086 * ldmain.c (main): Disallow -F and -f without -shared.
3088 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3090 * emultempl/pe.em (after_open): Check for the output_bfd not
3091 having any coff_data structure allocated to it.
3093 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3095 * emultempl/elf32.em: Do not assuming that contents of the buffer
3096 returned from basename function will remain unchanged accross other
3099 2001-07-03 H.J. Lu <hjl@gnu.org>
3101 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3102 2001-07-03. It creates dynamic entries even for static binaries.
3104 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3106 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3107 (DYNAMIC): Use it to reserve few dynamic entries for
3110 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3112 * emulparams/hppa64linux.sh: New file.
3113 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3114 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3115 (ehppa64linux.c): Add rule to make it.
3117 * Makefile.in: Regenerate.
3119 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3121 * ld.texinfo (Options, -r): Mention restrictions when using
3122 different object formats.
3124 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3126 * ldlang.c (lang_check): Emit fatal error if relocatable link
3127 between different object flavours with relocations in input.
3129 2001-06-19 H.J. Lu <hjl@gnu.org>
3131 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3132 (--version-script): Mention the language support.
3134 2001-06-19 H.J. Lu <hjl@gnu.org>
3136 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3138 2001-06-18 H.J. Lu <hjl@gnu.org>
3140 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3141 (diststuff): Add $(MANS).
3142 * Makefile.in: Regenerated.
3146 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3148 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3149 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3150 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3151 * ld.h (args_type): Remove member export_dynamic. All users
3152 changed to use struct bfd_link_info member.
3154 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3155 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3156 * Makefile.in: Regenerate.
3158 2001-06-18 H.J. Lu <hjl@gnu.org>
3160 * ldlang.c (init_os): Add the newline to the einfo call.
3161 (lang_check): Likewise.
3162 (lang_do_version_exports_section): Likewise.
3164 2001-06-15 H.J. Lu <hjl@gnu.org>
3166 * lexsup.c (parse_args); Save optind to report unrecognized
3169 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3171 * ldlang.c (lang_check): Emit fatal error if relocatable link
3172 between different object flavours.
3174 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3175 Set new link_info member export_dynamic.
3176 * ldmain.c (main): Initialize new link_info member export_dynamic.
3178 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3180 * ldlang.c (walk_wild): Only call walk_wild_file if
3181 lookup_name returns something.
3182 (lookup_name): If load_symbols fails, return NULL.
3183 (load_symbols): Change to a boolean function.
3184 (open_input_bfds): If load_symbols fails then do not make the
3187 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3189 * ldlang.c (record_bfd_errors): Remove.
3191 * emultempl/aix.em: Fix copyright dates.
3193 2001-06-07 Andreas Jaeger <aj@suse.de>
3195 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3196 (TEXT_START_ADDR): Likewise.
3198 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3200 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3202 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3204 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3206 2001-05-31 H.J. Lu <hjl@gnu.org>
3208 * ldlang.c (open_input_bfds): Don't change the bfd error
3209 handler whilst loading symbols.
3211 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3213 * configure.tgt: Remove i370-mvs architecture, it is not currently
3216 2001-05-25 H.J. Lu <hjl@gnu.org>
3218 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3219 like emulparams/aixppc.sh.
3221 2001-05-25 H.J. Lu <hjl@gnu.org>
3223 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3224 setting of output_filename after bfd_scan_arch.
3225 * emultempl/pe.em: Likewise.
3227 2001-05-25 H.J. Lu <hjl@gnu.org>
3229 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3230 like emulparams/aixppc.sh.
3232 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3233 instead of ${srcdir}/emultempl/stringify.sed.
3235 2001-05-25 Timothy Wall <twall@oculustech.com>
3237 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3240 2001-05-25 Alan Modra <amodra@one.net.au>
3242 * configure.host: Replace linuxoldld with linux*oldld.
3243 * configure.tgt: Likewise.
3245 2001-05-24 H.J. Lu <hjl@gnu.org>
3247 * emultempl/stringify.sed: Removed again.
3249 2001-05-24 H.J. Lu <hjl@gnu.org>
3251 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3252 (gld${EMULATION_NAME}_before_parse): Initialize
3253 ldfile_output_architecture, ldfile_output_machine and
3254 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3255 * emultempl/beos.em: Likewise.
3256 * emultempl/elf32.em: Likewise.
3257 * emultempl/linux.em: Likewise.
3258 * emultempl/mipsecoff.em: Likewise.
3259 * emultempl/pe.em: Likewise.
3260 * emultempl/sunos.em: Likewise.
3262 2001-05-24 Tom Rix <trix@redhat.com>
3264 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3265 udate import file format.
3266 (change_symbol_mode) New, same
3267 (is_syscall) New, same
3268 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3269 * emulparams/aixppc64.sh : same
3270 * emulparams/aixrs6.sh : same
3271 * emulparams/ppcmacos.sh : same
3272 * emultempl/aix.em : use strtoull to parse options
3273 * Makefile.am : add eaixppc64 emulation for xcoff64
3274 * Makefile.in : same
3275 * configure.tgt : same
3277 * scripttempl/aix.sc : default text section offset to 0x10000000
3278 default data section offset to 0x20000000
3279 add .sv3264 and .sv64 pseudo sections
3280 loader and debug sections use the currect section offset.
3282 * emultempl/aix.em : Add xcoff64 support
3283 Add -binitfini support
3284 (gld${EMULATION_NAME}_before_parse) -binitfini
3285 (gld${EMULATION_NAME}_parse_args) same
3286 (gld${EMULATION_NAME}_before_allocation) format change for special
3289 * emulparams/aixppc64.sh : New file for xcoff64 support
3291 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3293 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3294 variable to avoid non-portable shell construct.
3296 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3298 * ldmain.c (get_emulation): Add -mips5 command line argument.
3300 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3302 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3303 (ELF_INTERPRETER_NAME): Define it.
3304 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3306 * configure.tgt (targ_emul, targ_extra_emuls)
3307 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3308 as primary, elf_i386 as extra.
3309 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3310 (eelf_i386_ldso.c): New rule.
3311 * Makefile.in: Rebuilt.
3313 2001-05-22 Nick Clifton <nickc@redhat.com>
3315 * lexsup.c (ld_options): Allow -I to be an alias for
3316 --dynamic-linker. This is for Solaris compatability.
3317 * ld.texinfo: Document that -I can be used.
3320 2001-05-16 Alan Modra <amodra@one.net.au>
3322 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3323 whether an input section is the first one assigned to an output
3325 Assorted formatting fixes.
3327 2001-05-14 DJ Delorie <dj@delorie.com>
3329 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3330 * Makefile.in: Ditto.
3332 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3334 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3335 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3337 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3339 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3341 * ldlang.c (lang_process): Call bfd_merge_sections.
3343 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3345 * ldgram.y: Fix typo.
3347 2001-05-03 H.J. Lu <hjl@gnu.org>
3349 * emultempl/elf32.em: Include "libiberty.h".
3350 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3351 basename of the bfd filename.
3352 (gld${EMULATION_NAME}_stat_needed): Likewise.
3353 (gld${EMULATION_NAME}_try_needed): Likewise.
3354 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3356 2001-05-02 H.J. Lu <hjl@gnu.org>
3358 * emultempl/pe.em: Include <ctype.h>.
3360 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3362 * emulparams/elf32openrisc.sh: New file.
3364 * Makefile.am: Add OpenRISC target.
3365 * Makefile.in: Regenerated.
3367 * configure.tgt: Add openrisc-*-* mapping.
3369 2001-05-02 Nick Clifton <nickc@redhat.com>
3371 * emultempl/aix.em: Replace buystring with xstrdup.
3372 * emultempl/beos.em: Replace buystring with xstrdup.
3374 2001-05-02 H.J. Lu <hjl@gnu.org>
3376 * ldfile.c: Include "libiberty.h".
3377 * ldlex.l: Likewise.
3379 * ldmisc.c (buystring): Removed.
3380 * ldmisc.h: Likewise.
3382 * ldfile.c: Replace buystring with xstrdup.
3383 * ldlang.c: Likewise.
3384 * ldlex.l: Likewise.
3385 * ldmain.c: Likewise.
3386 * ldmisc.c: Likewise.
3387 * lexsup.c: Likewise.
3388 * mpw-eppcmac.c: Likewise.
3390 2001-04-30 Andreas Jaeger <aj@suse.de>
3392 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3394 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3396 * ldlang.c (load_symbols): Give emulation a chance
3397 to process unrecognized file before fatal error is
3398 reported, not after.
3400 2001-04-27 Sean McNeil <sean@mcneil.com>
3402 * configure.tgt: Add arm-vxworks target.
3403 * scripttempl/armcoff.sc: Support .text or .data as a section name
3407 2001-04-13 J.T. Conklin <jtc@redback.com>
3409 * ld.texinfo: Document --fatal-warnings.
3412 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3413 warnings have been turned into errors.
3414 * lexsup.c (OPTION_WARN_FATAL): Define.
3415 (ld_options): Entry for --fatal-warnings.
3416 (parse_args): Handle OPTION_WARN_FATAL.
3417 * ld.h (ld_config_type): Add fatal_warnings field.
3419 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3421 * ldmain.c (main): Default to discard_sec_merge.
3422 * lexsup.c (OPTION_DISCARD_NONE): Define.
3423 (ld_options): Add --discard-none.
3424 (parse_args): Handle OPTION_DISCARD_NONE.
3425 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3426 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3427 all its input sections match.
3429 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3431 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3432 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3433 (eelf32ltsmip.c): New target.
3434 (eelf64btsmip.c): Likewise.
3435 (eelf64ltsmip.c): Likewise.
3436 * Makefile.in: Regenerated.
3438 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3440 (mips*-*-linux-gnu*): Likewise.
3442 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3444 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3446 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3449 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3451 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3452 correct value of __Stext here.
3453 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3456 * emulparams/crislinux.sh: Remove FIXME.
3458 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3460 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3461 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3463 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3465 * configure.tgt (cris-*-*): Change default emulation to criself.
3466 (cris-*-*aout*): New rule.
3468 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3470 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3471 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3473 2001-03-26 Andreas Jaeger <aj@suse.de>
3475 * ld.texinfo (Overview): Fix syntax in texi code.
3477 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3479 * ld.texinfo: Put @c man indications to generate the ld man page.
3480 When generating man, define all the variables. Define SEEALSO
3481 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3482 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3483 (ld.1): Generate from ld.texinfo.
3484 * Makefile.in: Regenerate.
3486 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3488 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3489 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3491 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3493 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3494 is an absolute path look only for this file and not along the path.
3496 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3498 * emultempl/elf32.em (OPTION_GROUP): New macro.
3499 Add new option Bgroup to longopts.
3500 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3501 (gld*_list_options): Add -Bgroup and -z defs.
3502 * ld.1: Document -Bgroup and -z defs.
3503 * ld.texinfo: Likewise.
3505 2001-03-07 Michael Meissner <meissner@redhat.com>
3507 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3508 with sections created by -fdata-sections.
3509 (.dynbss,.bss): Ditto.
3511 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3513 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3514 after_allocation_default, not gld..._before_allocation.
3516 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3518 * configure.in (BFD_VERSION): New.
3519 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3520 * configure: Regenerate.
3521 * Makefile.am: Run "make dep-am"
3522 * Makefile.in: Regenerate.
3524 2001-02-26 Timothy Wall <twall@cygnus.com>
3526 * emulparams/elf64_aix.sh: Add additional read-only sections;
3527 uncomment lines which are now required.
3529 2001-02-26 H.J. Lu <hjl@gnu.org>
3531 * ldlang.c (open_input_bfds): Set the bfd error handler so
3532 that problems can be caught whilst loading symbols.
3533 (record_bfd_errors): New function: Report BFD errors and mark
3534 the executable output as being invalid.
3536 2001-02-22 Timothy Wall <twall@cygnus.com>
3538 * configure.host: Add configuration for ia64-*-aix*.
3539 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3540 Add dependencies for eelf64_aix.c.
3541 * Makefile.in: Regenerate.
3542 * configure.tgt: Add ia64-*-aix* mapping.
3543 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3545 2001-02-20 H.J. Lu <hjl@gnu.org>
3547 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3548 false if we found the file.
3550 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3552 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3553 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3555 2001-02-18 lars brinkhoff <lars@nocrew.org>
3557 * Makefile.am: Add PDP-11 target.
3558 * configure.tgt: Likewise.
3559 * emulparams/pdp11.sh: New file.
3561 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3563 * configure.host: Add a generic FreeBSD configuration entry such that
3564 all [modern] FreeBSD systems on all platforms will look the same.
3566 2001-02-14 H.J. Lu <hjl@gnu.org>
3568 * configure.tgt: Remove mention of earmelf_linux26.
3570 2001-02-13 Richard Henderson <rth@redhat.com>
3572 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3574 2001-02-13 H.J. Lu <hjl@gnu.org>
3576 * ldexp.h (node_type): Add etree_provided.
3577 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3578 type to etree_provided if defined by PROVIDE. Allow updating
3580 (exp_print_tree): Handle etree_provided.
3581 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3584 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3586 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3587 .IA_64.unwind.* pattern to unwind table section and
3588 .IA_64.unwind_info* pattern to unwind info section.
3590 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3592 * Makefile.am: Add linux target for S/390.
3593 * Makefile.in: Likewise.
3594 * configure.host: Likewise.
3595 * configure.tgt: Likewise.
3596 * emulparams/elf64_s390.sh: New file.
3597 * emulparams/elf_s390.sh: New file.
3599 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3601 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3603 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3605 2001-02-06 Philip Blundell <philb@gnu.org>
3607 * Makefile.am: Remove mention of earmelf_linux26.
3608 * Makefile.in: Regenerate.
3610 2001-02-04 Philip Blundell <philb@gnu.org>
3612 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3613 * emulparams/armelf_linux26.sh: Delete.
3614 * configure.tgt: Remove mention of armelf_linux26 emulation.
3616 2001-02-01 Nick Clifton <nickc@redhat.com>
3618 * ld.1: Replace occurances of -oformat with --oformat.
3620 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3622 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3623 load_base is specified.
3625 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3627 * emultempl/elf32.em: Correct spelling in comments and listed
3630 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3632 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3633 default for the first section of a group of overlay sections.
3635 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3637 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3638 * Makefile.in: Regenerate.
3639 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3640 Check for null tool_dir.
3642 2001-01-16 Jim Wilson <wilson@redhat.com>
3644 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3645 and IA_64.unwind.info.
3647 2001-01-16 H.J. Lu <hjl@gnu.org>
3649 * ldlang.c (lang_check): Merge the private data only if the
3650 input file has contents.
3652 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3654 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3656 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3657 enabling search for libmilli. On a relocatable link, make .text
3659 (LDEMUL_AFTER_PARSE): Define.
3660 (hppaelf_finish): Correct spelling of relocatable in comments.
3662 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3663 rummage through the script for sections on the unique list.
3664 Correct length of strncmp for ".note".
3665 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3667 * ldlang.c (unique_section_list): New var.
3668 (unique_section_p): New function.
3669 (walk_wild_section): Don't match sections on unique_section_list.
3670 (lang_add_unique): New function.
3671 Correct spelling of relocatable in comments.
3673 * ldlang.h (struct unique_sections): Declare.
3674 (unique_section_list): Declare.
3675 (unique_section_p): Declare.
3676 (lang_add_unique): Declare.
3678 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3679 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3681 * ld.texinfo (--unique): Update.
3683 2001-01-13 Nick Clifton <nickc@redhat.com>
3685 * lexsup.c (parse_args): Remove spurious white space.
3687 2001-01-12 Nick Clifton <nickc@redhat.com>
3689 * lexsup.c (parse_args): Update copyright date.
3691 2001-01-12 Philip Blundell <pb@futuretv.com>
3693 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3695 2001-01-10 Kazu Hirata <kazu@hxi.com>
3697 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3698 * scripttempl/h8300h.sc: Fix formatting.
3699 * scripttempl/h8300s.sc: Likewise.
3700 * scripttempl/h8500.sc: Likewise.
3701 * scripttempl/h8500b.sc: Likewise.
3702 * scripttempl/h8500c.sc: Likewise.
3703 * scripttempl/h8500m.sc: Likewise.
3704 * scripttempl/h8500s.sc: Likewise.
3706 2000-01-07 David O'Brien <obrien@BSDi.com>
3708 * emultempl/elf32.em: Only perform Linux ld hints processing when
3711 2001-01-07 Philip Blundell <philb@gnu.org>
3713 * ld.texinfo (Bug Reporting): Update email address for reports.
3715 2000-12-31 Nick Clifton <nickc@redhat.com>
3717 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3718 options by checking for a return value of '?' not -1.
3720 2000-12-28 Nick Clifton <nickc@redhat.com>
3722 * lexsup.c (struct ld_option): Add new enum value:
3724 (ld_options[]): Change -omagic, -output and -oformat options
3725 to be EXACTLY_TWO_DASHES.
3726 (OUTPUT_COUNT): Use ARRAY_SIZE.
3727 (parse_args): Change parameter 'argc' to unsigned.
3728 Place EXACTLY_TWO_DASHES options into new really_longopts
3730 If getopt_long_only fails, try calling getopt_long using the
3731 really_longopts array.
3732 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3735 * ldlex.h: Fix prototype of parse_args.
3737 * ld.texinfo: Document that long options starting with 'o'
3738 must be preceeded by two dashes. Change example of a single
3739 dashed long option from -oformat to -trace-symbol.
3741 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3743 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3744 (longopts[]): New --no-default-excludes option.
3745 (gld_${EMULATION_NAME}_list_options): Document.
3746 (gld_${EMULATION_NAME}_parse_args): Handle.
3748 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3750 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3751 whitespace, it breaks the K&R C preprocessor.
3753 2000-12-11 DJ Delorie <dj@redhat.com>
3755 * ld.texinfo: Add notes about --whole-archive and gcc.
3757 2000-11-18 Fred Fish <fnf@be.com>
3759 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3760 (ld_options): Entry for --allow-shlib-undefined.
3761 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3762 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3764 * ld.texinfo: Document new command line switch.
3766 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3768 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3769 .fixup is actually read/write.
3770 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3771 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3772 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3774 2000-12-11 Jan Hubicka <jh@suse.cz>
3776 * NEWS: Add note about x86_64 architecture.
3778 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3780 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3781 Set DWARF2 sections to a VMA of zero.
3783 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3785 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3787 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3788 (sparc*-*-rtems*): Switched from a.out to ELF.
3790 2000-11-30 Jan Hubicka <jh@suse.cz>
3792 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3793 (eelf_x86_64.c): New.
3794 * Makefile.in: Regenerate.
3795 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3796 * emulparams/elf_x86_64.sh: New.
3798 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3800 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3801 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3803 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3804 merging non-a.out sections into CONSTRUCTING.
3806 2000-11-28 Nick Clifton <nickc@redhat.com>
3808 * ld.1 (COPYING): Mention that the GNU Free Documentation
3809 License is present in the sources, but not the output, and
3810 also available from the GNU website.
3811 (GNU Free Documentation License): Comment out this section.
3813 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3815 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3818 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3820 * ld.1: Remove old date so it does not give the impression the manpage
3823 2000-11-24 Nick Clifton <nickc@redhat.com>
3825 * configure.tgt (xscale-coff): Add target.
3826 (xscale-elf): Add target.
3828 2000-11-24 Fred Fish <fnf@be.com>
3830 * ldmain.c (main): Remove redundant init of config.make_executable
3833 2000-11-15 Richard Henderson <rth@redhat.com>
3835 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3837 2000-11-14 Kazu Hirata <kazu@hxi.com>
3839 * scripttempl/h8300.sc: Fix formatting.
3840 * scripttempl/h8300h.sc: Likewise.
3841 * scripttempl/h8300s.sc: Likewise.
3843 2000-11-14 Denis Chertykov <denisc@overta.ru>
3845 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3847 2000-11-09 Philip Blundell <pb@futuretv.com>
3849 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3850 around orphan sections whose names can be represented in C.
3852 2000-11-07 Jim Wilson <wilson@redhat.com>
3854 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3855 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3857 2000-11-06 Nick Clifton <nickc@redhat.com>
3859 * ld.texinfo: Add GNU Free Documentation License.
3860 * ldint.texinfo: Add GNU Free Documentation License.
3861 * ld.1: Add GNU Free Documentation License.
3863 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3865 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3866 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3868 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3869 Move 2000-11-02 Makefile.in changes to this file.
3870 * Makefile.in: Regenerate.
3872 2000-11-03 Nick Clifton <nickc@redhat.com>
3874 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3875 constructors and destructors.
3876 * scripttempl/h8300h.sc: Ditto.
3877 * scripttempl/h8300s.sc: Ditto.
3878 * scripttempl/h8500.sc: Ditto.
3879 * scripttempl/h8500b.sc: Ditto.
3880 * scripttempl/h8500c.sc: Ditto.
3881 * scripttempl/h8500m.sc: Ditto.
3882 * scripttempl/h8500s.sc: Ditto.
3883 * scripttempl/v850.sc: Ditto.
3884 * scripttempl/w65.sc: Ditto.
3885 * scripttempl/z8000.sc: Ditto.
3887 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3889 * Makefile.in (e_i386_chaos.c): New rule.
3890 (ALL_EMULATIONS): Added e_i386_chaos.o.
3891 * emulparams/elf_i386_chaos.sh: New file.
3892 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3894 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3896 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3897 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3898 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3899 library path suffix.
3900 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3902 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3904 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3905 for consecutive sections.
3907 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3909 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3911 * ld.texinfo: Added notes about this new option.
3913 2000-10-16 Nick Clifton <nickc@redhat.com>
3915 * emultempl/pe.em (_after_open): Add tests of return values from
3916 bfd functions. Emit appropriate error messages if necessary.
3918 2000-10-13 Nick Clifton <nickc@redhat.com>
3920 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3921 local variables - they are not used, but leave in the call to
3922 bfd_canonicalize_symtab.
3923 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3924 pe_dll_search_prefix.
3926 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3928 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3929 (longopts): New --dll-search-prefix option.
3930 (gld_${EMULATION_NAME}_list_options): Document.
3931 (gld_${EMULATION_NAME}_parse_args): Handle.
3932 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3933 dynamically, search for a dll named '<prefix><basename>.dll'
3934 in preference to 'lib<basename>.dll' if --dll-search-prefix
3937 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3939 * ldlang.c (section_already_linked): Set kept_section instead of
3942 2000-10-10 Kazu Hirata <kazu@hxi.com>
3944 * deffile.h: Fix formatting.
3945 * lexsup.c: Likewise.
3948 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3950 * pe-dll.c (make_one): Do not generate code thunk for DATA
3952 (process_def_file): deduce DATA flag for auto-export sumbols.
3954 2000-10-09 Kazu Hirata <kazu@hxi.com>
3956 * ld.h: Fix formatting.
3957 * ldcref.c: Likewise.
3958 * ldctor.h: Likewise.
3959 * ldemul.c: Likewise.
3960 * ldemul.h: Likewise.
3961 * ldexp.c: Likewise.
3962 * ldexp.h: Likewise.
3963 * ldfile.c: Likewise.
3964 * ldfile.h: Likewise.
3965 * ldlang.c: Likewise.
3966 * ldlang.h: Likewise.
3967 * ldmain.c: Likewise.
3968 * pe-dll.c: Likewise.
3970 * pe-dll.c: Revert some formatting fixes.
3972 2000-10-08 Kazu Hirata <kazu@hxi.com>
3974 * pe-dll.c: Fix formatting.
3976 2000-10-05 Kazu Hirata <kazu@hxi.com>
3978 * ldlang.c: Fix formatting.
3980 2000-10-03 DJ Delorie <dj@redhat.com>
3982 * pe-dll.c (fill_edata): initialize entire block
3983 (make_one): fill in correct section.
3985 2000-10-03 Kazu Hirata <kazu@hxi.com>
3987 * ldexp.c: Fix formatting.
3989 2000-10-02 DJ Delorie <dj@redhat.com>
3991 * emultempl/pe.em (gld_*_after_open): detect case where there two
3992 import libraries for same dll; rename one to ensure proper link
3995 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3997 (generate_edata): fix typo
3999 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4001 * scripttempl/crisaout.sc (ENTRY): Now __start.
4002 (.text): Add default setting for __start.
4003 Remove CONSTRUCTORS handling.
4004 (/DISCARD/): Add .gnu.warning.*.
4005 * emulparams/crislinux.sh (ENTRY): Now __start.
4006 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4007 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4008 (ENTRY): Now __start.
4009 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4010 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4012 2000-09-29 Kazu Hirata <kazu@hxi.com>
4014 * deffile.h: Fix formatting.
4016 * ldcref.c: Likewise.
4017 * ldctor.c: Likewise.
4018 * ldctor.h: Likewise.
4019 * ldemul.c: Likewise.
4020 * ldemul.h: Likewise.
4021 * ldexp.c: Likewise.
4022 * ldexp.h: Likewise.
4023 * ldfile.c: Likewise.
4024 * ldfile.h: Likewise.
4025 * ldlang.c: Likewise.
4026 * ldlang.h: Likewise.
4027 * lexsup.c: Likewise.
4029 * pe-dll.c: Likewise.
4031 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4033 * pe-dll.c (process_def_file): Uninitialized data wasn't
4034 exported with --export-all-symbols switch.
4036 2000-09-28 DJ Delorie <dj@redhat.com>
4038 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4039 noname work properly.
4041 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4043 * ld.texinfo (HPPA ELF32): New section.
4045 * emultempl/hppaelf.em (group_size): New.
4046 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4047 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4048 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4049 options to prevent abbreviations matching.
4050 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4051 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4053 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4055 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4056 on the m68*-*-elf target. Make it support COFF input objects.
4058 2000-09-21 Kazu Hirata <kazu@hxi.com>
4060 * ldmain.c: Fix formatting.
4061 * ldmisc.c: Likewise.
4062 * ldver.c: Likewise.
4063 * ldwrite.c: Likewise.
4065 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4067 * ldwrite.c (clone_section): Silence gcc warnings.
4069 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4071 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4072 out of memory failure.
4074 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4075 (clone_section): Handle out of memory failures. Rename var to
4076 avoid c++ reserved word.
4078 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4080 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4081 stub_name param to stub_sec_name.
4082 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4084 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4086 * emultempl/m68kelf.em: New file.
4087 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4088 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4089 * Makefile.in: Regenerate.
4091 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4093 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4096 2000-09-13 Nick Clifton <nickc@redhat.com>
4098 * ldmain.c (multiple_definition): Disable relaxation if
4099 multiple symbol definitions are encountered - otherwise the
4100 linker could abort with an assertion failure.
4102 2000-09-10 Nick Clifton <nickc@redhat.com>
4104 * mri.c: Fix formatting.
4106 2000-09-07 H.J. Lu <hjl@gnu.org>
4108 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4109 * configure: Rebuild.
4111 2000-09-07 H.J. Lu <hjl@gnu.org>
4113 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4114 * Makefile.in: Rebuild.
4116 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4118 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4119 broken list handling. Create __start_SECNAME and __stop_SECNAME
4120 when no place-holder. Add some comments. Test both SEC_CODE and
4121 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4122 Handle case where no output section statement created.
4124 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4126 * configure.tgt (sh-*-linux*): Added.
4127 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4128 * Makefile.in: Rebuilt.
4129 * emulparams/shelf_linux.sh: New file.
4130 * emulparams/shlelf_linux.sh: New file.
4132 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4134 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4135 try shuffling sections when the orphan happens to be the place
4136 holder. Keep count of unique section names generated so we speed
4137 the search for a new name.
4139 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4141 * configure: Rebuilt with new libtool.m4.
4143 2000-09-05 Nick Clifton <nickc@redhat.com>
4145 * Makefile.in: Regenerate.
4146 * aclocal.m4: Regenerate.
4147 * configure: Regenerate.
4148 * config.in: Regenerate.
4149 * po/ld.pot: Regenerate.
4151 * ldint.texinfo: Remove CVS revision marker - it foils local
4154 * emultempl/ticoff.em: Remove extraneous comma.
4156 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4158 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4159 to stub section flags.
4160 (hppa_for_each_input_file_wrapper): New.
4161 (hppa_lang_for_each_input_file): New.
4162 (lang_for_each_input_file): Define to call above.
4163 (multi_subspace): New.
4164 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4165 (PARSE_AND_LIST_PROLOGUE): Define.
4166 (PARSE_AND_LIST_LONGOPTS): Define.
4167 (PARSE_AND_LIST_OPTIONS): Define.
4168 (PARSE_AND_LIST_ARGS_CASES): Define.
4169 (hppaelf_finish): Call elf32_hppa_set_gp.
4170 (hppaelf_set_output_arch): Remove.
4171 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4173 * emulparams/hppalinux.sh (ELFSIZE): Define.
4175 (OTHER_READONLY_SECTIONS): Define.
4177 (GENERATE_SHLIB_SCRIPT): Define.
4179 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4180 to const throughout. Change `void *' to `PTR' throughout.
4181 (lang_memory_default): Function is local to file, add `static'.
4183 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4184 (ehppalinux.c): Likewise.
4185 (earmelf.c): Likewise.
4186 (earmelf_linux.c): Likewise.
4187 (earmelf_linux26.c): Likewise.
4188 * Makefile.in: Regenerate.
4190 * ld.h (ld_config_type): Add unique_orphan_sections.
4191 * lexsup.c (OPTION_UNIQUE): Define.
4192 (ld_options): Add "--unique".
4193 (parse_args): Handle it.
4194 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4195 search for an existing output section if unique_orphan_sections is
4196 set. Make use of bfd_get_unique_section_name rather than
4197 duplicating code here.
4198 * ld.texinfo: Describe --unique.
4200 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4201 optional arg to split-by-file.
4202 (parse_args): Handle them.
4203 * ld.texinfo: Update description of these options.
4204 * ldwrite.c (clone_section): Pass in the section name. Replace
4205 local code with bfd_get_unique_section_name.
4206 (split_sections): Tidy code and comments. Use a list traversal
4207 more appropriate to the list construction. Handle cooked section
4208 sizes. Split when split_by_reloc reached rather than exceeded.
4209 Track section size and split when split_by_file reached. Fix
4210 link_order_tail (even though it's not used).
4211 (ldwrite): Modify condition for calling split_sections to suit
4212 changed split_by_reloc and split_by_file.
4213 * ldmain.c (main): Init config.split_by_reloc and
4214 config.split_by_file to -1.
4215 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4216 Change split_by_file to bfd_size_type.
4218 2000-09-02 Nick Clifton <nickc@redhat.com>
4220 * configure.in: Increase version number to 2.10.91.
4221 * NEWS: Mention new ability to support removal of duplicate DWARF2
4223 * configure: Regenerate.
4224 * aclocal.m4: Regenerate.
4225 * config.in: Regenerate.
4227 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4229 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4231 * scripttempl/elf32avr.sc: Ditto.
4232 * scripttempl/elfd10v.sc: Ditto.
4233 * scripttempl/elfd30v.sc: Ditto.
4234 * scripttempl/elfi370.sc: Ditto.
4235 * scripttempl/elfm68hc11.sc: Ditto.
4236 * scripttempl/elfm68hc12.sc: Ditto.
4237 * scripttempl/elfi386beos.sc: Ditto.
4238 * scripttempl/v850.sc: Ditto.
4240 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4242 * acinclude.m4: Include libtool and gettext macros from the
4244 * aclocal.m4, configure: Rebuilt.
4246 2000-08-25 Nick Clifton <nickc@redhat.com>
4248 * ldlang.c (open_output): When choosing the target for a
4249 particular endianness, do nothing if the target is not
4252 2000-08-25 H.J. Lu <hjl@gnu.org>
4254 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4255 check -rpath nor LD_RUN_PATH for cross link.
4256 * ld.texinfo: Document the change.
4258 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4260 * NEWS: Mention support for CRIS.
4262 2000-08-23 H.J. Lu <hjl@gnu.org>
4264 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4265 the current runpath list from bfd_elf_get_runpath_list ()
4268 2000-08-22 H.J. Lu <hjl@gnu.org>
4270 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4271 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4272 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4273 trace_file_tries is non-zero.
4274 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4275 if trace_file_tries is non-zero.
4277 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4280 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4282 * NEWS: Mention i860 support.
4284 2000-08-14 Andreas Schwab <schwab@suse.de>
4286 * scripttempl/elf.sc: Fix last change to use correct comment
4289 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4291 * scripttempl/elf.sc: Add a comment giving the correspondence
4292 between sections, per-datum sections, and linkonce sections. Make
4293 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4296 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4298 * emulparams/elf32_i860.sh: New file.
4299 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4300 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4301 (eelf32_i860.c): New rule.
4302 * Makefile.in: Regenerate.
4304 2000-08-10 Nick Clifton <nickc@cygnus.com>
4306 * emulparams/mipspe.sh (ENTRY): Add definition.
4308 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4310 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4313 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4315 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4316 the final size of .bss section.
4317 * scripttempl/elfm68hc12.sc: Likewise.
4319 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4321 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4322 gld${EMULATION_NAME}_parse_args for consistency. Combine
4323 lastoptind and prevoptind vars, and keep track of last optind.
4324 (gld_${EMULATION_NAME}_list_options): Rename to
4325 gld${EMULATION_NAME}_list_options.
4327 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4329 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4330 (i586-sco-sysv5uw7.1.0).
4332 2000-07-27 H.J. Lu <hjl@gnu.org>
4334 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4335 (PARSE_AND_LIST_PROLOGUE): New.
4336 (PARSE_AND_LIST_LONGOPTS): Likewise.
4337 (PARSE_AND_LIST_OPTIONS): Likewise.
4338 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4339 (PARSE_AND_LIST_EPILOGUE): Likewise.
4341 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4343 * emultempl/armelf.em: Elide functions common to elf32.em,
4344 ie. most of the file.
4345 (arm_elf_after_open): New. Do arm specific things then call
4346 gld${EMULATION_NAME}_after_open.
4347 (arm_elf_before_allocation): New. Call
4348 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4349 (PARSE_AND_LIST_PROLOGUE): Define.
4350 (PARSE_AND_LIST_SHORTOPTS): Define.
4351 (PARSE_AND_LIST_LONGOPTS): Define.
4352 (PARSE_AND_LIST_OPTIONS): Define.
4353 (PARSE_AND_LIST_ARGS_CASES): Define.
4354 (LDEMUL_AFTER_OPEN): Define.
4355 (LDEMUL_BEFORE_ALLOCATION): Define.
4356 (LDEMUL_BEFORE_PARSE): Define.
4357 (LDEMUL_FINISH): Define.
4359 * emultempl/hppaelf.em: Similarly zap most of this file.
4360 (hppaelf_add_stub_section): Prototype.
4361 (hppaelf_layaout_sections_again): Prototype.
4362 (hook_in_stub): Prototype.
4363 (LDEMUL_SET_OUTPUT_ARCH): Define.
4364 (LDEMUL_FINISH): Define.
4365 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4367 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4368 (EXTRA_EM_FILE): New.
4369 * emulparams/armelf_linux.sh: Likewise.
4370 * emulparams/armelf_linux26.sh: Likewise.
4371 * emulparams/hppalinux.sh: Likewise.
4372 * emulparams/hppaelf.sh: Likewise.
4375 * emultempl/elf32.em: Fix formatting.
4376 (EXTRA_EM_FILE): Source it.
4377 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4378 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4379 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4380 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4381 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4382 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4383 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4384 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4385 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4386 allow functions in this file to be overridden.
4387 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4389 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4391 * emultempl/elf32.em: Reorganize file.
4393 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4395 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4396 specific option to fit 64-bit executable in the lower
4397 31-bit address range. This is done by changing start
4398 address of .interp (the very first section of executable)
4399 and then setting EF_ALPHA_32BIT elf header flag.
4401 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4403 * emultempl/m68kcoff.em: New file.
4404 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4405 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4407 * Makefile.in: Regenerate.
4409 2000-07-20 H.J. Lu <hjl@gnu.org>
4411 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4412 and "disable-new-dtags" to stop getopt from treating -d/-e as
4413 abbreviations for these options.
4415 2000-07-20 H.J. Lu <hjl@gnu.org>
4417 * ld.texinfo: Add documentation for --disable-new-dtags and
4420 * ldmain.c (main): Initialize link_info.new_dtags to false.
4422 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4423 --disable-new-dtags and --enable-new-dtags.
4424 (gld_${EMULATION_NAME}_list_options): Likewise.
4426 2000-07-05 Kenneth Block <krblock@computer.org>
4428 * lexsup.c: Add optional style to demangle switch
4429 * ld.texinfo: Document optional style to demangle switch.
4431 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4433 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4435 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4436 Regenerate dependencies.
4437 * Makefile.in: Rebuild.
4438 * configure.tgt (cris-*-*): New target.
4439 * emulparams/crisaout.sh, emulparams/criself.sh,
4440 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4441 * po/POTFILES.in, po/ld.pot: Regenerate.
4443 2000-07-20 H.J. Lu <hjl@gnu.org>
4445 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4446 Print out ignored -z options.
4448 2000-07-19 H.J. Lu <hjl@gnu.org>
4450 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4451 (PARSE_AND_LIST_PROLOGUE): New.
4452 (PARSE_AND_LIST_LONGOPTS): Likewise.
4453 (PARSE_AND_LIST_OPTIONS): Likewise.
4454 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4456 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4458 * lexsup.c (ld_options): Comment out 'z'.
4459 (parse_args): Likewise.
4461 * emultempl/elf32.em: Include "elf/common.h".
4462 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4464 (gld_${EMULATION_NAME}_list_options): Likewise.
4466 * ld.texinfo: Add documentation for the recognized -z options.
4468 2000-07-19 H.J. Lu <hjl@gnu.org>
4470 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4471 bfd_elf_set_dt_needed_soname ().
4473 2000-07-18 DJ Delorie <dj@cygnus.com>
4475 * pe-dll.c (pe_dll_id_target): check object target name also
4477 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4479 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4480 ${INIT_END} if relocating.
4481 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4483 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4485 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4486 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4487 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4488 errors introduced by the old dynamic lib search order.
4490 2000-07-17 DJ Delorie <dj@cygnus.com>
4492 * pe-dll.c (process_def_file): auto-export data items also
4493 (pe_process_import_defs): also see if _imp_ form needed
4495 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4497 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4498 for dll import libraries
4500 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4502 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4503 gcc 2.95.2 and later.
4505 2000-07-11 Kazu Hirata <kazu@hxi.com>
4507 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4510 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4512 * ldemul.h (struct lang_input_statement_struct): Remove forward
4514 (struct search_dirs): Likewise.
4515 * ldfile.h (struct lang_input_statement_struct): Likewise.
4516 Protect file from multiple inclusion.
4517 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4518 declaration from macro to file scope.
4520 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4521 * ldgram.y: Likewise here.
4522 * ldlang.c: And here.
4523 * ldmain.c: And here.
4524 * mpw-elfmips.c: And here.
4525 * mpw-eppcmac.c: And here.
4526 * emultempl/aix.em: And here.
4527 * emultempl/armcoff.em: And here.
4528 * emultempl/armelf.em: And here.
4529 * emultempl/armelf_oabi.em: And here.
4530 * emultempl/beos.em: And here.
4531 * emultempl/elf32.em: And here.
4532 * emultempl/hppaelf.em: And here.
4533 * emultempl/linux.em: And here.
4534 * emultempl/lnk960.em: And here.
4535 * emultempl/pe.em: And here.
4536 * emultempl/sunos.em: And here.
4537 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4538 * mpw-idtmips.c: Ditto.
4539 * emultempl/generic.em: Ditto.
4540 * emultempl/gld960.em: Ditto.
4541 * emultempl/gld960c.em: Ditto.
4542 * emultempl/mipsecoff.em: Ditto.
4543 * emultempl/ticoff.em: Ditto.
4544 * emultempl/vanilla.em: Ditto.
4546 * pe-dll.c: Include ldfile.h
4547 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4549 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4550 arguments to bfd_elf32_size_dynamic_sections call.
4551 (gldelf32ebmip_place_orphan): Add missing arguments to
4552 lang_leave_output_section_statement call.
4554 2000-07-10 H.J. Lu <hjl@gnu.org>
4556 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4558 (strhash): Likewise.
4559 (compute_dll_image_base): Likewise.
4560 (pe_undef_found_sym): Likewise.
4561 (pe_undef_cdecl_match): Likewise.
4562 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4563 argument "arch" with ATTRIBUTE_UNUSED.
4565 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4567 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4569 From Ryan Bradetich <rbradetich@uswest.net>
4570 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4572 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4574 Changes to create multiple linker stubs, positioned immediately
4575 before the section where they are required.
4576 * emultempl/hppaelf.em: Include elf32-hppa.h.
4577 (stub_sec, file_chain): Delete.
4578 (hppaelf_create_output_section_statements): Don't make a stub
4580 (hook_stub_info): New struct.
4581 (hook_in_stub): New function.
4582 (hppaelf_add_stub_section): New function.
4583 (hppaelf_finish): Do nothing for relocateable links. Modify the
4584 call to elf32_hppa_size_stubs. Move code for updating section
4586 (hppaelf_layaout_sections_again): ..to here, a new function.
4588 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4589 broken list handling. Pass in a pointer to the list.
4590 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4592 (hppaelf_before_parse): Prototype.
4593 (hppaelf_set_output_arch): Prototype.
4594 (hppaelf_create_output_section_statements): Prototype.
4595 (hppaelf_delete_padding_statements): Prototype.
4596 (hppaelf_finish): Prototype.
4599 * emultempl/hppaelf.em: Include ctype.h.
4600 (struct orphan_save): New.
4601 (gld${EMULATION_NAME}_place_orphan): New.
4602 (output_rel_find): New.
4603 (hppaelf_get_script): Update from elf32.em.
4604 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4605 Change emulation_name field to "${EMULATION_NAME}". Add
4606 gld${EMULATION_NAME}_place_orphan.
4608 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4609 ehppalinux.o, sort it. Regenerate dependencies.
4610 (ehppalinux.c): Depend on hppaelf.em
4611 * Makefile.in: Regenerate.
4613 * configure.tgt: targ_emul=hppalinux for hppa*linux
4615 * emulparams/hppalinux.sh: New.
4616 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4618 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4620 * lexsup.c (parse_args): Copy section name.
4622 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4624 * emultempl/pe.em: institute the following search order for
4625 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4626 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4627 static lib (libfoo.a) if none of the above are found.
4629 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4631 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4632 (longopts): New --{enable,disable}-auto-image-base options.
4633 (gld_${EMULATION_NAME}_list_options): Document.
4634 (gld_${EMULATION_NAME}_parse): Handle.
4635 (strhash): New static function.
4636 (compute_dll_image_base): New static function.
4637 (gld_${EMULATION_NAME}_set_symbols): Use.
4639 2000-07-05 DJ Delorie <dj@redhat.com>
4643 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4645 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4646 * emulparams/elf32btsmip.sh: New file.
4647 * Makefile.am: Add traditional mips target.
4648 * Makefile.in: Rebuild.
4650 2000-07-01 H.J. Lu <hjl@gnu.org>
4652 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4653 automake to use YLWRAP.
4654 * Makefile.in: Rebuild.
4656 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4658 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4659 (CLEANFILES): Add DEPA.
4660 * Makefile.in: Regenerate.
4662 2000-06-30 Timothy Wall <twall@ppc>
4664 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4665 the page in the upper octet of the address.
4667 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4669 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4671 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4673 * NEWS: arm-elf does --gc-sections too.
4675 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4677 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4679 * Makefile.in: Regenerate.
4681 2000-06-21 H.J. Lu <hjl@gnu.org>
4683 * Makefile.am: Rebuild dependency.
4684 * Makefile.in: Rebuild.
4686 2000-06-20 H.J. Lu <hjl@gnu.org>
4688 * Makefile.am: Rebuild dependency.
4689 * Makefile.in: Rebuild.
4691 2000-06-20 Timothy Wall <twall@cygnus.com>
4693 * scripttempl/tic54xcoff.sc: New.
4694 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4695 * gen-doc.texi: Add flag for TI COFF.
4696 * ld.texinfo: Add documentation for TI COFF handling switches.
4697 * emultempl/ticoff.em: New. TI COFF handling.
4698 * configure.tgt: Add tic54x target.
4699 * Makefile.am: Add tic54x target.
4700 * Makefile.in: Ditto.
4702 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4704 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4705 checking for backslashes.
4707 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4709 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4711 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4713 * NEWS: Update list of targets supporting --gc-sections.
4715 * scripttempl/elf.sc: KEEP .eh_frame contents.
4716 * scripttempl/elfd30v.sc: Same here.
4718 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4720 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4722 * Makefile.in: Rebuild.
4723 * configure.tgt: Recognize m68hc12 and m68hc11.
4724 * scripttempl/elfm68hc12.sc: New file.
4725 * emulparams/m68hc12elfb: New emulation.
4726 * emulparams/m68hc12elf: New emulation.
4727 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4728 (includes a memory.x script to define the ROM and RAM banks).
4729 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4730 New configuration files for support of Motorola 68hc11
4732 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4734 * ldmain.c (main): Only change SEC_READONLY for final link.
4736 2000-06-13 H.J. Lu <hjl@gnu.org>
4738 * configure: Regenerate.
4740 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4742 * configure.in (VERSION): Update to show this is the CVS mainline.
4744 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4746 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4747 input objects to be ECOFF.
4748 (check_sections): einfo takes %B, not %P, to print a BFD name.
4750 2000-06-05 Michael Matz <matz@ifh.de>
4752 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4755 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4757 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4759 * emulparams/avr1200.sh (STACK): Define as 0.
4760 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4761 * emulparams/avr4433.sh (STACK): Likewise.
4762 * emulparams/avr44x4.sh (STACK): Likewise.
4763 * emulparams/avr85xx.sh (STACK): Likewise.
4764 * emulparams/avrmega103.sh (STACK): Likewise.
4765 * emulparams/avrmega161.sh (STACK): Likewise.
4766 * emulparams/avrmega603.sh (STACK): Likewise.
4767 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4768 (__stack): Define from ${STACK} for main().
4770 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4772 * Makefile.am: Update dependencies with "make dep-am"
4773 * Makefile.in: Regenerate.
4775 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4777 * ldmain.c: Include filenames.h.
4778 (set_scripts_dir): Support backslashes in program name.
4780 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4782 * ldmain.c (main): When deciding if ".text" section should be
4783 read-only, don't forget to reset SEC_READONLY because it
4784 could be already set.
4786 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4788 * ld.1: Add documentation for new command line option:
4789 --section-start <sectionname>=<sectionorg>
4790 This is a generic version of -Ttext etc. which accepts
4791 any section name as a parameter instead of just text/data/
4793 * ld.texinfo: More docs.
4795 * lexsup.c: (parse_args): Recognize new command line option.
4796 (ld_options): Add new option.
4798 2000-05-18 H.J. Lu <hjl@gnu.org>
4800 * lexsup.c (parse_args): `i' == `r', not `q'.
4802 2000-05-18 Jeffrey A Law (law@cygnus.com)
4804 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4806 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4807 Rick Gorton <gorton@scrugs.lkg.dec.com>
4809 Add support for '-q' == '--emit-relocs' switch.
4810 * ldmain.c (main): Default to false.
4811 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4812 * NEWS: Describe the emitrelocations switch.
4813 * ld.texinfo: Describe the emitrelocations switch.
4815 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4817 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4818 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4819 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4822 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4824 * lexsup.c (parse_args): Update the year in the copyright notice.
4826 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4828 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4829 Replace defines with those from intl/libgettext.h to quieten gcc
4832 2000-05-10 H.J. Lu <hjl@gnu.org>
4834 * ldlang.c (open_input_bfds): Don't load the same file within
4835 a group again if the whole archive has been loaded already.
4837 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4839 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4840 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4843 2000-05-01 Jim Wilson <wilson@cygnus.com>
4845 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4847 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4848 host "ia64-*-linux-gnu*".
4850 2000-04-29 Andreas Jaeger <aj@suse.de>
4852 * ld.h: Correctly check GCC version.
4854 2000-04-25 Jeffrey A Law (law@cygnus.com)
4856 * Makefile.am: Add PA64 support. Add missing dependencies for
4858 * Makefile.in: Rebuilt.
4859 * configure.tgt: Add PA64 support (currently disabled).
4861 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4863 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4864 (output_rel_find): New function.
4865 (hold_section, hold_use): Delete.
4866 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4867 hold_interp): Make local to place_orphan.
4868 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4869 rather than place_section to find possible previous use of orphan.
4870 Similarly find the place-holder output sections. Use returned
4871 value from lang_enter_output_section_statement rather than calling
4872 lang_output_section_statement_lookup.
4873 * emultempl/armelf.em: Same here.
4874 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4876 * ldlang.c (lang_enter_output_section_statement): Return output
4878 * ldlang.h (lang_enter_output_section_statement): Change
4881 * ldlang.h (lang_output_section_statement): Export it.
4882 * ldlang.c (lang_output_section_statement): Ditto.
4884 2000-04-24 Nick Clifton <nickc@cygnus.com>
4886 * ld.texinfo (Output Section Data): Add note that section data
4887 commands cannot appear outside of section directives.
4889 2000-04-2 Matthew Green <mrg@cygnus.com>
4891 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4893 2000-04-21 Richard Henderson <rth@cygnus.com>
4894 David Mosberger <davidm@hpl.hp.com>
4896 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4897 (eelf64_ia64.c): New rule.
4898 * Makefile.in: Rebuild.
4899 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4900 * emulparams/elf64_ia64.sh: New file.
4902 2000-04-21 Richard Henderson <rth@cygnus.com>
4904 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4906 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4908 * dep-in.sed: Match space at start of file name, not at end.
4910 2000-04-18 H.J. Lu <hjl@gnu.org>
4912 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4913 lang_leave_output_section_statement () after calling
4914 lang_enter_output_section_statement ().
4915 * emultempl/armelf.em: Likewise.
4917 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4919 * emultempl/elf32.em (struct orphan_save): Add section field.
4920 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4921 better order, and place first orphan section as we did before the
4922 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4923 Don't call make_bfd_section here, let wild_doit do the job for us.
4924 Don't build a statement list when we'll only throw it away.
4925 * emultempl/armelf.em: Ditto.
4926 * emultempl/pe.em: Similarly.
4928 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4930 * scripttempl/elfppc.sc: Remove.
4931 * emulparams/elf32ppc.sh: Use elf.sc.
4932 * emulparams/elf32lppc.sh: Use elf.sc.
4933 * emulparams/elf32ppclinux.sh: Use elf.sc.
4934 * emulparams/elf32ppcsim.sh: New file.
4935 * emulparams/elf32lppcsim.sh: New file.
4936 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4937 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4938 * Makefile.in: Regenerate.
4939 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4941 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4943 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4944 ~SEC_ALLOC sections too. Init start address of debug sections.
4945 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4946 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4947 Also set all relocateable section start addresses.
4949 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4951 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4952 Add new BSS_PLT variable for when .plt need not be contained in
4953 the file. Move _etext so that it is also after .fini, and provide
4954 both etext and _etext with a leading underscore. Mark the start
4957 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4959 * emultempl/elf32.em (struct orphan_save): New.
4960 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4961 hold_interp): Make them struct orphan_save.
4962 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4963 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4964 the end of the relevant section list. Also add associated section
4965 statements to the end of any previous orphan statements.
4966 * emultempl/armelf.em: Similarly.
4967 * emultempl/pe.em: Similarly.
4969 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4971 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4973 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4975 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4976 --enable-build-warnings option.
4977 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4978 * Makefile.in, configure: Re-generate.
4980 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4982 * po/ld.pot: Regenerate.
4984 * lexsup.c (help): Restore translated part of bug string.
4986 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4987 (DEP): Quote when passing vars to sub-make. Add warning message
4989 (DEP1): Rewrite for "gcc -MM".
4990 (CLEANFILES): Add DEP2.
4991 Update dependencies.
4992 * Makefile.in: Regenerate.
4994 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4996 * ld.h: #include "bin-bugs.h"
4997 * lexsup.c (help): Use REPORT_BUGS_TO.
4999 2000-03-27 Denis Chertykov <denisc@overta.ru>
5001 * configure.tgt (avr-*-*): New target support.
5002 * Makefile.am: Likewise.
5003 * scripttempl/elf32avr.sc: New script file.
5004 * emulparams/avr1200.sh: New file.
5005 * emulparams/avr23xx.sh: New file.
5006 * emulparams/avr4433.sh New file.
5007 * emulparams/avr44x4.sh New file.
5008 * emulparams/avr85xx.sh New file.
5009 * emulparams/avrmega103.sh New file.
5010 * emulparams/avrmega161.sh New file.
5011 * emulparams/avrmega603.sh New file.
5012 * Makefile.in: Regenerate.
5014 2000-03-09 Andreas Jaeger <aj@suse.de>
5016 * Makefile.am (check-DEJAGNU): Also unset LANG.
5017 * Makefile.in: Rebuild.
5019 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5021 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5024 2000-03-02 H.J. Lu <hjl@gnu.org>
5026 * emulparams/elf32mcore.sh: Include "getopt.h".
5028 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5030 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5032 2000-03-01 H.J. Lu <hjl@gnu.org>
5034 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5035 * emulparams/shpe.sh: Likewise.
5037 2000-03-01 Nick Clifton <nickc@cygnus.com>
5039 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5040 to unused parameters.
5042 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5043 functions only used by DLL code.
5044 (_place_orphan): Initialise 'dollar'.
5046 2000-03-01 H.J. Lu <hjl@gnu.org>
5048 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5049 indicate if the undefined symbol is a fatal error or not.
5050 Don't delete the output file if "fatal" is false.
5052 2000-02-29 H.J. Lu <hjl@gnu.org>
5054 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5055 Set LC_COLLATE and LC_ALL to null and export them. It is for
5056 sort which expects the C locale.
5057 Add $(LIBS) to all $(HOSTING_LIBS).
5058 * Makefile.in: Rebuild.
5060 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5062 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5063 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5064 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5065 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5066 find_potential_libraries.
5068 2000-02-28 Jim Blandy <jimb@redhat.com>
5070 * ldgram.y (exclude_name_list): Don't require a comma to separate
5071 list entries; the lexer considers commas to be valid part of a
5072 filename, so in something like `foo, bar' the comma is considered
5073 part of the first filename, `foo,'.
5074 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5076 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5078 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5079 host "i[3456]86-*-freebsdelf*".
5081 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5083 * scripttempl/i386go32.sc: Move misplaced semicolons.
5085 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5087 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5088 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5089 (eelf64hppa.c, ehppaelf.c): Remove targets.
5090 * Makefile.in: Rebuild.
5092 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5094 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5095 GNU/Linux/sparc, but keep the default as 32.
5097 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5098 it default if sparcv9 or sparc64.
5100 2000-02-24 Nick Clifton <nickc@cygnus.com>
5102 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5103 * Makefile.in: Regenerate.
5104 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5106 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5107 find_potential_libraries.
5108 * ldemul.c (ldemul_find_potential_libraries): New function.
5110 * ldfile.c (ldfile_open_file_search): Allow function to be
5112 (ldfile_open_file): Call ldemul_find_potential_libraries.
5113 * ldfile.h: Add prototype for ldfile_open_file_search.
5115 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5117 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5118 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5120 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5121 (gld_X_find_potential_libraries): New function. Search for
5122 libraries called "*.lib".
5124 * scripttempl/pe.sc: Add .pdata section.
5126 2000-02-23 Richard Henderson <rth@cygnus.com>
5128 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5129 Add and use memory regions.
5131 2000-02-23 Linas Vepstas (linas@linas.org)
5133 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5135 * Makefile.am: Add support for Linux/IBM 370.
5136 * configure.tgt: Likewise.
5138 * Makefile.in: Regenerate.
5140 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5142 * ldlang.c (print_input_section, print_data_statement,
5143 print_reloc_statement, print_padding_statement, insert_pad,
5144 size_input_section, lang_check_section_addresses,
5145 lang_size_sections, lang_do_assignments, lang_set_startof,
5146 lang_one_common): Change `opb' to unsigned.
5147 (lang_do_assignments): Also change `size' to unsigned.
5149 2000-02-16 Richard Henderson <rth@cygnus.com>
5151 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5153 2000-02-16 Timothy Wall <twall@cygnus.com>
5155 * mri.c (mri_draw_tree): Add default LMA region argument to call
5156 to lang_leave_output_section_statement.
5157 * ldlang.h: Update prototypes with LMA region arguments.
5158 * ldlang.c (lang_size_sections): Encapsulate region bounds
5159 checking in os_check_region call.
5160 (os_check_region): New function.
5161 (lang_output_section_statement_lookup): Initialize lma_region.
5162 (lang_leave_output_section_statement): Add LMA region argument.
5163 (lang_leave_overlay): Ditto.
5164 * ldgram.y: Handle LMA region syntax.
5165 * ld.texinfo (Output Section Description): Describe LMA region usage.
5166 * emultempl/armelf.em (gld$place_orphan): Add default value for
5167 lma region in call to lang_leave_output_section_statement.
5168 * emultempl/elf32.em (gld$place_orphan): Add default value for
5169 lma region in call to lang_leave_output_section_statement.
5170 * emultempl/pe.em (gld$place_orphan): Add default value for
5171 lma region in call to lang_leave_output_section_statement.
5174 2000-02-04 Timothy Wall <twall@redhat.com>
5176 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5177 octets when calculating section end addresses.
5179 2000-02-04 Timothy Wall <twall@redhat.com>
5181 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5183 2000-02-03 Timothy Wall <twall@redhat.com>
5185 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5187 * ldlang.c (print_input_section, print_data_statement,
5188 print_reloc_statement, print_padding_statement): Print target
5189 address values and section sizes as bytes, not octets.
5190 (insert_pad) Calculate padding size in octets, and adjust "dot"
5192 (size_input_section) Always adjust "dot" by bytes, not octets.
5193 (lang_check_section_addresses, lang_do_assignments) Adjust
5194 "dot" by bytes, not octets. Use the larger of the directive size
5195 or octets_per_byte for the number of octets actually allocated in
5197 (lang_set_startof) Make sure STARTOF returns a target address.
5198 (lang_one_common) Record size changes in octets.
5199 (lang_abs_symbol_at_end_of) Section end symbol's value is
5200 recorded in target bytes.
5201 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5202 to be clear about behavior when an octet is smaller than one byte.
5204 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5206 * ldcref.c (output_cref): Don't pass message strings to printf
5210 * ldmisc.c (vfinfo): Same here.
5213 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5215 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5216 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5217 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5218 Add missing NULL initialisers, and comments.
5220 2000-01-21 Nick Clifton <nickc@cygnus.com>
5222 * ldlang.c (lang_size_sections): Fix typo in comment.
5224 2000-01-18 H.J. Lu <hjl@gnu.org>
5226 * ldlang.c (lang_size_sections): Also update the current
5227 address of a region if the SEC_NEVER_LOAD bit is not set.
5229 2000-01-10 Philip Blundell <pb@futuretv.com>
5231 * configure.tgt (arm*-*-conix*): New target.
5233 2000-01-07 Nick Clifton <nickc@cygnus.com>
5235 * ld.texinfo (Options): Remind users to preceed linker command
5236 line switches with -Wl, (or whatever is appropriate) if it is
5237 being invoked by a comnpiler driver program.
5238 Fix description of the behaviour of the -n command line switch.
5240 2000-01-05 Catherine Moore <clm@cygnus.com>
5242 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5244 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5245 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5246 (exclude_name_list): New.
5247 ldlang.c (walk_wild_section): Support list of excluded files.
5248 (print_wild_statement): Likewise.
5249 (lang_add_wild): Likewise.
5250 * ldlang.h (lang_wild_statement_type): Likewise.
5251 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5253 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5255 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5256 (process_def_file): Use.
5257 (pe_dll_compat_implib): New variable.
5260 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5261 pe_dll_compat_implib.
5263 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5264 compat-implib options.
5265 (gld_${EMULATION_NAME}_list_options): List new options.
5266 (gld_${EMULATION_NAME}_parse_args): Handle.
5268 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5271 * deffilep.y (opt_name): Allow "." in name.
5273 For older changes see ChangeLog-9899
5279 version-control: never