1 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
2 Charles Wilson <cwilson@ece.gatech.edu>
4 * ld/config.in (HAVE_REALPATH): New entry.
5 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
7 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
9 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
12 2002-12-23 Alan Modra <amodra@bigpond.net.au>
14 * ldmain.c (main): Init "strip_discarded".
15 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
16 (OPTION_NO_STRIP_DISCARDED): Define.
17 (ld_options): Add "strip-discarded" and "no-strip-discarded".
18 (parse_args): Handle them.
20 2002-12-23 Nick Clifton <nickc@redhat.com>
22 * ld.h (struct args_type): Add new field
23 'accept_unknown_input_architecture'.
24 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
26 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
27 bfd_arch_get_compatible.
28 * ldfile.c (ldfile_try_open_bfd): Likewise.
29 * lexsup.c (ld_options): Add new command line switch
30 --accept-unknown-input-architecture and its inverse.
31 (parse_args): Handle --accept-unknown-input-architecture.
32 * ld.texinfo: Document new linker option.
33 * NEWS: Mention new linker option.
35 2002-12-20 Alan Modra <amodra@bigpond.net.au>
37 * ldmain.c (main): Re-order link_info initialization. Init all
40 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
42 * ld.texinfo: Clarify and extend the documentation
43 in the Machine Dependent, WIN32 section.
45 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
47 * ld.texinfo: Add win32 machine depending section.
48 * gen-doc.texi: Enable win32 machine depending section.
50 * configure.host: Add win32 library search path.
52 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
54 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
55 import when auto-import is disabled.
57 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
59 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
60 account for trailing '\0'.
62 2002-12-17 Nick Clifton <nickc@redhat.com>
64 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
65 so that it is not confused with -c.
67 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
68 Charles Wilson <cwilson@ece.gatech.edu>
70 * configure.in: Add check for realpath function.
71 * configure: Regenerate.
72 * config.in: Regenerate.
73 * aclocal.m4: Regenerate.
74 * deffile.h: Add .data field to def_file_import
76 * pe-dll.c (pe_proces_import_defs): Use .data field of
77 def_file_import structure to initialize flag_data field of
78 def_file_export structure.
79 (pe_implied_import_dll): New variables exp_funcbase and
80 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
81 not filename (which may be a symlink). Scan the sections and
82 initialize [data|bss]_[start|end]. When scanning the export
83 table, skip _nm_ symbols, and mark any symbols whose rva indicates
84 that it is in the .bss or .data sections as data.
85 * sysdep.h: Include limits.h and sys/param.h, and define
86 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
87 exists, NULL otherwise.
88 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
89 pe_process_import_defs before pe_find_data_imports, so that
90 auto-import will check the virtual implib as well as "real"
92 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
93 symlinks to their target; check that the target's extension is
94 .dll before calling pe_implied_import_dll(), not the filename
95 itself (which may be a symlink).
97 2002-12-10 Alan Modra <amodra@bigpond.net.au>
99 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
100 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
103 2002-12-08 Alan Modra <amodra@bigpond.net.au>
105 * ldlang.h: Formatting.
107 2002-12-07 Alan Modra <amodra@bigpond.net.au>
109 * ldlang.c (init_os): Ensure sections mentioned in load_base
112 2002-12-05 Alan Modra <amodra@bigpond.net.au>
114 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
115 load_base for orphans that follow a section with load_base set.
117 2002-12-01 H.J. Lu <hjl@gnu.org>
119 * ld.texinfo: Remove the extra `;' in sample version script.
121 2002-11-30 Alan Modra <amodra@bigpond.net.au>
123 * configure.host: Correct dynamic-linker for powerpc64 hosts.
125 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
126 * Makefile.in: Regenerate.
128 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
129 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
130 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
131 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
132 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
133 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
134 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
135 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
136 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
137 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
138 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
139 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
140 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
142 2002-11-27 David O'Brien <obrien@FreeBSD.org>
144 * configure.host: Fix generic FreeBSD configuration entry.
146 2002-11-27 H.J. Lu <hjl@gnu.org>
148 * ld.texinfo: Add the missing `;' to sample version scripts.
150 2002-11-20 Alan Modra <amodra@bigpond.net.au>
152 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
154 2002-11-14 Egor Duda <deo@logos-m.ru>
156 * ldmain.c (main): Make runtime relocs disabled by default. Remove
157 assignment which has no effect.
158 * pe-dll.h (pe_create_import_fixup): Change prototype.
159 * pe-dll.c (make_runtime_pseudo_reloc): New function.
160 (pe_create_runtime_relocator_reference): Ditto.
161 (pe_create_import_fixup): Handle relocations with non-zero addends.
162 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
163 --disable-runtime-pseudo-reloc.
164 (make_import_fixup): Handle relocations with non-zero addends. Create
165 an external reference to _pei386_runtime_relocator symbol if at least
166 one pseudo reloc was created.
167 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
168 --disable-runtime-pseudo-reloc options.
170 2002-11-12 Earl Chew <earl_chew@agilent.com>
172 * ldlang.c (lang_add_section): Discard debugging sections that have
173 been marked SEC_EXCLUDE.
175 2002-11-12 Nick Clifton <nickc@redhat.com>
177 * configure.in (ALL_LINGUAS): Add da.
178 * configure: Regenerate.
179 * po/da.po: New Danish translation.
181 2002-11-12 Alan Modra <amodra@bigpond.net.au>
183 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
184 (LDEMUL_BEFORE_ALLOCATION): Define.
185 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
187 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
189 2002-11-11 Christopher Faylor <cgf@redhat.com>
191 * configure.tgt (LIB_PATH): Default to searching w32api directory under
194 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
196 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
197 of restricted auto-export libs.
199 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
201 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
202 creative library naming instances like, e.g., libstdc++-2.a.
204 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
206 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
207 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
209 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
211 * deffilep.y (def_lex): Handle '@' as first character of an ID.
212 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
213 (make_one): Don't prefix decorated fastcall symbols with '_'.
214 (pe_process_import_defs): Likewise.
215 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
216 symbols to cdecl names or vise-versa.
218 2002-10-13 Eric Kohl <ekohl@rz-online.de>
220 * pe-dll.c (process_def_file): Handle fastcall symbols when
221 generating undecorated aliases. Don't prefix decorated fastcall
223 (fill_exported_offsets): Don't prefix decorated fastcall symbols
226 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
228 * emultempl/aix.em: Use include <> for generated headers.
229 * emultempl/beos.em: Likewise.
230 * emultempl/elf32.em: Likewise.
231 * emultempl/pe.em: Likewise.
232 * ldctor.c: Likewise.
234 * ldfile.c: Likewise.
235 * ldlang.c: Likewise.
238 * ldmain.c: Likewise.
239 * ldmisc.c: Likewise.
240 * ldwrite.c: Likewise.
241 * lexsup.c: Likewise.
243 * pe-dll.c: Likewise.
245 2002-10-23 Jakub Jelinek <jakub@redhat.com>
247 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
248 sections into .rel{,a}.dyn.
250 2002-10-23 Nick Clifton <nickc@redhat.com>
252 * lexsup.c (OPTION_NO_OMAGIC): Define.
253 (ld_options): Add "no-omagic" option.
254 (parse_args): Parse --no-omagic.
255 * ld.texinfo: Document --no-omagic.
256 * NEWS: Mention new option.
258 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
260 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
261 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
263 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
265 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
266 emulation name. Set LIB_PATH only for native tools, and
267 search the ABI-specific versions of NATIVE_LIB_DIRS before the
268 .../lib variants, not instead of them. Mostly copied from...
269 * emulparams/elf32ppc.sh: ... here. Fixed typo.
270 * emulparams/elf64bmip-defs.sh: Backed out.
271 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
272 * emulparams/elf64btsmip.sh: Likewise.
273 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
274 TEXT_DYNAMIC): Removed.
276 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
278 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
279 (GENERATE_SHLIB_SCRIPT): Set to yes.
280 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
281 * emulparams/elf32bmipn32.sh: here.
282 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
283 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
284 * emulparams/elf64bmip-defs.sh: New file. Extend
285 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
286 * emulparams/elf64bmip.sh: Bring in definitions from
288 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
290 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
291 * emulparams/elf64btsmip.sh: Bring in definitions from
293 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
294 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
296 2002-10-16 Jakub Jelinek <jakub@redhat.com>
298 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
299 (s390-*-linux*): Add elf64_s390 emulation if want64.
300 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
301 genscript.sh changes.
302 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
303 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
305 2002-10-15 Alan Modra <amodra@bigpond.net.au>
307 * ldlang.c (load_symbols): Revert last change.
309 2002-10-14 Alan Modra <amodra@bigpond.net.au>
311 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
313 (lang_reasonable_defaults): Don't compare against false.
314 (size_input_section): Likewise.
315 (lang_size_sections_1): Likewise.
316 (lang_do_assignments): Likewise.
317 (lang_add_output): Likewise.
319 * Makefile.am: Run "make dep-am".
320 * Makefile.in: Regenerate.
321 * ldver.c: #include "bfdver.h".
323 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
325 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
327 * scripttempl/elfm68hc12.sc: Likewise.
329 2002-10-11 Alan Modra <amodra@bigpond.net.au>
331 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
333 * ldgram.y (memory_spec): Provide empty action.
334 (section <NAME>): Likewise.
336 2002-10-10 Jakub Jelinek <jakub@redhat.com>
338 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
339 they have OUTPUT_FORMAT not matching actual output format.
340 * ldlang.c (lang_get_output_target): New function.
341 (open_output): Use it.
342 * ldlang.h (lang_get_output_target): New prototype.
344 2002-10-10 Alan Modra <amodra@bigpond.net.au>
346 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
347 when orphan is .rel, .rela when orphan is .rela.
348 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
349 first. Remove outsecname var.
351 2002-10-09 Richard Shann <richard.shann@superh.com>
352 Stephen Clarke <stephen.clarke@superh.com>
354 * Makefile.am: Add eshelf32_linux.o and
355 eshlelf32_linux.o, new emulations for sh64 Linux.
356 * Makefile.in: Regenerate.
357 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
358 * emulparams/shelf32_linux.sh: New file.
359 * emulparams/shlelf32_linux.sh: New file.
361 2002-10-08 H.J. Lu <hjl@gnu.org>
363 * ldlang.c (lang_file_exist): Removed.
364 (new_afile): Revert the last change.
365 * ldlang.h (lang_file_exist): Removed.
366 * lexsup.c (parse_args): Revert the last change.
368 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
370 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
372 (make_one): Create _nm_<symbol> for data only.
374 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
376 * ldlang.c (lang_file_exist): New function.
377 (new_afile): Abort if the filename to be added matches the linker
379 * ldlang.h: Add prototype for lang_file_exist.
380 * lexsup.c (parse_args): Abort if the output filename matches
381 one of the input filenames.
383 2002-10-02 Alan Modra <amodra@bigpond.net.au>
385 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
387 2002-09-30 Alan Modra <amodra@bigpond.net.au>
389 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
390 * scripttempl/elfm68hc11.sc: Likewise.
391 * scripttempl/elfm68hc12.sc: Likewise.
393 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
394 reloc sections just before .rel.plt/.rela.plt.
395 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
396 Only put loadable reloc sections in hold_rel.
398 2002-09-29 H.J. Lu <hjl@gnu.org>
400 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
402 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
404 From "Anita Kulkarni" <AnitaK@kpit.com>
405 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
408 2002-09-25 Alan Modra <amodra@bigpond.net.au>
410 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
412 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
413 SEGMENT_SIZE alignment.
414 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
415 (SEGMENT_SIZE): Define.
417 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
418 (fold_binary): Correct abs - non-abs case.
419 (fold_trinary): New. Split out from exp_fold_tree.
421 2002-09-24 Alan Modra <amodra@bigpond.net.au>
423 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
424 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
425 for start of .data, instead align up to 256M boundary.
426 * scripttempl/aix.sc: Likewise.
428 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
430 * scripttempl/i386go32.sc: Handle bss unique sections.
432 2002-09-21 Alan Modra <amodra@bigpond.net.au>
434 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
436 2002-09-17 Stan Cox <scox@redhat.com>
438 * emulparams/elf32bmipn32-defs.sh: New file.
439 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
440 * emulparams/elf32btsmipn32.sh: Likewise.
441 * emulparams/elf64bmip.sh: Likewise.
442 * emulparams/elf64btsmip.sh: Likewise.
444 2002-09-16 Bruno Haible <bruno@clisp.org>
446 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
448 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
451 2002-09-11 Nick Clifton <nickc@redhat.com>
453 * NEWS: New TI port supports both C4x and C3x series of DSPs.
455 * po/tr.po: Updated Turkish translation.
457 2002-09-06 Jeffrey A Law (law@redhat.com)
459 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
461 2002-09-02 Nick Clifton <nickc@redhat.com>
463 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
465 * emulparams/v850.sh (TEMPLATE_NAME): Define.
467 2002-08-30 Nick Clifton <nickc@redhat.com>
469 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
470 used. Change INSN to start at 0x01000000 and extend for
471 256K (ignoring holes). Start the STACK on a word aligned
473 (.rodata): Start it at the READONLY_START_ADDR.
475 2002-08-30 Alan Modra <amodra@bigpond.net.au>
477 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
479 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
481 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
482 added makefile targets for this file.
483 * Makefile.in: Regenerate.
484 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
485 * NEWS: Mention new port.
487 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
489 * emulparams/tic3xcoff.sh: New file.
490 * emulparams/tic4xcoff.sh: New file.
491 * scripttempl/tic3xcoff.sc: New file.
492 * scripttempl/tic4xcoff.sc: New file.
494 2002-08-28 Alan Modra <amodra@bigpond.net.au>
496 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
497 strtoul and strtoull with bfd_scan_vma.
498 (gld${EMULATION_NAME}_read_file): Likewise.
500 2002-08-28 Alan Modra <amodra@bigpond.net.au>
502 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
504 2002-08-27 Egor Duda <deo@logos-m.ru>
506 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
507 Add symbols for application to access them.
509 2002-08-27 Nick Clifton <nickc@redhat.com>
511 * emultempl/armelf.em: Revert this patch, it is not needed.
513 2002-08-22 Adam Nemet <anemet@lnxw.com>
515 2002-08-20 Dan Kegel <dank@kegel.com>
517 * configure.in: added --with-lib-path argument to ld's configure
519 * ld/NEWS: Document new switch.
520 * ld/README: Mention new switch.
521 * configure: Regenerate.
522 * Makefile.in: Regenerate.
525 2001-04-25 Christopher Faylor <cgf@cygnus.com>
527 * Makefile.in (LIB_PATH): Make configurable.
528 (GENSCRIPTS): Set LIB_PATH in environment.
529 * configure.in: Substitute LIB_PATH.
531 2002-08-22 Adam Nemet <anemet@lnxw.com>
533 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
534 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
535 depending on the type of the function.
536 (arm_elf_convert_thumb_symbol_to_address): New function.
538 2002-08-22 Graeme Peterson <gp@qnx.com>
540 * Makefile.am: Add esh{l}elf_nto.o files.
541 * Makefile.in: Regenerate.
542 * configure.tgt: Add support for sh-**-nto* targets.
543 * emulparams/shelf_nto.sh: New file.
544 * emulparams/shlelf_nto.sh: New file.
546 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
548 * ldlang.c (offsetof): Define if not defined.
550 2002-08-14 H.J. Lu <hjl@gnu.org>
552 * configure.tgt: Always enable 64bit emulations for 32bit
555 2002-08-13 Alan Modra <amodra@bigpond.net.au>
557 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
558 (MAXPAGESIZE): Set to 1.
560 * ld.h (ALIGN_N): Delete.
561 * ldexp.h (align_n): Declare.
562 * ldexp.c (align_n): New function.
563 (fold_binary): Use align_n instead of ALIGN_N.
564 (exp_fold_tree): Likewise.
565 * ldlang.c (lang_size_sections_1): Likewise.
566 (lang_one_common): Likewise.
567 * ld.texinfo (ALIGN): Remove power of 2 restriction.
569 2002-07-31 Graeme Peterson <gp@qnx.com>
571 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
572 * Makefile.am: Add eelf32{l}ppcnto.o files.
573 * Makefile.in: Regenerate.
574 * emulparams/elf32lppcnto.sh: New file.
575 * emulparams/elf32ppcnto.sh: New file.
577 2002-08-07 H.J. Lu <hjl@gnu.org>
579 * ld.texinfo: Document --no-undefined-version.
581 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
582 `script.' fields to 0.
584 * ldmain.c (main): Initialize the allow_undefined_version to
587 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
588 (ld_options): Add --no-undefined-version.
589 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
591 2002-08-07 Nick Clifton <nickc@redhat.com>
593 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
594 an interworking bfd if there are input bfds. (107501)
596 2002-08-06 Alan Modra <amodra@bigpond.net.au>
598 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
601 2002-08-01 Nick Clifton <nickc@redhat.com>
603 * emulparams/armelf.sh: Revert previous delta.
604 * scripttempl/elf.sc: Revert previous delta.
606 2002-07-31 H.J. Lu <hjl@gnu.org>
608 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
611 2002-07-31 H.J. Lu <hjl@gnu.org>
613 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
614 64bit BFD is selected.
616 2002-07-31 H.J. Lu <hjl@gnu.org>
618 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
619 if 64bit BFD is selected.
621 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
623 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
624 link_info.common_skip_ar_aymbols.
625 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
627 * ldmain.c (main): Initialize new field
628 link_info.common_skip_ar_aymbols.
630 2002-07-31 Adam Nemet <anemet@lnxw.com>
632 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
634 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
637 2002-07-31 Nick Clifton <nickc@redhat.com>
639 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
640 of the PDP-11 and 2.11BSD a.out support.
642 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
644 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
646 * Makefile.in: Regenerate.
647 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
648 n32 ABI emulations for these 64 bit targets.
649 * emulparams/elf32bmipn32.sh: Expand comment.
650 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
652 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
654 2002-07-30 Graeme Peterson <gp@qnx.com>
656 * configure.tgt: Add support for arm-*-nto target.
657 * Makefile.am: Add earmnto.o file.
658 * Makefile.in: Regenerate.
659 * NEWS: Mention port of ARM support to QNX.
660 * emulparams/armnto.sh: New file.
662 2002-07-30 Jakub Jelinek <jakub@redhat.com>
664 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
665 for relocatable link.
666 (lang_size_sections_1): Don't make .tbss zero size for relocatable
669 2002-07-26 Bernd Schmidt <bernds@redhat.com>
671 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
674 2002-07-25 Nick Clifton <nickc@redhat.com>
676 * po/sv.po: Updated Swedish translation.
677 * po/es.po: Updated Spanish translation.
678 * po/fr.po: Updated French translation.
680 2002-07-24 Nick Clifton <nickc@redhat.com>
682 * po/sv.po: Updated Swedish translation.
683 * po/es.po: Updated Spanish translation.
685 2002-07-23 Nick Clifton <nickc@redhat.com>
687 * po/fr.po: Updated French translation.
689 2002-07-20 Alan Modra <amodra@bigpond.net.au>
691 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
692 bomb on /DISCARD/ input section.
693 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
694 * emultempl/mmo.em (mmo_place_orphan): Likewise.
696 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
698 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
701 2002-07-16 Denis Chertykov <denisc@overta.ru>
702 Nick Clifton <nickc@redhat.com>
703 Frank Ch. Eigler <fche@redhat.com>
704 John Healy <jhealy@redhat.com>
706 * configure.tgt: Add support for ip2k-elf.
707 * Makefile.am: Add support for ip2k-elf.
708 * Makefile.in: Regenerate.
709 * emulparams/elf32ip2k.sh: New file.
710 * scripttempl/ip2k.sc: New file
711 * NEWS: Mention support for new port.
713 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
715 * NEWS: Add 'Changes in 2.13'.
717 2002-07-14 H.J. Lu <hjl@gnu.org>
719 * ld.texinfo: Document a .symver takes precedence over a
722 2002-07-12 Alan Modra <amodra@bigpond.net.au>
724 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
725 (COMMONPAGESIZE): Define.
727 2002-07-09 Alan Modra <amodra@bigpond.net.au>
729 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
731 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
733 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
734 powerpc-*-openbsd* and sparc64-*-openbsd*.
735 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
736 * Makefile.in: Regenerate.
737 * emulparams/hppaobsd.sh: New file.
739 2002-07-05 Alan Modra <amodra@bigpond.net.au>
741 * ldlang.c (print_wild_statement): Fix output formatting.
743 2002-07-04 Alan Modra <amodra@bigpond.net.au>
745 * ldlang.c: (strip_excluded_output_sections): New function.
746 (lang_process): Call it.
747 (lang_size_sections_1): Revert 2002-06-10 change.
749 2002-07-03 Alan Modra <amodra@bigpond.net.au>
751 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
753 * Makefile.in: Regenerate.
755 2002-07-02 Alan Modra <amodra@bigpond.net.au>
757 * ldfile.c (ldfile_try_open_bfd): Formatting.
759 * ldmisc.c (demangle): Move so that it doesn't intrude between
760 vfinfo comment and body. Add comment.
762 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
764 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
766 2002-07-01 Alan Modra <amodra@bigpond.net.au>
768 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
769 * ldlang.c (entry_sym): Likewise.
770 (ldlang_undef_chain_list_type): Likewise.
771 (lang_finish): Adjust references to entry_symbol.
772 (lang_add_entry): Likewise.
773 (lang_gc_sections): Use link_info.gc_sym_list.
774 (lang_process): Set link_info.gc_sym_list.
775 * ldlex.l: Include bfdlink.h.
776 * ldmain.c (main): Init link_info.gc_sym_list.
777 * emultempl/aix.em: Adjust references to entry_symbol.
778 * emultempl/armcoff.em: Likewise.
779 * emultempl/armelf.em: Likewise.
780 * emultempl/pe.em: Likewise.
781 * emultempl/ppc64elf.em (ppc_after_open): New function.
782 (LDEMUL_AFTER_OPEN): Define.
783 * emulparams/elf64ppc.sh: KEEP .opd sections.
785 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
787 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
788 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
789 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
790 (EEPROM_START_ADDR): Define.
791 (EEPROM_MEMORY): Define.
792 * emulparams/m68hc12elf.sh: Likewise.
793 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
794 section to put soft registers in .page0.
795 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
797 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
799 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
800 section. Add ${RELOCATING-0}.
802 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
804 * emulparams/shelf.sh (STACK_ADDR): Don't define.
805 (OTHER_SECTIONS): Define.
806 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
807 (OTHER_SECTIONS): Undef.
809 2002-06-26 Alan Modra <amodra@bigpond.net.au>
811 * ldmisc.c (demangle): Restore dots stripped from sym name.
813 2002-06-25 H.J. Lu <hjl@gnu.org>
815 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
816 * Makefile.in: Regenerated.
818 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
820 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
821 the size of attached object files, to allow make the object files
822 available via FTP or HTTP and to mention that the mail will be
823 sent to a mailing list.
825 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
827 * ld/configure.host (romp): Drop support.
829 2002-06-18 Chris Demetriou <cgd@broadcom.com>
831 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
832 section flags for SEC_DATA, rather than for SEC_CODE being unset.
834 2002-06-18 Chris Demetriou <cgd@broadcom.com>
836 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
837 format specifier used to print BFD name.
839 2002-06-18 Dave Brolley <brolley@redhat.com>
841 From Catherine Moore, Michael Meissner, Jim Blandy:
842 * emulparams/elf32frv.sh: New file.
843 * configure.tgt: Support frv-*-*.
844 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
845 (eelf32frv.c): New target.
847 2002-06-17 Tom Rix <trix@redhat.com>
849 * emultempl/elf32.em: gld*_get_script: Check for
850 GENERATE_COMBRELOC_SCRIPT.
851 * scripttempl/elfd10v.sc : Fix STACK and INSN.
852 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
854 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
856 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
858 2002-06-12 H.J. Lu <hjl@gnu.org>
860 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
861 false if xvec doesn't match.
863 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
865 * ldlang.c (lang_size_sections_1): Skip removed output sections.
867 2002-06-08 Alan Modra <amodra@bigpond.net.au>
869 * ldexp.c: Replace CONST with const.
870 * ldfile.c: Likewise.
871 * ldfile.h: Likewise.
874 * pe-dll.h: Likewise.
876 2002-06-07 Alan Modra <amodra@bigpond.net.au>
878 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
880 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
882 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
883 to -1 == implicit enable.
884 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
885 initialize link_info.pei386_auto_import to -1 == implicit
887 (gld_${EMULATION_NAME}_parse_args): When processing
888 --enable-auto-import and --disable-auto-import options, use
889 '1' and '0' instead of 'true' and 'false'.
890 (pe_find_data_imports): Only issue message about auto-import
891 when the feature is implicitly enabled. Downgrade message to
892 informational instead of warning.
894 2002-06-07 Alan Modra <amodra@bigpond.net.au>
896 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
898 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
900 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
901 HOSTING_CRT0 and HOSTING_LIBS.
903 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
905 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
907 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
909 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
910 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
912 2002-06-05 Alan Modra <amodra@bigpond.net.au>
914 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
915 SEC_EXCLUDE sections when doing a relocatable link.
917 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
919 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
920 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
921 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
922 (eshlelf64_nbsd.c): New rules.
923 * Makefile.in: Regenerate.
924 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
925 (sh64-*-netbsd*): New targets.
926 * emulparams/shelf32_nbsd.sh: New file.
927 * emulparams/shelf64_nbsd.sh: New file.
928 * emulparams/shlelf32_nbsd.sh: New file.
929 * emulparams/shlelf64_nbsd.sh: New file.
931 2002-06-04 Alan Modra <amodra@bigpond.net.au>
933 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
935 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
937 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
938 C++ constructors/destructors, loosely based on the m68hc11 port.
940 2002-05-31 Alan Modra <amodra@bigpond.net.au>
942 * Makefile.in: Regenerate.
943 * aclocal.m4: Regenerate.
944 * config.in: Regenerate.
945 * configure: Regenerate.
947 2002-05-31 Graeme Peterson <gp@qnx.com>
949 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
950 (ei386nto.c): Add rule.
951 * Makefile.in: Regenerate.
952 * configure.tgt: Add i[3456]86-*-nto-qnx*.
953 * emulparams/i386nto.sh: New file.
955 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
957 * NEWS: Add entry for VAX ELF support.
959 2002-05-29 Matt Thomas <matt@3am-software.com>
960 Jason Thorpe <thorpej@wasabisystems.com>
962 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
964 (evaxnbsd.c): New rules.
965 * Makefile.in: Regenerate.
966 * configure.tgt (vax-*-netbsdelf*)
968 (vax-*-netbsd*): New targets.
969 * emulparams/elf32vax.sh: New file.
970 * emulparams/vaxnbsd.sh: New file.
972 2002-05-29 Adam Nemet <anemet@lnxw.com>
974 * emultempl/armelf.em (arm_elf_after_open): Don't determine
975 bfd_for_interwork, instead add glue sections to each input bfd.
976 (bfd_for_interwork): New global.
977 (arm_elf_set_bfd_for_interworking): New function.
978 (arm_elf_before_allocation): Use it.
980 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
982 * Makefile.am: Add DLX make target.
983 * configure.tgt: Add DLX configuration.
984 * Makefile.in: Regenerate.
985 * emulparams/elf32_dlx.sh: New file
986 * scripttempl/dlx.sc: New file
988 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
990 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
991 * Makefile.in: Regenerate.
992 * emulparams/elf_chaos.sh: Use elf_chaos script.
993 * scripttempl/elf_chaos.sc: New file.
995 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
997 * ldlang.c (lang_size_sections_1): Move check for conflicting load
998 addresses and regions from here...
999 (lang_get_regions): ...to this new function.
1000 (lang_leave_output_section_statement): Use lang_get_regions.
1001 (lang_leave_overlay): Likewise.
1002 * mri.c (mri_draw_tree): Pass null as last argument to
1003 lang_leave_output_section_statement.
1004 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1005 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1006 * emultempl/pe.em (gld*_place_orphan): Likewise.
1008 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1010 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1012 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1014 * ldemul.c: Fix formatting.
1015 * ldfile.c: Likewise.
1016 * pe-dll.c: Likewise.
1017 * pe-dll.h: Likewise.
1019 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1021 * ldlang.c (lang_process): Formatting, grammar.
1023 * ldlex.l: Use #include "" instead of <> for local header files.
1025 2002-05-24 TAMURA Kent <kent@netbsd.org>
1027 * configure.tgt: Add a target for i386-netbsdpe.
1029 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1031 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1032 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1033 output section if necessary. Handle .tbss.
1034 (lang_size_sections): Clear _raw_size for .tbss section
1035 (it allocates space in PT_TLS segment only).
1036 * ldwrite.c (build_link_order): Build link order for .tbss too.
1038 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1040 * configure.in: Correct spelling of AC_PREREQ.
1042 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1044 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1046 (autofilter_objlist): Add crtbegin.o, crtend.o.
1048 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1050 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1051 (longopts): Add new option --exclude-libs.
1052 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1053 (gld_${EMULATION_NAME}_parse_args): Use it.
1054 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1055 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1056 from whole archives.
1057 (pe_dll_add_excludes): Set excludes->type.
1058 (auto_export): Add new variable libname and set to archive basename if
1059 abfd. Use it when filtering default and user-specified libarary
1060 excludes. Let string "ALL" mean all libs when filtering user-specified
1062 * ld.texinfo: Document --exclude-libs.
1064 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1066 * ldemul.c (ldemul_new_vers_pattern): New function.
1067 * ldemul.h (ldemul_new_vers_pattern): Declare.
1068 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1069 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1070 * emultempl/ppc64elf.em (dotsyms): New static var.
1071 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1072 (LDEMUL_NEW_VERS_PATTERN): Define.
1073 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1074 (PARSE_AND_LIST_LONGOPTS): Likewise.
1075 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1076 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1078 * emultempl/armcoff.em: Likewise.
1079 * emultempl/armelf_oabi.em: Likewise.
1080 * emultempl/beos.em: Likewise.
1081 * emultempl/elf32.em: Likewise.
1082 * emultempl/generic.em: Likewise.
1083 * emultempl/gld960.em: Likewise.
1084 * emultempl/gld960c.em: Likewise.
1085 * emultempl/linux.em: Likewise.
1086 * emultempl/lnk960.em: Likewise.
1087 * emultempl/m68kcoff.em: Likewise.
1088 * emultempl/mipsecoff.em: Likewise.
1089 * emultempl/pe.em: Likewise.
1090 * emultempl/sunos.em: Likewise.
1091 * emultempl/ticoff.em: Likewise.
1092 * emultempl/vanilla.em: Likewise.
1094 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1096 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1097 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1098 (LIB_SEARCH_DIRS): No need to use "tr".
1099 (COMPILE_IN): Only set for native targets.
1100 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1101 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1102 * configure.tgt (powerpc*): Set tdir_*.
1103 (powerpcle*): Correct targ_extra_emuls.
1104 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1105 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1107 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1109 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1110 calling lang_add_entry.
1112 2002-05-21 H.J. Lu (hjl@gnu.org)
1114 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1116 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1118 * ld.texinfo: Updated for --allow-multiple-definition and
1121 * ldmain.c (main): Initialize the allow_multiple_definition
1124 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1125 (ld_options): Add --allow-multiple-definition.
1126 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1128 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1130 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1131 (earmelfb_nbsd.c): New rule.
1132 * Makefile.in: Regenerate.
1133 * configure.tgt (armeb-*-netbsdelf*): New target.
1134 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1135 (arm-*-netbsd*): Likewise.
1136 * emulparams/armelfb_nbsd.sh: New file.
1138 2002-05-18 Tom Rix <trix@redhat.com>
1140 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1143 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1145 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1146 * Makefile.in: Regenerate.
1147 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1149 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1151 * emulparams/avr1.sh: New file.
1152 * emulparams/avr2.sh: New file.
1153 * emulparams/avr3.sh: New file.
1154 * emulparams/avr4.sh: New file.
1155 * emulparams/avr5.sh: New file.
1156 * scripttempl/avr.sc: New file.
1158 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1160 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1161 (lang_place_orphans): Abort if just_syms_flag.
1163 2002-05-10 Tom Rix <trix@redhat.com>
1165 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1166 architecture and machine information in the output bfd.
1167 (gld*_before_parse): Remove old arch and machine code.
1168 (choose_target): Rename to gld*_choose_target.
1169 (rtld): Change type to int.
1170 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1171 objects in XCOFF archives.
1172 * ldfile.h: Update copyright date.
1174 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1176 * ldmain.c (main): Enable -z combreloc by default.
1178 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1180 * Makefile.am: Honour DESTDIR.
1181 * Makefile.in: Regenerate.
1183 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1185 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1186 (lang_enter_overlay): Remove the last two parameters.
1187 (lang_leave_overlay): Take them here instead.
1188 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1189 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1190 than lang_enter_overlay.
1191 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1192 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1193 (lang_size_sections_1): Evaluate it.
1194 (lang_leave_output_section_statement): Rework LMA lookup.
1195 (overlay_lma, overlay_nocrossrefs): Remove.
1196 (lang_enter_overlay): Remove LMA and crossref arguments.
1197 (lang_enter_overlay_section): Don't set the LMA here.
1198 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1199 assignment to the last section's update_dot_tree. Unconditionally
1200 use the load and run-time regions specified in the OVERLAY statement.
1201 Likewise the first section's LMA. Only set the other sections' LMAs
1202 when no load region is given.
1204 2002-05-06 Nick Clifton <nickc@redhat.com>
1206 * po/sv.po: New translation.
1208 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1210 * emultempl/hppaelf.em (build_section_lists): New function.
1211 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1212 and build_section_lists.
1214 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1216 * ld.h: Fix formatting.
1217 * ldexp.c: Likewise.
1218 * ldfile.c: Likewise.
1219 * ldlang.c: Likewise.
1220 * ldmain.c: Likewise.
1221 * lexsup.c: Likewise.
1222 * pe-dll.c: Likewise.
1224 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1226 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1227 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1228 (build_section_lists): Do output_section tests here.
1230 2002-04-30 Tom Rix <trix@redhat.com>
1232 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1234 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1236 Long branch stubs, multiple stub sections.
1237 * emultempl/ppc64elf.em: Include ldctor.h.
1238 (stub_file): New var.
1239 (group_size): New var.
1240 (ppc_create_output_section_statements): New function.
1241 (struct hook_stub_info): New.
1242 (hook_in_stub): New function.
1243 (ppc_add_stub_section): New function.
1244 (ppc_layout_sections_again): New function.
1245 (build_section_lists): New function.
1246 (gld${EMULATION_NAME}_finish): Rewrite.
1247 (real_func): New var.
1248 (ppc_for_each_input_file_wrapper): New function.
1249 (ppc_lang_for_each_input_file): New function.
1250 (lang_for_each_input_file): Define.
1251 (PARSE_AND_LIST_PROLOGUE): Define.
1252 (PARSE_AND_LIST_LONGOPTS): Define.
1253 (PARSE_AND_LIST_OPTIONS): Define.
1254 (PARSE_AND_LIST_ARGS_CASES): Define.
1255 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1257 2002-04-30 Tom Rix <trix@redhat.com>
1259 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1260 -blibpath, -bnolibpath support.
1262 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1264 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1265 (eelf32ppcwindiss.c): New target.
1266 * Makefile.in: Regenerated.
1267 * configure.tgt: Add support for powerpc-*-windiss.
1268 * emulparams/elf32ppcwindiss.sh: New file.
1270 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1272 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1273 * ldexp.c (exp_print_token): Add "infix_p" argument.
1274 (exp_print_tree): Update accordingly.
1276 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1278 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1279 * Makefile.in: Regenerate.
1280 * mpw-elfmips.c: Delete.
1281 * mpw-eppcmac.c: Delete.
1282 * mpw-esh.c: Delete.
1283 * mpw-idtmips.c: Delete.
1285 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1287 * emulparams/shelf32.sh (MACHINE): Now sh5.
1289 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1291 * ldgram.y: Fix syntax warning.
1293 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1295 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1296 to prevent "-n" from being taken as an abbreviation for
1297 "--no-pipeline-knowledge".
1299 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1301 * ldlang.c (lang_size_sections_1): Don't complain about
1302 SEC_NEVER_LOAD sections having no memory region specified.
1304 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1306 2002-04-07 matthew green <mrg@redhat.com>
1308 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1310 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1312 * dep-in.sed: Cope with absolute paths.
1313 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1315 * Makefile.in: Regenerate.
1317 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1319 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1321 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1323 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1324 is smaller than maximum, round dot up to common page boundary.
1326 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1328 * configure.host: Set up for generic hosts first, then tweak as
1329 necessary in more specific targets.
1330 (HOSTING_LIBS): Include libgcc_eh.a if found.
1332 2002-03-23 Andreas Jaeger <aj@suse.de>
1334 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1336 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1338 * Makefile.am: Run "make dep-am".
1339 * Makefile.in: Regenerate.
1341 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1343 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1345 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1347 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1348 add the symbol to the linker hash table immediately.
1349 (lang_place_undefineds): Split symbol creation out..
1350 (insert_undefined): ..to here.
1352 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1354 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1355 the contents of the buffer returned from basename function will are
1356 getting overwritten while still being used.
1358 2002-03-18 Jan Hubicka <jh@suse.cz>
1359 Andreas Jaeger <aj@suse.de>
1360 Andreas Schwab <schwab@suse.de>
1362 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1363 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1364 set libraries to default to lib64 paths.
1366 2002-03-18 Tom Rix <trix@redhat.com>
1368 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1369 * configure.tgt : Same.
1370 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1371 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1372 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1373 emulation parameters for better -b32, -b64 support.
1374 * emulparms/aixrs6.sh : Same.
1375 * emulparms/ppcmacos.sh : Same.
1376 * emultempl/aix.em (choose_target) : Use new emulation parameters
1377 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1378 * Makefile.in : Regenerate.
1380 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1382 * po/fr.po: Updated version.
1384 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1386 * ldmain.c (main): Move .text readonly flag fudges from here..
1387 * ldlang.c (lang_process): ..to here.
1389 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1391 * ldlang.c (lang_check): Remove the word size check added in last
1392 change. Treat emitrelocations case as for relocatable links.
1394 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1396 * po/fr.po: Updated version.
1398 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1400 * ldlang.c (lang_check): Do relocatable link checks first, so that
1401 warn_mismatch can't override. Check compatible and word size too.
1403 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1405 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1407 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1409 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1412 2002-03-04 H.J. Lu <hjl@gnu.org>
1414 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1415 .fini_array in the data segment.
1417 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1419 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1421 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1423 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1424 .init_array, and .fini_array.
1426 2002-02-20 Andreas Schwab <schwab@suse.de>
1428 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1429 .IA64_unwind* in a relocatable link.
1431 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1433 * NEWS: Mark 2.12 branch.
1435 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1437 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1438 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1440 2002-02-18 Tom Rix <trix@redhat.com>
1442 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1443 (gld*_before_allocation): Same.
1444 (gld*_create_output_section_statements): Generate
1445 __rtinit if run time linking. Add librtl.a to the link.
1446 (gld*_read_file): Clean.
1448 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1450 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1452 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1454 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1455 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1456 and eelf64alpha_fbsd.
1457 * Makefile.in: Regenerate.
1458 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1459 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1460 use a FreeBSD-specific emulation rather than the psABI one.
1461 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1462 for all FreeBSD ELF systems.
1463 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1465 * emulparams/elf32ppc_fbsd.sh: Likewise.
1466 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1467 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1468 * emulparams/elf64alpha_fbsd.sh: Likewise.
1469 * emulparams/elf_i386_fbsd.sh: Likewise.
1470 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1472 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1474 * po/tr.po: Updated version.
1476 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1478 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1481 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1483 * emultempl/mmo.em (mmo_after_open): Don't call
1484 _bfd_mmix_check_all_relocs when producing ELF output.
1486 2002-02-15 Richard Henderson <rth@redhat.com>
1488 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1489 definition. Emit a unop+nop pair.
1491 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1493 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1494 for presence of .MMIX.reg_contents.linker_allocated before early
1497 * NEWS: Mention support for MMIX.
1499 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1501 Support arbitrary length fill patterns.
1502 * ld.texinfo (Output Section Fill): Describe fill expressions.
1503 (FILL): Refer to the above.
1504 * ldexp.h (etree_value_type): Add "str" field.
1505 (union etree_union): Add "str" to "value" struct.
1506 (exp_bigintop): Declare.
1507 (exp_get_fill): Declare.
1508 * ldexp.c: Include "safe-ctype.h".
1509 (exp_intop): Set value.str to NULL.
1510 (exp_bigintop): New function.
1511 (new_rel): Pass in "str", and set new.str from it.
1512 (new_rel_from_section): Set new.str to NULL.
1513 (fold_name): Adjust calls to new_rel.
1514 (exp_fold_tree): Likewise.
1515 (exp_get_fill): New function.
1516 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1517 (INT): Returns a "bigint". Adjust all code handling INTs.
1518 (fill_opt): Returns a "fill".
1519 (fill_exp): Split out of fill_opt, use for FILL.
1520 * ldlang.h (struct _fill_type): New.
1521 (fill_type): Move typedef to ldexp.h.
1522 (lang_output_section_statement_type): "fill" is now a pointer.
1523 (lang_fill_statement_type): Likewise.
1524 (lang_padding_statement_type): Likewise.
1525 (lang_add_fill): Now takes a "fill_type *" param.
1526 (lang_leave_output_section_statement): Likewise.
1527 (lang_do_assignments): Likewise.
1528 (lang_size_sections): Likewise.
1529 (lang_leave_overlay_section): Likewise.
1530 (lang_leave_overlay): Likewise.
1531 * ldlang.c: Include ldgram.h after ldexp.h.
1532 (lang_output_section_statement_lookup): Adjust for fill_type change.
1533 (print_fill_statement): Likewise.
1534 (print_padding_statement): Likewise.
1535 (insert_pad): Now takes a "fill_type *" arg.
1536 (size_input_section): Likewise.
1537 (lang_size_sections_1): Likewise.
1538 (lang_size_sections): Likewise.
1539 (lang_do_assignments): Likewise.
1540 (lang_add_fill): Likewise.
1541 (lang_leave_output_section_statement): Likewise.
1542 (lang_leave_overlay_section): Likewise.
1543 (lang_leave_overlay): Likewise.
1544 Adjust all callers of the above function.
1545 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1546 starting with "0X" as well as "0x". Return bigint.str for hex
1547 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1548 Always use base 16 for numbers starting with "$".
1549 * ldmain.c: Include ldgram.h after ldexp.h.
1550 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1551 of bfd_fill_link_order.
1552 * pe-dll.c: Adjust lang_do_assignments calls.
1553 * emultempl/elf32.em: Likewise.
1554 * emultempl/hppaelf.em: Likewise.
1555 * emultempl/ppc64elf.em: Likewise.
1556 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1557 lang_add_assignment call.
1558 * emultempl/pe.em: Likewise.
1560 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1562 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1563 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1564 the pattern in question is not a regexp.
1565 * ldlang.c: Likewise.
1566 * ldlang.h: Likewise.
1567 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1569 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1571 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1572 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1573 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1574 * ldexp.c (exp_data_seg): New variable.
1575 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1576 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1577 (exp_fold_tree): Handle DATA_SEGMENT_END.
1578 Pass allocation_done when recursing instead of hardcoding
1579 lang_allocating_phase_enum.
1580 * ldexp.h (exp_data_seg): New.
1581 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1582 (lang_size_sections): New.
1583 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1584 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1585 if COMMONPAGESIZE is defined.
1586 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1587 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1588 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1589 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1590 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1593 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1595 * Makefile.in: Regenerate.
1597 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1599 * lexsup.c: Remove strtoul declaration.
1601 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1603 * ldmain.c: Add prototype for main ().
1604 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1605 * emultempl/lnk960.em (lnk960_choose_target): Function should
1608 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1610 * ldlang.c (entry_section): New initialised variable.
1611 (lang_finish): Use it.
1612 * ldlang.h (entry_section): Declare.
1613 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1614 entry_section to ".opd".
1616 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1618 * ld.texinfo (Options): Add back in -nostdlib documentation,
1619 which had been inadvertently removed.
1621 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1623 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1624 register section vma to a sane value after emitting error. Make
1625 fatal conditions cause program exit when emitting message.
1627 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1629 * configure.tgt: Add or32-*-rtems target.
1631 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1633 Contribute sh64-elf.
1634 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1635 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1636 in OTHER_RELOCATABLE_SECTIONS.
1637 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1638 * emulparams/shelf32.sh (STACK_ADDR): Define.
1639 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1640 (OTHER_SECTIONS): this. Removed stack settings.
1641 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1642 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1643 2001-03-12 DJ Delorie <dj@redhat.com>
1644 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1645 relaxing if any shmedia or mixed sections are found.
1646 2001-03-07 DJ Delorie <dj@redhat.com>
1647 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1648 einfo. Gracefully decline to output to non-elf formats.
1649 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1650 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1651 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1652 * emulparams/shelf32.sh: Ditto.
1653 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1654 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1656 2001-01-10 Ben Elliston <bje@redhat.com>
1657 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1658 non-portable shell constructs. From Hans-Peter Nilsson.
1659 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1660 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1661 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1662 dependencies to the shell script include chain.
1663 * Makefile.in: Regenerate.
1664 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1665 * emultempl/sh64elf.em: Update and tweak comments.
1666 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1667 make a .cranges section SEC_IN_MEMORY.
1668 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1669 * emultempl/sh64elf.em
1670 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1671 .cranges section found to be necessary; continue and set stored
1672 section contents flags for sections with non-mixed contents.
1673 Use a struct sh64_section_data container and sh64_elf_section_data
1674 to store contents-type flags.
1675 Remove unused update of "isec".
1676 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1677 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1678 access contents-type flags. Assert that the associated container
1679 is initialized. Use that container, not elf_gp_size, to hold size
1680 of linker-generated cranges contents.
1681 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1682 * emultempl/sh64elf.em
1683 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1684 there's already a .cranges section. When section flag difference
1685 is found, don't NULL-check cranges a second time. Tweak comments.
1686 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1687 merging, not max size, as size of ld-generated .cranges contents.
1688 Don't set ELF section flags in output section. When checking for
1689 needed .cranges descriptors, don't use a variable; compare
1690 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1692 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1693 * emultempl/sh64elf.em: New file.
1694 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1695 * Makefile.in: Regenerate.
1696 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1697 (OTHER_RELOCATING_SECTIONS): Ditto.
1698 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1699 * emulparams/shlelf32.sh: Stub out all settings except
1700 OUTPUT_FORMAT. Source shelf32.sh.
1701 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1702 OTHER_RELOCATING_SECTIONS.
1703 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1704 * emulparams/shlelf64.sh: Stub out all settings except
1705 OUTPUT_FORMAT. Source shelf64.sh.
1706 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1707 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1709 (DATA_START_SYMBOLS): Define, provide ___data.
1710 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1711 for consecutive .data section.
1712 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1713 section after .data section.
1714 * emulparams/shlelf64.sh: Ditto.
1715 * emulparams/shelf32.sh: Ditto.
1716 (ALIGNMENT): Define to 8.
1717 * emulparams/shelf32.sh: Ditto.
1718 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1719 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1720 built-in linker scripts.
1721 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1722 * emulparams/shlelf64.sh: New.
1723 * emulparams/shelf64.sh: New.
1724 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1726 * Makefile.am: Add support for shlelf64 and shelf64.
1727 * Makefile.in: Regenerate.
1728 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1729 * configure.tgt (sh64-*-elf*): Add shelf as default.
1730 Add shlelf to targ_extra_emuls.
1731 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1732 * emulparams/shelf32.sh: New file.
1733 * emulparams/shlelf32.sh: New file.
1734 * Makefile.am: Add support for shlelf32 and shelf32.
1735 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1736 * Makefile.in: Regenerate.
1738 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1740 * ldlang.c (lang_reset_memory_regions): Rename from
1741 reset_memory_regions. Change all callers. Make public.
1742 * ldlang.h (lang_reset_memory_regions): Prototype.
1743 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1744 lang_reset_memory_regions before lang_size_sections.
1745 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1746 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1748 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1750 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1751 arithmetic when checking for too many global registers.
1753 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1755 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1756 (ehppanbsd.c): New rule.
1757 * Makefile.in: Regenerate.
1758 * configure.tgt (hppa*-*-netbsd*): New target.
1759 * emulparams/hppalinux.sh: Add comment to check other files
1760 that source this file it is modified, and list which
1762 * emulparams/hppanbsd.sh: New file.
1764 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1766 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1769 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1771 Support on-demand global register allocation from
1772 R_MMIX_BASE_PLUS_OFFSET relocs.
1773 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1774 mmix_set_reg_section_vma. Call
1775 _bfd_mmix_finalize_linker_allocated_gregs.
1776 (mmix_before_allocation): New function.
1777 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1778 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1779 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1780 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1781 before .MMIX.reg_contents.
1782 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1783 (mmo_after_open): New function.
1784 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1785 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1786 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1788 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1790 * emulparams/or32.sh: New file.
1791 * emulparams/or32elf.sh: New file.
1792 * scripttempl/or32.sc: New file.
1793 * configure.tgt : Add support for or32.
1794 * configure: Regenerate
1795 * Makefile.am: Add support for or32.
1796 * Makefile.in: Regenerate.
1797 * NEWS: Mention support for or32.
1798 * po/ld.pot: Regenerate.
1800 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1801 Mitch Lichtenberg <mpl@broadcom.com>
1803 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1804 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1805 reloc creation (ld --embedded-relocs).
1807 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1809 * configure: Regenerated.
1811 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1813 * Makefile.am (install): Depend on install-info.
1814 * Makefile.in: Regenerate.
1816 2002-01-26 Christian Rose <menthos@menthos.com>
1818 * ldmain.c (main): Use full sentences to ease translation.
1820 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1822 * po/fr.po: Updated version.
1824 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1826 * po/es.po: Updated version.
1828 2002-01-25 Andreas Jaeger <aj@suse.de>
1830 * ldlex.l (yy_input): Correct error check.
1832 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1834 * ldmisc.c (demangle): Put back dots when string not demangled.
1836 2002-01-22 Richard Henderson <rth@redhat.com>
1838 * emulparams/elf64alpha.sh (NOP): Use unop.
1840 2002-01-21 Andreas Jaeger <aj@suse.de>
1842 * ldlex.l: Use fread instead of read.
1844 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1846 * configure.tgt (ia64-*-netbsd*): New target.
1848 2002-01-21 H.J. Lu <hjl@gnu.org>
1850 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1852 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1854 2002-01-18 Andreas Jaeger <aj@suse.de>
1856 * ldver.c (ldversion): Update year.
1858 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1860 * po/ld.pot: Regenerate.
1862 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1864 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1865 * Makefile.in: Regenerate.
1866 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1867 * emultempl/ppc64elf.em: New file.
1869 2002-01-15 DJ Delorie <dj@redhat.com>
1871 * scripttempl/pe.sc: Add support for constructor priorities.
1873 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1875 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1876 * emulparams/avr23xx.sh: Likewise.
1877 * emulparams/avr4433.sh: Likewise.
1878 * emulparams/avr44x4.sh: Likewise.
1879 * emulparams/avr85xx.sh: Likewise.
1880 * emulparams/avrmega103.sh: Likewise.
1881 * emulparams/avrmega161.sh: Likewise.
1882 * emulparams/avrmega603.sh: Likewise.
1883 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1885 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1887 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1888 archive is excluded.
1890 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1892 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1893 (eshelf_nbsd.c): New rule.
1894 (eshlelf_nbsd.c): New rule.
1895 * Makefile.in: Regenerate.
1896 * configure.tgt (sh*le-*-netbsdelf*): New target.
1897 (sh*-*-netbsdelf*): New target.
1898 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1899 * ld/emulparams/shelf_nbsd.sh: New emulation.
1900 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1902 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1904 * po/es.po: New file: Spanish translation.
1905 * configure.in (ALL_LINGUAS): Add es.
1906 * configure: Regenerate.
1908 2002-01-06 John Marshall <jmarshall@acm.org>
1910 * ld.texinfo: Note that --emit-relocs is currently only
1911 implemented for ELF.
1913 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1915 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1916 of bfd_section_list_remove and bfd_section_list_insert macros.
1917 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1918 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1920 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1922 * configure.tgt (x86_64-*-netbsd*): New target.
1924 2001-12-21 Tom Rix <trix@redhat.com>
1926 (gld*_create_output_section_statements): New function.
1927 For -binitfini support.
1928 * emultempl/aix.em (gld*_before_parse): Fix comment.
1929 * emultempl/aix.em (gld*_parse_args): Fix comment.
1931 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1933 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1935 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1937 * configure.tgt (arm-*-netbsdelf*): Add target.
1938 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1939 * emulparams/armelf_nbsd.sh: Added.
1940 * Makefile.am: Add rules for earmelf_nbsd.
1941 * Makefile.in: Regenerate.
1943 2001-12-19 Andreas Jaeger <aj@suse.de>,
1944 Susanne Oberhauser <froh@suse.de>
1946 * configure.host: Add rules for x86_64-*linux-gnu. Change
1947 s390x-linux entry to use gcc to report configuration, replace gcc
1948 with $CC in s390-linux
1950 2001-12-19 Andreas Jaeger <aj@suse.de>
1952 * ld.texinfo (VERSION): Fix markup.
1954 2001-12-18 matthew green <mrg@eterna.com.au>
1956 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1957 (m68kelfnbsd.c): New rule.
1958 * Makefile.in: Regenerate.
1959 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1960 (m68*-*-netbsd*4k*): .. this.
1961 (m68*-*-netbsdelf*): New target.
1962 (m68*-*-netbsd*): Also include ELF support.
1963 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1964 * emulparams/m68kelfnbsd.sh: New emulation.
1966 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1968 * ldgram.y (vers_node): Support anonymous version tags.
1969 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1970 tag is not defined together with non-anonymous versions.
1971 * ld.texinfo: Document it.
1973 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1975 * po/tr.po: New file: Turkish translation.
1976 * configure.in (ALL_LINGUAS): Add tr.
1977 * configure: Regenerate.
1979 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1981 * Makefile.am: Add rules for eelf64alpha_nbsd.
1982 * Makefile.in: Regenerate.
1983 * configure.tgt (alpha*-*-netbsd*): Set
1984 targ_emul to elf64alpha_nbsd.
1985 * emulparams/elf64alpha_nbsd.sh: Added.
1987 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1989 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1990 section_tail when fiddling with section list.
1991 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1992 broken into separate strings to make translation easier.
1993 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1994 fiddling with section list.
1995 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1997 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1999 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2001 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2003 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2005 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2007 * emultempl/elf32.em (finish): Supply output_bfd
2008 to bfd_elf*_discard_info.
2009 (OPTION_EH_FRAME_HDR): Define.
2010 (longopts): Add --eh-frame-hdr.
2011 (parse_args): Handle it.
2012 (list_options): Add --eh-frame-hdr to help.
2013 * emultempl/hppaelf.em (finish): Supply output_bfd
2014 to bfd_elf*_discard_info.
2015 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2017 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2019 * lexsup.c (parse_args): Don't pass shortopts to second call to
2020 getopt functions. Restore optind rather than decrementing before
2021 second call. Remove errind as it now duplicates last_optind.
2023 2001-12-11 Christopher Faylor <cgf@redhat.com>
2025 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2027 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2028 Richard Henderson <rth@redhat.com>
2030 * Makefile.am: Add support for xstormy16.
2031 * configure.tgt: Add support for xstormy16.
2032 * Makefile.in: Regenerate.
2033 * emulparams/elf32xstormy16.sh: New file.
2034 * scripttempl/xstormy16.sc: New file.
2036 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2038 * Makefile.in (LIB_PATH): Make configurable.
2039 (GENSCRIPTS): Set LIB_PATH in environment.
2040 * configure.in: Substitute LIB_PATH.
2041 * configure: Regenerate.
2042 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2043 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2045 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2047 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2048 describing the -N option so that it is easier to translate into
2051 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2053 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2054 statements describing a single option with a single, newline
2055 escaped fprintf. This allows better translation into other
2058 * ldmain.c (add_archive_element): Combine multiple strings
2059 into a single string to permit better translation into other
2062 2001-12-05 Tom Rix <trix@redhat.com>
2064 * Makefile.am: Remove eaixppc64.
2065 * Makefile.in: Regenerate.
2067 2001-12-04 Tom Rix <trix@redhat.com>
2069 * emultempl/aix.em (choose_target): Change default target to
2070 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2072 (gld*_read_file): Fix typo.
2073 (change_symbol_mode): Add prototype.
2076 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2077 * emulparams/aixrs6.sh : Same.
2078 * emulparams/ppcmacos.sh : Same.
2079 * emulparams/aixppc64.sh : Delete file.
2080 * emultempl/aix.em : Formatting changes.
2082 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2084 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2085 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2087 (OTHER_END_SYMBOLS): Fix formatting.
2088 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2089 (OTHER_END_SYMBOLS): Fix formatting.
2091 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2093 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2095 2001-12-02 Tom Rix <trix@redhat.com>
2097 * configure.tgt : Remove eaixppc64 emulations.
2098 * Makefile.in : Remove eaixppc64.c
2099 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2100 (ldemul_default_target): Same.
2101 * emultempl/gld960.em (gld960_choose_target): Same.
2102 * emultempl/gld960c.em (gld960_choose_target): Same.
2103 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2104 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2105 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2106 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2107 * emultempl/aix.em (choose_target): New function. Handle emulation of
2110 2001-11-27 H.J. Lu <hjl@gnu.org>
2112 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2113 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2114 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2115 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2116 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2117 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2118 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2119 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2121 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2124 (REL_SDATA): Likewise.
2125 (REL_SBSS): Likewise.
2126 (REL_SDATA2): Likewise.
2127 (REL_SBSS2): Likewise.
2128 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2131 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2133 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2135 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2137 2001-11-22 H.J. Lu <hjl@gnu.org>
2139 * Makefile.in: Regenerated with automake based on automake
2140 1.4-8 in RedHat 7.1.
2142 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2144 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2145 (config.status): Delete rule.
2146 Add extra dependencies to cover sourced emulparams files.
2147 * Makefile.in: Regenerate.
2149 * scripttempl/elf.sc: Order <section>, <section>.* and
2150 corresponding linkonce sections as seen in input files.
2151 Formatting fixes. Zero vma of all sections if not relocating.
2152 (STACK): Define and insert if STACK_ADDR defined.
2153 (OTHER_RELOCATING_SECTIONS): Delete.
2154 (OTHER_END_SYMBOLS): Define.
2155 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2156 (OTHER_READWRITE_SECTIONS): Likewise.
2157 (OTHER_GOT_SECTIONS): Likewise.
2158 (OTHER_SDATA_SECTIONS): Likewise.
2159 (OTHER_BSS_SECTIONS): Likewise.
2160 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2161 (OTHER_READWRITE_SECTIONS): Likewise.
2162 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2163 (OTHER_READWRITE_SECTIONS): Likewise
2165 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2166 (STACK_ADDR): Define.
2167 * emulparams/armelf_oabi.sh: As for armelf.sh.
2168 * emulparams/elf32mcore.sh: As for armelf.sh.
2169 * emulparams/h8300elf.sh: As for armelf.sh.
2170 * emulparams/mn10200.sh: As for armelf.sh.
2171 * emulparams/shelf.sh: As for armelf.sh.
2173 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2174 (OTHER_END_SYMBOLS): Define.
2175 * emulparams/m32relf.sh: As for elf32fr30.sh.
2176 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2177 * emulparams/h8300self.sh: As for elf32fr30.sh.
2179 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2180 defines with RELOCATING test.
2181 (OTHER_SDATA_SECTIONS): Likewise.
2182 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2183 (OTHER_END_SYMBOLS): ..this.
2184 * emulparams/crislinux.sh: As for criself.sh.
2186 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2188 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2189 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2190 normal and linkonce sections as seen in input files.
2191 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2192 (TEXT_DYNAMIC): Likewise.
2193 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2194 (OTHER_SDATA_SECTIONS): Likewise.
2195 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2196 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2197 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2198 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2199 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2200 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2201 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2202 sections as seen in input files.
2203 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2204 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2206 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2207 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2208 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2209 (OTHER_SECTIONS): Instead, use this..
2210 (OTHER_END_SYMBOLS): ..and this.
2212 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2213 * emulparams/elf32bsmip.sh: Likewise.
2214 * emulparams/elf32btsmip.sh: Likewise.
2215 * emulparams/elf32ebmip.sh: Likewise.
2216 * emulparams/elf32lmip.sh: Likewise.
2217 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2218 * emulparams/elf32lsmip.sh: Likewise.
2219 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2220 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2221 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2222 * emulparams/elf64btsmip.sh: Likewise.
2223 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2224 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2225 * emulparams/elf32ppclinux.sh: Likewise.
2226 * emulparams/elf32ppcsim.sh: Likewise.
2227 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2228 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2229 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2230 * emulparams/h8300self.sh: Likewise.
2231 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2232 * emulparams/sh.sh: Comment.
2233 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2234 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2235 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2237 2001-11-21 David Heine <dlheine@tensilica.com>
2238 Alan Modra <amodra@bigpond.net.au>
2240 * ldlang.c (map_input_to_output_sections): Replace "break"
2241 accidentally removed with 2001-08-03 change.
2242 (lang_gc_sections_1): Likewise.
2244 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2246 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2248 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2250 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2251 of false when calling lang_size_sections.
2252 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2254 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2256 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2257 function when LDEMUL_FINISH isn't set to the same name. Don't
2258 call ${LDEMUL_FINISH}.
2259 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2260 * emultempl/armelf.em (arm_elf_finish): Call
2261 gld${EMULATION_NAME}_finish.
2262 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2263 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2264 hppaelf_layout_sections_again if necessary.
2265 (need_laying_out): New var.
2266 (hppaelf_layaout_sections_again): Rename to
2267 hppaelf_layout_sections_again. Clear need_laying_out.
2268 (PARSE_AND_LIST_OPTIONS): Format text.
2270 2001-11-14 H.J. Lu <hjl@gnu.org>
2272 * emultempl/armelf.em (arm_elf_finish): Renamed from
2273 gld${EMULATION_NAME}_finish.
2274 (LDEMUL_FINISH): Set to arm_elf_finish.
2276 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2278 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2279 (struct ld_emulation_xfer_struct): Use it.
2281 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2283 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2284 additional symbols referenced by newer crt0.o files from HP.
2286 2001-11-12 Anthony Green <green@redhat.com>
2288 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2290 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2292 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2293 * Makefile.in: Regenerate.
2295 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2297 * ld.texinfo: Use @command for commands, @option for options.
2298 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2300 * Makefile.in: Rebuild.
2302 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2304 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2305 Add support for targets.
2307 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2309 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2310 * configure: Regernate.
2311 * po/fr.po: New file.
2312 * po/sv.po: New file.
2314 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2316 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2317 as little endian default and to support big endian.
2319 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2321 * ld.texinfo (Options): Document new option, -nostdlib.
2322 * lexsup.c (OPTION_NOSTDLIB): New definition.
2323 (ld_options): Add entry for "nostdlib".
2324 (parse_args): Handle OPTIONS_NOSTDLIB.
2325 * ldfile.c (ldfile_add_library_path): Don't add directories
2326 to the search path if they weren't specified on the command line
2327 and -nostdlib was specified.
2328 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2330 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2332 * lexsup.c (parse_args): Prevent infinite parsing loop when
2333 "-rpath.a" is specified on the command line.
2334 Replace calls to fprintf with calls to einfo.
2336 2001-10-31 John Marshall <jmarshall@acm.org>
2338 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2339 appear only once across all the linker scripts involved in a link
2340 invocation no longer applies. Make the documentation reflect
2343 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2345 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2347 (sh-*-linux*): Added targ_extra_libpath.
2349 2001-10-31 David Heine <dlheine@tensilica.com>
2351 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2352 for padding statements.
2354 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2356 * configure.tgt (mmix-*-*): New target.
2357 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2358 Add dependencies to match.
2359 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2360 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2361 scripttempl/mmo.sc: New files.
2362 * gen-doc.texi: @set MMIX.
2363 * ld.texinfo: Ditto.
2364 [MMIX] Add MMIX node.
2365 * Makefile.in: Regenerate.
2367 2001-10-29 Kazu Hirata <kazu@hxi.com>
2369 * ldlang.c: Fix a comment typo.
2371 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2373 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2374 entries, and match *-*-linux*.
2376 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2378 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2379 with ldlex_script, ldlex_popstate.
2380 (ifile_p1): Likewise.
2381 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2383 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2384 to 1. Don't BEGIN(SCRIPT).
2385 (lex_redirect): Similarly.
2386 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2388 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2390 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2391 __EH_FRAME_END__ and accept eh frames into data section.
2392 Add ctor and dtor sections.
2394 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2396 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2397 (auto-export): Fix indentation.
2399 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2401 * pe-dll.c (autofilter_objectlist): Add startup objects
2403 (auto-export): Constify char * p.
2404 Extract file basename and use strcmp rather than ststr
2407 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2409 * ldmain.c (get_emulation): Improve comment about the handling
2412 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2414 * po/POTFILES.in: Regenerate.
2416 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2418 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2419 -z nocopyreloc and -z nocombreloc usage strings.
2421 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2423 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2426 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2428 * scripttempl/armaout.sc: Place .bss section after end of aligned
2429 data section to match behaviour of aout code in constructrion of
2432 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2434 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2435 startup files for mingw32 dlls to list.
2437 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2439 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2441 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2443 * configure.tgt (targ): Add arm9e-*-elf.
2445 2001-10-05 H.J. Lu <hjl@gnu.org>
2447 * genscripts.sh: Fix a typo in the last change.
2449 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2451 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2452 -z nocombreloc in usage.
2454 2001-10-03 Jim Blandy <jimb@redhat.com>
2456 * genscripts.sh: Include a comment at the top of each generated
2457 script, explaining its purpose.
2459 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2461 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2462 * NEWS: Mention -z nocopyreloc.
2463 * ld.texinfo (Options): Describe nocopyreloc.
2465 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2467 * configure: Regenerate.
2469 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2471 * ldver.h (ld_program_version): Remove declaration.
2472 * lexsup.c (parse_args): Move printing of copyright message..
2473 * ldver.c (ldversion): .. to here.
2474 Use BFD_VERSION_STRING in place of BFD_VERSION.
2475 (ld_program_version): Remove.
2476 * Makefile.am (Makefile): Depend on bfd/configure.in.
2478 * Makefile.in: Regenerate.
2480 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2482 * Makefile.am: Update dependencies with "make dep-am".
2483 * Makefile.in: Regenerate.
2485 2001-09-29 John Reiser <jreiser@BitWagon.com>
2487 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2488 * lexsup.c: Add --no-define-common commandline option.
2489 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2490 * ldlex.l: Likewise.
2491 * ld.h: Add command_line.inhibit_common_definition.
2492 * ldmain.c (main): Initialize.
2493 * ld.texinfo: Document.
2495 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2497 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2499 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2501 * ldmisc.c (USE_STDARG): Remove.
2502 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2507 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2508 declarations. Update copyright.
2510 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2512 * pe-dll.c: Remove obsoleted declaration of
2513 pe_get_data_import_dll_name.
2514 (pe_create_import_fixup): Fix thinko.
2516 * ld.texinfo(enable-auto-import): Clarify the explanation.
2518 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2520 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2521 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2522 DLL_SUPPORT controlled code.
2524 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2526 * emultempl/pe.em(pe_data_import_dll): Make static.
2527 (pe_get_data_import_dll_name): New accessor function.
2528 * pe-dll.c(pe_create_import_fixup): call
2529 pe_get_data_import_dll_name() from pe.em, instead of
2530 directly accessing pe_data_import_dll variable from pe.em.
2532 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2534 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2535 (def_file_add_directive): Use ISSPACE instead of isspace.
2536 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2537 isdigit/isxdigit/isalpha/isalnum.
2538 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2539 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2540 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2541 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2543 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2544 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2546 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2547 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2548 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2549 (ctor_prio): Use ISDIGIT instead of isdigit.
2550 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2551 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2552 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2554 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2555 (stricpy): Use TOLOWER instead of isupper/tolower.
2556 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2557 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2558 (lex_warn_invalid): Use ISPRINT instead of isprint.
2559 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2560 (main): For gettext, also set the LC_CTYPE locate facet.
2561 (add_keepsyms_file): Use ISSPACE instead of isspace.
2562 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2563 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2564 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2565 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2566 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2567 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2568 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2569 (quoteput): Use ISSPACE instead of isspace.
2570 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2573 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2575 * deffilep.y (def_stash_module): Constify "name" param.
2577 * pe-dll.c: Replace CONST with const throughout.
2578 (quick_symbol): Constify "n1", "n2", "n3" params.
2579 (make_singleton_name_thunk): Constify "import" param. Make
2580 "buffer_len" a size_t.
2581 (make_import_fixup_entry): Constify "name", "fixup_name",
2582 "dll_symname" params.
2583 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2584 (pe_get32): Likewise.
2585 (pe_implied_import_dll): Likewise.
2587 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2588 (sort_by_section_name): Likewise.
2590 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2591 (make_import_fixup): Cast printf arg, rel->address to long rather
2593 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2595 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2597 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2598 defines BufferSize. Increase buffer size by one.
2600 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2602 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2604 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2606 * configure.tgt: Add arm-openbsd target.
2608 2001-09-12 H.J. Lu <hjl@gnu.org>
2610 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2612 (ALL_64_EMULATIONS): Here.
2613 * Makefile.in: Regenerated.
2615 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2617 * emultempl/pe.em(make_import_fixup): change signature to
2618 take asection as well as arelec; we need this for proper
2619 error reporting. Only call pe_create_import_fixup() if
2620 there is no attempt to add a constant addend to the reloc;
2621 otherwise, report error condition.
2622 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2623 since final argument is a pointer to make_import_fixup().
2624 Change call to cb() to match make_import_fixup() signature.
2625 (make_import_fixup_mark): make buffer_len unsigned.
2626 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2628 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2630 * ld.texinfo: add verbose documentation for auto-import
2631 direct-addressing workaround, to compliment the terse
2634 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2636 * scripttempl/v850.sc: Add gcc_except_table sections.
2638 2001-09-11 Jeffrey A Law (law@cygnus.com)
2640 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2641 * emulparams/h8300self.sh: Similarly.
2643 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2645 * ld.texinfo (Options, --stack): Correct default value for stack
2648 2001-09-05 Tom Rix <trix@redhat.com>
2650 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2652 2001-09-03 Andreas Jaeger <aj@suse.de>
2654 * emultempl/beos.em: Declare prototypes for comparions functions,
2657 2001-09-02 Andreas Jaeger <aj@suse.de>
2659 * emultempl/aix.em: Add missing prototype.
2660 * emultempl/lnk960.em: Likewise.
2661 * emultempl/vanilla.em: Likewise.
2662 * emultempl/armcoff.em: Likewise.
2663 * emultempl/armelf_oabi.em: Likewise.
2664 * emultempl/beos.em: Likewise.
2665 * emultempl/gld960c.em: Likewise.
2666 * emultempl/gld960.em: Likewise.
2668 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2669 for prototype declaration.
2671 2001-08-31 Eric Christopher <echristo@redhat.com>
2672 Jason Eckhardt <jle@redhat.com>
2674 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2676 2001-08-31 Andreas Jaeger <aj@suse.de>
2678 * emultempl/pe.em: Add missing prototypes.
2679 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2680 pe_find_data_imports.
2681 (pr_sym): Add unused attribute.
2683 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2685 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2686 default from coff to elf.
2688 2001-08-29 Jeff Law <law@redhat.com>
2690 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2692 * emulparams/h8300self.sh: Similarly.
2694 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2696 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2698 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2699 * configure.tgt (h8300-*-elf*): New case.
2700 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2701 * emulparams/h8300self.sh: New file.
2702 * Makefile.in: Regenerated.
2704 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2706 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2709 2001-08-27 Linus Nordberg <linus@swox.com>
2710 Alan Modra <amodra@bigpond.net.au>
2712 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2713 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2715 * Makefile.in: Regenerate.
2716 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2717 entries to correct alphabetical position.
2718 * emulparams/elf64ppc.sh: New.
2719 * emulparams/elf64lppc.sh: New.
2721 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2723 * ldmain.c (main): Declare BSIZE as static.
2725 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2727 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2728 into .rel.dyn resp. .rela.dyn if combreloc.
2729 (get_script): If .x linker script is equal to .xn, only put it
2730 once into the binary.
2731 Add .xc and .xsc scripts.
2732 (parse_args): Handle -z combreloc and -z nocombreloc.
2733 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2734 For .xc and .xsc scripts put all .rel* or .rela* input sections
2735 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2736 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2738 Strip trailing whitespace from script.
2739 Generate .xc and .xsc scripts if requested.
2740 * ldmain.c (main): Initialize link_info.combreloc and
2741 link_info.spare_dynamic_tags.
2742 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2743 (ld_options): Add --spare-dynamic-tags option.
2744 (parse_args): Likewise.
2745 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2746 * ldint.texinfo: Document .xc and .xsc linker scripts.
2747 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2749 2001-08-22 H.J. Lu <hjl@gnu.org>
2751 * emulparams/elf32fr30.sh: Add a newline.
2753 2001-08-21 Andreas Jaeger <aj@suse.de>
2755 * deffilep.y: Add missing prototypes.
2756 * pe-dll.c: Likewise.
2758 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2760 * ldlang.c (insert_pad): Fix typos in last patch.
2762 * ldlang.c: When traversing lang_statement_union_type lists,
2763 consistently use "header.next" rather than "next".
2764 * mpw-eppcmac.c: Likewise.
2765 * emultempl/beos.em: Likewise.
2766 * emultempl/hppaelf.em: Likewise.
2767 * emultempl/pe.em: Likewise.
2768 * ldlang.h (union lang_statement_union): Remove "next" field.
2770 * ldlang.c (insert_pad): Use offsetof macro.
2771 (lang_size_sections): Always neuter padding statements.
2772 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2774 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2775 passed to lang_size_sections.
2776 (pe_exe_fill_sections): Likewise.
2777 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2778 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2780 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2782 * emultempl/aix.em: Formatting fixes.
2784 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2786 * ldlang.c (insert_pad): Make use of an existing pad statement if
2787 available. Move code calculating alignment, adjusting section
2788 alignment power, and adjusting dot to ..
2789 (size_input_section): .. here. Remove unused relax param.
2790 (lang_size_sections): Change boolean `relax' param to boolean *.
2791 Adjust call to size_input_section. Make use of insert_pad to
2792 place pad after the assignment statement. If relaxing, zap
2794 (reset_memory_regions): Reset output_bfd section sizes too.
2795 (relax_again): Move to..
2796 (lang_process): ..here. Adjust call to lang_size_sections, and
2797 remove duplicated code.
2798 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2800 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2802 * ld.texinfo: Document that fill values now use the four least
2804 * emulparams/elf32fr30.sh (NOP): Update.
2805 * emulparams/elf32mcore.sh: Likewise.
2806 * emulparams/elf64_s390.sh: Likewise.
2807 * emulparams/elf_i386.sh: Likewise.
2808 * emulparams/elf_i386_be.sh: Likewise.
2809 * emulparams/elf_i386_chaos.sh: Likewise.
2810 * emulparams/elf_i386_ldso.sh: Likewise.
2811 * emulparams/elf_s390.sh: Likewise.
2812 * emulparams/elf_x86_64.sh: Likewise.
2813 * emulparams/i386moss.sh: Likewise.
2814 * emulparams/i386nw.sh: Likewise.
2815 * emulparams/m68kelf.sh: Likewise.
2816 * scripttempl/elf.sc: Update NOP comment.
2817 * scripttempl/elfi370.sc: Likewise.
2818 * scripttempl/elfm68hc11.sc: Likewise.
2819 * scripttempl/elfm68hc12.sc: Likewise.
2820 * scripttempl/nw.sc: Likewise.
2822 2001-08-15 Tom Rix <trix@redhat.com>
2824 * ldgram.y (saved_script_handle): Initialize to NULL.
2825 * ldmain.c (main): Change check on saved_script_handle.
2827 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2829 * emultempl/elf32.em: Formatting fixes.
2830 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2831 looking at sec->owner.
2832 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2833 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2834 unused code, and reorganize orphan section placement code.
2836 * ldlang.c (wild_doit): Rename to lang_add_section.
2837 * ldlang.h: Here too.
2838 * mpw-elfmips.c: And here.
2839 * emultempl/beos.em: And here.
2840 * emultempl/elf32.em: And here.
2841 * emultempl/hppaelf.em: And here.
2842 * emultempl/pe.em: And here.
2844 2001-08-13 Richard Henderson <rth@redhat.com>
2846 * emultempl/needrelax.em: New file.
2847 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2848 * Makefile.am (eelf64_ia64.c): Depend on it.
2849 * Makefile.in: Rebuild.
2851 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2853 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2854 output_section is set non-NULL.
2856 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2857 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2858 needlessly create an output_section_statement. Treat a correctly
2859 named output_section_statement with NULL bfd_section as compatible.
2861 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2863 * emultempl/generic.em: Support EXTRA_EM_FILE.
2864 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2865 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2866 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2867 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2868 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2869 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2870 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2871 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2872 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2873 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2875 2001-08-12 Richard Henderson <rth@redhat.com>
2877 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2878 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2879 scripttempl/v850.sc: Keep .jcr data.
2881 2001-08-12 H.J. Lu <hjl@gnu.org>
2882 Andrew Haley <aph@cambridge.redhat.com>
2883 Nick Clifton <nickc@redhat.com>
2885 * ldgram.y (had_script): Change name to saved_script_handle.
2886 Change type to file handle.
2887 * ld.h (had_script): Rename and retype.
2888 * ldfile.c (ldfile_open_command_file): Save the file handle
2889 used in saved_script_handle.
2890 * lexsup.c (parse_args): Do not allow -c option to alter
2891 saved_script_handle.
2892 * ldmain.c (main): Print out the linker script used if
2893 --verbose is given. Check saved_script_handle to obtain the
2894 external linker script used, or if NULL, dump the builtin
2896 * ld.texinfo: Document that --verbose now dumps the linker
2897 script used, regardless of whether it was an internal or an
2900 2001-08-10 Andreas Jaeger <aj@suse.de>
2902 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2904 * configure: Regenerate.
2906 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2908 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2910 * scripttempl/elf.sc: Move non-text .dynamic section before
2911 .plt/.got/.sdata* group.
2912 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2913 (OTHER_SDATA_SECTIONS): Add.
2914 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2916 * emulparams/crislinux.sh: Likewise.
2917 * emulparams/elf32b4300.sh: Likewise.
2918 * emulparams/elf32bmip.sh: Likewise.
2919 * emulparams/elf32bmipn32.sh: Likewise.
2920 * emulparams/elf32bsmip.sh: Likewise.
2921 * emulparams/elf32btsmip.sh: Likewise.
2922 * emulparams/elf32ebmip.sh: Likewise.
2923 * emulparams/elf32elmip.sh: Likewise.
2924 * emulparams/elf32l4300.sh: Likewise.
2925 * emulparams/elf32lmip.sh: Likewise.
2926 * emulparams/elf32lsmip.sh: Likewise.
2927 * emulparams/elf32ltsmip.sh: Likewise.
2928 * emulparams/elf64bmip.sh: Likewise.
2929 * emulparams/elf64btsmip.sh: Likewise.
2930 * emulparams/elf64ltsmip.sh: Likewise.
2932 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2934 * genscripts.sh: Source the emulparams script before each output
2935 script is generated so that variables like `RELOCATING' may affect
2936 variables defined in the emulparams script.
2938 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2940 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2943 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2944 ie. iterate over wild_statement.section_list.
2945 (gld${EMULATION_NAME}_place_orphan): Likewise.
2947 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2949 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2950 .fini[0-4] sections used by _exit
2951 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2952 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2953 * scripttempl/elfm68hc11.sc: Likewise.
2955 2001-08-03 H.J. Lu <hjl@gnu.org>
2957 * emultempl/beos.em (init): Add the missing initialization.
2959 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2961 * ld.texinfo (Input Section Basics): Clarify ordering of output
2963 * ldlang.c (callback_t): Add wildcard_list param.
2964 (walk_wild_section): Remove "section" param. Rewrite for
2965 lang_wild_statement_type change. Remove unique_section_p test.
2966 (walk_wild_file): Remove "section" param.
2967 (walk_wild): Remove "section" and "file" params.
2968 (lang_gc_wild): Likewise.
2969 (wild): Likewise. Modify for lang_wild_statement_type change.
2970 (wild_sort): Likewise. Add "sec" param.
2971 (gc_section_callback): Likewise.
2972 (output_section_callback): Likewise. Do unique_section_p test.
2973 (map_input_to_output_sections): Modify call to wild.
2974 (lang_gc_sections_1): Likewise.
2975 (print_wild_statement): Modify for lang_wild_statement_type
2977 (lang_add_wild): Replace filename, filenames_sorted param with
2978 filespec. Replace section_name, sections_sorted,
2979 exclude_filename_list with section_list.
2980 * ldlang.h (lang_add_wild): Here too.
2981 (lang_wild_statement_type): Replace section_name, sections_sorted,
2982 and exclude_filename_list with section_list.
2983 * ldgram.y (current_file): Delete.
2984 (%union): Add wildcard_list.
2985 (file_NAME_list): Set type to wildcard_list. Build a linked list
2986 rather than calling lang_add_wild for each entry.
2987 (input_section_spec_no_keep): Call lang_add_wild here instead.
2988 * ld.h (struct wildcard_list): Declare.
2989 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2991 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2993 * ldmain.c (main): initialize link_info.pei386_auto_import
2994 * pe-dll.c: new tables for auto-export filtering
2995 (auto_export): change API, pass abfd for contextual filtering.
2996 Loop thru tables of excluded symbols instead of comparing
2999 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3001 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3002 static variable current_sec (static struct sec *). Add
3003 forward declaration for add_bfd_to_link.
3004 (process_def_file): Don't export undefined symbols. Do not
3005 export symbols starting with "_imp__". Call auto_export()
3007 (pe_walk_relocs_of_symbol): New function.
3008 (generate_reloc): add optional extra debugging
3009 (pe_dll_generate_def_file): eliminate extraneous initial blank
3011 (make_one): enlarge symtab to make room for __nm__ symbols
3012 (DATA auto-import support).
3013 (make_singleton_name_thunk): New function.
3014 (make_import_fixup_mark): New function.
3015 (make_import_fixup_entry): New function.
3016 (pe_create_import_fixup): New function.
3017 (add_bfd_to_link): Specify that 'name' argument is a CONST
3019 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3020 declare new functions pe_walk_relocs_of_symbol and
3021 pe_create_import_fixup.
3022 * emultempl/pe.em: add new options --enable-auto-import,
3023 --disable-auto-import, and --enable-extra-pe-debug.
3024 (make_import_fixup): New function.
3025 (pe_find_data_imports): New function.
3026 (pr_sym): New function.
3027 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3028 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3031 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3033 * ld.texinfo: add additional documentation for
3034 --export-all-symbols. Document --out-implib,
3035 --enable-auto-image-base, --disable-auto-image-base,
3036 --dll-search-prefix, --enable-auto-import, and
3037 --disable-auto-import.
3038 * ldint.texinfo: Add detailed documentation on auto-import
3041 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3043 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3046 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3048 * Makefile.am: Update dependencies with "make dep-am".
3049 * Makefile.in: Regenerate
3051 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3053 * ldcref.c (check_section_sym_xref): New function.
3054 (check_nocrossrefs): Call it.
3055 (check_nocrossref): Interate over h->refs here instead of..
3056 (check_refs): ..here. Pass in the symbol name, section, and bfd
3057 rather than hash_entry pointers.
3058 (struct check_refs_info): Keep symbol name rather than hash entry.
3060 (check_reloc_refs): Tweak for above changes in check_refs_info.
3061 Only report references to section syms when symname is NULL to
3062 prevent duplicate messages for the same reloc.
3064 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3066 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3067 available. Do not print NULL trees.
3068 (exp_print_token): Print unknown tokens with values > 126 as
3069 decimal values not ASCII characters.
3071 * ldlang.c (lang_leave_overlay): If a region is specified assign
3072 it to all sections inside the overlay unless they have been
3073 assigned to the own, non-default, memory region.
3075 * README: Add header for consistency with other README files.
3077 2001-07-14 H.J. Lu <hjl@gnu.org>
3079 * emultempl/elf32.em (output_prev_sec_find): Never return
3080 bfd_abs_section_ptr, bfd_com_section_ptr nor
3081 bfd_und_section_ptr.
3083 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3085 * Makefile.am (em32relf.c): Change dependency from generic.em to
3087 * Makefile.in: Regenerate.
3089 2001-07-14 matthew green <mrg@eterna.com.au>
3091 * configure.tgt (i386-*-netbsdelf*): New target.
3092 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3094 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3096 * emultempl/elf32.em (output_prev_sec_find): New.
3097 (place_orphan): Use it.
3099 2001-07-11 H.J. Lu <hjl@gnu.org>
3101 * ldmain.c (main): Fix typos in the last change.
3103 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3105 * ldmain.c (main): Disallow -F and -f without -shared.
3107 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3109 * emultempl/pe.em (after_open): Check for the output_bfd not
3110 having any coff_data structure allocated to it.
3112 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3114 * emultempl/elf32.em: Do not assuming that contents of the buffer
3115 returned from basename function will remain unchanged accross other
3118 2001-07-03 H.J. Lu <hjl@gnu.org>
3120 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3121 2001-07-03. It creates dynamic entries even for static binaries.
3123 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3125 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3126 (DYNAMIC): Use it to reserve few dynamic entries for
3129 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3131 * emulparams/hppa64linux.sh: New file.
3132 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3133 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3134 (ehppa64linux.c): Add rule to make it.
3136 * Makefile.in: Regenerate.
3138 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3140 * ld.texinfo (Options, -r): Mention restrictions when using
3141 different object formats.
3143 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3145 * ldlang.c (lang_check): Emit fatal error if relocatable link
3146 between different object flavours with relocations in input.
3148 2001-06-19 H.J. Lu <hjl@gnu.org>
3150 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3151 (--version-script): Mention the language support.
3153 2001-06-19 H.J. Lu <hjl@gnu.org>
3155 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3157 2001-06-18 H.J. Lu <hjl@gnu.org>
3159 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3160 (diststuff): Add $(MANS).
3161 * Makefile.in: Regenerated.
3165 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3167 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3168 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3169 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3170 * ld.h (args_type): Remove member export_dynamic. All users
3171 changed to use struct bfd_link_info member.
3173 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3174 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3175 * Makefile.in: Regenerate.
3177 2001-06-18 H.J. Lu <hjl@gnu.org>
3179 * ldlang.c (init_os): Add the newline to the einfo call.
3180 (lang_check): Likewise.
3181 (lang_do_version_exports_section): Likewise.
3183 2001-06-15 H.J. Lu <hjl@gnu.org>
3185 * lexsup.c (parse_args); Save optind to report unrecognized
3188 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3190 * ldlang.c (lang_check): Emit fatal error if relocatable link
3191 between different object flavours.
3193 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3194 Set new link_info member export_dynamic.
3195 * ldmain.c (main): Initialize new link_info member export_dynamic.
3197 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3199 * ldlang.c (walk_wild): Only call walk_wild_file if
3200 lookup_name returns something.
3201 (lookup_name): If load_symbols fails, return NULL.
3202 (load_symbols): Change to a boolean function.
3203 (open_input_bfds): If load_symbols fails then do not make the
3206 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3208 * ldlang.c (record_bfd_errors): Remove.
3210 * emultempl/aix.em: Fix copyright dates.
3212 2001-06-07 Andreas Jaeger <aj@suse.de>
3214 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3215 (TEXT_START_ADDR): Likewise.
3217 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3219 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3221 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3223 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3225 2001-05-31 H.J. Lu <hjl@gnu.org>
3227 * ldlang.c (open_input_bfds): Don't change the bfd error
3228 handler whilst loading symbols.
3230 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3232 * configure.tgt: Remove i370-mvs architecture, it is not currently
3235 2001-05-25 H.J. Lu <hjl@gnu.org>
3237 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3238 like emulparams/aixppc.sh.
3240 2001-05-25 H.J. Lu <hjl@gnu.org>
3242 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3243 setting of output_filename after bfd_scan_arch.
3244 * emultempl/pe.em: Likewise.
3246 2001-05-25 H.J. Lu <hjl@gnu.org>
3248 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3249 like emulparams/aixppc.sh.
3251 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3252 instead of ${srcdir}/emultempl/stringify.sed.
3254 2001-05-25 Timothy Wall <twall@oculustech.com>
3256 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3259 2001-05-25 Alan Modra <amodra@one.net.au>
3261 * configure.host: Replace linuxoldld with linux*oldld.
3262 * configure.tgt: Likewise.
3264 2001-05-24 H.J. Lu <hjl@gnu.org>
3266 * emultempl/stringify.sed: Removed again.
3268 2001-05-24 H.J. Lu <hjl@gnu.org>
3270 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3271 (gld${EMULATION_NAME}_before_parse): Initialize
3272 ldfile_output_architecture, ldfile_output_machine and
3273 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3274 * emultempl/beos.em: Likewise.
3275 * emultempl/elf32.em: Likewise.
3276 * emultempl/linux.em: Likewise.
3277 * emultempl/mipsecoff.em: Likewise.
3278 * emultempl/pe.em: Likewise.
3279 * emultempl/sunos.em: Likewise.
3281 2001-05-24 Tom Rix <trix@redhat.com>
3283 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3284 udate import file format.
3285 (change_symbol_mode) New, same
3286 (is_syscall) New, same
3287 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3288 * emulparams/aixppc64.sh : same
3289 * emulparams/aixrs6.sh : same
3290 * emulparams/ppcmacos.sh : same
3291 * emultempl/aix.em : use strtoull to parse options
3292 * Makefile.am : add eaixppc64 emulation for xcoff64
3293 * Makefile.in : same
3294 * configure.tgt : same
3296 * scripttempl/aix.sc : default text section offset to 0x10000000
3297 default data section offset to 0x20000000
3298 add .sv3264 and .sv64 pseudo sections
3299 loader and debug sections use the currect section offset.
3301 * emultempl/aix.em : Add xcoff64 support
3302 Add -binitfini support
3303 (gld${EMULATION_NAME}_before_parse) -binitfini
3304 (gld${EMULATION_NAME}_parse_args) same
3305 (gld${EMULATION_NAME}_before_allocation) format change for special
3308 * emulparams/aixppc64.sh : New file for xcoff64 support
3310 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3312 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3313 variable to avoid non-portable shell construct.
3315 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3317 * ldmain.c (get_emulation): Add -mips5 command line argument.
3319 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3321 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3322 (ELF_INTERPRETER_NAME): Define it.
3323 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3325 * configure.tgt (targ_emul, targ_extra_emuls)
3326 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3327 as primary, elf_i386 as extra.
3328 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3329 (eelf_i386_ldso.c): New rule.
3330 * Makefile.in: Rebuilt.
3332 2001-05-22 Nick Clifton <nickc@redhat.com>
3334 * lexsup.c (ld_options): Allow -I to be an alias for
3335 --dynamic-linker. This is for Solaris compatability.
3336 * ld.texinfo: Document that -I can be used.
3339 2001-05-16 Alan Modra <amodra@one.net.au>
3341 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3342 whether an input section is the first one assigned to an output
3344 Assorted formatting fixes.
3346 2001-05-14 DJ Delorie <dj@delorie.com>
3348 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3349 * Makefile.in: Ditto.
3351 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3353 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3354 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3356 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3358 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3360 * ldlang.c (lang_process): Call bfd_merge_sections.
3362 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3364 * ldgram.y: Fix typo.
3366 2001-05-03 H.J. Lu <hjl@gnu.org>
3368 * emultempl/elf32.em: Include "libiberty.h".
3369 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3370 basename of the bfd filename.
3371 (gld${EMULATION_NAME}_stat_needed): Likewise.
3372 (gld${EMULATION_NAME}_try_needed): Likewise.
3373 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3375 2001-05-02 H.J. Lu <hjl@gnu.org>
3377 * emultempl/pe.em: Include <ctype.h>.
3379 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3381 * emulparams/elf32openrisc.sh: New file.
3383 * Makefile.am: Add OpenRISC target.
3384 * Makefile.in: Regenerated.
3386 * configure.tgt: Add openrisc-*-* mapping.
3388 2001-05-02 Nick Clifton <nickc@redhat.com>
3390 * emultempl/aix.em: Replace buystring with xstrdup.
3391 * emultempl/beos.em: Replace buystring with xstrdup.
3393 2001-05-02 H.J. Lu <hjl@gnu.org>
3395 * ldfile.c: Include "libiberty.h".
3396 * ldlex.l: Likewise.
3398 * ldmisc.c (buystring): Removed.
3399 * ldmisc.h: Likewise.
3401 * ldfile.c: Replace buystring with xstrdup.
3402 * ldlang.c: Likewise.
3403 * ldlex.l: Likewise.
3404 * ldmain.c: Likewise.
3405 * ldmisc.c: Likewise.
3406 * lexsup.c: Likewise.
3407 * mpw-eppcmac.c: Likewise.
3409 2001-04-30 Andreas Jaeger <aj@suse.de>
3411 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3413 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3415 * ldlang.c (load_symbols): Give emulation a chance
3416 to process unrecognized file before fatal error is
3417 reported, not after.
3419 2001-04-27 Sean McNeil <sean@mcneil.com>
3421 * configure.tgt: Add arm-vxworks target.
3422 * scripttempl/armcoff.sc: Support .text or .data as a section name
3426 2001-04-13 J.T. Conklin <jtc@redback.com>
3428 * ld.texinfo: Document --fatal-warnings.
3431 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3432 warnings have been turned into errors.
3433 * lexsup.c (OPTION_WARN_FATAL): Define.
3434 (ld_options): Entry for --fatal-warnings.
3435 (parse_args): Handle OPTION_WARN_FATAL.
3436 * ld.h (ld_config_type): Add fatal_warnings field.
3438 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3440 * ldmain.c (main): Default to discard_sec_merge.
3441 * lexsup.c (OPTION_DISCARD_NONE): Define.
3442 (ld_options): Add --discard-none.
3443 (parse_args): Handle OPTION_DISCARD_NONE.
3444 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3445 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3446 all its input sections match.
3448 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3450 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3451 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3452 (eelf32ltsmip.c): New target.
3453 (eelf64btsmip.c): Likewise.
3454 (eelf64ltsmip.c): Likewise.
3455 * Makefile.in: Regenerated.
3457 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3459 (mips*-*-linux-gnu*): Likewise.
3461 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3463 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3465 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3468 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3470 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3471 correct value of __Stext here.
3472 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3475 * emulparams/crislinux.sh: Remove FIXME.
3477 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3479 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3480 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3482 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3484 * configure.tgt (cris-*-*): Change default emulation to criself.
3485 (cris-*-*aout*): New rule.
3487 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3489 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3490 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3492 2001-03-26 Andreas Jaeger <aj@suse.de>
3494 * ld.texinfo (Overview): Fix syntax in texi code.
3496 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3498 * ld.texinfo: Put @c man indications to generate the ld man page.
3499 When generating man, define all the variables. Define SEEALSO
3500 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3501 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3502 (ld.1): Generate from ld.texinfo.
3503 * Makefile.in: Regenerate.
3505 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3507 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3508 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3510 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3512 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3513 is an absolute path look only for this file and not along the path.
3515 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3517 * emultempl/elf32.em (OPTION_GROUP): New macro.
3518 Add new option Bgroup to longopts.
3519 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3520 (gld*_list_options): Add -Bgroup and -z defs.
3521 * ld.1: Document -Bgroup and -z defs.
3522 * ld.texinfo: Likewise.
3524 2001-03-07 Michael Meissner <meissner@redhat.com>
3526 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3527 with sections created by -fdata-sections.
3528 (.dynbss,.bss): Ditto.
3530 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3532 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3533 after_allocation_default, not gld..._before_allocation.
3535 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3537 * configure.in (BFD_VERSION): New.
3538 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3539 * configure: Regenerate.
3540 * Makefile.am: Run "make dep-am"
3541 * Makefile.in: Regenerate.
3543 2001-02-26 Timothy Wall <twall@cygnus.com>
3545 * emulparams/elf64_aix.sh: Add additional read-only sections;
3546 uncomment lines which are now required.
3548 2001-02-26 H.J. Lu <hjl@gnu.org>
3550 * ldlang.c (open_input_bfds): Set the bfd error handler so
3551 that problems can be caught whilst loading symbols.
3552 (record_bfd_errors): New function: Report BFD errors and mark
3553 the executable output as being invalid.
3555 2001-02-22 Timothy Wall <twall@cygnus.com>
3557 * configure.host: Add configuration for ia64-*-aix*.
3558 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3559 Add dependencies for eelf64_aix.c.
3560 * Makefile.in: Regenerate.
3561 * configure.tgt: Add ia64-*-aix* mapping.
3562 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3564 2001-02-20 H.J. Lu <hjl@gnu.org>
3566 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3567 false if we found the file.
3569 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3571 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3572 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3574 2001-02-18 lars brinkhoff <lars@nocrew.org>
3576 * Makefile.am: Add PDP-11 target.
3577 * configure.tgt: Likewise.
3578 * emulparams/pdp11.sh: New file.
3580 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3582 * configure.host: Add a generic FreeBSD configuration entry such that
3583 all [modern] FreeBSD systems on all platforms will look the same.
3585 2001-02-14 H.J. Lu <hjl@gnu.org>
3587 * configure.tgt: Remove mention of earmelf_linux26.
3589 2001-02-13 Richard Henderson <rth@redhat.com>
3591 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3593 2001-02-13 H.J. Lu <hjl@gnu.org>
3595 * ldexp.h (node_type): Add etree_provided.
3596 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3597 type to etree_provided if defined by PROVIDE. Allow updating
3599 (exp_print_tree): Handle etree_provided.
3600 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3603 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3605 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3606 .IA_64.unwind.* pattern to unwind table section and
3607 .IA_64.unwind_info* pattern to unwind info section.
3609 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3611 * Makefile.am: Add linux target for S/390.
3612 * Makefile.in: Likewise.
3613 * configure.host: Likewise.
3614 * configure.tgt: Likewise.
3615 * emulparams/elf64_s390.sh: New file.
3616 * emulparams/elf_s390.sh: New file.
3618 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3620 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3622 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3624 2001-02-06 Philip Blundell <philb@gnu.org>
3626 * Makefile.am: Remove mention of earmelf_linux26.
3627 * Makefile.in: Regenerate.
3629 2001-02-04 Philip Blundell <philb@gnu.org>
3631 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3632 * emulparams/armelf_linux26.sh: Delete.
3633 * configure.tgt: Remove mention of armelf_linux26 emulation.
3635 2001-02-01 Nick Clifton <nickc@redhat.com>
3637 * ld.1: Replace occurances of -oformat with --oformat.
3639 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3641 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3642 load_base is specified.
3644 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3646 * emultempl/elf32.em: Correct spelling in comments and listed
3649 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3651 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3652 default for the first section of a group of overlay sections.
3654 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3656 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3657 * Makefile.in: Regenerate.
3658 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3659 Check for null tool_dir.
3661 2001-01-16 Jim Wilson <wilson@redhat.com>
3663 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3664 and IA_64.unwind.info.
3666 2001-01-16 H.J. Lu <hjl@gnu.org>
3668 * ldlang.c (lang_check): Merge the private data only if the
3669 input file has contents.
3671 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3673 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3675 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3676 enabling search for libmilli. On a relocatable link, make .text
3678 (LDEMUL_AFTER_PARSE): Define.
3679 (hppaelf_finish): Correct spelling of relocatable in comments.
3681 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3682 rummage through the script for sections on the unique list.
3683 Correct length of strncmp for ".note".
3684 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3686 * ldlang.c (unique_section_list): New var.
3687 (unique_section_p): New function.
3688 (walk_wild_section): Don't match sections on unique_section_list.
3689 (lang_add_unique): New function.
3690 Correct spelling of relocatable in comments.
3692 * ldlang.h (struct unique_sections): Declare.
3693 (unique_section_list): Declare.
3694 (unique_section_p): Declare.
3695 (lang_add_unique): Declare.
3697 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3698 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3700 * ld.texinfo (--unique): Update.
3702 2001-01-13 Nick Clifton <nickc@redhat.com>
3704 * lexsup.c (parse_args): Remove spurious white space.
3706 2001-01-12 Nick Clifton <nickc@redhat.com>
3708 * lexsup.c (parse_args): Update copyright date.
3710 2001-01-12 Philip Blundell <pb@futuretv.com>
3712 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3714 2001-01-10 Kazu Hirata <kazu@hxi.com>
3716 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3717 * scripttempl/h8300h.sc: Fix formatting.
3718 * scripttempl/h8300s.sc: Likewise.
3719 * scripttempl/h8500.sc: Likewise.
3720 * scripttempl/h8500b.sc: Likewise.
3721 * scripttempl/h8500c.sc: Likewise.
3722 * scripttempl/h8500m.sc: Likewise.
3723 * scripttempl/h8500s.sc: Likewise.
3725 2000-01-07 David O'Brien <obrien@BSDi.com>
3727 * emultempl/elf32.em: Only perform Linux ld hints processing when
3730 2001-01-07 Philip Blundell <philb@gnu.org>
3732 * ld.texinfo (Bug Reporting): Update email address for reports.
3734 2000-12-31 Nick Clifton <nickc@redhat.com>
3736 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3737 options by checking for a return value of '?' not -1.
3739 2000-12-28 Nick Clifton <nickc@redhat.com>
3741 * lexsup.c (struct ld_option): Add new enum value:
3743 (ld_options[]): Change -omagic, -output and -oformat options
3744 to be EXACTLY_TWO_DASHES.
3745 (OUTPUT_COUNT): Use ARRAY_SIZE.
3746 (parse_args): Change parameter 'argc' to unsigned.
3747 Place EXACTLY_TWO_DASHES options into new really_longopts
3749 If getopt_long_only fails, try calling getopt_long using the
3750 really_longopts array.
3751 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3754 * ldlex.h: Fix prototype of parse_args.
3756 * ld.texinfo: Document that long options starting with 'o'
3757 must be preceeded by two dashes. Change example of a single
3758 dashed long option from -oformat to -trace-symbol.
3760 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3762 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3763 (longopts[]): New --no-default-excludes option.
3764 (gld_${EMULATION_NAME}_list_options): Document.
3765 (gld_${EMULATION_NAME}_parse_args): Handle.
3767 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3769 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3770 whitespace, it breaks the K&R C preprocessor.
3772 2000-12-11 DJ Delorie <dj@redhat.com>
3774 * ld.texinfo: Add notes about --whole-archive and gcc.
3776 2000-11-18 Fred Fish <fnf@be.com>
3778 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3779 (ld_options): Entry for --allow-shlib-undefined.
3780 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3781 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3783 * ld.texinfo: Document new command line switch.
3785 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3787 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3788 .fixup is actually read/write.
3789 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3790 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3791 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3793 2000-12-11 Jan Hubicka <jh@suse.cz>
3795 * NEWS: Add note about x86_64 architecture.
3797 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3799 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3800 Set DWARF2 sections to a VMA of zero.
3802 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3804 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3806 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3807 (sparc*-*-rtems*): Switched from a.out to ELF.
3809 2000-11-30 Jan Hubicka <jh@suse.cz>
3811 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3812 (eelf_x86_64.c): New.
3813 * Makefile.in: Regenerate.
3814 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3815 * emulparams/elf_x86_64.sh: New.
3817 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3819 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3820 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3822 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3823 merging non-a.out sections into CONSTRUCTING.
3825 2000-11-28 Nick Clifton <nickc@redhat.com>
3827 * ld.1 (COPYING): Mention that the GNU Free Documentation
3828 License is present in the sources, but not the output, and
3829 also available from the GNU website.
3830 (GNU Free Documentation License): Comment out this section.
3832 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3834 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3837 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3839 * ld.1: Remove old date so it does not give the impression the manpage
3842 2000-11-24 Nick Clifton <nickc@redhat.com>
3844 * configure.tgt (xscale-coff): Add target.
3845 (xscale-elf): Add target.
3847 2000-11-24 Fred Fish <fnf@be.com>
3849 * ldmain.c (main): Remove redundant init of config.make_executable
3852 2000-11-15 Richard Henderson <rth@redhat.com>
3854 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3856 2000-11-14 Kazu Hirata <kazu@hxi.com>
3858 * scripttempl/h8300.sc: Fix formatting.
3859 * scripttempl/h8300h.sc: Likewise.
3860 * scripttempl/h8300s.sc: Likewise.
3862 2000-11-14 Denis Chertykov <denisc@overta.ru>
3864 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3866 2000-11-09 Philip Blundell <pb@futuretv.com>
3868 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3869 around orphan sections whose names can be represented in C.
3871 2000-11-07 Jim Wilson <wilson@redhat.com>
3873 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3874 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3876 2000-11-06 Nick Clifton <nickc@redhat.com>
3878 * ld.texinfo: Add GNU Free Documentation License.
3879 * ldint.texinfo: Add GNU Free Documentation License.
3880 * ld.1: Add GNU Free Documentation License.
3882 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3884 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3885 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3887 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3888 Move 2000-11-02 Makefile.in changes to this file.
3889 * Makefile.in: Regenerate.
3891 2000-11-03 Nick Clifton <nickc@redhat.com>
3893 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3894 constructors and destructors.
3895 * scripttempl/h8300h.sc: Ditto.
3896 * scripttempl/h8300s.sc: Ditto.
3897 * scripttempl/h8500.sc: Ditto.
3898 * scripttempl/h8500b.sc: Ditto.
3899 * scripttempl/h8500c.sc: Ditto.
3900 * scripttempl/h8500m.sc: Ditto.
3901 * scripttempl/h8500s.sc: Ditto.
3902 * scripttempl/v850.sc: Ditto.
3903 * scripttempl/w65.sc: Ditto.
3904 * scripttempl/z8000.sc: Ditto.
3906 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3908 * Makefile.in (e_i386_chaos.c): New rule.
3909 (ALL_EMULATIONS): Added e_i386_chaos.o.
3910 * emulparams/elf_i386_chaos.sh: New file.
3911 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3913 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3915 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3916 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3917 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3918 library path suffix.
3919 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3921 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3923 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3924 for consecutive sections.
3926 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3928 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3930 * ld.texinfo: Added notes about this new option.
3932 2000-10-16 Nick Clifton <nickc@redhat.com>
3934 * emultempl/pe.em (_after_open): Add tests of return values from
3935 bfd functions. Emit appropriate error messages if necessary.
3937 2000-10-13 Nick Clifton <nickc@redhat.com>
3939 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3940 local variables - they are not used, but leave in the call to
3941 bfd_canonicalize_symtab.
3942 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3943 pe_dll_search_prefix.
3945 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3947 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3948 (longopts): New --dll-search-prefix option.
3949 (gld_${EMULATION_NAME}_list_options): Document.
3950 (gld_${EMULATION_NAME}_parse_args): Handle.
3951 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3952 dynamically, search for a dll named '<prefix><basename>.dll'
3953 in preference to 'lib<basename>.dll' if --dll-search-prefix
3956 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3958 * ldlang.c (section_already_linked): Set kept_section instead of
3961 2000-10-10 Kazu Hirata <kazu@hxi.com>
3963 * deffile.h: Fix formatting.
3964 * lexsup.c: Likewise.
3967 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3969 * pe-dll.c (make_one): Do not generate code thunk for DATA
3971 (process_def_file): deduce DATA flag for auto-export sumbols.
3973 2000-10-09 Kazu Hirata <kazu@hxi.com>
3975 * ld.h: Fix formatting.
3976 * ldcref.c: Likewise.
3977 * ldctor.h: Likewise.
3978 * ldemul.c: Likewise.
3979 * ldemul.h: Likewise.
3980 * ldexp.c: Likewise.
3981 * ldexp.h: Likewise.
3982 * ldfile.c: Likewise.
3983 * ldfile.h: Likewise.
3984 * ldlang.c: Likewise.
3985 * ldlang.h: Likewise.
3986 * ldmain.c: Likewise.
3987 * pe-dll.c: Likewise.
3989 * pe-dll.c: Revert some formatting fixes.
3991 2000-10-08 Kazu Hirata <kazu@hxi.com>
3993 * pe-dll.c: Fix formatting.
3995 2000-10-05 Kazu Hirata <kazu@hxi.com>
3997 * ldlang.c: Fix formatting.
3999 2000-10-03 DJ Delorie <dj@redhat.com>
4001 * pe-dll.c (fill_edata): initialize entire block
4002 (make_one): fill in correct section.
4004 2000-10-03 Kazu Hirata <kazu@hxi.com>
4006 * ldexp.c: Fix formatting.
4008 2000-10-02 DJ Delorie <dj@redhat.com>
4010 * emultempl/pe.em (gld_*_after_open): detect case where there two
4011 import libraries for same dll; rename one to ensure proper link
4014 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4016 (generate_edata): fix typo
4018 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4020 * scripttempl/crisaout.sc (ENTRY): Now __start.
4021 (.text): Add default setting for __start.
4022 Remove CONSTRUCTORS handling.
4023 (/DISCARD/): Add .gnu.warning.*.
4024 * emulparams/crislinux.sh (ENTRY): Now __start.
4025 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4026 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4027 (ENTRY): Now __start.
4028 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4029 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4031 2000-09-29 Kazu Hirata <kazu@hxi.com>
4033 * deffile.h: Fix formatting.
4035 * ldcref.c: Likewise.
4036 * ldctor.c: Likewise.
4037 * ldctor.h: Likewise.
4038 * ldemul.c: Likewise.
4039 * ldemul.h: Likewise.
4040 * ldexp.c: Likewise.
4041 * ldexp.h: Likewise.
4042 * ldfile.c: Likewise.
4043 * ldfile.h: Likewise.
4044 * ldlang.c: Likewise.
4045 * ldlang.h: Likewise.
4046 * lexsup.c: Likewise.
4048 * pe-dll.c: Likewise.
4050 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4052 * pe-dll.c (process_def_file): Uninitialized data wasn't
4053 exported with --export-all-symbols switch.
4055 2000-09-28 DJ Delorie <dj@redhat.com>
4057 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4058 noname work properly.
4060 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4062 * ld.texinfo (HPPA ELF32): New section.
4064 * emultempl/hppaelf.em (group_size): New.
4065 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4066 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4067 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4068 options to prevent abbreviations matching.
4069 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4070 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4072 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4074 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4075 on the m68*-*-elf target. Make it support COFF input objects.
4077 2000-09-21 Kazu Hirata <kazu@hxi.com>
4079 * ldmain.c: Fix formatting.
4080 * ldmisc.c: Likewise.
4081 * ldver.c: Likewise.
4082 * ldwrite.c: Likewise.
4084 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4086 * ldwrite.c (clone_section): Silence gcc warnings.
4088 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4090 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4091 out of memory failure.
4093 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4094 (clone_section): Handle out of memory failures. Rename var to
4095 avoid c++ reserved word.
4097 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4099 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4100 stub_name param to stub_sec_name.
4101 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4103 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4105 * emultempl/m68kelf.em: New file.
4106 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4107 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4108 * Makefile.in: Regenerate.
4110 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4112 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4115 2000-09-13 Nick Clifton <nickc@redhat.com>
4117 * ldmain.c (multiple_definition): Disable relaxation if
4118 multiple symbol definitions are encountered - otherwise the
4119 linker could abort with an assertion failure.
4121 2000-09-10 Nick Clifton <nickc@redhat.com>
4123 * mri.c: Fix formatting.
4125 2000-09-07 H.J. Lu <hjl@gnu.org>
4127 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4128 * configure: Rebuild.
4130 2000-09-07 H.J. Lu <hjl@gnu.org>
4132 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4133 * Makefile.in: Rebuild.
4135 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4137 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4138 broken list handling. Create __start_SECNAME and __stop_SECNAME
4139 when no place-holder. Add some comments. Test both SEC_CODE and
4140 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4141 Handle case where no output section statement created.
4143 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4145 * configure.tgt (sh-*-linux*): Added.
4146 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4147 * Makefile.in: Rebuilt.
4148 * emulparams/shelf_linux.sh: New file.
4149 * emulparams/shlelf_linux.sh: New file.
4151 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4153 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4154 try shuffling sections when the orphan happens to be the place
4155 holder. Keep count of unique section names generated so we speed
4156 the search for a new name.
4158 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4160 * configure: Rebuilt with new libtool.m4.
4162 2000-09-05 Nick Clifton <nickc@redhat.com>
4164 * Makefile.in: Regenerate.
4165 * aclocal.m4: Regenerate.
4166 * configure: Regenerate.
4167 * config.in: Regenerate.
4168 * po/ld.pot: Regenerate.
4170 * ldint.texinfo: Remove CVS revision marker - it foils local
4173 * emultempl/ticoff.em: Remove extraneous comma.
4175 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4177 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4178 to stub section flags.
4179 (hppa_for_each_input_file_wrapper): New.
4180 (hppa_lang_for_each_input_file): New.
4181 (lang_for_each_input_file): Define to call above.
4182 (multi_subspace): New.
4183 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4184 (PARSE_AND_LIST_PROLOGUE): Define.
4185 (PARSE_AND_LIST_LONGOPTS): Define.
4186 (PARSE_AND_LIST_OPTIONS): Define.
4187 (PARSE_AND_LIST_ARGS_CASES): Define.
4188 (hppaelf_finish): Call elf32_hppa_set_gp.
4189 (hppaelf_set_output_arch): Remove.
4190 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4192 * emulparams/hppalinux.sh (ELFSIZE): Define.
4194 (OTHER_READONLY_SECTIONS): Define.
4196 (GENERATE_SHLIB_SCRIPT): Define.
4198 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4199 to const throughout. Change `void *' to `PTR' throughout.
4200 (lang_memory_default): Function is local to file, add `static'.
4202 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4203 (ehppalinux.c): Likewise.
4204 (earmelf.c): Likewise.
4205 (earmelf_linux.c): Likewise.
4206 (earmelf_linux26.c): Likewise.
4207 * Makefile.in: Regenerate.
4209 * ld.h (ld_config_type): Add unique_orphan_sections.
4210 * lexsup.c (OPTION_UNIQUE): Define.
4211 (ld_options): Add "--unique".
4212 (parse_args): Handle it.
4213 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4214 search for an existing output section if unique_orphan_sections is
4215 set. Make use of bfd_get_unique_section_name rather than
4216 duplicating code here.
4217 * ld.texinfo: Describe --unique.
4219 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4220 optional arg to split-by-file.
4221 (parse_args): Handle them.
4222 * ld.texinfo: Update description of these options.
4223 * ldwrite.c (clone_section): Pass in the section name. Replace
4224 local code with bfd_get_unique_section_name.
4225 (split_sections): Tidy code and comments. Use a list traversal
4226 more appropriate to the list construction. Handle cooked section
4227 sizes. Split when split_by_reloc reached rather than exceeded.
4228 Track section size and split when split_by_file reached. Fix
4229 link_order_tail (even though it's not used).
4230 (ldwrite): Modify condition for calling split_sections to suit
4231 changed split_by_reloc and split_by_file.
4232 * ldmain.c (main): Init config.split_by_reloc and
4233 config.split_by_file to -1.
4234 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4235 Change split_by_file to bfd_size_type.
4237 2000-09-02 Nick Clifton <nickc@redhat.com>
4239 * configure.in: Increase version number to 2.10.91.
4240 * NEWS: Mention new ability to support removal of duplicate DWARF2
4242 * configure: Regenerate.
4243 * aclocal.m4: Regenerate.
4244 * config.in: Regenerate.
4246 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4248 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4250 * scripttempl/elf32avr.sc: Ditto.
4251 * scripttempl/elfd10v.sc: Ditto.
4252 * scripttempl/elfd30v.sc: Ditto.
4253 * scripttempl/elfi370.sc: Ditto.
4254 * scripttempl/elfm68hc11.sc: Ditto.
4255 * scripttempl/elfm68hc12.sc: Ditto.
4256 * scripttempl/elfi386beos.sc: Ditto.
4257 * scripttempl/v850.sc: Ditto.
4259 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4261 * acinclude.m4: Include libtool and gettext macros from the
4263 * aclocal.m4, configure: Rebuilt.
4265 2000-08-25 Nick Clifton <nickc@redhat.com>
4267 * ldlang.c (open_output): When choosing the target for a
4268 particular endianness, do nothing if the target is not
4271 2000-08-25 H.J. Lu <hjl@gnu.org>
4273 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4274 check -rpath nor LD_RUN_PATH for cross link.
4275 * ld.texinfo: Document the change.
4277 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4279 * NEWS: Mention support for CRIS.
4281 2000-08-23 H.J. Lu <hjl@gnu.org>
4283 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4284 the current runpath list from bfd_elf_get_runpath_list ()
4287 2000-08-22 H.J. Lu <hjl@gnu.org>
4289 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4290 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4291 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4292 trace_file_tries is non-zero.
4293 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4294 if trace_file_tries is non-zero.
4296 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4299 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4301 * NEWS: Mention i860 support.
4303 2000-08-14 Andreas Schwab <schwab@suse.de>
4305 * scripttempl/elf.sc: Fix last change to use correct comment
4308 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4310 * scripttempl/elf.sc: Add a comment giving the correspondence
4311 between sections, per-datum sections, and linkonce sections. Make
4312 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4315 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4317 * emulparams/elf32_i860.sh: New file.
4318 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4319 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4320 (eelf32_i860.c): New rule.
4321 * Makefile.in: Regenerate.
4323 2000-08-10 Nick Clifton <nickc@cygnus.com>
4325 * emulparams/mipspe.sh (ENTRY): Add definition.
4327 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4329 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4332 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4334 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4335 the final size of .bss section.
4336 * scripttempl/elfm68hc12.sc: Likewise.
4338 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4340 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4341 gld${EMULATION_NAME}_parse_args for consistency. Combine
4342 lastoptind and prevoptind vars, and keep track of last optind.
4343 (gld_${EMULATION_NAME}_list_options): Rename to
4344 gld${EMULATION_NAME}_list_options.
4346 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4348 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4349 (i586-sco-sysv5uw7.1.0).
4351 2000-07-27 H.J. Lu <hjl@gnu.org>
4353 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4354 (PARSE_AND_LIST_PROLOGUE): New.
4355 (PARSE_AND_LIST_LONGOPTS): Likewise.
4356 (PARSE_AND_LIST_OPTIONS): Likewise.
4357 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4358 (PARSE_AND_LIST_EPILOGUE): Likewise.
4360 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4362 * emultempl/armelf.em: Elide functions common to elf32.em,
4363 ie. most of the file.
4364 (arm_elf_after_open): New. Do arm specific things then call
4365 gld${EMULATION_NAME}_after_open.
4366 (arm_elf_before_allocation): New. Call
4367 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4368 (PARSE_AND_LIST_PROLOGUE): Define.
4369 (PARSE_AND_LIST_SHORTOPTS): Define.
4370 (PARSE_AND_LIST_LONGOPTS): Define.
4371 (PARSE_AND_LIST_OPTIONS): Define.
4372 (PARSE_AND_LIST_ARGS_CASES): Define.
4373 (LDEMUL_AFTER_OPEN): Define.
4374 (LDEMUL_BEFORE_ALLOCATION): Define.
4375 (LDEMUL_BEFORE_PARSE): Define.
4376 (LDEMUL_FINISH): Define.
4378 * emultempl/hppaelf.em: Similarly zap most of this file.
4379 (hppaelf_add_stub_section): Prototype.
4380 (hppaelf_layaout_sections_again): Prototype.
4381 (hook_in_stub): Prototype.
4382 (LDEMUL_SET_OUTPUT_ARCH): Define.
4383 (LDEMUL_FINISH): Define.
4384 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4386 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4387 (EXTRA_EM_FILE): New.
4388 * emulparams/armelf_linux.sh: Likewise.
4389 * emulparams/armelf_linux26.sh: Likewise.
4390 * emulparams/hppalinux.sh: Likewise.
4391 * emulparams/hppaelf.sh: Likewise.
4394 * emultempl/elf32.em: Fix formatting.
4395 (EXTRA_EM_FILE): Source it.
4396 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4397 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4398 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4399 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4400 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4401 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4402 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4403 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4404 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4405 allow functions in this file to be overridden.
4406 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4408 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4410 * emultempl/elf32.em: Reorganize file.
4412 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4414 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4415 specific option to fit 64-bit executable in the lower
4416 31-bit address range. This is done by changing start
4417 address of .interp (the very first section of executable)
4418 and then setting EF_ALPHA_32BIT elf header flag.
4420 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4422 * emultempl/m68kcoff.em: New file.
4423 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4424 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4426 * Makefile.in: Regenerate.
4428 2000-07-20 H.J. Lu <hjl@gnu.org>
4430 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4431 and "disable-new-dtags" to stop getopt from treating -d/-e as
4432 abbreviations for these options.
4434 2000-07-20 H.J. Lu <hjl@gnu.org>
4436 * ld.texinfo: Add documentation for --disable-new-dtags and
4439 * ldmain.c (main): Initialize link_info.new_dtags to false.
4441 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4442 --disable-new-dtags and --enable-new-dtags.
4443 (gld_${EMULATION_NAME}_list_options): Likewise.
4445 2000-07-05 Kenneth Block <krblock@computer.org>
4447 * lexsup.c: Add optional style to demangle switch
4448 * ld.texinfo: Document optional style to demangle switch.
4450 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4452 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4454 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4455 Regenerate dependencies.
4456 * Makefile.in: Rebuild.
4457 * configure.tgt (cris-*-*): New target.
4458 * emulparams/crisaout.sh, emulparams/criself.sh,
4459 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4460 * po/POTFILES.in, po/ld.pot: Regenerate.
4462 2000-07-20 H.J. Lu <hjl@gnu.org>
4464 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4465 Print out ignored -z options.
4467 2000-07-19 H.J. Lu <hjl@gnu.org>
4469 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4470 (PARSE_AND_LIST_PROLOGUE): New.
4471 (PARSE_AND_LIST_LONGOPTS): Likewise.
4472 (PARSE_AND_LIST_OPTIONS): Likewise.
4473 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4475 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4477 * lexsup.c (ld_options): Comment out 'z'.
4478 (parse_args): Likewise.
4480 * emultempl/elf32.em: Include "elf/common.h".
4481 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4483 (gld_${EMULATION_NAME}_list_options): Likewise.
4485 * ld.texinfo: Add documentation for the recognized -z options.
4487 2000-07-19 H.J. Lu <hjl@gnu.org>
4489 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4490 bfd_elf_set_dt_needed_soname ().
4492 2000-07-18 DJ Delorie <dj@cygnus.com>
4494 * pe-dll.c (pe_dll_id_target): check object target name also
4496 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4498 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4499 ${INIT_END} if relocating.
4500 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4502 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4504 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4505 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4506 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4507 errors introduced by the old dynamic lib search order.
4509 2000-07-17 DJ Delorie <dj@cygnus.com>
4511 * pe-dll.c (process_def_file): auto-export data items also
4512 (pe_process_import_defs): also see if _imp_ form needed
4514 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4516 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4517 for dll import libraries
4519 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4521 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4522 gcc 2.95.2 and later.
4524 2000-07-11 Kazu Hirata <kazu@hxi.com>
4526 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4529 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4531 * ldemul.h (struct lang_input_statement_struct): Remove forward
4533 (struct search_dirs): Likewise.
4534 * ldfile.h (struct lang_input_statement_struct): Likewise.
4535 Protect file from multiple inclusion.
4536 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4537 declaration from macro to file scope.
4539 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4540 * ldgram.y: Likewise here.
4541 * ldlang.c: And here.
4542 * ldmain.c: And here.
4543 * mpw-elfmips.c: And here.
4544 * mpw-eppcmac.c: And here.
4545 * emultempl/aix.em: And here.
4546 * emultempl/armcoff.em: And here.
4547 * emultempl/armelf.em: And here.
4548 * emultempl/armelf_oabi.em: And here.
4549 * emultempl/beos.em: And here.
4550 * emultempl/elf32.em: And here.
4551 * emultempl/hppaelf.em: And here.
4552 * emultempl/linux.em: And here.
4553 * emultempl/lnk960.em: And here.
4554 * emultempl/pe.em: And here.
4555 * emultempl/sunos.em: And here.
4556 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4557 * mpw-idtmips.c: Ditto.
4558 * emultempl/generic.em: Ditto.
4559 * emultempl/gld960.em: Ditto.
4560 * emultempl/gld960c.em: Ditto.
4561 * emultempl/mipsecoff.em: Ditto.
4562 * emultempl/ticoff.em: Ditto.
4563 * emultempl/vanilla.em: Ditto.
4565 * pe-dll.c: Include ldfile.h
4566 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4568 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4569 arguments to bfd_elf32_size_dynamic_sections call.
4570 (gldelf32ebmip_place_orphan): Add missing arguments to
4571 lang_leave_output_section_statement call.
4573 2000-07-10 H.J. Lu <hjl@gnu.org>
4575 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4577 (strhash): Likewise.
4578 (compute_dll_image_base): Likewise.
4579 (pe_undef_found_sym): Likewise.
4580 (pe_undef_cdecl_match): Likewise.
4581 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4582 argument "arch" with ATTRIBUTE_UNUSED.
4584 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4586 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4588 From Ryan Bradetich <rbradetich@uswest.net>
4589 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4591 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4593 Changes to create multiple linker stubs, positioned immediately
4594 before the section where they are required.
4595 * emultempl/hppaelf.em: Include elf32-hppa.h.
4596 (stub_sec, file_chain): Delete.
4597 (hppaelf_create_output_section_statements): Don't make a stub
4599 (hook_stub_info): New struct.
4600 (hook_in_stub): New function.
4601 (hppaelf_add_stub_section): New function.
4602 (hppaelf_finish): Do nothing for relocateable links. Modify the
4603 call to elf32_hppa_size_stubs. Move code for updating section
4605 (hppaelf_layaout_sections_again): ..to here, a new function.
4607 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4608 broken list handling. Pass in a pointer to the list.
4609 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4611 (hppaelf_before_parse): Prototype.
4612 (hppaelf_set_output_arch): Prototype.
4613 (hppaelf_create_output_section_statements): Prototype.
4614 (hppaelf_delete_padding_statements): Prototype.
4615 (hppaelf_finish): Prototype.
4618 * emultempl/hppaelf.em: Include ctype.h.
4619 (struct orphan_save): New.
4620 (gld${EMULATION_NAME}_place_orphan): New.
4621 (output_rel_find): New.
4622 (hppaelf_get_script): Update from elf32.em.
4623 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4624 Change emulation_name field to "${EMULATION_NAME}". Add
4625 gld${EMULATION_NAME}_place_orphan.
4627 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4628 ehppalinux.o, sort it. Regenerate dependencies.
4629 (ehppalinux.c): Depend on hppaelf.em
4630 * Makefile.in: Regenerate.
4632 * configure.tgt: targ_emul=hppalinux for hppa*linux
4634 * emulparams/hppalinux.sh: New.
4635 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4637 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4639 * lexsup.c (parse_args): Copy section name.
4641 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4643 * emultempl/pe.em: institute the following search order for
4644 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4645 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4646 static lib (libfoo.a) if none of the above are found.
4648 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4650 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4651 (longopts): New --{enable,disable}-auto-image-base options.
4652 (gld_${EMULATION_NAME}_list_options): Document.
4653 (gld_${EMULATION_NAME}_parse): Handle.
4654 (strhash): New static function.
4655 (compute_dll_image_base): New static function.
4656 (gld_${EMULATION_NAME}_set_symbols): Use.
4658 2000-07-05 DJ Delorie <dj@redhat.com>
4662 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4664 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4665 * emulparams/elf32btsmip.sh: New file.
4666 * Makefile.am: Add traditional mips target.
4667 * Makefile.in: Rebuild.
4669 2000-07-01 H.J. Lu <hjl@gnu.org>
4671 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4672 automake to use YLWRAP.
4673 * Makefile.in: Rebuild.
4675 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4677 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4678 (CLEANFILES): Add DEPA.
4679 * Makefile.in: Regenerate.
4681 2000-06-30 Timothy Wall <twall@ppc>
4683 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4684 the page in the upper octet of the address.
4686 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4688 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4690 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4692 * NEWS: arm-elf does --gc-sections too.
4694 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4696 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4698 * Makefile.in: Regenerate.
4700 2000-06-21 H.J. Lu <hjl@gnu.org>
4702 * Makefile.am: Rebuild dependency.
4703 * Makefile.in: Rebuild.
4705 2000-06-20 H.J. Lu <hjl@gnu.org>
4707 * Makefile.am: Rebuild dependency.
4708 * Makefile.in: Rebuild.
4710 2000-06-20 Timothy Wall <twall@cygnus.com>
4712 * scripttempl/tic54xcoff.sc: New.
4713 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4714 * gen-doc.texi: Add flag for TI COFF.
4715 * ld.texinfo: Add documentation for TI COFF handling switches.
4716 * emultempl/ticoff.em: New. TI COFF handling.
4717 * configure.tgt: Add tic54x target.
4718 * Makefile.am: Add tic54x target.
4719 * Makefile.in: Ditto.
4721 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4723 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4724 checking for backslashes.
4726 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4728 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4730 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4732 * NEWS: Update list of targets supporting --gc-sections.
4734 * scripttempl/elf.sc: KEEP .eh_frame contents.
4735 * scripttempl/elfd30v.sc: Same here.
4737 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4739 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4741 * Makefile.in: Rebuild.
4742 * configure.tgt: Recognize m68hc12 and m68hc11.
4743 * scripttempl/elfm68hc12.sc: New file.
4744 * emulparams/m68hc12elfb: New emulation.
4745 * emulparams/m68hc12elf: New emulation.
4746 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4747 (includes a memory.x script to define the ROM and RAM banks).
4748 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4749 New configuration files for support of Motorola 68hc11
4751 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4753 * ldmain.c (main): Only change SEC_READONLY for final link.
4755 2000-06-13 H.J. Lu <hjl@gnu.org>
4757 * configure: Regenerate.
4759 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4761 * configure.in (VERSION): Update to show this is the CVS mainline.
4763 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4765 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4766 input objects to be ECOFF.
4767 (check_sections): einfo takes %B, not %P, to print a BFD name.
4769 2000-06-05 Michael Matz <matz@ifh.de>
4771 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4774 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4776 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4778 * emulparams/avr1200.sh (STACK): Define as 0.
4779 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4780 * emulparams/avr4433.sh (STACK): Likewise.
4781 * emulparams/avr44x4.sh (STACK): Likewise.
4782 * emulparams/avr85xx.sh (STACK): Likewise.
4783 * emulparams/avrmega103.sh (STACK): Likewise.
4784 * emulparams/avrmega161.sh (STACK): Likewise.
4785 * emulparams/avrmega603.sh (STACK): Likewise.
4786 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4787 (__stack): Define from ${STACK} for main().
4789 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4791 * Makefile.am: Update dependencies with "make dep-am"
4792 * Makefile.in: Regenerate.
4794 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4796 * ldmain.c: Include filenames.h.
4797 (set_scripts_dir): Support backslashes in program name.
4799 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4801 * ldmain.c (main): When deciding if ".text" section should be
4802 read-only, don't forget to reset SEC_READONLY because it
4803 could be already set.
4805 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4807 * ld.1: Add documentation for new command line option:
4808 --section-start <sectionname>=<sectionorg>
4809 This is a generic version of -Ttext etc. which accepts
4810 any section name as a parameter instead of just text/data/
4812 * ld.texinfo: More docs.
4814 * lexsup.c: (parse_args): Recognize new command line option.
4815 (ld_options): Add new option.
4817 2000-05-18 H.J. Lu <hjl@gnu.org>
4819 * lexsup.c (parse_args): `i' == `r', not `q'.
4821 2000-05-18 Jeffrey A Law (law@cygnus.com)
4823 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4825 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4826 Rick Gorton <gorton@scrugs.lkg.dec.com>
4828 Add support for '-q' == '--emit-relocs' switch.
4829 * ldmain.c (main): Default to false.
4830 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4831 * NEWS: Describe the emitrelocations switch.
4832 * ld.texinfo: Describe the emitrelocations switch.
4834 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4836 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4837 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4838 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4841 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4843 * lexsup.c (parse_args): Update the year in the copyright notice.
4845 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4847 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4848 Replace defines with those from intl/libgettext.h to quieten gcc
4851 2000-05-10 H.J. Lu <hjl@gnu.org>
4853 * ldlang.c (open_input_bfds): Don't load the same file within
4854 a group again if the whole archive has been loaded already.
4856 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4858 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4859 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4862 2000-05-01 Jim Wilson <wilson@cygnus.com>
4864 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4866 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4867 host "ia64-*-linux-gnu*".
4869 2000-04-29 Andreas Jaeger <aj@suse.de>
4871 * ld.h: Correctly check GCC version.
4873 2000-04-25 Jeffrey A Law (law@cygnus.com)
4875 * Makefile.am: Add PA64 support. Add missing dependencies for
4877 * Makefile.in: Rebuilt.
4878 * configure.tgt: Add PA64 support (currently disabled).
4880 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4882 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4883 (output_rel_find): New function.
4884 (hold_section, hold_use): Delete.
4885 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4886 hold_interp): Make local to place_orphan.
4887 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4888 rather than place_section to find possible previous use of orphan.
4889 Similarly find the place-holder output sections. Use returned
4890 value from lang_enter_output_section_statement rather than calling
4891 lang_output_section_statement_lookup.
4892 * emultempl/armelf.em: Same here.
4893 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4895 * ldlang.c (lang_enter_output_section_statement): Return output
4897 * ldlang.h (lang_enter_output_section_statement): Change
4900 * ldlang.h (lang_output_section_statement): Export it.
4901 * ldlang.c (lang_output_section_statement): Ditto.
4903 2000-04-24 Nick Clifton <nickc@cygnus.com>
4905 * ld.texinfo (Output Section Data): Add note that section data
4906 commands cannot appear outside of section directives.
4908 2000-04-2 Matthew Green <mrg@cygnus.com>
4910 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4912 2000-04-21 Richard Henderson <rth@cygnus.com>
4913 David Mosberger <davidm@hpl.hp.com>
4915 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4916 (eelf64_ia64.c): New rule.
4917 * Makefile.in: Rebuild.
4918 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4919 * emulparams/elf64_ia64.sh: New file.
4921 2000-04-21 Richard Henderson <rth@cygnus.com>
4923 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4925 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4927 * dep-in.sed: Match space at start of file name, not at end.
4929 2000-04-18 H.J. Lu <hjl@gnu.org>
4931 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4932 lang_leave_output_section_statement () after calling
4933 lang_enter_output_section_statement ().
4934 * emultempl/armelf.em: Likewise.
4936 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4938 * emultempl/elf32.em (struct orphan_save): Add section field.
4939 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4940 better order, and place first orphan section as we did before the
4941 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4942 Don't call make_bfd_section here, let wild_doit do the job for us.
4943 Don't build a statement list when we'll only throw it away.
4944 * emultempl/armelf.em: Ditto.
4945 * emultempl/pe.em: Similarly.
4947 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4949 * scripttempl/elfppc.sc: Remove.
4950 * emulparams/elf32ppc.sh: Use elf.sc.
4951 * emulparams/elf32lppc.sh: Use elf.sc.
4952 * emulparams/elf32ppclinux.sh: Use elf.sc.
4953 * emulparams/elf32ppcsim.sh: New file.
4954 * emulparams/elf32lppcsim.sh: New file.
4955 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4956 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4957 * Makefile.in: Regenerate.
4958 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4960 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4962 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4963 ~SEC_ALLOC sections too. Init start address of debug sections.
4964 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4965 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4966 Also set all relocateable section start addresses.
4968 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4970 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4971 Add new BSS_PLT variable for when .plt need not be contained in
4972 the file. Move _etext so that it is also after .fini, and provide
4973 both etext and _etext with a leading underscore. Mark the start
4976 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4978 * emultempl/elf32.em (struct orphan_save): New.
4979 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4980 hold_interp): Make them struct orphan_save.
4981 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4982 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4983 the end of the relevant section list. Also add associated section
4984 statements to the end of any previous orphan statements.
4985 * emultempl/armelf.em: Similarly.
4986 * emultempl/pe.em: Similarly.
4988 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4990 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4992 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4994 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4995 --enable-build-warnings option.
4996 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4997 * Makefile.in, configure: Re-generate.
4999 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5001 * po/ld.pot: Regenerate.
5003 * lexsup.c (help): Restore translated part of bug string.
5005 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5006 (DEP): Quote when passing vars to sub-make. Add warning message
5008 (DEP1): Rewrite for "gcc -MM".
5009 (CLEANFILES): Add DEP2.
5010 Update dependencies.
5011 * Makefile.in: Regenerate.
5013 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5015 * ld.h: #include "bin-bugs.h"
5016 * lexsup.c (help): Use REPORT_BUGS_TO.
5018 2000-03-27 Denis Chertykov <denisc@overta.ru>
5020 * configure.tgt (avr-*-*): New target support.
5021 * Makefile.am: Likewise.
5022 * scripttempl/elf32avr.sc: New script file.
5023 * emulparams/avr1200.sh: New file.
5024 * emulparams/avr23xx.sh: New file.
5025 * emulparams/avr4433.sh New file.
5026 * emulparams/avr44x4.sh New file.
5027 * emulparams/avr85xx.sh New file.
5028 * emulparams/avrmega103.sh New file.
5029 * emulparams/avrmega161.sh New file.
5030 * emulparams/avrmega603.sh New file.
5031 * Makefile.in: Regenerate.
5033 2000-03-09 Andreas Jaeger <aj@suse.de>
5035 * Makefile.am (check-DEJAGNU): Also unset LANG.
5036 * Makefile.in: Rebuild.
5038 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5040 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5043 2000-03-02 H.J. Lu <hjl@gnu.org>
5045 * emulparams/elf32mcore.sh: Include "getopt.h".
5047 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5049 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5051 2000-03-01 H.J. Lu <hjl@gnu.org>
5053 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5054 * emulparams/shpe.sh: Likewise.
5056 2000-03-01 Nick Clifton <nickc@cygnus.com>
5058 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5059 to unused parameters.
5061 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5062 functions only used by DLL code.
5063 (_place_orphan): Initialise 'dollar'.
5065 2000-03-01 H.J. Lu <hjl@gnu.org>
5067 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5068 indicate if the undefined symbol is a fatal error or not.
5069 Don't delete the output file if "fatal" is false.
5071 2000-02-29 H.J. Lu <hjl@gnu.org>
5073 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5074 Set LC_COLLATE and LC_ALL to null and export them. It is for
5075 sort which expects the C locale.
5076 Add $(LIBS) to all $(HOSTING_LIBS).
5077 * Makefile.in: Rebuild.
5079 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5081 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5082 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5083 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5084 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5085 find_potential_libraries.
5087 2000-02-28 Jim Blandy <jimb@redhat.com>
5089 * ldgram.y (exclude_name_list): Don't require a comma to separate
5090 list entries; the lexer considers commas to be valid part of a
5091 filename, so in something like `foo, bar' the comma is considered
5092 part of the first filename, `foo,'.
5093 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5095 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5097 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5098 host "i[3456]86-*-freebsdelf*".
5100 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5102 * scripttempl/i386go32.sc: Move misplaced semicolons.
5104 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5106 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5107 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5108 (eelf64hppa.c, ehppaelf.c): Remove targets.
5109 * Makefile.in: Rebuild.
5111 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5113 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5114 GNU/Linux/sparc, but keep the default as 32.
5116 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5117 it default if sparcv9 or sparc64.
5119 2000-02-24 Nick Clifton <nickc@cygnus.com>
5121 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5122 * Makefile.in: Regenerate.
5123 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5125 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5126 find_potential_libraries.
5127 * ldemul.c (ldemul_find_potential_libraries): New function.
5129 * ldfile.c (ldfile_open_file_search): Allow function to be
5131 (ldfile_open_file): Call ldemul_find_potential_libraries.
5132 * ldfile.h: Add prototype for ldfile_open_file_search.
5134 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5136 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5137 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5139 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5140 (gld_X_find_potential_libraries): New function. Search for
5141 libraries called "*.lib".
5143 * scripttempl/pe.sc: Add .pdata section.
5145 2000-02-23 Richard Henderson <rth@cygnus.com>
5147 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5148 Add and use memory regions.
5150 2000-02-23 Linas Vepstas (linas@linas.org)
5152 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5154 * Makefile.am: Add support for Linux/IBM 370.
5155 * configure.tgt: Likewise.
5157 * Makefile.in: Regenerate.
5159 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5161 * ldlang.c (print_input_section, print_data_statement,
5162 print_reloc_statement, print_padding_statement, insert_pad,
5163 size_input_section, lang_check_section_addresses,
5164 lang_size_sections, lang_do_assignments, lang_set_startof,
5165 lang_one_common): Change `opb' to unsigned.
5166 (lang_do_assignments): Also change `size' to unsigned.
5168 2000-02-16 Richard Henderson <rth@cygnus.com>
5170 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5172 2000-02-16 Timothy Wall <twall@cygnus.com>
5174 * mri.c (mri_draw_tree): Add default LMA region argument to call
5175 to lang_leave_output_section_statement.
5176 * ldlang.h: Update prototypes with LMA region arguments.
5177 * ldlang.c (lang_size_sections): Encapsulate region bounds
5178 checking in os_check_region call.
5179 (os_check_region): New function.
5180 (lang_output_section_statement_lookup): Initialize lma_region.
5181 (lang_leave_output_section_statement): Add LMA region argument.
5182 (lang_leave_overlay): Ditto.
5183 * ldgram.y: Handle LMA region syntax.
5184 * ld.texinfo (Output Section Description): Describe LMA region usage.
5185 * emultempl/armelf.em (gld$place_orphan): Add default value for
5186 lma region in call to lang_leave_output_section_statement.
5187 * emultempl/elf32.em (gld$place_orphan): Add default value for
5188 lma region in call to lang_leave_output_section_statement.
5189 * emultempl/pe.em (gld$place_orphan): Add default value for
5190 lma region in call to lang_leave_output_section_statement.
5193 2000-02-04 Timothy Wall <twall@redhat.com>
5195 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5196 octets when calculating section end addresses.
5198 2000-02-04 Timothy Wall <twall@redhat.com>
5200 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5202 2000-02-03 Timothy Wall <twall@redhat.com>
5204 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5206 * ldlang.c (print_input_section, print_data_statement,
5207 print_reloc_statement, print_padding_statement): Print target
5208 address values and section sizes as bytes, not octets.
5209 (insert_pad) Calculate padding size in octets, and adjust "dot"
5211 (size_input_section) Always adjust "dot" by bytes, not octets.
5212 (lang_check_section_addresses, lang_do_assignments) Adjust
5213 "dot" by bytes, not octets. Use the larger of the directive size
5214 or octets_per_byte for the number of octets actually allocated in
5216 (lang_set_startof) Make sure STARTOF returns a target address.
5217 (lang_one_common) Record size changes in octets.
5218 (lang_abs_symbol_at_end_of) Section end symbol's value is
5219 recorded in target bytes.
5220 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5221 to be clear about behavior when an octet is smaller than one byte.
5223 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5225 * ldcref.c (output_cref): Don't pass message strings to printf
5229 * ldmisc.c (vfinfo): Same here.
5232 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5234 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5235 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5236 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5237 Add missing NULL initialisers, and comments.
5239 2000-01-21 Nick Clifton <nickc@cygnus.com>
5241 * ldlang.c (lang_size_sections): Fix typo in comment.
5243 2000-01-18 H.J. Lu <hjl@gnu.org>
5245 * ldlang.c (lang_size_sections): Also update the current
5246 address of a region if the SEC_NEVER_LOAD bit is not set.
5248 2000-01-10 Philip Blundell <pb@futuretv.com>
5250 * configure.tgt (arm*-*-conix*): New target.
5252 2000-01-07 Nick Clifton <nickc@cygnus.com>
5254 * ld.texinfo (Options): Remind users to preceed linker command
5255 line switches with -Wl, (or whatever is appropriate) if it is
5256 being invoked by a comnpiler driver program.
5257 Fix description of the behaviour of the -n command line switch.
5259 2000-01-05 Catherine Moore <clm@cygnus.com>
5261 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5263 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5264 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5265 (exclude_name_list): New.
5266 ldlang.c (walk_wild_section): Support list of excluded files.
5267 (print_wild_statement): Likewise.
5268 (lang_add_wild): Likewise.
5269 * ldlang.h (lang_wild_statement_type): Likewise.
5270 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5272 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5274 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5275 (process_def_file): Use.
5276 (pe_dll_compat_implib): New variable.
5279 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5280 pe_dll_compat_implib.
5282 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5283 compat-implib options.
5284 (gld_${EMULATION_NAME}_list_options): List new options.
5285 (gld_${EMULATION_NAME}_parse_args): Handle.
5287 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5290 * deffilep.y (opt_name): Allow "." in name.
5292 For older changes see ChangeLog-9899
5298 version-control: never