1 2002-11-27 David O'Brien <obrien@FreeBSD.org>
3 * configure.host: Fix generic FreeBSD configuration entry.
5 2002-11-27 H.J. Lu <hjl@gnu.org>
7 * ld.texinfo: Add the missing `;' to sample version scripts.
9 2002-11-20 Alan Modra <amodra@bigpond.net.au>
11 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
13 2002-11-14 Egor Duda <deo@logos-m.ru>
15 * ldmain.c (main): Make runtime relocs disabled by default. Remove
16 assignment which has no effect.
17 * pe-dll.h (pe_create_import_fixup): Change prototype.
18 * pe-dll.c (make_runtime_pseudo_reloc): New function.
19 (pe_create_runtime_relocator_reference): Ditto.
20 (pe_create_import_fixup): Handle relocations with non-zero addends.
21 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
22 --disable-runtime-pseudo-reloc.
23 (make_import_fixup): Handle relocations with non-zero addends. Create
24 an external reference to _pei386_runtime_relocator symbol if at least
25 one pseudo reloc was created.
26 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
27 --disable-runtime-pseudo-reloc options.
29 2002-11-12 Earl Chew <earl_chew@agilent.com>
31 * ldlang.c (lang_add_section): Discard debugging sections that have
32 been marked SEC_EXCLUDE.
34 2002-11-12 Nick Clifton <nickc@redhat.com>
36 * configure.in (ALL_LINGUAS): Add da.
37 * configure: Regenerate.
38 * po/da.po: New Danish translation.
40 2002-11-12 Alan Modra <amodra@bigpond.net.au>
42 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
43 (LDEMUL_BEFORE_ALLOCATION): Define.
44 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
46 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
48 2002-11-11 Christopher Faylor <cgf@redhat.com>
50 * configure.tgt (LIB_PATH): Default to searching w32api directory under
53 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
55 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
56 of restricted auto-export libs.
58 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
60 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
61 creative library naming instances like, e.g., libstdc++-2.a.
63 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
65 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
66 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
68 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
70 * deffilep.y (def_lex): Handle '@' as first character of an ID.
71 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
72 (make_one): Don't prefix decorated fastcall symbols with '_'.
73 (pe_process_import_defs): Likewise.
74 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
75 symbols to cdecl names or vise-versa.
77 2002-10-13 Eric Kohl <ekohl@rz-online.de>
79 * pe-dll.c (process_def_file): Handle fastcall symbols when
80 generating undecorated aliases. Don't prefix decorated fastcall
82 (fill_exported_offsets): Don't prefix decorated fastcall symbols
85 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
87 * emultempl/aix.em: Use include <> for generated headers.
88 * emultempl/beos.em: Likewise.
89 * emultempl/elf32.em: Likewise.
90 * emultempl/pe.em: Likewise.
99 * ldwrite.c: Likewise.
100 * lexsup.c: Likewise.
102 * pe-dll.c: Likewise.
104 2002-10-23 Jakub Jelinek <jakub@redhat.com>
106 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
107 sections into .rel{,a}.dyn.
109 2002-10-23 Nick Clifton <nickc@redhat.com>
111 * lexsup.c (OPTION_NO_OMAGIC): Define.
112 (ld_options): Add "no-omagic" option.
113 (parse_args): Parse --no-omagic.
114 * ld.texinfo: Document --no-omagic.
115 * NEWS: Mention new option.
117 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
119 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
120 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
122 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
124 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
125 emulation name. Set LIB_PATH only for native tools, and
126 search the ABI-specific versions of NATIVE_LIB_DIRS before the
127 .../lib variants, not instead of them. Mostly copied from...
128 * emulparams/elf32ppc.sh: ... here. Fixed typo.
129 * emulparams/elf64bmip-defs.sh: Backed out.
130 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
131 * emulparams/elf64btsmip.sh: Likewise.
132 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
133 TEXT_DYNAMIC): Removed.
135 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
137 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
138 (GENERATE_SHLIB_SCRIPT): Set to yes.
139 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
140 * emulparams/elf32bmipn32.sh: here.
141 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
142 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
143 * emulparams/elf64bmip-defs.sh: New file. Extend
144 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
145 * emulparams/elf64bmip.sh: Bring in definitions from
147 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
149 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
150 * emulparams/elf64btsmip.sh: Bring in definitions from
152 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
153 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
155 2002-10-16 Jakub Jelinek <jakub@redhat.com>
157 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
158 (s390-*-linux*): Add elf64_s390 emulation if want64.
159 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
160 genscript.sh changes.
161 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
162 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
164 2002-10-15 Alan Modra <amodra@bigpond.net.au>
166 * ldlang.c (load_symbols): Revert last change.
168 2002-10-14 Alan Modra <amodra@bigpond.net.au>
170 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
172 (lang_reasonable_defaults): Don't compare against false.
173 (size_input_section): Likewise.
174 (lang_size_sections_1): Likewise.
175 (lang_do_assignments): Likewise.
176 (lang_add_output): Likewise.
178 * Makefile.am: Run "make dep-am".
179 * Makefile.in: Regenerate.
180 * ldver.c: #include "bfdver.h".
182 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
184 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
186 * scripttempl/elfm68hc12.sc: Likewise.
188 2002-10-11 Alan Modra <amodra@bigpond.net.au>
190 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
192 * ldgram.y (memory_spec): Provide empty action.
193 (section <NAME>): Likewise.
195 2002-10-10 Jakub Jelinek <jakub@redhat.com>
197 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
198 they have OUTPUT_FORMAT not matching actual output format.
199 * ldlang.c (lang_get_output_target): New function.
200 (open_output): Use it.
201 * ldlang.h (lang_get_output_target): New prototype.
203 2002-10-10 Alan Modra <amodra@bigpond.net.au>
205 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
206 when orphan is .rel, .rela when orphan is .rela.
207 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
208 first. Remove outsecname var.
210 2002-10-09 Richard Shann <richard.shann@superh.com>
211 Stephen Clarke <stephen.clarke@superh.com>
213 * Makefile.am: Add eshelf32_linux.o and
214 eshlelf32_linux.o, new emulations for sh64 Linux.
215 * Makefile.in: Regenerate.
216 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
217 * emulparams/shelf32_linux.sh: New file.
218 * emulparams/shlelf32_linux.sh: New file.
220 2002-10-08 H.J. Lu <hjl@gnu.org>
222 * ldlang.c (lang_file_exist): Removed.
223 (new_afile): Revert the last change.
224 * ldlang.h (lang_file_exist): Removed.
225 * lexsup.c (parse_args): Revert the last change.
227 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
229 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
231 (make_one): Create _nm_<symbol> for data only.
233 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
235 * ldlang.c (lang_file_exist): New function.
236 (new_afile): Abort if the filename to be added matches the linker
238 * ldlang.h: Add prototype for lang_file_exist.
239 * lexsup.c (parse_args): Abort if the output filename matches
240 one of the input filenames.
242 2002-10-02 Alan Modra <amodra@bigpond.net.au>
244 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
246 2002-09-30 Alan Modra <amodra@bigpond.net.au>
248 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
249 * scripttempl/elfm68hc11.sc: Likewise.
250 * scripttempl/elfm68hc12.sc: Likewise.
252 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
253 reloc sections just before .rel.plt/.rela.plt.
254 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
255 Only put loadable reloc sections in hold_rel.
257 2002-09-29 H.J. Lu <hjl@gnu.org>
259 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
261 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
263 From "Anita Kulkarni" <AnitaK@kpit.com>
264 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
267 2002-09-25 Alan Modra <amodra@bigpond.net.au>
269 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
271 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
272 SEGMENT_SIZE alignment.
273 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
274 (SEGMENT_SIZE): Define.
276 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
277 (fold_binary): Correct abs - non-abs case.
278 (fold_trinary): New. Split out from exp_fold_tree.
280 2002-09-24 Alan Modra <amodra@bigpond.net.au>
282 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
283 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
284 for start of .data, instead align up to 256M boundary.
285 * scripttempl/aix.sc: Likewise.
287 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
289 * scripttempl/i386go32.sc: Handle bss unique sections.
291 2002-09-21 Alan Modra <amodra@bigpond.net.au>
293 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
295 2002-09-17 Stan Cox <scox@redhat.com>
297 * emulparams/elf32bmipn32-defs.sh: New file.
298 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
299 * emulparams/elf32btsmipn32.sh: Likewise.
300 * emulparams/elf64bmip.sh: Likewise.
301 * emulparams/elf64btsmip.sh: Likewise.
303 2002-09-16 Bruno Haible <bruno@clisp.org>
305 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
307 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
310 2002-09-11 Nick Clifton <nickc@redhat.com>
312 * NEWS: New TI port supports both C4x and C3x series of DSPs.
314 * po/tr.po: Updated Turkish translation.
316 2002-09-06 Jeffrey A Law (law@redhat.com)
318 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
320 2002-09-02 Nick Clifton <nickc@redhat.com>
322 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
324 * emulparams/v850.sh (TEMPLATE_NAME): Define.
326 2002-08-30 Nick Clifton <nickc@redhat.com>
328 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
329 used. Change INSN to start at 0x01000000 and extend for
330 256K (ignoring holes). Start the STACK on a word aligned
332 (.rodata): Start it at the READONLY_START_ADDR.
334 2002-08-30 Alan Modra <amodra@bigpond.net.au>
336 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
338 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
340 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
341 added makefile targets for this file.
342 * Makefile.in: Regenerate.
343 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
344 * NEWS: Mention new port.
346 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
348 * emulparams/tic3xcoff.sh: New file.
349 * emulparams/tic4xcoff.sh: New file.
350 * scripttempl/tic3xcoff.sc: New file.
351 * scripttempl/tic4xcoff.sc: New file.
353 2002-08-28 Alan Modra <amodra@bigpond.net.au>
355 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
356 strtoul and strtoull with bfd_scan_vma.
357 (gld${EMULATION_NAME}_read_file): Likewise.
359 2002-08-28 Alan Modra <amodra@bigpond.net.au>
361 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
363 2002-08-27 Egor Duda <deo@logos-m.ru>
365 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
366 Add symbols for application to access them.
368 2002-08-27 Nick Clifton <nickc@redhat.com>
370 * emultempl/armelf.em: Revert this patch, it is not needed.
372 2002-08-22 Adam Nemet <anemet@lnxw.com>
374 2002-08-20 Dan Kegel <dank@kegel.com>
376 * configure.in: added --with-lib-path argument to ld's configure
378 * ld/NEWS: Document new switch.
379 * ld/README: Mention new switch.
380 * configure: Regenerate.
381 * Makefile.in: Regenerate.
384 2001-04-25 Christopher Faylor <cgf@cygnus.com>
386 * Makefile.in (LIB_PATH): Make configurable.
387 (GENSCRIPTS): Set LIB_PATH in environment.
388 * configure.in: Substitute LIB_PATH.
390 2002-08-22 Adam Nemet <anemet@lnxw.com>
392 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
393 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
394 depending on the type of the function.
395 (arm_elf_convert_thumb_symbol_to_address): New function.
397 2002-08-22 Graeme Peterson <gp@qnx.com>
399 * Makefile.am: Add esh{l}elf_nto.o files.
400 * Makefile.in: Regenerate.
401 * configure.tgt: Add support for sh-**-nto* targets.
402 * emulparams/shelf_nto.sh: New file.
403 * emulparams/shlelf_nto.sh: New file.
405 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
407 * ldlang.c (offsetof): Define if not defined.
409 2002-08-14 H.J. Lu <hjl@gnu.org>
411 * configure.tgt: Always enable 64bit emulations for 32bit
414 2002-08-13 Alan Modra <amodra@bigpond.net.au>
416 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
417 (MAXPAGESIZE): Set to 1.
419 * ld.h (ALIGN_N): Delete.
420 * ldexp.h (align_n): Declare.
421 * ldexp.c (align_n): New function.
422 (fold_binary): Use align_n instead of ALIGN_N.
423 (exp_fold_tree): Likewise.
424 * ldlang.c (lang_size_sections_1): Likewise.
425 (lang_one_common): Likewise.
426 * ld.texinfo (ALIGN): Remove power of 2 restriction.
428 2002-07-31 Graeme Peterson <gp@qnx.com>
430 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
431 * Makefile.am: Add eelf32{l}ppcnto.o files.
432 * Makefile.in: Regenerate.
433 * emulparams/elf32lppcnto.sh: New file.
434 * emulparams/elf32ppcnto.sh: New file.
436 2002-08-07 H.J. Lu <hjl@gnu.org>
438 * ld.texinfo: Document --no-undefined-version.
440 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
441 `script.' fields to 0.
443 * ldmain.c (main): Initialize the allow_undefined_version to
446 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
447 (ld_options): Add --no-undefined-version.
448 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
450 2002-08-07 Nick Clifton <nickc@redhat.com>
452 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
453 an interworking bfd if there are input bfds. (107501)
455 2002-08-06 Alan Modra <amodra@bigpond.net.au>
457 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
460 2002-08-01 Nick Clifton <nickc@redhat.com>
462 * emulparams/armelf.sh: Revert previous delta.
463 * scripttempl/elf.sc: Revert previous delta.
465 2002-07-31 H.J. Lu <hjl@gnu.org>
467 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
470 2002-07-31 H.J. Lu <hjl@gnu.org>
472 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
473 64bit BFD is selected.
475 2002-07-31 H.J. Lu <hjl@gnu.org>
477 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
478 if 64bit BFD is selected.
480 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
482 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
483 link_info.common_skip_ar_aymbols.
484 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
486 * ldmain.c (main): Initialize new field
487 link_info.common_skip_ar_aymbols.
489 2002-07-31 Adam Nemet <anemet@lnxw.com>
491 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
493 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
496 2002-07-31 Nick Clifton <nickc@redhat.com>
498 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
499 of the PDP-11 and 2.11BSD a.out support.
501 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
503 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
505 * Makefile.in: Regenerate.
506 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
507 n32 ABI emulations for these 64 bit targets.
508 * emulparams/elf32bmipn32.sh: Expand comment.
509 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
511 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
513 2002-07-30 Graeme Peterson <gp@qnx.com>
515 * configure.tgt: Add support for arm-*-nto target.
516 * Makefile.am: Add earmnto.o file.
517 * Makefile.in: Regenerate.
518 * NEWS: Mention port of ARM support to QNX.
519 * emulparams/armnto.sh: New file.
521 2002-07-30 Jakub Jelinek <jakub@redhat.com>
523 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
524 for relocatable link.
525 (lang_size_sections_1): Don't make .tbss zero size for relocatable
528 2002-07-26 Bernd Schmidt <bernds@redhat.com>
530 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
533 2002-07-25 Nick Clifton <nickc@redhat.com>
535 * po/sv.po: Updated Swedish translation.
536 * po/es.po: Updated Spanish translation.
537 * po/fr.po: Updated French translation.
539 2002-07-24 Nick Clifton <nickc@redhat.com>
541 * po/sv.po: Updated Swedish translation.
542 * po/es.po: Updated Spanish translation.
544 2002-07-23 Nick Clifton <nickc@redhat.com>
546 * po/fr.po: Updated French translation.
548 2002-07-20 Alan Modra <amodra@bigpond.net.au>
550 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
551 bomb on /DISCARD/ input section.
552 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
553 * emultempl/mmo.em (mmo_place_orphan): Likewise.
555 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
557 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
560 2002-07-16 Denis Chertykov <denisc@overta.ru>
561 Nick Clifton <nickc@redhat.com>
562 Frank Ch. Eigler <fche@redhat.com>
563 John Healy <jhealy@redhat.com>
565 * configure.tgt: Add support for ip2k-elf.
566 * Makefile.am: Add support for ip2k-elf.
567 * Makefile.in: Regenerate.
568 * emulparams/elf32ip2k.sh: New file.
569 * scripttempl/ip2k.sc: New file
570 * NEWS: Mention support for new port.
572 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
574 * NEWS: Add 'Changes in 2.13'.
576 2002-07-14 H.J. Lu <hjl@gnu.org>
578 * ld.texinfo: Document a .symver takes precedence over a
581 2002-07-12 Alan Modra <amodra@bigpond.net.au>
583 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
584 (COMMONPAGESIZE): Define.
586 2002-07-09 Alan Modra <amodra@bigpond.net.au>
588 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
590 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
592 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
593 powerpc-*-openbsd* and sparc64-*-openbsd*.
594 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
595 * Makefile.in: Regenerate.
596 * emulparams/hppaobsd.sh: New file.
598 2002-07-05 Alan Modra <amodra@bigpond.net.au>
600 * ldlang.c (print_wild_statement): Fix output formatting.
602 2002-07-04 Alan Modra <amodra@bigpond.net.au>
604 * ldlang.c: (strip_excluded_output_sections): New function.
605 (lang_process): Call it.
606 (lang_size_sections_1): Revert 2002-06-10 change.
608 2002-07-03 Alan Modra <amodra@bigpond.net.au>
610 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
612 * Makefile.in: Regenerate.
614 2002-07-02 Alan Modra <amodra@bigpond.net.au>
616 * ldfile.c (ldfile_try_open_bfd): Formatting.
618 * ldmisc.c (demangle): Move so that it doesn't intrude between
619 vfinfo comment and body. Add comment.
621 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
623 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
625 2002-07-01 Alan Modra <amodra@bigpond.net.au>
627 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
628 * ldlang.c (entry_sym): Likewise.
629 (ldlang_undef_chain_list_type): Likewise.
630 (lang_finish): Adjust references to entry_symbol.
631 (lang_add_entry): Likewise.
632 (lang_gc_sections): Use link_info.gc_sym_list.
633 (lang_process): Set link_info.gc_sym_list.
634 * ldlex.l: Include bfdlink.h.
635 * ldmain.c (main): Init link_info.gc_sym_list.
636 * emultempl/aix.em: Adjust references to entry_symbol.
637 * emultempl/armcoff.em: Likewise.
638 * emultempl/armelf.em: Likewise.
639 * emultempl/pe.em: Likewise.
640 * emultempl/ppc64elf.em (ppc_after_open): New function.
641 (LDEMUL_AFTER_OPEN): Define.
642 * emulparams/elf64ppc.sh: KEEP .opd sections.
644 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
646 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
647 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
648 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
649 (EEPROM_START_ADDR): Define.
650 (EEPROM_MEMORY): Define.
651 * emulparams/m68hc12elf.sh: Likewise.
652 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
653 section to put soft registers in .page0.
654 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
656 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
658 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
659 section. Add ${RELOCATING-0}.
661 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
663 * emulparams/shelf.sh (STACK_ADDR): Don't define.
664 (OTHER_SECTIONS): Define.
665 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
666 (OTHER_SECTIONS): Undef.
668 2002-06-26 Alan Modra <amodra@bigpond.net.au>
670 * ldmisc.c (demangle): Restore dots stripped from sym name.
672 2002-06-25 H.J. Lu <hjl@gnu.org>
674 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
675 * Makefile.in: Regenerated.
677 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
679 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
680 the size of attached object files, to allow make the object files
681 available via FTP or HTTP and to mention that the mail will be
682 sent to a mailing list.
684 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
686 * ld/configure.host (romp): Drop support.
688 2002-06-18 Chris Demetriou <cgd@broadcom.com>
690 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
691 section flags for SEC_DATA, rather than for SEC_CODE being unset.
693 2002-06-18 Chris Demetriou <cgd@broadcom.com>
695 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
696 format specifier used to print BFD name.
698 2002-06-18 Dave Brolley <brolley@redhat.com>
700 From Catherine Moore, Michael Meissner, Jim Blandy:
701 * emulparams/elf32frv.sh: New file.
702 * configure.tgt: Support frv-*-*.
703 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
704 (eelf32frv.c): New target.
706 2002-06-17 Tom Rix <trix@redhat.com>
708 * emultempl/elf32.em: gld*_get_script: Check for
709 GENERATE_COMBRELOC_SCRIPT.
710 * scripttempl/elfd10v.sc : Fix STACK and INSN.
711 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
713 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
715 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
717 2002-06-12 H.J. Lu <hjl@gnu.org>
719 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
720 false if xvec doesn't match.
722 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
724 * ldlang.c (lang_size_sections_1): Skip removed output sections.
726 2002-06-08 Alan Modra <amodra@bigpond.net.au>
728 * ldexp.c: Replace CONST with const.
729 * ldfile.c: Likewise.
730 * ldfile.h: Likewise.
733 * pe-dll.h: Likewise.
735 2002-06-07 Alan Modra <amodra@bigpond.net.au>
737 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
739 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
741 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
742 to -1 == implicit enable.
743 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
744 initialize link_info.pei386_auto_import to -1 == implicit
746 (gld_${EMULATION_NAME}_parse_args): When processing
747 --enable-auto-import and --disable-auto-import options, use
748 '1' and '0' instead of 'true' and 'false'.
749 (pe_find_data_imports): Only issue message about auto-import
750 when the feature is implicitly enabled. Downgrade message to
751 informational instead of warning.
753 2002-06-07 Alan Modra <amodra@bigpond.net.au>
755 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
757 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
759 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
760 HOSTING_CRT0 and HOSTING_LIBS.
762 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
764 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
766 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
768 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
769 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
771 2002-06-05 Alan Modra <amodra@bigpond.net.au>
773 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
774 SEC_EXCLUDE sections when doing a relocatable link.
776 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
778 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
779 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
780 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
781 (eshlelf64_nbsd.c): New rules.
782 * Makefile.in: Regenerate.
783 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
784 (sh64-*-netbsd*): New targets.
785 * emulparams/shelf32_nbsd.sh: New file.
786 * emulparams/shelf64_nbsd.sh: New file.
787 * emulparams/shlelf32_nbsd.sh: New file.
788 * emulparams/shlelf64_nbsd.sh: New file.
790 2002-06-04 Alan Modra <amodra@bigpond.net.au>
792 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
794 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
796 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
797 C++ constructors/destructors, loosely based on the m68hc11 port.
799 2002-05-31 Alan Modra <amodra@bigpond.net.au>
801 * Makefile.in: Regenerate.
802 * aclocal.m4: Regenerate.
803 * config.in: Regenerate.
804 * configure: Regenerate.
806 2002-05-31 Graeme Peterson <gp@qnx.com>
808 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
809 (ei386nto.c): Add rule.
810 * Makefile.in: Regenerate.
811 * configure.tgt: Add i[3456]86-*-nto-qnx*.
812 * emulparams/i386nto.sh: New file.
814 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
816 * NEWS: Add entry for VAX ELF support.
818 2002-05-29 Matt Thomas <matt@3am-software.com>
819 Jason Thorpe <thorpej@wasabisystems.com>
821 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
823 (evaxnbsd.c): New rules.
824 * Makefile.in: Regenerate.
825 * configure.tgt (vax-*-netbsdelf*)
827 (vax-*-netbsd*): New targets.
828 * emulparams/elf32vax.sh: New file.
829 * emulparams/vaxnbsd.sh: New file.
831 2002-05-29 Adam Nemet <anemet@lnxw.com>
833 * emultempl/armelf.em (arm_elf_after_open): Don't determine
834 bfd_for_interwork, instead add glue sections to each input bfd.
835 (bfd_for_interwork): New global.
836 (arm_elf_set_bfd_for_interworking): New function.
837 (arm_elf_before_allocation): Use it.
839 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
841 * Makefile.am: Add DLX make target.
842 * configure.tgt: Add DLX configuration.
843 * Makefile.in: Regenerate.
844 * emulparams/elf32_dlx.sh: New file
845 * scripttempl/dlx.sc: New file
847 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
849 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
850 * Makefile.in: Regenerate.
851 * emulparams/elf_chaos.sh: Use elf_chaos script.
852 * scripttempl/elf_chaos.sc: New file.
854 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
856 * ldlang.c (lang_size_sections_1): Move check for conflicting load
857 addresses and regions from here...
858 (lang_get_regions): ...to this new function.
859 (lang_leave_output_section_statement): Use lang_get_regions.
860 (lang_leave_overlay): Likewise.
861 * mri.c (mri_draw_tree): Pass null as last argument to
862 lang_leave_output_section_statement.
863 * emultempl/elf32.em (gld*_place_orphan): Likewise.
864 * emultempl/mmo.em (mmo_place_orphan): Likewise.
865 * emultempl/pe.em (gld*_place_orphan): Likewise.
867 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
869 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
871 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
873 * ldemul.c: Fix formatting.
874 * ldfile.c: Likewise.
875 * pe-dll.c: Likewise.
876 * pe-dll.h: Likewise.
878 2002-05-25 Alan Modra <amodra@bigpond.net.au>
880 * ldlang.c (lang_process): Formatting, grammar.
882 * ldlex.l: Use #include "" instead of <> for local header files.
884 2002-05-24 TAMURA Kent <kent@netbsd.org>
886 * configure.tgt: Add a target for i386-netbsdpe.
888 2002-05-23 Jakub Jelinek <jakub@redhat.com>
890 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
891 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
892 output section if necessary. Handle .tbss.
893 (lang_size_sections): Clear _raw_size for .tbss section
894 (it allocates space in PT_TLS segment only).
895 * ldwrite.c (build_link_order): Build link order for .tbss too.
897 2002-05-23 Alan Modra <amodra@bigpond.net.au>
899 * configure.in: Correct spelling of AC_PREREQ.
901 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
903 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
905 (autofilter_objlist): Add crtbegin.o, crtend.o.
907 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
909 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
910 (longopts): Add new option --exclude-libs.
911 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
912 (gld_${EMULATION_NAME}_parse_args): Use it.
913 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
914 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
916 (pe_dll_add_excludes): Set excludes->type.
917 (auto_export): Add new variable libname and set to archive basename if
918 abfd. Use it when filtering default and user-specified libarary
919 excludes. Let string "ALL" mean all libs when filtering user-specified
921 * ld.texinfo: Document --exclude-libs.
923 2002-05-22 Alan Modra <amodra@bigpond.net.au>
925 * ldemul.c (ldemul_new_vers_pattern): New function.
926 * ldemul.h (ldemul_new_vers_pattern): Declare.
927 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
928 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
929 * emultempl/ppc64elf.em (dotsyms): New static var.
930 (gld${EMULATION_NAME}_new_vers_pattern): New function.
931 (LDEMUL_NEW_VERS_PATTERN): Define.
932 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
933 (PARSE_AND_LIST_LONGOPTS): Likewise.
934 (PARSE_AND_LIST_ARGS_CASES): Handle them.
935 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
937 * emultempl/armcoff.em: Likewise.
938 * emultempl/armelf_oabi.em: Likewise.
939 * emultempl/beos.em: Likewise.
940 * emultempl/elf32.em: Likewise.
941 * emultempl/generic.em: Likewise.
942 * emultempl/gld960.em: Likewise.
943 * emultempl/gld960c.em: Likewise.
944 * emultempl/linux.em: Likewise.
945 * emultempl/lnk960.em: Likewise.
946 * emultempl/m68kcoff.em: Likewise.
947 * emultempl/mipsecoff.em: Likewise.
948 * emultempl/pe.em: Likewise.
949 * emultempl/sunos.em: Likewise.
950 * emultempl/ticoff.em: Likewise.
951 * emultempl/vanilla.em: Likewise.
953 2002-05-22 Alan Modra <amodra@bigpond.net.au>
955 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
956 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
957 (LIB_SEARCH_DIRS): No need to use "tr".
958 (COMPILE_IN): Only set for native targets.
959 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
960 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
961 * configure.tgt (powerpc*): Set tdir_*.
962 (powerpcle*): Correct targ_extra_emuls.
963 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
964 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
966 2002-05-22 Alan Modra <amodra@bigpond.net.au>
968 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
969 calling lang_add_entry.
971 2002-05-21 H.J. Lu (hjl@gnu.org)
973 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
975 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
977 * ld.texinfo: Updated for --allow-multiple-definition and
980 * ldmain.c (main): Initialize the allow_multiple_definition
983 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
984 (ld_options): Add --allow-multiple-definition.
985 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
987 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
989 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
990 (earmelfb_nbsd.c): New rule.
991 * Makefile.in: Regenerate.
992 * configure.tgt (armeb-*-netbsdelf*): New target.
993 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
994 (arm-*-netbsd*): Likewise.
995 * emulparams/armelfb_nbsd.sh: New file.
997 2002-05-18 Tom Rix <trix@redhat.com>
999 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1002 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1004 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1005 * Makefile.in: Regenerate.
1006 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1008 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1010 * emulparams/avr1.sh: New file.
1011 * emulparams/avr2.sh: New file.
1012 * emulparams/avr3.sh: New file.
1013 * emulparams/avr4.sh: New file.
1014 * emulparams/avr5.sh: New file.
1015 * scripttempl/avr.sc: New file.
1017 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1019 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1020 (lang_place_orphans): Abort if just_syms_flag.
1022 2002-05-10 Tom Rix <trix@redhat.com>
1024 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1025 architecture and machine information in the output bfd.
1026 (gld*_before_parse): Remove old arch and machine code.
1027 (choose_target): Rename to gld*_choose_target.
1028 (rtld): Change type to int.
1029 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1030 objects in XCOFF archives.
1031 * ldfile.h: Update copyright date.
1033 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1035 * ldmain.c (main): Enable -z combreloc by default.
1037 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1039 * Makefile.am: Honour DESTDIR.
1040 * Makefile.in: Regenerate.
1042 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1044 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1045 (lang_enter_overlay): Remove the last two parameters.
1046 (lang_leave_overlay): Take them here instead.
1047 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1048 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1049 than lang_enter_overlay.
1050 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1051 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1052 (lang_size_sections_1): Evaluate it.
1053 (lang_leave_output_section_statement): Rework LMA lookup.
1054 (overlay_lma, overlay_nocrossrefs): Remove.
1055 (lang_enter_overlay): Remove LMA and crossref arguments.
1056 (lang_enter_overlay_section): Don't set the LMA here.
1057 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1058 assignment to the last section's update_dot_tree. Unconditionally
1059 use the load and run-time regions specified in the OVERLAY statement.
1060 Likewise the first section's LMA. Only set the other sections' LMAs
1061 when no load region is given.
1063 2002-05-06 Nick Clifton <nickc@redhat.com>
1065 * po/sv.po: New translation.
1067 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1069 * emultempl/hppaelf.em (build_section_lists): New function.
1070 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1071 and build_section_lists.
1073 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1075 * ld.h: Fix formatting.
1076 * ldexp.c: Likewise.
1077 * ldfile.c: Likewise.
1078 * ldlang.c: Likewise.
1079 * ldmain.c: Likewise.
1080 * lexsup.c: Likewise.
1081 * pe-dll.c: Likewise.
1083 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1085 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1086 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1087 (build_section_lists): Do output_section tests here.
1089 2002-04-30 Tom Rix <trix@redhat.com>
1091 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1093 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1095 Long branch stubs, multiple stub sections.
1096 * emultempl/ppc64elf.em: Include ldctor.h.
1097 (stub_file): New var.
1098 (group_size): New var.
1099 (ppc_create_output_section_statements): New function.
1100 (struct hook_stub_info): New.
1101 (hook_in_stub): New function.
1102 (ppc_add_stub_section): New function.
1103 (ppc_layout_sections_again): New function.
1104 (build_section_lists): New function.
1105 (gld${EMULATION_NAME}_finish): Rewrite.
1106 (real_func): New var.
1107 (ppc_for_each_input_file_wrapper): New function.
1108 (ppc_lang_for_each_input_file): New function.
1109 (lang_for_each_input_file): Define.
1110 (PARSE_AND_LIST_PROLOGUE): Define.
1111 (PARSE_AND_LIST_LONGOPTS): Define.
1112 (PARSE_AND_LIST_OPTIONS): Define.
1113 (PARSE_AND_LIST_ARGS_CASES): Define.
1114 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1116 2002-04-30 Tom Rix <trix@redhat.com>
1118 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1119 -blibpath, -bnolibpath support.
1121 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1123 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1124 (eelf32ppcwindiss.c): New target.
1125 * Makefile.in: Regenerated.
1126 * configure.tgt: Add support for powerpc-*-windiss.
1127 * emulparams/elf32ppcwindiss.sh: New file.
1129 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1131 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1132 * ldexp.c (exp_print_token): Add "infix_p" argument.
1133 (exp_print_tree): Update accordingly.
1135 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1137 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1138 * Makefile.in: Regenerate.
1139 * mpw-elfmips.c: Delete.
1140 * mpw-eppcmac.c: Delete.
1141 * mpw-esh.c: Delete.
1142 * mpw-idtmips.c: Delete.
1144 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1146 * emulparams/shelf32.sh (MACHINE): Now sh5.
1148 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1150 * ldgram.y: Fix syntax warning.
1152 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1154 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1155 to prevent "-n" from being taken as an abbreviation for
1156 "--no-pipeline-knowledge".
1158 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1160 * ldlang.c (lang_size_sections_1): Don't complain about
1161 SEC_NEVER_LOAD sections having no memory region specified.
1163 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1165 2002-04-07 matthew green <mrg@redhat.com>
1167 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1169 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1171 * dep-in.sed: Cope with absolute paths.
1172 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1174 * Makefile.in: Regenerate.
1176 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1178 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1180 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1182 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1183 is smaller than maximum, round dot up to common page boundary.
1185 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1187 * configure.host: Set up for generic hosts first, then tweak as
1188 necessary in more specific targets.
1189 (HOSTING_LIBS): Include libgcc_eh.a if found.
1191 2002-03-23 Andreas Jaeger <aj@suse.de>
1193 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1195 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1197 * Makefile.am: Run "make dep-am".
1198 * Makefile.in: Regenerate.
1200 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1202 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1204 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1206 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1207 add the symbol to the linker hash table immediately.
1208 (lang_place_undefineds): Split symbol creation out..
1209 (insert_undefined): ..to here.
1211 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1213 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1214 the contents of the buffer returned from basename function will are
1215 getting overwritten while still being used.
1217 2002-03-18 Jan Hubicka <jh@suse.cz>
1218 Andreas Jaeger <aj@suse.de>
1219 Andreas Schwab <schwab@suse.de>
1221 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1222 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1223 set libraries to default to lib64 paths.
1225 2002-03-18 Tom Rix <trix@redhat.com>
1227 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1228 * configure.tgt : Same.
1229 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1230 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1231 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1232 emulation parameters for better -b32, -b64 support.
1233 * emulparms/aixrs6.sh : Same.
1234 * emulparms/ppcmacos.sh : Same.
1235 * emultempl/aix.em (choose_target) : Use new emulation parameters
1236 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1237 * Makefile.in : Regenerate.
1239 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1241 * po/fr.po: Updated version.
1243 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1245 * ldmain.c (main): Move .text readonly flag fudges from here..
1246 * ldlang.c (lang_process): ..to here.
1248 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1250 * ldlang.c (lang_check): Remove the word size check added in last
1251 change. Treat emitrelocations case as for relocatable links.
1253 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1255 * po/fr.po: Updated version.
1257 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1259 * ldlang.c (lang_check): Do relocatable link checks first, so that
1260 warn_mismatch can't override. Check compatible and word size too.
1262 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1264 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1266 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1268 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1271 2002-03-04 H.J. Lu <hjl@gnu.org>
1273 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1274 .fini_array in the data segment.
1276 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1278 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1280 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1282 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1283 .init_array, and .fini_array.
1285 2002-02-20 Andreas Schwab <schwab@suse.de>
1287 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1288 .IA64_unwind* in a relocatable link.
1290 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1292 * NEWS: Mark 2.12 branch.
1294 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1296 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1297 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1299 2002-02-18 Tom Rix <trix@redhat.com>
1301 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1302 (gld*_before_allocation): Same.
1303 (gld*_create_output_section_statements): Generate
1304 __rtinit if run time linking. Add librtl.a to the link.
1305 (gld*_read_file): Clean.
1307 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1309 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1311 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1313 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1314 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1315 and eelf64alpha_fbsd.
1316 * Makefile.in: Regenerate.
1317 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1318 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1319 use a FreeBSD-specific emulation rather than the psABI one.
1320 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1321 for all FreeBSD ELF systems.
1322 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1324 * emulparams/elf32ppc_fbsd.sh: Likewise.
1325 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1326 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1327 * emulparams/elf64alpha_fbsd.sh: Likewise.
1328 * emulparams/elf_i386_fbsd.sh: Likewise.
1329 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1331 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1333 * po/tr.po: Updated version.
1335 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1337 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1340 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1342 * emultempl/mmo.em (mmo_after_open): Don't call
1343 _bfd_mmix_check_all_relocs when producing ELF output.
1345 2002-02-15 Richard Henderson <rth@redhat.com>
1347 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1348 definition. Emit a unop+nop pair.
1350 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1352 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1353 for presence of .MMIX.reg_contents.linker_allocated before early
1356 * NEWS: Mention support for MMIX.
1358 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1360 Support arbitrary length fill patterns.
1361 * ld.texinfo (Output Section Fill): Describe fill expressions.
1362 (FILL): Refer to the above.
1363 * ldexp.h (etree_value_type): Add "str" field.
1364 (union etree_union): Add "str" to "value" struct.
1365 (exp_bigintop): Declare.
1366 (exp_get_fill): Declare.
1367 * ldexp.c: Include "safe-ctype.h".
1368 (exp_intop): Set value.str to NULL.
1369 (exp_bigintop): New function.
1370 (new_rel): Pass in "str", and set new.str from it.
1371 (new_rel_from_section): Set new.str to NULL.
1372 (fold_name): Adjust calls to new_rel.
1373 (exp_fold_tree): Likewise.
1374 (exp_get_fill): New function.
1375 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1376 (INT): Returns a "bigint". Adjust all code handling INTs.
1377 (fill_opt): Returns a "fill".
1378 (fill_exp): Split out of fill_opt, use for FILL.
1379 * ldlang.h (struct _fill_type): New.
1380 (fill_type): Move typedef to ldexp.h.
1381 (lang_output_section_statement_type): "fill" is now a pointer.
1382 (lang_fill_statement_type): Likewise.
1383 (lang_padding_statement_type): Likewise.
1384 (lang_add_fill): Now takes a "fill_type *" param.
1385 (lang_leave_output_section_statement): Likewise.
1386 (lang_do_assignments): Likewise.
1387 (lang_size_sections): Likewise.
1388 (lang_leave_overlay_section): Likewise.
1389 (lang_leave_overlay): Likewise.
1390 * ldlang.c: Include ldgram.h after ldexp.h.
1391 (lang_output_section_statement_lookup): Adjust for fill_type change.
1392 (print_fill_statement): Likewise.
1393 (print_padding_statement): Likewise.
1394 (insert_pad): Now takes a "fill_type *" arg.
1395 (size_input_section): Likewise.
1396 (lang_size_sections_1): Likewise.
1397 (lang_size_sections): Likewise.
1398 (lang_do_assignments): Likewise.
1399 (lang_add_fill): Likewise.
1400 (lang_leave_output_section_statement): Likewise.
1401 (lang_leave_overlay_section): Likewise.
1402 (lang_leave_overlay): Likewise.
1403 Adjust all callers of the above function.
1404 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1405 starting with "0X" as well as "0x". Return bigint.str for hex
1406 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1407 Always use base 16 for numbers starting with "$".
1408 * ldmain.c: Include ldgram.h after ldexp.h.
1409 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1410 of bfd_fill_link_order.
1411 * pe-dll.c: Adjust lang_do_assignments calls.
1412 * emultempl/elf32.em: Likewise.
1413 * emultempl/hppaelf.em: Likewise.
1414 * emultempl/ppc64elf.em: Likewise.
1415 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1416 lang_add_assignment call.
1417 * emultempl/pe.em: Likewise.
1419 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1421 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1422 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1423 the pattern in question is not a regexp.
1424 * ldlang.c: Likewise.
1425 * ldlang.h: Likewise.
1426 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1428 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1430 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1431 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1432 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1433 * ldexp.c (exp_data_seg): New variable.
1434 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1435 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1436 (exp_fold_tree): Handle DATA_SEGMENT_END.
1437 Pass allocation_done when recursing instead of hardcoding
1438 lang_allocating_phase_enum.
1439 * ldexp.h (exp_data_seg): New.
1440 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1441 (lang_size_sections): New.
1442 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1443 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1444 if COMMONPAGESIZE is defined.
1445 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1446 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1447 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1448 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1449 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1452 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1454 * Makefile.in: Regenerate.
1456 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1458 * lexsup.c: Remove strtoul declaration.
1460 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1462 * ldmain.c: Add prototype for main ().
1463 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1464 * emultempl/lnk960.em (lnk960_choose_target): Function should
1467 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1469 * ldlang.c (entry_section): New initialised variable.
1470 (lang_finish): Use it.
1471 * ldlang.h (entry_section): Declare.
1472 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1473 entry_section to ".opd".
1475 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1477 * ld.texinfo (Options): Add back in -nostdlib documentation,
1478 which had been inadvertently removed.
1480 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1482 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1483 register section vma to a sane value after emitting error. Make
1484 fatal conditions cause program exit when emitting message.
1486 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1488 * configure.tgt: Add or32-*-rtems target.
1490 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1492 Contribute sh64-elf.
1493 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1494 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1495 in OTHER_RELOCATABLE_SECTIONS.
1496 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1497 * emulparams/shelf32.sh (STACK_ADDR): Define.
1498 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1499 (OTHER_SECTIONS): this. Removed stack settings.
1500 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1501 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1502 2001-03-12 DJ Delorie <dj@redhat.com>
1503 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1504 relaxing if any shmedia or mixed sections are found.
1505 2001-03-07 DJ Delorie <dj@redhat.com>
1506 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1507 einfo. Gracefully decline to output to non-elf formats.
1508 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1509 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1510 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1511 * emulparams/shelf32.sh: Ditto.
1512 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1513 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1515 2001-01-10 Ben Elliston <bje@redhat.com>
1516 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1517 non-portable shell constructs. From Hans-Peter Nilsson.
1518 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1519 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1520 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1521 dependencies to the shell script include chain.
1522 * Makefile.in: Regenerate.
1523 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1524 * emultempl/sh64elf.em: Update and tweak comments.
1525 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1526 make a .cranges section SEC_IN_MEMORY.
1527 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1528 * emultempl/sh64elf.em
1529 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1530 .cranges section found to be necessary; continue and set stored
1531 section contents flags for sections with non-mixed contents.
1532 Use a struct sh64_section_data container and sh64_elf_section_data
1533 to store contents-type flags.
1534 Remove unused update of "isec".
1535 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1536 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1537 access contents-type flags. Assert that the associated container
1538 is initialized. Use that container, not elf_gp_size, to hold size
1539 of linker-generated cranges contents.
1540 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1541 * emultempl/sh64elf.em
1542 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1543 there's already a .cranges section. When section flag difference
1544 is found, don't NULL-check cranges a second time. Tweak comments.
1545 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1546 merging, not max size, as size of ld-generated .cranges contents.
1547 Don't set ELF section flags in output section. When checking for
1548 needed .cranges descriptors, don't use a variable; compare
1549 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1551 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1552 * emultempl/sh64elf.em: New file.
1553 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1554 * Makefile.in: Regenerate.
1555 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1556 (OTHER_RELOCATING_SECTIONS): Ditto.
1557 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1558 * emulparams/shlelf32.sh: Stub out all settings except
1559 OUTPUT_FORMAT. Source shelf32.sh.
1560 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1561 OTHER_RELOCATING_SECTIONS.
1562 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1563 * emulparams/shlelf64.sh: Stub out all settings except
1564 OUTPUT_FORMAT. Source shelf64.sh.
1565 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1566 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1568 (DATA_START_SYMBOLS): Define, provide ___data.
1569 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1570 for consecutive .data section.
1571 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1572 section after .data section.
1573 * emulparams/shlelf64.sh: Ditto.
1574 * emulparams/shelf32.sh: Ditto.
1575 (ALIGNMENT): Define to 8.
1576 * emulparams/shelf32.sh: Ditto.
1577 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1578 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1579 built-in linker scripts.
1580 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1581 * emulparams/shlelf64.sh: New.
1582 * emulparams/shelf64.sh: New.
1583 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1585 * Makefile.am: Add support for shlelf64 and shelf64.
1586 * Makefile.in: Regenerate.
1587 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1588 * configure.tgt (sh64-*-elf*): Add shelf as default.
1589 Add shlelf to targ_extra_emuls.
1590 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1591 * emulparams/shelf32.sh: New file.
1592 * emulparams/shlelf32.sh: New file.
1593 * Makefile.am: Add support for shlelf32 and shelf32.
1594 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1595 * Makefile.in: Regenerate.
1597 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1599 * ldlang.c (lang_reset_memory_regions): Rename from
1600 reset_memory_regions. Change all callers. Make public.
1601 * ldlang.h (lang_reset_memory_regions): Prototype.
1602 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1603 lang_reset_memory_regions before lang_size_sections.
1604 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1605 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1607 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1609 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1610 arithmetic when checking for too many global registers.
1612 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1614 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1615 (ehppanbsd.c): New rule.
1616 * Makefile.in: Regenerate.
1617 * configure.tgt (hppa*-*-netbsd*): New target.
1618 * emulparams/hppalinux.sh: Add comment to check other files
1619 that source this file it is modified, and list which
1621 * emulparams/hppanbsd.sh: New file.
1623 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1625 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1628 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1630 Support on-demand global register allocation from
1631 R_MMIX_BASE_PLUS_OFFSET relocs.
1632 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1633 mmix_set_reg_section_vma. Call
1634 _bfd_mmix_finalize_linker_allocated_gregs.
1635 (mmix_before_allocation): New function.
1636 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1637 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1638 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1639 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1640 before .MMIX.reg_contents.
1641 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1642 (mmo_after_open): New function.
1643 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1644 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1645 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1647 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1649 * emulparams/or32.sh: New file.
1650 * emulparams/or32elf.sh: New file.
1651 * scripttempl/or32.sc: New file.
1652 * configure.tgt : Add support for or32.
1653 * configure: Regenerate
1654 * Makefile.am: Add support for or32.
1655 * Makefile.in: Regenerate.
1656 * NEWS: Mention support for or32.
1657 * po/ld.pot: Regenerate.
1659 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1660 Mitch Lichtenberg <mpl@broadcom.com>
1662 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1663 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1664 reloc creation (ld --embedded-relocs).
1666 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1668 * configure: Regenerated.
1670 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1672 * Makefile.am (install): Depend on install-info.
1673 * Makefile.in: Regenerate.
1675 2002-01-26 Christian Rose <menthos@menthos.com>
1677 * ldmain.c (main): Use full sentences to ease translation.
1679 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1681 * po/fr.po: Updated version.
1683 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1685 * po/es.po: Updated version.
1687 2002-01-25 Andreas Jaeger <aj@suse.de>
1689 * ldlex.l (yy_input): Correct error check.
1691 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1693 * ldmisc.c (demangle): Put back dots when string not demangled.
1695 2002-01-22 Richard Henderson <rth@redhat.com>
1697 * emulparams/elf64alpha.sh (NOP): Use unop.
1699 2002-01-21 Andreas Jaeger <aj@suse.de>
1701 * ldlex.l: Use fread instead of read.
1703 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1705 * configure.tgt (ia64-*-netbsd*): New target.
1707 2002-01-21 H.J. Lu <hjl@gnu.org>
1709 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1711 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1713 2002-01-18 Andreas Jaeger <aj@suse.de>
1715 * ldver.c (ldversion): Update year.
1717 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1719 * po/ld.pot: Regenerate.
1721 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1723 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1724 * Makefile.in: Regenerate.
1725 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1726 * emultempl/ppc64elf.em: New file.
1728 2002-01-15 DJ Delorie <dj@redhat.com>
1730 * scripttempl/pe.sc: Add support for constructor priorities.
1732 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1734 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1735 * emulparams/avr23xx.sh: Likewise.
1736 * emulparams/avr4433.sh: Likewise.
1737 * emulparams/avr44x4.sh: Likewise.
1738 * emulparams/avr85xx.sh: Likewise.
1739 * emulparams/avrmega103.sh: Likewise.
1740 * emulparams/avrmega161.sh: Likewise.
1741 * emulparams/avrmega603.sh: Likewise.
1742 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1744 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1746 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1747 archive is excluded.
1749 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1751 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1752 (eshelf_nbsd.c): New rule.
1753 (eshlelf_nbsd.c): New rule.
1754 * Makefile.in: Regenerate.
1755 * configure.tgt (sh*le-*-netbsdelf*): New target.
1756 (sh*-*-netbsdelf*): New target.
1757 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1758 * ld/emulparams/shelf_nbsd.sh: New emulation.
1759 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1761 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1763 * po/es.po: New file: Spanish translation.
1764 * configure.in (ALL_LINGUAS): Add es.
1765 * configure: Regenerate.
1767 2002-01-06 John Marshall <jmarshall@acm.org>
1769 * ld.texinfo: Note that --emit-relocs is currently only
1770 implemented for ELF.
1772 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1774 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1775 of bfd_section_list_remove and bfd_section_list_insert macros.
1776 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1777 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1779 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1781 * configure.tgt (x86_64-*-netbsd*): New target.
1783 2001-12-21 Tom Rix <trix@redhat.com>
1785 (gld*_create_output_section_statements): New function.
1786 For -binitfini support.
1787 * emultempl/aix.em (gld*_before_parse): Fix comment.
1788 * emultempl/aix.em (gld*_parse_args): Fix comment.
1790 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1792 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1794 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1796 * configure.tgt (arm-*-netbsdelf*): Add target.
1797 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1798 * emulparams/armelf_nbsd.sh: Added.
1799 * Makefile.am: Add rules for earmelf_nbsd.
1800 * Makefile.in: Regenerate.
1802 2001-12-19 Andreas Jaeger <aj@suse.de>,
1803 Susanne Oberhauser <froh@suse.de>
1805 * configure.host: Add rules for x86_64-*linux-gnu. Change
1806 s390x-linux entry to use gcc to report configuration, replace gcc
1807 with $CC in s390-linux
1809 2001-12-19 Andreas Jaeger <aj@suse.de>
1811 * ld.texinfo (VERSION): Fix markup.
1813 2001-12-18 matthew green <mrg@eterna.com.au>
1815 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1816 (m68kelfnbsd.c): New rule.
1817 * Makefile.in: Regenerate.
1818 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1819 (m68*-*-netbsd*4k*): .. this.
1820 (m68*-*-netbsdelf*): New target.
1821 (m68*-*-netbsd*): Also include ELF support.
1822 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1823 * emulparams/m68kelfnbsd.sh: New emulation.
1825 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1827 * ldgram.y (vers_node): Support anonymous version tags.
1828 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1829 tag is not defined together with non-anonymous versions.
1830 * ld.texinfo: Document it.
1832 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1834 * po/tr.po: New file: Turkish translation.
1835 * configure.in (ALL_LINGUAS): Add tr.
1836 * configure: Regenerate.
1838 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1840 * Makefile.am: Add rules for eelf64alpha_nbsd.
1841 * Makefile.in: Regenerate.
1842 * configure.tgt (alpha*-*-netbsd*): Set
1843 targ_emul to elf64alpha_nbsd.
1844 * emulparams/elf64alpha_nbsd.sh: Added.
1846 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1848 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1849 section_tail when fiddling with section list.
1850 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1851 broken into separate strings to make translation easier.
1852 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1853 fiddling with section list.
1854 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1856 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1858 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1860 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1862 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1864 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1866 * emultempl/elf32.em (finish): Supply output_bfd
1867 to bfd_elf*_discard_info.
1868 (OPTION_EH_FRAME_HDR): Define.
1869 (longopts): Add --eh-frame-hdr.
1870 (parse_args): Handle it.
1871 (list_options): Add --eh-frame-hdr to help.
1872 * emultempl/hppaelf.em (finish): Supply output_bfd
1873 to bfd_elf*_discard_info.
1874 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1876 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1878 * lexsup.c (parse_args): Don't pass shortopts to second call to
1879 getopt functions. Restore optind rather than decrementing before
1880 second call. Remove errind as it now duplicates last_optind.
1882 2001-12-11 Christopher Faylor <cgf@redhat.com>
1884 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1886 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1887 Richard Henderson <rth@redhat.com>
1889 * Makefile.am: Add support for xstormy16.
1890 * configure.tgt: Add support for xstormy16.
1891 * Makefile.in: Regenerate.
1892 * emulparams/elf32xstormy16.sh: New file.
1893 * scripttempl/xstormy16.sc: New file.
1895 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1897 * Makefile.in (LIB_PATH): Make configurable.
1898 (GENSCRIPTS): Set LIB_PATH in environment.
1899 * configure.in: Substitute LIB_PATH.
1900 * configure: Regenerate.
1901 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1902 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1904 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1906 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1907 describing the -N option so that it is easier to translate into
1910 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1912 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1913 statements describing a single option with a single, newline
1914 escaped fprintf. This allows better translation into other
1917 * ldmain.c (add_archive_element): Combine multiple strings
1918 into a single string to permit better translation into other
1921 2001-12-05 Tom Rix <trix@redhat.com>
1923 * Makefile.am: Remove eaixppc64.
1924 * Makefile.in: Regenerate.
1926 2001-12-04 Tom Rix <trix@redhat.com>
1928 * emultempl/aix.em (choose_target): Change default target to
1929 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1931 (gld*_read_file): Fix typo.
1932 (change_symbol_mode): Add prototype.
1935 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1936 * emulparams/aixrs6.sh : Same.
1937 * emulparams/ppcmacos.sh : Same.
1938 * emulparams/aixppc64.sh : Delete file.
1939 * emultempl/aix.em : Formatting changes.
1941 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1943 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1944 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1946 (OTHER_END_SYMBOLS): Fix formatting.
1947 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1948 (OTHER_END_SYMBOLS): Fix formatting.
1950 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1952 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1954 2001-12-02 Tom Rix <trix@redhat.com>
1956 * configure.tgt : Remove eaixppc64 emulations.
1957 * Makefile.in : Remove eaixppc64.c
1958 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1959 (ldemul_default_target): Same.
1960 * emultempl/gld960.em (gld960_choose_target): Same.
1961 * emultempl/gld960c.em (gld960_choose_target): Same.
1962 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1963 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1964 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1965 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1966 * emultempl/aix.em (choose_target): New function. Handle emulation of
1969 2001-11-27 H.J. Lu <hjl@gnu.org>
1971 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1972 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1973 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1974 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1975 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1976 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1977 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1978 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1980 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1983 (REL_SDATA): Likewise.
1984 (REL_SBSS): Likewise.
1985 (REL_SDATA2): Likewise.
1986 (REL_SBSS2): Likewise.
1987 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1990 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1992 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1994 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1996 2001-11-22 H.J. Lu <hjl@gnu.org>
1998 * Makefile.in: Regenerated with automake based on automake
1999 1.4-8 in RedHat 7.1.
2001 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2003 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2004 (config.status): Delete rule.
2005 Add extra dependencies to cover sourced emulparams files.
2006 * Makefile.in: Regenerate.
2008 * scripttempl/elf.sc: Order <section>, <section>.* and
2009 corresponding linkonce sections as seen in input files.
2010 Formatting fixes. Zero vma of all sections if not relocating.
2011 (STACK): Define and insert if STACK_ADDR defined.
2012 (OTHER_RELOCATING_SECTIONS): Delete.
2013 (OTHER_END_SYMBOLS): Define.
2014 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2015 (OTHER_READWRITE_SECTIONS): Likewise.
2016 (OTHER_GOT_SECTIONS): Likewise.
2017 (OTHER_SDATA_SECTIONS): Likewise.
2018 (OTHER_BSS_SECTIONS): Likewise.
2019 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2020 (OTHER_READWRITE_SECTIONS): Likewise.
2021 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2022 (OTHER_READWRITE_SECTIONS): Likewise
2024 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2025 (STACK_ADDR): Define.
2026 * emulparams/armelf_oabi.sh: As for armelf.sh.
2027 * emulparams/elf32mcore.sh: As for armelf.sh.
2028 * emulparams/h8300elf.sh: As for armelf.sh.
2029 * emulparams/mn10200.sh: As for armelf.sh.
2030 * emulparams/shelf.sh: As for armelf.sh.
2032 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2033 (OTHER_END_SYMBOLS): Define.
2034 * emulparams/m32relf.sh: As for elf32fr30.sh.
2035 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2036 * emulparams/h8300self.sh: As for elf32fr30.sh.
2038 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2039 defines with RELOCATING test.
2040 (OTHER_SDATA_SECTIONS): Likewise.
2041 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2042 (OTHER_END_SYMBOLS): ..this.
2043 * emulparams/crislinux.sh: As for criself.sh.
2045 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2047 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2048 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2049 normal and linkonce sections as seen in input files.
2050 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2051 (TEXT_DYNAMIC): Likewise.
2052 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2053 (OTHER_SDATA_SECTIONS): Likewise.
2054 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2055 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2056 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2057 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2058 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2059 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2060 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2061 sections as seen in input files.
2062 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2063 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2065 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2066 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2067 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2068 (OTHER_SECTIONS): Instead, use this..
2069 (OTHER_END_SYMBOLS): ..and this.
2071 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2072 * emulparams/elf32bsmip.sh: Likewise.
2073 * emulparams/elf32btsmip.sh: Likewise.
2074 * emulparams/elf32ebmip.sh: Likewise.
2075 * emulparams/elf32lmip.sh: Likewise.
2076 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2077 * emulparams/elf32lsmip.sh: Likewise.
2078 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2079 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2080 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2081 * emulparams/elf64btsmip.sh: Likewise.
2082 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2083 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2084 * emulparams/elf32ppclinux.sh: Likewise.
2085 * emulparams/elf32ppcsim.sh: Likewise.
2086 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2087 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2088 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2089 * emulparams/h8300self.sh: Likewise.
2090 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2091 * emulparams/sh.sh: Comment.
2092 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2093 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2094 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2096 2001-11-21 David Heine <dlheine@tensilica.com>
2097 Alan Modra <amodra@bigpond.net.au>
2099 * ldlang.c (map_input_to_output_sections): Replace "break"
2100 accidentally removed with 2001-08-03 change.
2101 (lang_gc_sections_1): Likewise.
2103 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2105 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2107 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2109 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2110 of false when calling lang_size_sections.
2111 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2113 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2115 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2116 function when LDEMUL_FINISH isn't set to the same name. Don't
2117 call ${LDEMUL_FINISH}.
2118 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2119 * emultempl/armelf.em (arm_elf_finish): Call
2120 gld${EMULATION_NAME}_finish.
2121 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2122 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2123 hppaelf_layout_sections_again if necessary.
2124 (need_laying_out): New var.
2125 (hppaelf_layaout_sections_again): Rename to
2126 hppaelf_layout_sections_again. Clear need_laying_out.
2127 (PARSE_AND_LIST_OPTIONS): Format text.
2129 2001-11-14 H.J. Lu <hjl@gnu.org>
2131 * emultempl/armelf.em (arm_elf_finish): Renamed from
2132 gld${EMULATION_NAME}_finish.
2133 (LDEMUL_FINISH): Set to arm_elf_finish.
2135 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2137 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2138 (struct ld_emulation_xfer_struct): Use it.
2140 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2142 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2143 additional symbols referenced by newer crt0.o files from HP.
2145 2001-11-12 Anthony Green <green@redhat.com>
2147 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2149 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2151 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2152 * Makefile.in: Regenerate.
2154 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2156 * ld.texinfo: Use @command for commands, @option for options.
2157 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2159 * Makefile.in: Rebuild.
2161 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2163 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2164 Add support for targets.
2166 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2168 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2169 * configure: Regernate.
2170 * po/fr.po: New file.
2171 * po/sv.po: New file.
2173 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2175 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2176 as little endian default and to support big endian.
2178 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2180 * ld.texinfo (Options): Document new option, -nostdlib.
2181 * lexsup.c (OPTION_NOSTDLIB): New definition.
2182 (ld_options): Add entry for "nostdlib".
2183 (parse_args): Handle OPTIONS_NOSTDLIB.
2184 * ldfile.c (ldfile_add_library_path): Don't add directories
2185 to the search path if they weren't specified on the command line
2186 and -nostdlib was specified.
2187 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2189 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2191 * lexsup.c (parse_args): Prevent infinite parsing loop when
2192 "-rpath.a" is specified on the command line.
2193 Replace calls to fprintf with calls to einfo.
2195 2001-10-31 John Marshall <jmarshall@acm.org>
2197 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2198 appear only once across all the linker scripts involved in a link
2199 invocation no longer applies. Make the documentation reflect
2202 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2204 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2206 (sh-*-linux*): Added targ_extra_libpath.
2208 2001-10-31 David Heine <dlheine@tensilica.com>
2210 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2211 for padding statements.
2213 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2215 * configure.tgt (mmix-*-*): New target.
2216 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2217 Add dependencies to match.
2218 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2219 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2220 scripttempl/mmo.sc: New files.
2221 * gen-doc.texi: @set MMIX.
2222 * ld.texinfo: Ditto.
2223 [MMIX] Add MMIX node.
2224 * Makefile.in: Regenerate.
2226 2001-10-29 Kazu Hirata <kazu@hxi.com>
2228 * ldlang.c: Fix a comment typo.
2230 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2232 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2233 entries, and match *-*-linux*.
2235 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2237 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2238 with ldlex_script, ldlex_popstate.
2239 (ifile_p1): Likewise.
2240 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2242 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2243 to 1. Don't BEGIN(SCRIPT).
2244 (lex_redirect): Similarly.
2245 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2247 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2249 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2250 __EH_FRAME_END__ and accept eh frames into data section.
2251 Add ctor and dtor sections.
2253 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2255 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2256 (auto-export): Fix indentation.
2258 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2260 * pe-dll.c (autofilter_objectlist): Add startup objects
2262 (auto-export): Constify char * p.
2263 Extract file basename and use strcmp rather than ststr
2266 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2268 * ldmain.c (get_emulation): Improve comment about the handling
2271 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2273 * po/POTFILES.in: Regenerate.
2275 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2277 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2278 -z nocopyreloc and -z nocombreloc usage strings.
2280 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2282 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2285 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2287 * scripttempl/armaout.sc: Place .bss section after end of aligned
2288 data section to match behaviour of aout code in constructrion of
2291 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2293 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2294 startup files for mingw32 dlls to list.
2296 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2298 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2300 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2302 * configure.tgt (targ): Add arm9e-*-elf.
2304 2001-10-05 H.J. Lu <hjl@gnu.org>
2306 * genscripts.sh: Fix a typo in the last change.
2308 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2310 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2311 -z nocombreloc in usage.
2313 2001-10-03 Jim Blandy <jimb@redhat.com>
2315 * genscripts.sh: Include a comment at the top of each generated
2316 script, explaining its purpose.
2318 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2320 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2321 * NEWS: Mention -z nocopyreloc.
2322 * ld.texinfo (Options): Describe nocopyreloc.
2324 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2326 * configure: Regenerate.
2328 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2330 * ldver.h (ld_program_version): Remove declaration.
2331 * lexsup.c (parse_args): Move printing of copyright message..
2332 * ldver.c (ldversion): .. to here.
2333 Use BFD_VERSION_STRING in place of BFD_VERSION.
2334 (ld_program_version): Remove.
2335 * Makefile.am (Makefile): Depend on bfd/configure.in.
2337 * Makefile.in: Regenerate.
2339 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2341 * Makefile.am: Update dependencies with "make dep-am".
2342 * Makefile.in: Regenerate.
2344 2001-09-29 John Reiser <jreiser@BitWagon.com>
2346 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2347 * lexsup.c: Add --no-define-common commandline option.
2348 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2349 * ldlex.l: Likewise.
2350 * ld.h: Add command_line.inhibit_common_definition.
2351 * ldmain.c (main): Initialize.
2352 * ld.texinfo: Document.
2354 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2356 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2358 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2360 * ldmisc.c (USE_STDARG): Remove.
2361 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2366 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2367 declarations. Update copyright.
2369 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2371 * pe-dll.c: Remove obsoleted declaration of
2372 pe_get_data_import_dll_name.
2373 (pe_create_import_fixup): Fix thinko.
2375 * ld.texinfo(enable-auto-import): Clarify the explanation.
2377 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2379 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2380 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2381 DLL_SUPPORT controlled code.
2383 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2385 * emultempl/pe.em(pe_data_import_dll): Make static.
2386 (pe_get_data_import_dll_name): New accessor function.
2387 * pe-dll.c(pe_create_import_fixup): call
2388 pe_get_data_import_dll_name() from pe.em, instead of
2389 directly accessing pe_data_import_dll variable from pe.em.
2391 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2393 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2394 (def_file_add_directive): Use ISSPACE instead of isspace.
2395 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2396 isdigit/isxdigit/isalpha/isalnum.
2397 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2398 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2399 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2400 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2402 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2403 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2405 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2406 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2407 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2408 (ctor_prio): Use ISDIGIT instead of isdigit.
2409 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2410 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2411 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2413 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2414 (stricpy): Use TOLOWER instead of isupper/tolower.
2415 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2416 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2417 (lex_warn_invalid): Use ISPRINT instead of isprint.
2418 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2419 (main): For gettext, also set the LC_CTYPE locate facet.
2420 (add_keepsyms_file): Use ISSPACE instead of isspace.
2421 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2422 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2423 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2424 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2425 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2426 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2427 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2428 (quoteput): Use ISSPACE instead of isspace.
2429 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2432 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2434 * deffilep.y (def_stash_module): Constify "name" param.
2436 * pe-dll.c: Replace CONST with const throughout.
2437 (quick_symbol): Constify "n1", "n2", "n3" params.
2438 (make_singleton_name_thunk): Constify "import" param. Make
2439 "buffer_len" a size_t.
2440 (make_import_fixup_entry): Constify "name", "fixup_name",
2441 "dll_symname" params.
2442 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2443 (pe_get32): Likewise.
2444 (pe_implied_import_dll): Likewise.
2446 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2447 (sort_by_section_name): Likewise.
2449 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2450 (make_import_fixup): Cast printf arg, rel->address to long rather
2452 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2454 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2456 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2457 defines BufferSize. Increase buffer size by one.
2459 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2461 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2463 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2465 * configure.tgt: Add arm-openbsd target.
2467 2001-09-12 H.J. Lu <hjl@gnu.org>
2469 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2471 (ALL_64_EMULATIONS): Here.
2472 * Makefile.in: Regenerated.
2474 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2476 * emultempl/pe.em(make_import_fixup): change signature to
2477 take asection as well as arelec; we need this for proper
2478 error reporting. Only call pe_create_import_fixup() if
2479 there is no attempt to add a constant addend to the reloc;
2480 otherwise, report error condition.
2481 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2482 since final argument is a pointer to make_import_fixup().
2483 Change call to cb() to match make_import_fixup() signature.
2484 (make_import_fixup_mark): make buffer_len unsigned.
2485 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2487 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2489 * ld.texinfo: add verbose documentation for auto-import
2490 direct-addressing workaround, to compliment the terse
2493 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2495 * scripttempl/v850.sc: Add gcc_except_table sections.
2497 2001-09-11 Jeffrey A Law (law@cygnus.com)
2499 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2500 * emulparams/h8300self.sh: Similarly.
2502 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2504 * ld.texinfo (Options, --stack): Correct default value for stack
2507 2001-09-05 Tom Rix <trix@redhat.com>
2509 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2511 2001-09-03 Andreas Jaeger <aj@suse.de>
2513 * emultempl/beos.em: Declare prototypes for comparions functions,
2516 2001-09-02 Andreas Jaeger <aj@suse.de>
2518 * emultempl/aix.em: Add missing prototype.
2519 * emultempl/lnk960.em: Likewise.
2520 * emultempl/vanilla.em: Likewise.
2521 * emultempl/armcoff.em: Likewise.
2522 * emultempl/armelf_oabi.em: Likewise.
2523 * emultempl/beos.em: Likewise.
2524 * emultempl/gld960c.em: Likewise.
2525 * emultempl/gld960.em: Likewise.
2527 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2528 for prototype declaration.
2530 2001-08-31 Eric Christopher <echristo@redhat.com>
2531 Jason Eckhardt <jle@redhat.com>
2533 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2535 2001-08-31 Andreas Jaeger <aj@suse.de>
2537 * emultempl/pe.em: Add missing prototypes.
2538 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2539 pe_find_data_imports.
2540 (pr_sym): Add unused attribute.
2542 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2544 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2545 default from coff to elf.
2547 2001-08-29 Jeff Law <law@redhat.com>
2549 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2551 * emulparams/h8300self.sh: Similarly.
2553 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2555 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2557 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2558 * configure.tgt (h8300-*-elf*): New case.
2559 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2560 * emulparams/h8300self.sh: New file.
2561 * Makefile.in: Regenerated.
2563 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2565 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2568 2001-08-27 Linus Nordberg <linus@swox.com>
2569 Alan Modra <amodra@bigpond.net.au>
2571 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2572 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2574 * Makefile.in: Regenerate.
2575 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2576 entries to correct alphabetical position.
2577 * emulparams/elf64ppc.sh: New.
2578 * emulparams/elf64lppc.sh: New.
2580 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2582 * ldmain.c (main): Declare BSIZE as static.
2584 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2586 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2587 into .rel.dyn resp. .rela.dyn if combreloc.
2588 (get_script): If .x linker script is equal to .xn, only put it
2589 once into the binary.
2590 Add .xc and .xsc scripts.
2591 (parse_args): Handle -z combreloc and -z nocombreloc.
2592 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2593 For .xc and .xsc scripts put all .rel* or .rela* input sections
2594 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2595 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2597 Strip trailing whitespace from script.
2598 Generate .xc and .xsc scripts if requested.
2599 * ldmain.c (main): Initialize link_info.combreloc and
2600 link_info.spare_dynamic_tags.
2601 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2602 (ld_options): Add --spare-dynamic-tags option.
2603 (parse_args): Likewise.
2604 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2605 * ldint.texinfo: Document .xc and .xsc linker scripts.
2606 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2608 2001-08-22 H.J. Lu <hjl@gnu.org>
2610 * emulparams/elf32fr30.sh: Add a newline.
2612 2001-08-21 Andreas Jaeger <aj@suse.de>
2614 * deffilep.y: Add missing prototypes.
2615 * pe-dll.c: Likewise.
2617 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2619 * ldlang.c (insert_pad): Fix typos in last patch.
2621 * ldlang.c: When traversing lang_statement_union_type lists,
2622 consistently use "header.next" rather than "next".
2623 * mpw-eppcmac.c: Likewise.
2624 * emultempl/beos.em: Likewise.
2625 * emultempl/hppaelf.em: Likewise.
2626 * emultempl/pe.em: Likewise.
2627 * ldlang.h (union lang_statement_union): Remove "next" field.
2629 * ldlang.c (insert_pad): Use offsetof macro.
2630 (lang_size_sections): Always neuter padding statements.
2631 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2633 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2634 passed to lang_size_sections.
2635 (pe_exe_fill_sections): Likewise.
2636 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2637 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2639 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2641 * emultempl/aix.em: Formatting fixes.
2643 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2645 * ldlang.c (insert_pad): Make use of an existing pad statement if
2646 available. Move code calculating alignment, adjusting section
2647 alignment power, and adjusting dot to ..
2648 (size_input_section): .. here. Remove unused relax param.
2649 (lang_size_sections): Change boolean `relax' param to boolean *.
2650 Adjust call to size_input_section. Make use of insert_pad to
2651 place pad after the assignment statement. If relaxing, zap
2653 (reset_memory_regions): Reset output_bfd section sizes too.
2654 (relax_again): Move to..
2655 (lang_process): ..here. Adjust call to lang_size_sections, and
2656 remove duplicated code.
2657 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2659 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2661 * ld.texinfo: Document that fill values now use the four least
2663 * emulparams/elf32fr30.sh (NOP): Update.
2664 * emulparams/elf32mcore.sh: Likewise.
2665 * emulparams/elf64_s390.sh: Likewise.
2666 * emulparams/elf_i386.sh: Likewise.
2667 * emulparams/elf_i386_be.sh: Likewise.
2668 * emulparams/elf_i386_chaos.sh: Likewise.
2669 * emulparams/elf_i386_ldso.sh: Likewise.
2670 * emulparams/elf_s390.sh: Likewise.
2671 * emulparams/elf_x86_64.sh: Likewise.
2672 * emulparams/i386moss.sh: Likewise.
2673 * emulparams/i386nw.sh: Likewise.
2674 * emulparams/m68kelf.sh: Likewise.
2675 * scripttempl/elf.sc: Update NOP comment.
2676 * scripttempl/elfi370.sc: Likewise.
2677 * scripttempl/elfm68hc11.sc: Likewise.
2678 * scripttempl/elfm68hc12.sc: Likewise.
2679 * scripttempl/nw.sc: Likewise.
2681 2001-08-15 Tom Rix <trix@redhat.com>
2683 * ldgram.y (saved_script_handle): Initialize to NULL.
2684 * ldmain.c (main): Change check on saved_script_handle.
2686 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2688 * emultempl/elf32.em: Formatting fixes.
2689 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2690 looking at sec->owner.
2691 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2692 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2693 unused code, and reorganize orphan section placement code.
2695 * ldlang.c (wild_doit): Rename to lang_add_section.
2696 * ldlang.h: Here too.
2697 * mpw-elfmips.c: And here.
2698 * emultempl/beos.em: And here.
2699 * emultempl/elf32.em: And here.
2700 * emultempl/hppaelf.em: And here.
2701 * emultempl/pe.em: And here.
2703 2001-08-13 Richard Henderson <rth@redhat.com>
2705 * emultempl/needrelax.em: New file.
2706 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2707 * Makefile.am (eelf64_ia64.c): Depend on it.
2708 * Makefile.in: Rebuild.
2710 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2712 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2713 output_section is set non-NULL.
2715 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2716 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2717 needlessly create an output_section_statement. Treat a correctly
2718 named output_section_statement with NULL bfd_section as compatible.
2720 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2722 * emultempl/generic.em: Support EXTRA_EM_FILE.
2723 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2724 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2725 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2726 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2727 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2728 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2729 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2730 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2731 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2732 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2734 2001-08-12 Richard Henderson <rth@redhat.com>
2736 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2737 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2738 scripttempl/v850.sc: Keep .jcr data.
2740 2001-08-12 H.J. Lu <hjl@gnu.org>
2741 Andrew Haley <aph@cambridge.redhat.com>
2742 Nick Clifton <nickc@redhat.com>
2744 * ldgram.y (had_script): Change name to saved_script_handle.
2745 Change type to file handle.
2746 * ld.h (had_script): Rename and retype.
2747 * ldfile.c (ldfile_open_command_file): Save the file handle
2748 used in saved_script_handle.
2749 * lexsup.c (parse_args): Do not allow -c option to alter
2750 saved_script_handle.
2751 * ldmain.c (main): Print out the linker script used if
2752 --verbose is given. Check saved_script_handle to obtain the
2753 external linker script used, or if NULL, dump the builtin
2755 * ld.texinfo: Document that --verbose now dumps the linker
2756 script used, regardless of whether it was an internal or an
2759 2001-08-10 Andreas Jaeger <aj@suse.de>
2761 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2763 * configure: Regenerate.
2765 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2767 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2769 * scripttempl/elf.sc: Move non-text .dynamic section before
2770 .plt/.got/.sdata* group.
2771 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2772 (OTHER_SDATA_SECTIONS): Add.
2773 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2775 * emulparams/crislinux.sh: Likewise.
2776 * emulparams/elf32b4300.sh: Likewise.
2777 * emulparams/elf32bmip.sh: Likewise.
2778 * emulparams/elf32bmipn32.sh: Likewise.
2779 * emulparams/elf32bsmip.sh: Likewise.
2780 * emulparams/elf32btsmip.sh: Likewise.
2781 * emulparams/elf32ebmip.sh: Likewise.
2782 * emulparams/elf32elmip.sh: Likewise.
2783 * emulparams/elf32l4300.sh: Likewise.
2784 * emulparams/elf32lmip.sh: Likewise.
2785 * emulparams/elf32lsmip.sh: Likewise.
2786 * emulparams/elf32ltsmip.sh: Likewise.
2787 * emulparams/elf64bmip.sh: Likewise.
2788 * emulparams/elf64btsmip.sh: Likewise.
2789 * emulparams/elf64ltsmip.sh: Likewise.
2791 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2793 * genscripts.sh: Source the emulparams script before each output
2794 script is generated so that variables like `RELOCATING' may affect
2795 variables defined in the emulparams script.
2797 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2799 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2802 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2803 ie. iterate over wild_statement.section_list.
2804 (gld${EMULATION_NAME}_place_orphan): Likewise.
2806 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2808 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2809 .fini[0-4] sections used by _exit
2810 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2811 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2812 * scripttempl/elfm68hc11.sc: Likewise.
2814 2001-08-03 H.J. Lu <hjl@gnu.org>
2816 * emultempl/beos.em (init): Add the missing initialization.
2818 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2820 * ld.texinfo (Input Section Basics): Clarify ordering of output
2822 * ldlang.c (callback_t): Add wildcard_list param.
2823 (walk_wild_section): Remove "section" param. Rewrite for
2824 lang_wild_statement_type change. Remove unique_section_p test.
2825 (walk_wild_file): Remove "section" param.
2826 (walk_wild): Remove "section" and "file" params.
2827 (lang_gc_wild): Likewise.
2828 (wild): Likewise. Modify for lang_wild_statement_type change.
2829 (wild_sort): Likewise. Add "sec" param.
2830 (gc_section_callback): Likewise.
2831 (output_section_callback): Likewise. Do unique_section_p test.
2832 (map_input_to_output_sections): Modify call to wild.
2833 (lang_gc_sections_1): Likewise.
2834 (print_wild_statement): Modify for lang_wild_statement_type
2836 (lang_add_wild): Replace filename, filenames_sorted param with
2837 filespec. Replace section_name, sections_sorted,
2838 exclude_filename_list with section_list.
2839 * ldlang.h (lang_add_wild): Here too.
2840 (lang_wild_statement_type): Replace section_name, sections_sorted,
2841 and exclude_filename_list with section_list.
2842 * ldgram.y (current_file): Delete.
2843 (%union): Add wildcard_list.
2844 (file_NAME_list): Set type to wildcard_list. Build a linked list
2845 rather than calling lang_add_wild for each entry.
2846 (input_section_spec_no_keep): Call lang_add_wild here instead.
2847 * ld.h (struct wildcard_list): Declare.
2848 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2850 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2852 * ldmain.c (main): initialize link_info.pei386_auto_import
2853 * pe-dll.c: new tables for auto-export filtering
2854 (auto_export): change API, pass abfd for contextual filtering.
2855 Loop thru tables of excluded symbols instead of comparing
2858 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2860 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2861 static variable current_sec (static struct sec *). Add
2862 forward declaration for add_bfd_to_link.
2863 (process_def_file): Don't export undefined symbols. Do not
2864 export symbols starting with "_imp__". Call auto_export()
2866 (pe_walk_relocs_of_symbol): New function.
2867 (generate_reloc): add optional extra debugging
2868 (pe_dll_generate_def_file): eliminate extraneous initial blank
2870 (make_one): enlarge symtab to make room for __nm__ symbols
2871 (DATA auto-import support).
2872 (make_singleton_name_thunk): New function.
2873 (make_import_fixup_mark): New function.
2874 (make_import_fixup_entry): New function.
2875 (pe_create_import_fixup): New function.
2876 (add_bfd_to_link): Specify that 'name' argument is a CONST
2878 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2879 declare new functions pe_walk_relocs_of_symbol and
2880 pe_create_import_fixup.
2881 * emultempl/pe.em: add new options --enable-auto-import,
2882 --disable-auto-import, and --enable-extra-pe-debug.
2883 (make_import_fixup): New function.
2884 (pe_find_data_imports): New function.
2885 (pr_sym): New function.
2886 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2887 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2890 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2892 * ld.texinfo: add additional documentation for
2893 --export-all-symbols. Document --out-implib,
2894 --enable-auto-image-base, --disable-auto-image-base,
2895 --dll-search-prefix, --enable-auto-import, and
2896 --disable-auto-import.
2897 * ldint.texinfo: Add detailed documentation on auto-import
2900 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2902 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2905 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2907 * Makefile.am: Update dependencies with "make dep-am".
2908 * Makefile.in: Regenerate
2910 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2912 * ldcref.c (check_section_sym_xref): New function.
2913 (check_nocrossrefs): Call it.
2914 (check_nocrossref): Interate over h->refs here instead of..
2915 (check_refs): ..here. Pass in the symbol name, section, and bfd
2916 rather than hash_entry pointers.
2917 (struct check_refs_info): Keep symbol name rather than hash entry.
2919 (check_reloc_refs): Tweak for above changes in check_refs_info.
2920 Only report references to section syms when symname is NULL to
2921 prevent duplicate messages for the same reloc.
2923 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2925 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2926 available. Do not print NULL trees.
2927 (exp_print_token): Print unknown tokens with values > 126 as
2928 decimal values not ASCII characters.
2930 * ldlang.c (lang_leave_overlay): If a region is specified assign
2931 it to all sections inside the overlay unless they have been
2932 assigned to the own, non-default, memory region.
2934 * README: Add header for consistency with other README files.
2936 2001-07-14 H.J. Lu <hjl@gnu.org>
2938 * emultempl/elf32.em (output_prev_sec_find): Never return
2939 bfd_abs_section_ptr, bfd_com_section_ptr nor
2940 bfd_und_section_ptr.
2942 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2944 * Makefile.am (em32relf.c): Change dependency from generic.em to
2946 * Makefile.in: Regenerate.
2948 2001-07-14 matthew green <mrg@eterna.com.au>
2950 * configure.tgt (i386-*-netbsdelf*): New target.
2951 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2953 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2955 * emultempl/elf32.em (output_prev_sec_find): New.
2956 (place_orphan): Use it.
2958 2001-07-11 H.J. Lu <hjl@gnu.org>
2960 * ldmain.c (main): Fix typos in the last change.
2962 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2964 * ldmain.c (main): Disallow -F and -f without -shared.
2966 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2968 * emultempl/pe.em (after_open): Check for the output_bfd not
2969 having any coff_data structure allocated to it.
2971 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2973 * emultempl/elf32.em: Do not assuming that contents of the buffer
2974 returned from basename function will remain unchanged accross other
2977 2001-07-03 H.J. Lu <hjl@gnu.org>
2979 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2980 2001-07-03. It creates dynamic entries even for static binaries.
2982 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2984 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2985 (DYNAMIC): Use it to reserve few dynamic entries for
2988 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2990 * emulparams/hppa64linux.sh: New file.
2991 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2992 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2993 (ehppa64linux.c): Add rule to make it.
2995 * Makefile.in: Regenerate.
2997 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2999 * ld.texinfo (Options, -r): Mention restrictions when using
3000 different object formats.
3002 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3004 * ldlang.c (lang_check): Emit fatal error if relocatable link
3005 between different object flavours with relocations in input.
3007 2001-06-19 H.J. Lu <hjl@gnu.org>
3009 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3010 (--version-script): Mention the language support.
3012 2001-06-19 H.J. Lu <hjl@gnu.org>
3014 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3016 2001-06-18 H.J. Lu <hjl@gnu.org>
3018 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3019 (diststuff): Add $(MANS).
3020 * Makefile.in: Regenerated.
3024 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3026 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3027 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3028 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3029 * ld.h (args_type): Remove member export_dynamic. All users
3030 changed to use struct bfd_link_info member.
3032 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3033 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3034 * Makefile.in: Regenerate.
3036 2001-06-18 H.J. Lu <hjl@gnu.org>
3038 * ldlang.c (init_os): Add the newline to the einfo call.
3039 (lang_check): Likewise.
3040 (lang_do_version_exports_section): Likewise.
3042 2001-06-15 H.J. Lu <hjl@gnu.org>
3044 * lexsup.c (parse_args); Save optind to report unrecognized
3047 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3049 * ldlang.c (lang_check): Emit fatal error if relocatable link
3050 between different object flavours.
3052 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3053 Set new link_info member export_dynamic.
3054 * ldmain.c (main): Initialize new link_info member export_dynamic.
3056 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3058 * ldlang.c (walk_wild): Only call walk_wild_file if
3059 lookup_name returns something.
3060 (lookup_name): If load_symbols fails, return NULL.
3061 (load_symbols): Change to a boolean function.
3062 (open_input_bfds): If load_symbols fails then do not make the
3065 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3067 * ldlang.c (record_bfd_errors): Remove.
3069 * emultempl/aix.em: Fix copyright dates.
3071 2001-06-07 Andreas Jaeger <aj@suse.de>
3073 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3074 (TEXT_START_ADDR): Likewise.
3076 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3078 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3080 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3082 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3084 2001-05-31 H.J. Lu <hjl@gnu.org>
3086 * ldlang.c (open_input_bfds): Don't change the bfd error
3087 handler whilst loading symbols.
3089 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3091 * configure.tgt: Remove i370-mvs architecture, it is not currently
3094 2001-05-25 H.J. Lu <hjl@gnu.org>
3096 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3097 like emulparams/aixppc.sh.
3099 2001-05-25 H.J. Lu <hjl@gnu.org>
3101 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3102 setting of output_filename after bfd_scan_arch.
3103 * emultempl/pe.em: Likewise.
3105 2001-05-25 H.J. Lu <hjl@gnu.org>
3107 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3108 like emulparams/aixppc.sh.
3110 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3111 instead of ${srcdir}/emultempl/stringify.sed.
3113 2001-05-25 Timothy Wall <twall@oculustech.com>
3115 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3118 2001-05-25 Alan Modra <amodra@one.net.au>
3120 * configure.host: Replace linuxoldld with linux*oldld.
3121 * configure.tgt: Likewise.
3123 2001-05-24 H.J. Lu <hjl@gnu.org>
3125 * emultempl/stringify.sed: Removed again.
3127 2001-05-24 H.J. Lu <hjl@gnu.org>
3129 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3130 (gld${EMULATION_NAME}_before_parse): Initialize
3131 ldfile_output_architecture, ldfile_output_machine and
3132 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3133 * emultempl/beos.em: Likewise.
3134 * emultempl/elf32.em: Likewise.
3135 * emultempl/linux.em: Likewise.
3136 * emultempl/mipsecoff.em: Likewise.
3137 * emultempl/pe.em: Likewise.
3138 * emultempl/sunos.em: Likewise.
3140 2001-05-24 Tom Rix <trix@redhat.com>
3142 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3143 udate import file format.
3144 (change_symbol_mode) New, same
3145 (is_syscall) New, same
3146 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3147 * emulparams/aixppc64.sh : same
3148 * emulparams/aixrs6.sh : same
3149 * emulparams/ppcmacos.sh : same
3150 * emultempl/aix.em : use strtoull to parse options
3151 * Makefile.am : add eaixppc64 emulation for xcoff64
3152 * Makefile.in : same
3153 * configure.tgt : same
3155 * scripttempl/aix.sc : default text section offset to 0x10000000
3156 default data section offset to 0x20000000
3157 add .sv3264 and .sv64 pseudo sections
3158 loader and debug sections use the currect section offset.
3160 * emultempl/aix.em : Add xcoff64 support
3161 Add -binitfini support
3162 (gld${EMULATION_NAME}_before_parse) -binitfini
3163 (gld${EMULATION_NAME}_parse_args) same
3164 (gld${EMULATION_NAME}_before_allocation) format change for special
3167 * emulparams/aixppc64.sh : New file for xcoff64 support
3169 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3171 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3172 variable to avoid non-portable shell construct.
3174 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3176 * ldmain.c (get_emulation): Add -mips5 command line argument.
3178 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3180 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3181 (ELF_INTERPRETER_NAME): Define it.
3182 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3184 * configure.tgt (targ_emul, targ_extra_emuls)
3185 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3186 as primary, elf_i386 as extra.
3187 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3188 (eelf_i386_ldso.c): New rule.
3189 * Makefile.in: Rebuilt.
3191 2001-05-22 Nick Clifton <nickc@redhat.com>
3193 * lexsup.c (ld_options): Allow -I to be an alias for
3194 --dynamic-linker. This is for Solaris compatability.
3195 * ld.texinfo: Document that -I can be used.
3198 2001-05-16 Alan Modra <amodra@one.net.au>
3200 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3201 whether an input section is the first one assigned to an output
3203 Assorted formatting fixes.
3205 2001-05-14 DJ Delorie <dj@delorie.com>
3207 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3208 * Makefile.in: Ditto.
3210 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3212 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3213 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3215 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3217 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3219 * ldlang.c (lang_process): Call bfd_merge_sections.
3221 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3223 * ldgram.y: Fix typo.
3225 2001-05-03 H.J. Lu <hjl@gnu.org>
3227 * emultempl/elf32.em: Include "libiberty.h".
3228 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3229 basename of the bfd filename.
3230 (gld${EMULATION_NAME}_stat_needed): Likewise.
3231 (gld${EMULATION_NAME}_try_needed): Likewise.
3232 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3234 2001-05-02 H.J. Lu <hjl@gnu.org>
3236 * emultempl/pe.em: Include <ctype.h>.
3238 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3240 * emulparams/elf32openrisc.sh: New file.
3242 * Makefile.am: Add OpenRISC target.
3243 * Makefile.in: Regenerated.
3245 * configure.tgt: Add openrisc-*-* mapping.
3247 2001-05-02 Nick Clifton <nickc@redhat.com>
3249 * emultempl/aix.em: Replace buystring with xstrdup.
3250 * emultempl/beos.em: Replace buystring with xstrdup.
3252 2001-05-02 H.J. Lu <hjl@gnu.org>
3254 * ldfile.c: Include "libiberty.h".
3255 * ldlex.l: Likewise.
3257 * ldmisc.c (buystring): Removed.
3258 * ldmisc.h: Likewise.
3260 * ldfile.c: Replace buystring with xstrdup.
3261 * ldlang.c: Likewise.
3262 * ldlex.l: Likewise.
3263 * ldmain.c: Likewise.
3264 * ldmisc.c: Likewise.
3265 * lexsup.c: Likewise.
3266 * mpw-eppcmac.c: Likewise.
3268 2001-04-30 Andreas Jaeger <aj@suse.de>
3270 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3272 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3274 * ldlang.c (load_symbols): Give emulation a chance
3275 to process unrecognized file before fatal error is
3276 reported, not after.
3278 2001-04-27 Sean McNeil <sean@mcneil.com>
3280 * configure.tgt: Add arm-vxworks target.
3281 * scripttempl/armcoff.sc: Support .text or .data as a section name
3285 2001-04-13 J.T. Conklin <jtc@redback.com>
3287 * ld.texinfo: Document --fatal-warnings.
3290 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3291 warnings have been turned into errors.
3292 * lexsup.c (OPTION_WARN_FATAL): Define.
3293 (ld_options): Entry for --fatal-warnings.
3294 (parse_args): Handle OPTION_WARN_FATAL.
3295 * ld.h (ld_config_type): Add fatal_warnings field.
3297 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3299 * ldmain.c (main): Default to discard_sec_merge.
3300 * lexsup.c (OPTION_DISCARD_NONE): Define.
3301 (ld_options): Add --discard-none.
3302 (parse_args): Handle OPTION_DISCARD_NONE.
3303 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3304 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3305 all its input sections match.
3307 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3309 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3310 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3311 (eelf32ltsmip.c): New target.
3312 (eelf64btsmip.c): Likewise.
3313 (eelf64ltsmip.c): Likewise.
3314 * Makefile.in: Regenerated.
3316 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3318 (mips*-*-linux-gnu*): Likewise.
3320 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3322 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3324 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3327 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3329 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3330 correct value of __Stext here.
3331 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3334 * emulparams/crislinux.sh: Remove FIXME.
3336 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3338 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3339 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3341 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3343 * configure.tgt (cris-*-*): Change default emulation to criself.
3344 (cris-*-*aout*): New rule.
3346 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3348 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3349 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3351 2001-03-26 Andreas Jaeger <aj@suse.de>
3353 * ld.texinfo (Overview): Fix syntax in texi code.
3355 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3357 * ld.texinfo: Put @c man indications to generate the ld man page.
3358 When generating man, define all the variables. Define SEEALSO
3359 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3360 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3361 (ld.1): Generate from ld.texinfo.
3362 * Makefile.in: Regenerate.
3364 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3366 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3367 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3369 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3371 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3372 is an absolute path look only for this file and not along the path.
3374 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3376 * emultempl/elf32.em (OPTION_GROUP): New macro.
3377 Add new option Bgroup to longopts.
3378 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3379 (gld*_list_options): Add -Bgroup and -z defs.
3380 * ld.1: Document -Bgroup and -z defs.
3381 * ld.texinfo: Likewise.
3383 2001-03-07 Michael Meissner <meissner@redhat.com>
3385 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3386 with sections created by -fdata-sections.
3387 (.dynbss,.bss): Ditto.
3389 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3391 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3392 after_allocation_default, not gld..._before_allocation.
3394 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3396 * configure.in (BFD_VERSION): New.
3397 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3398 * configure: Regenerate.
3399 * Makefile.am: Run "make dep-am"
3400 * Makefile.in: Regenerate.
3402 2001-02-26 Timothy Wall <twall@cygnus.com>
3404 * emulparams/elf64_aix.sh: Add additional read-only sections;
3405 uncomment lines which are now required.
3407 2001-02-26 H.J. Lu <hjl@gnu.org>
3409 * ldlang.c (open_input_bfds): Set the bfd error handler so
3410 that problems can be caught whilst loading symbols.
3411 (record_bfd_errors): New function: Report BFD errors and mark
3412 the executable output as being invalid.
3414 2001-02-22 Timothy Wall <twall@cygnus.com>
3416 * configure.host: Add configuration for ia64-*-aix*.
3417 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3418 Add dependencies for eelf64_aix.c.
3419 * Makefile.in: Regenerate.
3420 * configure.tgt: Add ia64-*-aix* mapping.
3421 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3423 2001-02-20 H.J. Lu <hjl@gnu.org>
3425 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3426 false if we found the file.
3428 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3430 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3431 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3433 2001-02-18 lars brinkhoff <lars@nocrew.org>
3435 * Makefile.am: Add PDP-11 target.
3436 * configure.tgt: Likewise.
3437 * emulparams/pdp11.sh: New file.
3439 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3441 * configure.host: Add a generic FreeBSD configuration entry such that
3442 all [modern] FreeBSD systems on all platforms will look the same.
3444 2001-02-14 H.J. Lu <hjl@gnu.org>
3446 * configure.tgt: Remove mention of earmelf_linux26.
3448 2001-02-13 Richard Henderson <rth@redhat.com>
3450 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3452 2001-02-13 H.J. Lu <hjl@gnu.org>
3454 * ldexp.h (node_type): Add etree_provided.
3455 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3456 type to etree_provided if defined by PROVIDE. Allow updating
3458 (exp_print_tree): Handle etree_provided.
3459 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3462 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3464 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3465 .IA_64.unwind.* pattern to unwind table section and
3466 .IA_64.unwind_info* pattern to unwind info section.
3468 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3470 * Makefile.am: Add linux target for S/390.
3471 * Makefile.in: Likewise.
3472 * configure.host: Likewise.
3473 * configure.tgt: Likewise.
3474 * emulparams/elf64_s390.sh: New file.
3475 * emulparams/elf_s390.sh: New file.
3477 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3479 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3481 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3483 2001-02-06 Philip Blundell <philb@gnu.org>
3485 * Makefile.am: Remove mention of earmelf_linux26.
3486 * Makefile.in: Regenerate.
3488 2001-02-04 Philip Blundell <philb@gnu.org>
3490 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3491 * emulparams/armelf_linux26.sh: Delete.
3492 * configure.tgt: Remove mention of armelf_linux26 emulation.
3494 2001-02-01 Nick Clifton <nickc@redhat.com>
3496 * ld.1: Replace occurances of -oformat with --oformat.
3498 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3500 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3501 load_base is specified.
3503 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3505 * emultempl/elf32.em: Correct spelling in comments and listed
3508 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3510 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3511 default for the first section of a group of overlay sections.
3513 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3515 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3516 * Makefile.in: Regenerate.
3517 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3518 Check for null tool_dir.
3520 2001-01-16 Jim Wilson <wilson@redhat.com>
3522 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3523 and IA_64.unwind.info.
3525 2001-01-16 H.J. Lu <hjl@gnu.org>
3527 * ldlang.c (lang_check): Merge the private data only if the
3528 input file has contents.
3530 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3532 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3534 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3535 enabling search for libmilli. On a relocatable link, make .text
3537 (LDEMUL_AFTER_PARSE): Define.
3538 (hppaelf_finish): Correct spelling of relocatable in comments.
3540 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3541 rummage through the script for sections on the unique list.
3542 Correct length of strncmp for ".note".
3543 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3545 * ldlang.c (unique_section_list): New var.
3546 (unique_section_p): New function.
3547 (walk_wild_section): Don't match sections on unique_section_list.
3548 (lang_add_unique): New function.
3549 Correct spelling of relocatable in comments.
3551 * ldlang.h (struct unique_sections): Declare.
3552 (unique_section_list): Declare.
3553 (unique_section_p): Declare.
3554 (lang_add_unique): Declare.
3556 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3557 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3559 * ld.texinfo (--unique): Update.
3561 2001-01-13 Nick Clifton <nickc@redhat.com>
3563 * lexsup.c (parse_args): Remove spurious white space.
3565 2001-01-12 Nick Clifton <nickc@redhat.com>
3567 * lexsup.c (parse_args): Update copyright date.
3569 2001-01-12 Philip Blundell <pb@futuretv.com>
3571 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3573 2001-01-10 Kazu Hirata <kazu@hxi.com>
3575 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3576 * scripttempl/h8300h.sc: Fix formatting.
3577 * scripttempl/h8300s.sc: Likewise.
3578 * scripttempl/h8500.sc: Likewise.
3579 * scripttempl/h8500b.sc: Likewise.
3580 * scripttempl/h8500c.sc: Likewise.
3581 * scripttempl/h8500m.sc: Likewise.
3582 * scripttempl/h8500s.sc: Likewise.
3584 2000-01-07 David O'Brien <obrien@BSDi.com>
3586 * emultempl/elf32.em: Only perform Linux ld hints processing when
3589 2001-01-07 Philip Blundell <philb@gnu.org>
3591 * ld.texinfo (Bug Reporting): Update email address for reports.
3593 2000-12-31 Nick Clifton <nickc@redhat.com>
3595 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3596 options by checking for a return value of '?' not -1.
3598 2000-12-28 Nick Clifton <nickc@redhat.com>
3600 * lexsup.c (struct ld_option): Add new enum value:
3602 (ld_options[]): Change -omagic, -output and -oformat options
3603 to be EXACTLY_TWO_DASHES.
3604 (OUTPUT_COUNT): Use ARRAY_SIZE.
3605 (parse_args): Change parameter 'argc' to unsigned.
3606 Place EXACTLY_TWO_DASHES options into new really_longopts
3608 If getopt_long_only fails, try calling getopt_long using the
3609 really_longopts array.
3610 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3613 * ldlex.h: Fix prototype of parse_args.
3615 * ld.texinfo: Document that long options starting with 'o'
3616 must be preceeded by two dashes. Change example of a single
3617 dashed long option from -oformat to -trace-symbol.
3619 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3621 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3622 (longopts[]): New --no-default-excludes option.
3623 (gld_${EMULATION_NAME}_list_options): Document.
3624 (gld_${EMULATION_NAME}_parse_args): Handle.
3626 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3628 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3629 whitespace, it breaks the K&R C preprocessor.
3631 2000-12-11 DJ Delorie <dj@redhat.com>
3633 * ld.texinfo: Add notes about --whole-archive and gcc.
3635 2000-11-18 Fred Fish <fnf@be.com>
3637 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3638 (ld_options): Entry for --allow-shlib-undefined.
3639 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3640 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3642 * ld.texinfo: Document new command line switch.
3644 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3646 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3647 .fixup is actually read/write.
3648 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3649 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3650 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3652 2000-12-11 Jan Hubicka <jh@suse.cz>
3654 * NEWS: Add note about x86_64 architecture.
3656 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3658 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3659 Set DWARF2 sections to a VMA of zero.
3661 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3663 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3665 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3666 (sparc*-*-rtems*): Switched from a.out to ELF.
3668 2000-11-30 Jan Hubicka <jh@suse.cz>
3670 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3671 (eelf_x86_64.c): New.
3672 * Makefile.in: Regenerate.
3673 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3674 * emulparams/elf_x86_64.sh: New.
3676 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3678 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3679 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3681 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3682 merging non-a.out sections into CONSTRUCTING.
3684 2000-11-28 Nick Clifton <nickc@redhat.com>
3686 * ld.1 (COPYING): Mention that the GNU Free Documentation
3687 License is present in the sources, but not the output, and
3688 also available from the GNU website.
3689 (GNU Free Documentation License): Comment out this section.
3691 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3693 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3696 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3698 * ld.1: Remove old date so it does not give the impression the manpage
3701 2000-11-24 Nick Clifton <nickc@redhat.com>
3703 * configure.tgt (xscale-coff): Add target.
3704 (xscale-elf): Add target.
3706 2000-11-24 Fred Fish <fnf@be.com>
3708 * ldmain.c (main): Remove redundant init of config.make_executable
3711 2000-11-15 Richard Henderson <rth@redhat.com>
3713 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3715 2000-11-14 Kazu Hirata <kazu@hxi.com>
3717 * scripttempl/h8300.sc: Fix formatting.
3718 * scripttempl/h8300h.sc: Likewise.
3719 * scripttempl/h8300s.sc: Likewise.
3721 2000-11-14 Denis Chertykov <denisc@overta.ru>
3723 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3725 2000-11-09 Philip Blundell <pb@futuretv.com>
3727 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3728 around orphan sections whose names can be represented in C.
3730 2000-11-07 Jim Wilson <wilson@redhat.com>
3732 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3733 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3735 2000-11-06 Nick Clifton <nickc@redhat.com>
3737 * ld.texinfo: Add GNU Free Documentation License.
3738 * ldint.texinfo: Add GNU Free Documentation License.
3739 * ld.1: Add GNU Free Documentation License.
3741 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3743 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3744 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3746 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3747 Move 2000-11-02 Makefile.in changes to this file.
3748 * Makefile.in: Regenerate.
3750 2000-11-03 Nick Clifton <nickc@redhat.com>
3752 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3753 constructors and destructors.
3754 * scripttempl/h8300h.sc: Ditto.
3755 * scripttempl/h8300s.sc: Ditto.
3756 * scripttempl/h8500.sc: Ditto.
3757 * scripttempl/h8500b.sc: Ditto.
3758 * scripttempl/h8500c.sc: Ditto.
3759 * scripttempl/h8500m.sc: Ditto.
3760 * scripttempl/h8500s.sc: Ditto.
3761 * scripttempl/v850.sc: Ditto.
3762 * scripttempl/w65.sc: Ditto.
3763 * scripttempl/z8000.sc: Ditto.
3765 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3767 * Makefile.in (e_i386_chaos.c): New rule.
3768 (ALL_EMULATIONS): Added e_i386_chaos.o.
3769 * emulparams/elf_i386_chaos.sh: New file.
3770 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3772 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3774 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3775 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3776 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3777 library path suffix.
3778 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3780 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3782 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3783 for consecutive sections.
3785 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3787 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3789 * ld.texinfo: Added notes about this new option.
3791 2000-10-16 Nick Clifton <nickc@redhat.com>
3793 * emultempl/pe.em (_after_open): Add tests of return values from
3794 bfd functions. Emit appropriate error messages if necessary.
3796 2000-10-13 Nick Clifton <nickc@redhat.com>
3798 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3799 local variables - they are not used, but leave in the call to
3800 bfd_canonicalize_symtab.
3801 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3802 pe_dll_search_prefix.
3804 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3806 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3807 (longopts): New --dll-search-prefix option.
3808 (gld_${EMULATION_NAME}_list_options): Document.
3809 (gld_${EMULATION_NAME}_parse_args): Handle.
3810 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3811 dynamically, search for a dll named '<prefix><basename>.dll'
3812 in preference to 'lib<basename>.dll' if --dll-search-prefix
3815 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3817 * ldlang.c (section_already_linked): Set kept_section instead of
3820 2000-10-10 Kazu Hirata <kazu@hxi.com>
3822 * deffile.h: Fix formatting.
3823 * lexsup.c: Likewise.
3826 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3828 * pe-dll.c (make_one): Do not generate code thunk for DATA
3830 (process_def_file): deduce DATA flag for auto-export sumbols.
3832 2000-10-09 Kazu Hirata <kazu@hxi.com>
3834 * ld.h: Fix formatting.
3835 * ldcref.c: Likewise.
3836 * ldctor.h: Likewise.
3837 * ldemul.c: Likewise.
3838 * ldemul.h: Likewise.
3839 * ldexp.c: Likewise.
3840 * ldexp.h: Likewise.
3841 * ldfile.c: Likewise.
3842 * ldfile.h: Likewise.
3843 * ldlang.c: Likewise.
3844 * ldlang.h: Likewise.
3845 * ldmain.c: Likewise.
3846 * pe-dll.c: Likewise.
3848 * pe-dll.c: Revert some formatting fixes.
3850 2000-10-08 Kazu Hirata <kazu@hxi.com>
3852 * pe-dll.c: Fix formatting.
3854 2000-10-05 Kazu Hirata <kazu@hxi.com>
3856 * ldlang.c: Fix formatting.
3858 2000-10-03 DJ Delorie <dj@redhat.com>
3860 * pe-dll.c (fill_edata): initialize entire block
3861 (make_one): fill in correct section.
3863 2000-10-03 Kazu Hirata <kazu@hxi.com>
3865 * ldexp.c: Fix formatting.
3867 2000-10-02 DJ Delorie <dj@redhat.com>
3869 * emultempl/pe.em (gld_*_after_open): detect case where there two
3870 import libraries for same dll; rename one to ensure proper link
3873 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3875 (generate_edata): fix typo
3877 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3879 * scripttempl/crisaout.sc (ENTRY): Now __start.
3880 (.text): Add default setting for __start.
3881 Remove CONSTRUCTORS handling.
3882 (/DISCARD/): Add .gnu.warning.*.
3883 * emulparams/crislinux.sh (ENTRY): Now __start.
3884 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3885 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3886 (ENTRY): Now __start.
3887 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3888 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3890 2000-09-29 Kazu Hirata <kazu@hxi.com>
3892 * deffile.h: Fix formatting.
3894 * ldcref.c: Likewise.
3895 * ldctor.c: Likewise.
3896 * ldctor.h: Likewise.
3897 * ldemul.c: Likewise.
3898 * ldemul.h: Likewise.
3899 * ldexp.c: Likewise.
3900 * ldexp.h: Likewise.
3901 * ldfile.c: Likewise.
3902 * ldfile.h: Likewise.
3903 * ldlang.c: Likewise.
3904 * ldlang.h: Likewise.
3905 * lexsup.c: Likewise.
3907 * pe-dll.c: Likewise.
3909 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3911 * pe-dll.c (process_def_file): Uninitialized data wasn't
3912 exported with --export-all-symbols switch.
3914 2000-09-28 DJ Delorie <dj@redhat.com>
3916 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3917 noname work properly.
3919 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3921 * ld.texinfo (HPPA ELF32): New section.
3923 * emultempl/hppaelf.em (group_size): New.
3924 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3925 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3926 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3927 options to prevent abbreviations matching.
3928 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3929 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3931 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3933 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3934 on the m68*-*-elf target. Make it support COFF input objects.
3936 2000-09-21 Kazu Hirata <kazu@hxi.com>
3938 * ldmain.c: Fix formatting.
3939 * ldmisc.c: Likewise.
3940 * ldver.c: Likewise.
3941 * ldwrite.c: Likewise.
3943 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3945 * ldwrite.c (clone_section): Silence gcc warnings.
3947 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3949 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3950 out of memory failure.
3952 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3953 (clone_section): Handle out of memory failures. Rename var to
3954 avoid c++ reserved word.
3956 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3958 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3959 stub_name param to stub_sec_name.
3960 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3962 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3964 * emultempl/m68kelf.em: New file.
3965 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3966 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3967 * Makefile.in: Regenerate.
3969 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3971 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3974 2000-09-13 Nick Clifton <nickc@redhat.com>
3976 * ldmain.c (multiple_definition): Disable relaxation if
3977 multiple symbol definitions are encountered - otherwise the
3978 linker could abort with an assertion failure.
3980 2000-09-10 Nick Clifton <nickc@redhat.com>
3982 * mri.c: Fix formatting.
3984 2000-09-07 H.J. Lu <hjl@gnu.org>
3986 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3987 * configure: Rebuild.
3989 2000-09-07 H.J. Lu <hjl@gnu.org>
3991 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3992 * Makefile.in: Rebuild.
3994 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3996 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3997 broken list handling. Create __start_SECNAME and __stop_SECNAME
3998 when no place-holder. Add some comments. Test both SEC_CODE and
3999 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4000 Handle case where no output section statement created.
4002 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4004 * configure.tgt (sh-*-linux*): Added.
4005 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4006 * Makefile.in: Rebuilt.
4007 * emulparams/shelf_linux.sh: New file.
4008 * emulparams/shlelf_linux.sh: New file.
4010 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4012 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4013 try shuffling sections when the orphan happens to be the place
4014 holder. Keep count of unique section names generated so we speed
4015 the search for a new name.
4017 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4019 * configure: Rebuilt with new libtool.m4.
4021 2000-09-05 Nick Clifton <nickc@redhat.com>
4023 * Makefile.in: Regenerate.
4024 * aclocal.m4: Regenerate.
4025 * configure: Regenerate.
4026 * config.in: Regenerate.
4027 * po/ld.pot: Regenerate.
4029 * ldint.texinfo: Remove CVS revision marker - it foils local
4032 * emultempl/ticoff.em: Remove extraneous comma.
4034 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4036 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4037 to stub section flags.
4038 (hppa_for_each_input_file_wrapper): New.
4039 (hppa_lang_for_each_input_file): New.
4040 (lang_for_each_input_file): Define to call above.
4041 (multi_subspace): New.
4042 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4043 (PARSE_AND_LIST_PROLOGUE): Define.
4044 (PARSE_AND_LIST_LONGOPTS): Define.
4045 (PARSE_AND_LIST_OPTIONS): Define.
4046 (PARSE_AND_LIST_ARGS_CASES): Define.
4047 (hppaelf_finish): Call elf32_hppa_set_gp.
4048 (hppaelf_set_output_arch): Remove.
4049 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4051 * emulparams/hppalinux.sh (ELFSIZE): Define.
4053 (OTHER_READONLY_SECTIONS): Define.
4055 (GENERATE_SHLIB_SCRIPT): Define.
4057 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4058 to const throughout. Change `void *' to `PTR' throughout.
4059 (lang_memory_default): Function is local to file, add `static'.
4061 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4062 (ehppalinux.c): Likewise.
4063 (earmelf.c): Likewise.
4064 (earmelf_linux.c): Likewise.
4065 (earmelf_linux26.c): Likewise.
4066 * Makefile.in: Regenerate.
4068 * ld.h (ld_config_type): Add unique_orphan_sections.
4069 * lexsup.c (OPTION_UNIQUE): Define.
4070 (ld_options): Add "--unique".
4071 (parse_args): Handle it.
4072 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4073 search for an existing output section if unique_orphan_sections is
4074 set. Make use of bfd_get_unique_section_name rather than
4075 duplicating code here.
4076 * ld.texinfo: Describe --unique.
4078 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4079 optional arg to split-by-file.
4080 (parse_args): Handle them.
4081 * ld.texinfo: Update description of these options.
4082 * ldwrite.c (clone_section): Pass in the section name. Replace
4083 local code with bfd_get_unique_section_name.
4084 (split_sections): Tidy code and comments. Use a list traversal
4085 more appropriate to the list construction. Handle cooked section
4086 sizes. Split when split_by_reloc reached rather than exceeded.
4087 Track section size and split when split_by_file reached. Fix
4088 link_order_tail (even though it's not used).
4089 (ldwrite): Modify condition for calling split_sections to suit
4090 changed split_by_reloc and split_by_file.
4091 * ldmain.c (main): Init config.split_by_reloc and
4092 config.split_by_file to -1.
4093 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4094 Change split_by_file to bfd_size_type.
4096 2000-09-02 Nick Clifton <nickc@redhat.com>
4098 * configure.in: Increase version number to 2.10.91.
4099 * NEWS: Mention new ability to support removal of duplicate DWARF2
4101 * configure: Regenerate.
4102 * aclocal.m4: Regenerate.
4103 * config.in: Regenerate.
4105 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4107 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4109 * scripttempl/elf32avr.sc: Ditto.
4110 * scripttempl/elfd10v.sc: Ditto.
4111 * scripttempl/elfd30v.sc: Ditto.
4112 * scripttempl/elfi370.sc: Ditto.
4113 * scripttempl/elfm68hc11.sc: Ditto.
4114 * scripttempl/elfm68hc12.sc: Ditto.
4115 * scripttempl/elfi386beos.sc: Ditto.
4116 * scripttempl/v850.sc: Ditto.
4118 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4120 * acinclude.m4: Include libtool and gettext macros from the
4122 * aclocal.m4, configure: Rebuilt.
4124 2000-08-25 Nick Clifton <nickc@redhat.com>
4126 * ldlang.c (open_output): When choosing the target for a
4127 particular endianness, do nothing if the target is not
4130 2000-08-25 H.J. Lu <hjl@gnu.org>
4132 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4133 check -rpath nor LD_RUN_PATH for cross link.
4134 * ld.texinfo: Document the change.
4136 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4138 * NEWS: Mention support for CRIS.
4140 2000-08-23 H.J. Lu <hjl@gnu.org>
4142 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4143 the current runpath list from bfd_elf_get_runpath_list ()
4146 2000-08-22 H.J. Lu <hjl@gnu.org>
4148 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4149 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4150 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4151 trace_file_tries is non-zero.
4152 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4153 if trace_file_tries is non-zero.
4155 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4158 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4160 * NEWS: Mention i860 support.
4162 2000-08-14 Andreas Schwab <schwab@suse.de>
4164 * scripttempl/elf.sc: Fix last change to use correct comment
4167 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4169 * scripttempl/elf.sc: Add a comment giving the correspondence
4170 between sections, per-datum sections, and linkonce sections. Make
4171 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4174 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4176 * emulparams/elf32_i860.sh: New file.
4177 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4178 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4179 (eelf32_i860.c): New rule.
4180 * Makefile.in: Regenerate.
4182 2000-08-10 Nick Clifton <nickc@cygnus.com>
4184 * emulparams/mipspe.sh (ENTRY): Add definition.
4186 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4188 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4191 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4193 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4194 the final size of .bss section.
4195 * scripttempl/elfm68hc12.sc: Likewise.
4197 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4199 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4200 gld${EMULATION_NAME}_parse_args for consistency. Combine
4201 lastoptind and prevoptind vars, and keep track of last optind.
4202 (gld_${EMULATION_NAME}_list_options): Rename to
4203 gld${EMULATION_NAME}_list_options.
4205 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4207 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4208 (i586-sco-sysv5uw7.1.0).
4210 2000-07-27 H.J. Lu <hjl@gnu.org>
4212 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4213 (PARSE_AND_LIST_PROLOGUE): New.
4214 (PARSE_AND_LIST_LONGOPTS): Likewise.
4215 (PARSE_AND_LIST_OPTIONS): Likewise.
4216 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4217 (PARSE_AND_LIST_EPILOGUE): Likewise.
4219 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4221 * emultempl/armelf.em: Elide functions common to elf32.em,
4222 ie. most of the file.
4223 (arm_elf_after_open): New. Do arm specific things then call
4224 gld${EMULATION_NAME}_after_open.
4225 (arm_elf_before_allocation): New. Call
4226 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4227 (PARSE_AND_LIST_PROLOGUE): Define.
4228 (PARSE_AND_LIST_SHORTOPTS): Define.
4229 (PARSE_AND_LIST_LONGOPTS): Define.
4230 (PARSE_AND_LIST_OPTIONS): Define.
4231 (PARSE_AND_LIST_ARGS_CASES): Define.
4232 (LDEMUL_AFTER_OPEN): Define.
4233 (LDEMUL_BEFORE_ALLOCATION): Define.
4234 (LDEMUL_BEFORE_PARSE): Define.
4235 (LDEMUL_FINISH): Define.
4237 * emultempl/hppaelf.em: Similarly zap most of this file.
4238 (hppaelf_add_stub_section): Prototype.
4239 (hppaelf_layaout_sections_again): Prototype.
4240 (hook_in_stub): Prototype.
4241 (LDEMUL_SET_OUTPUT_ARCH): Define.
4242 (LDEMUL_FINISH): Define.
4243 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4245 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4246 (EXTRA_EM_FILE): New.
4247 * emulparams/armelf_linux.sh: Likewise.
4248 * emulparams/armelf_linux26.sh: Likewise.
4249 * emulparams/hppalinux.sh: Likewise.
4250 * emulparams/hppaelf.sh: Likewise.
4253 * emultempl/elf32.em: Fix formatting.
4254 (EXTRA_EM_FILE): Source it.
4255 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4256 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4257 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4258 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4259 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4260 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4261 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4262 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4263 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4264 allow functions in this file to be overridden.
4265 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4267 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4269 * emultempl/elf32.em: Reorganize file.
4271 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4273 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4274 specific option to fit 64-bit executable in the lower
4275 31-bit address range. This is done by changing start
4276 address of .interp (the very first section of executable)
4277 and then setting EF_ALPHA_32BIT elf header flag.
4279 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4281 * emultempl/m68kcoff.em: New file.
4282 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4283 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4285 * Makefile.in: Regenerate.
4287 2000-07-20 H.J. Lu <hjl@gnu.org>
4289 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4290 and "disable-new-dtags" to stop getopt from treating -d/-e as
4291 abbreviations for these options.
4293 2000-07-20 H.J. Lu <hjl@gnu.org>
4295 * ld.texinfo: Add documentation for --disable-new-dtags and
4298 * ldmain.c (main): Initialize link_info.new_dtags to false.
4300 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4301 --disable-new-dtags and --enable-new-dtags.
4302 (gld_${EMULATION_NAME}_list_options): Likewise.
4304 2000-07-05 Kenneth Block <krblock@computer.org>
4306 * lexsup.c: Add optional style to demangle switch
4307 * ld.texinfo: Document optional style to demangle switch.
4309 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4311 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4313 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4314 Regenerate dependencies.
4315 * Makefile.in: Rebuild.
4316 * configure.tgt (cris-*-*): New target.
4317 * emulparams/crisaout.sh, emulparams/criself.sh,
4318 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4319 * po/POTFILES.in, po/ld.pot: Regenerate.
4321 2000-07-20 H.J. Lu <hjl@gnu.org>
4323 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4324 Print out ignored -z options.
4326 2000-07-19 H.J. Lu <hjl@gnu.org>
4328 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4329 (PARSE_AND_LIST_PROLOGUE): New.
4330 (PARSE_AND_LIST_LONGOPTS): Likewise.
4331 (PARSE_AND_LIST_OPTIONS): Likewise.
4332 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4334 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4336 * lexsup.c (ld_options): Comment out 'z'.
4337 (parse_args): Likewise.
4339 * emultempl/elf32.em: Include "elf/common.h".
4340 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4342 (gld_${EMULATION_NAME}_list_options): Likewise.
4344 * ld.texinfo: Add documentation for the recognized -z options.
4346 2000-07-19 H.J. Lu <hjl@gnu.org>
4348 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4349 bfd_elf_set_dt_needed_soname ().
4351 2000-07-18 DJ Delorie <dj@cygnus.com>
4353 * pe-dll.c (pe_dll_id_target): check object target name also
4355 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4357 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4358 ${INIT_END} if relocating.
4359 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4361 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4363 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4364 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4365 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4366 errors introduced by the old dynamic lib search order.
4368 2000-07-17 DJ Delorie <dj@cygnus.com>
4370 * pe-dll.c (process_def_file): auto-export data items also
4371 (pe_process_import_defs): also see if _imp_ form needed
4373 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4375 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4376 for dll import libraries
4378 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4380 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4381 gcc 2.95.2 and later.
4383 2000-07-11 Kazu Hirata <kazu@hxi.com>
4385 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4388 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4390 * ldemul.h (struct lang_input_statement_struct): Remove forward
4392 (struct search_dirs): Likewise.
4393 * ldfile.h (struct lang_input_statement_struct): Likewise.
4394 Protect file from multiple inclusion.
4395 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4396 declaration from macro to file scope.
4398 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4399 * ldgram.y: Likewise here.
4400 * ldlang.c: And here.
4401 * ldmain.c: And here.
4402 * mpw-elfmips.c: And here.
4403 * mpw-eppcmac.c: And here.
4404 * emultempl/aix.em: And here.
4405 * emultempl/armcoff.em: And here.
4406 * emultempl/armelf.em: And here.
4407 * emultempl/armelf_oabi.em: And here.
4408 * emultempl/beos.em: And here.
4409 * emultempl/elf32.em: And here.
4410 * emultempl/hppaelf.em: And here.
4411 * emultempl/linux.em: And here.
4412 * emultempl/lnk960.em: And here.
4413 * emultempl/pe.em: And here.
4414 * emultempl/sunos.em: And here.
4415 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4416 * mpw-idtmips.c: Ditto.
4417 * emultempl/generic.em: Ditto.
4418 * emultempl/gld960.em: Ditto.
4419 * emultempl/gld960c.em: Ditto.
4420 * emultempl/mipsecoff.em: Ditto.
4421 * emultempl/ticoff.em: Ditto.
4422 * emultempl/vanilla.em: Ditto.
4424 * pe-dll.c: Include ldfile.h
4425 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4427 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4428 arguments to bfd_elf32_size_dynamic_sections call.
4429 (gldelf32ebmip_place_orphan): Add missing arguments to
4430 lang_leave_output_section_statement call.
4432 2000-07-10 H.J. Lu <hjl@gnu.org>
4434 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4436 (strhash): Likewise.
4437 (compute_dll_image_base): Likewise.
4438 (pe_undef_found_sym): Likewise.
4439 (pe_undef_cdecl_match): Likewise.
4440 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4441 argument "arch" with ATTRIBUTE_UNUSED.
4443 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4445 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4447 From Ryan Bradetich <rbradetich@uswest.net>
4448 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4450 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4452 Changes to create multiple linker stubs, positioned immediately
4453 before the section where they are required.
4454 * emultempl/hppaelf.em: Include elf32-hppa.h.
4455 (stub_sec, file_chain): Delete.
4456 (hppaelf_create_output_section_statements): Don't make a stub
4458 (hook_stub_info): New struct.
4459 (hook_in_stub): New function.
4460 (hppaelf_add_stub_section): New function.
4461 (hppaelf_finish): Do nothing for relocateable links. Modify the
4462 call to elf32_hppa_size_stubs. Move code for updating section
4464 (hppaelf_layaout_sections_again): ..to here, a new function.
4466 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4467 broken list handling. Pass in a pointer to the list.
4468 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4470 (hppaelf_before_parse): Prototype.
4471 (hppaelf_set_output_arch): Prototype.
4472 (hppaelf_create_output_section_statements): Prototype.
4473 (hppaelf_delete_padding_statements): Prototype.
4474 (hppaelf_finish): Prototype.
4477 * emultempl/hppaelf.em: Include ctype.h.
4478 (struct orphan_save): New.
4479 (gld${EMULATION_NAME}_place_orphan): New.
4480 (output_rel_find): New.
4481 (hppaelf_get_script): Update from elf32.em.
4482 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4483 Change emulation_name field to "${EMULATION_NAME}". Add
4484 gld${EMULATION_NAME}_place_orphan.
4486 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4487 ehppalinux.o, sort it. Regenerate dependencies.
4488 (ehppalinux.c): Depend on hppaelf.em
4489 * Makefile.in: Regenerate.
4491 * configure.tgt: targ_emul=hppalinux for hppa*linux
4493 * emulparams/hppalinux.sh: New.
4494 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4496 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4498 * lexsup.c (parse_args): Copy section name.
4500 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4502 * emultempl/pe.em: institute the following search order for
4503 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4504 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4505 static lib (libfoo.a) if none of the above are found.
4507 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4509 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4510 (longopts): New --{enable,disable}-auto-image-base options.
4511 (gld_${EMULATION_NAME}_list_options): Document.
4512 (gld_${EMULATION_NAME}_parse): Handle.
4513 (strhash): New static function.
4514 (compute_dll_image_base): New static function.
4515 (gld_${EMULATION_NAME}_set_symbols): Use.
4517 2000-07-05 DJ Delorie <dj@redhat.com>
4521 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4523 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4524 * emulparams/elf32btsmip.sh: New file.
4525 * Makefile.am: Add traditional mips target.
4526 * Makefile.in: Rebuild.
4528 2000-07-01 H.J. Lu <hjl@gnu.org>
4530 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4531 automake to use YLWRAP.
4532 * Makefile.in: Rebuild.
4534 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4536 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4537 (CLEANFILES): Add DEPA.
4538 * Makefile.in: Regenerate.
4540 2000-06-30 Timothy Wall <twall@ppc>
4542 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4543 the page in the upper octet of the address.
4545 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4547 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4549 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4551 * NEWS: arm-elf does --gc-sections too.
4553 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4555 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4557 * Makefile.in: Regenerate.
4559 2000-06-21 H.J. Lu <hjl@gnu.org>
4561 * Makefile.am: Rebuild dependency.
4562 * Makefile.in: Rebuild.
4564 2000-06-20 H.J. Lu <hjl@gnu.org>
4566 * Makefile.am: Rebuild dependency.
4567 * Makefile.in: Rebuild.
4569 2000-06-20 Timothy Wall <twall@cygnus.com>
4571 * scripttempl/tic54xcoff.sc: New.
4572 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4573 * gen-doc.texi: Add flag for TI COFF.
4574 * ld.texinfo: Add documentation for TI COFF handling switches.
4575 * emultempl/ticoff.em: New. TI COFF handling.
4576 * configure.tgt: Add tic54x target.
4577 * Makefile.am: Add tic54x target.
4578 * Makefile.in: Ditto.
4580 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4582 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4583 checking for backslashes.
4585 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4587 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4589 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4591 * NEWS: Update list of targets supporting --gc-sections.
4593 * scripttempl/elf.sc: KEEP .eh_frame contents.
4594 * scripttempl/elfd30v.sc: Same here.
4596 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4598 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4600 * Makefile.in: Rebuild.
4601 * configure.tgt: Recognize m68hc12 and m68hc11.
4602 * scripttempl/elfm68hc12.sc: New file.
4603 * emulparams/m68hc12elfb: New emulation.
4604 * emulparams/m68hc12elf: New emulation.
4605 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4606 (includes a memory.x script to define the ROM and RAM banks).
4607 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4608 New configuration files for support of Motorola 68hc11
4610 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4612 * ldmain.c (main): Only change SEC_READONLY for final link.
4614 2000-06-13 H.J. Lu <hjl@gnu.org>
4616 * configure: Regenerate.
4618 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4620 * configure.in (VERSION): Update to show this is the CVS mainline.
4622 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4624 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4625 input objects to be ECOFF.
4626 (check_sections): einfo takes %B, not %P, to print a BFD name.
4628 2000-06-05 Michael Matz <matz@ifh.de>
4630 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4633 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4635 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4637 * emulparams/avr1200.sh (STACK): Define as 0.
4638 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4639 * emulparams/avr4433.sh (STACK): Likewise.
4640 * emulparams/avr44x4.sh (STACK): Likewise.
4641 * emulparams/avr85xx.sh (STACK): Likewise.
4642 * emulparams/avrmega103.sh (STACK): Likewise.
4643 * emulparams/avrmega161.sh (STACK): Likewise.
4644 * emulparams/avrmega603.sh (STACK): Likewise.
4645 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4646 (__stack): Define from ${STACK} for main().
4648 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4650 * Makefile.am: Update dependencies with "make dep-am"
4651 * Makefile.in: Regenerate.
4653 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4655 * ldmain.c: Include filenames.h.
4656 (set_scripts_dir): Support backslashes in program name.
4658 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4660 * ldmain.c (main): When deciding if ".text" section should be
4661 read-only, don't forget to reset SEC_READONLY because it
4662 could be already set.
4664 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4666 * ld.1: Add documentation for new command line option:
4667 --section-start <sectionname>=<sectionorg>
4668 This is a generic version of -Ttext etc. which accepts
4669 any section name as a parameter instead of just text/data/
4671 * ld.texinfo: More docs.
4673 * lexsup.c: (parse_args): Recognize new command line option.
4674 (ld_options): Add new option.
4676 2000-05-18 H.J. Lu <hjl@gnu.org>
4678 * lexsup.c (parse_args): `i' == `r', not `q'.
4680 2000-05-18 Jeffrey A Law (law@cygnus.com)
4682 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4684 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4685 Rick Gorton <gorton@scrugs.lkg.dec.com>
4687 Add support for '-q' == '--emit-relocs' switch.
4688 * ldmain.c (main): Default to false.
4689 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4690 * NEWS: Describe the emitrelocations switch.
4691 * ld.texinfo: Describe the emitrelocations switch.
4693 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4695 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4696 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4697 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4700 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4702 * lexsup.c (parse_args): Update the year in the copyright notice.
4704 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4706 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4707 Replace defines with those from intl/libgettext.h to quieten gcc
4710 2000-05-10 H.J. Lu <hjl@gnu.org>
4712 * ldlang.c (open_input_bfds): Don't load the same file within
4713 a group again if the whole archive has been loaded already.
4715 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4717 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4718 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4721 2000-05-01 Jim Wilson <wilson@cygnus.com>
4723 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4725 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4726 host "ia64-*-linux-gnu*".
4728 2000-04-29 Andreas Jaeger <aj@suse.de>
4730 * ld.h: Correctly check GCC version.
4732 2000-04-25 Jeffrey A Law (law@cygnus.com)
4734 * Makefile.am: Add PA64 support. Add missing dependencies for
4736 * Makefile.in: Rebuilt.
4737 * configure.tgt: Add PA64 support (currently disabled).
4739 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4741 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4742 (output_rel_find): New function.
4743 (hold_section, hold_use): Delete.
4744 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4745 hold_interp): Make local to place_orphan.
4746 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4747 rather than place_section to find possible previous use of orphan.
4748 Similarly find the place-holder output sections. Use returned
4749 value from lang_enter_output_section_statement rather than calling
4750 lang_output_section_statement_lookup.
4751 * emultempl/armelf.em: Same here.
4752 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4754 * ldlang.c (lang_enter_output_section_statement): Return output
4756 * ldlang.h (lang_enter_output_section_statement): Change
4759 * ldlang.h (lang_output_section_statement): Export it.
4760 * ldlang.c (lang_output_section_statement): Ditto.
4762 2000-04-24 Nick Clifton <nickc@cygnus.com>
4764 * ld.texinfo (Output Section Data): Add note that section data
4765 commands cannot appear outside of section directives.
4767 2000-04-2 Matthew Green <mrg@cygnus.com>
4769 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4771 2000-04-21 Richard Henderson <rth@cygnus.com>
4772 David Mosberger <davidm@hpl.hp.com>
4774 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4775 (eelf64_ia64.c): New rule.
4776 * Makefile.in: Rebuild.
4777 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4778 * emulparams/elf64_ia64.sh: New file.
4780 2000-04-21 Richard Henderson <rth@cygnus.com>
4782 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4784 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4786 * dep-in.sed: Match space at start of file name, not at end.
4788 2000-04-18 H.J. Lu <hjl@gnu.org>
4790 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4791 lang_leave_output_section_statement () after calling
4792 lang_enter_output_section_statement ().
4793 * emultempl/armelf.em: Likewise.
4795 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4797 * emultempl/elf32.em (struct orphan_save): Add section field.
4798 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4799 better order, and place first orphan section as we did before the
4800 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4801 Don't call make_bfd_section here, let wild_doit do the job for us.
4802 Don't build a statement list when we'll only throw it away.
4803 * emultempl/armelf.em: Ditto.
4804 * emultempl/pe.em: Similarly.
4806 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4808 * scripttempl/elfppc.sc: Remove.
4809 * emulparams/elf32ppc.sh: Use elf.sc.
4810 * emulparams/elf32lppc.sh: Use elf.sc.
4811 * emulparams/elf32ppclinux.sh: Use elf.sc.
4812 * emulparams/elf32ppcsim.sh: New file.
4813 * emulparams/elf32lppcsim.sh: New file.
4814 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4815 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4816 * Makefile.in: Regenerate.
4817 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4819 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4821 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4822 ~SEC_ALLOC sections too. Init start address of debug sections.
4823 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4824 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4825 Also set all relocateable section start addresses.
4827 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4829 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4830 Add new BSS_PLT variable for when .plt need not be contained in
4831 the file. Move _etext so that it is also after .fini, and provide
4832 both etext and _etext with a leading underscore. Mark the start
4835 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4837 * emultempl/elf32.em (struct orphan_save): New.
4838 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4839 hold_interp): Make them struct orphan_save.
4840 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4841 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4842 the end of the relevant section list. Also add associated section
4843 statements to the end of any previous orphan statements.
4844 * emultempl/armelf.em: Similarly.
4845 * emultempl/pe.em: Similarly.
4847 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4849 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4851 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4853 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4854 --enable-build-warnings option.
4855 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4856 * Makefile.in, configure: Re-generate.
4858 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4860 * po/ld.pot: Regenerate.
4862 * lexsup.c (help): Restore translated part of bug string.
4864 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4865 (DEP): Quote when passing vars to sub-make. Add warning message
4867 (DEP1): Rewrite for "gcc -MM".
4868 (CLEANFILES): Add DEP2.
4869 Update dependencies.
4870 * Makefile.in: Regenerate.
4872 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4874 * ld.h: #include "bin-bugs.h"
4875 * lexsup.c (help): Use REPORT_BUGS_TO.
4877 2000-03-27 Denis Chertykov <denisc@overta.ru>
4879 * configure.tgt (avr-*-*): New target support.
4880 * Makefile.am: Likewise.
4881 * scripttempl/elf32avr.sc: New script file.
4882 * emulparams/avr1200.sh: New file.
4883 * emulparams/avr23xx.sh: New file.
4884 * emulparams/avr4433.sh New file.
4885 * emulparams/avr44x4.sh New file.
4886 * emulparams/avr85xx.sh New file.
4887 * emulparams/avrmega103.sh New file.
4888 * emulparams/avrmega161.sh New file.
4889 * emulparams/avrmega603.sh New file.
4890 * Makefile.in: Regenerate.
4892 2000-03-09 Andreas Jaeger <aj@suse.de>
4894 * Makefile.am (check-DEJAGNU): Also unset LANG.
4895 * Makefile.in: Rebuild.
4897 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4899 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4902 2000-03-02 H.J. Lu <hjl@gnu.org>
4904 * emulparams/elf32mcore.sh: Include "getopt.h".
4906 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4908 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4910 2000-03-01 H.J. Lu <hjl@gnu.org>
4912 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4913 * emulparams/shpe.sh: Likewise.
4915 2000-03-01 Nick Clifton <nickc@cygnus.com>
4917 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4918 to unused parameters.
4920 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4921 functions only used by DLL code.
4922 (_place_orphan): Initialise 'dollar'.
4924 2000-03-01 H.J. Lu <hjl@gnu.org>
4926 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4927 indicate if the undefined symbol is a fatal error or not.
4928 Don't delete the output file if "fatal" is false.
4930 2000-02-29 H.J. Lu <hjl@gnu.org>
4932 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4933 Set LC_COLLATE and LC_ALL to null and export them. It is for
4934 sort which expects the C locale.
4935 Add $(LIBS) to all $(HOSTING_LIBS).
4936 * Makefile.in: Rebuild.
4938 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4940 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4941 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4942 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4943 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4944 find_potential_libraries.
4946 2000-02-28 Jim Blandy <jimb@redhat.com>
4948 * ldgram.y (exclude_name_list): Don't require a comma to separate
4949 list entries; the lexer considers commas to be valid part of a
4950 filename, so in something like `foo, bar' the comma is considered
4951 part of the first filename, `foo,'.
4952 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4954 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4956 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4957 host "i[3456]86-*-freebsdelf*".
4959 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4961 * scripttempl/i386go32.sc: Move misplaced semicolons.
4963 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4965 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4966 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4967 (eelf64hppa.c, ehppaelf.c): Remove targets.
4968 * Makefile.in: Rebuild.
4970 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4972 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4973 GNU/Linux/sparc, but keep the default as 32.
4975 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4976 it default if sparcv9 or sparc64.
4978 2000-02-24 Nick Clifton <nickc@cygnus.com>
4980 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4981 * Makefile.in: Regenerate.
4982 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4984 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4985 find_potential_libraries.
4986 * ldemul.c (ldemul_find_potential_libraries): New function.
4988 * ldfile.c (ldfile_open_file_search): Allow function to be
4990 (ldfile_open_file): Call ldemul_find_potential_libraries.
4991 * ldfile.h: Add prototype for ldfile_open_file_search.
4993 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4995 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4996 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4998 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4999 (gld_X_find_potential_libraries): New function. Search for
5000 libraries called "*.lib".
5002 * scripttempl/pe.sc: Add .pdata section.
5004 2000-02-23 Richard Henderson <rth@cygnus.com>
5006 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5007 Add and use memory regions.
5009 2000-02-23 Linas Vepstas (linas@linas.org)
5011 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5013 * Makefile.am: Add support for Linux/IBM 370.
5014 * configure.tgt: Likewise.
5016 * Makefile.in: Regenerate.
5018 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5020 * ldlang.c (print_input_section, print_data_statement,
5021 print_reloc_statement, print_padding_statement, insert_pad,
5022 size_input_section, lang_check_section_addresses,
5023 lang_size_sections, lang_do_assignments, lang_set_startof,
5024 lang_one_common): Change `opb' to unsigned.
5025 (lang_do_assignments): Also change `size' to unsigned.
5027 2000-02-16 Richard Henderson <rth@cygnus.com>
5029 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5031 2000-02-16 Timothy Wall <twall@cygnus.com>
5033 * mri.c (mri_draw_tree): Add default LMA region argument to call
5034 to lang_leave_output_section_statement.
5035 * ldlang.h: Update prototypes with LMA region arguments.
5036 * ldlang.c (lang_size_sections): Encapsulate region bounds
5037 checking in os_check_region call.
5038 (os_check_region): New function.
5039 (lang_output_section_statement_lookup): Initialize lma_region.
5040 (lang_leave_output_section_statement): Add LMA region argument.
5041 (lang_leave_overlay): Ditto.
5042 * ldgram.y: Handle LMA region syntax.
5043 * ld.texinfo (Output Section Description): Describe LMA region usage.
5044 * emultempl/armelf.em (gld$place_orphan): Add default value for
5045 lma region in call to lang_leave_output_section_statement.
5046 * emultempl/elf32.em (gld$place_orphan): Add default value for
5047 lma region in call to lang_leave_output_section_statement.
5048 * emultempl/pe.em (gld$place_orphan): Add default value for
5049 lma region in call to lang_leave_output_section_statement.
5052 2000-02-04 Timothy Wall <twall@redhat.com>
5054 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5055 octets when calculating section end addresses.
5057 2000-02-04 Timothy Wall <twall@redhat.com>
5059 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5061 2000-02-03 Timothy Wall <twall@redhat.com>
5063 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5065 * ldlang.c (print_input_section, print_data_statement,
5066 print_reloc_statement, print_padding_statement): Print target
5067 address values and section sizes as bytes, not octets.
5068 (insert_pad) Calculate padding size in octets, and adjust "dot"
5070 (size_input_section) Always adjust "dot" by bytes, not octets.
5071 (lang_check_section_addresses, lang_do_assignments) Adjust
5072 "dot" by bytes, not octets. Use the larger of the directive size
5073 or octets_per_byte for the number of octets actually allocated in
5075 (lang_set_startof) Make sure STARTOF returns a target address.
5076 (lang_one_common) Record size changes in octets.
5077 (lang_abs_symbol_at_end_of) Section end symbol's value is
5078 recorded in target bytes.
5079 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5080 to be clear about behavior when an octet is smaller than one byte.
5082 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5084 * ldcref.c (output_cref): Don't pass message strings to printf
5088 * ldmisc.c (vfinfo): Same here.
5091 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5093 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5094 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5095 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5096 Add missing NULL initialisers, and comments.
5098 2000-01-21 Nick Clifton <nickc@cygnus.com>
5100 * ldlang.c (lang_size_sections): Fix typo in comment.
5102 2000-01-18 H.J. Lu <hjl@gnu.org>
5104 * ldlang.c (lang_size_sections): Also update the current
5105 address of a region if the SEC_NEVER_LOAD bit is not set.
5107 2000-01-10 Philip Blundell <pb@futuretv.com>
5109 * configure.tgt (arm*-*-conix*): New target.
5111 2000-01-07 Nick Clifton <nickc@cygnus.com>
5113 * ld.texinfo (Options): Remind users to preceed linker command
5114 line switches with -Wl, (or whatever is appropriate) if it is
5115 being invoked by a comnpiler driver program.
5116 Fix description of the behaviour of the -n command line switch.
5118 2000-01-05 Catherine Moore <clm@cygnus.com>
5120 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5122 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5123 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5124 (exclude_name_list): New.
5125 ldlang.c (walk_wild_section): Support list of excluded files.
5126 (print_wild_statement): Likewise.
5127 (lang_add_wild): Likewise.
5128 * ldlang.h (lang_wild_statement_type): Likewise.
5129 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5131 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5133 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5134 (process_def_file): Use.
5135 (pe_dll_compat_implib): New variable.
5138 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5139 pe_dll_compat_implib.
5141 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5142 compat-implib options.
5143 (gld_${EMULATION_NAME}_list_options): List new options.
5144 (gld_${EMULATION_NAME}_parse_args): Handle.
5146 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5149 * deffilep.y (opt_name): Allow "." in name.
5151 For older changes see ChangeLog-9899
5157 version-control: never